Flutter Engine
The Flutter Engine
|
#include <windows_test.h>
Public Member Functions | |
WindowsTest () | |
std::string | GetFixturesDirectory () const |
WindowsTestContext & | GetContext () |
Public Member Functions inherited from flutter::testing::ThreadTest | |
ThreadTest () | |
fml::RefPtr< fml::TaskRunner > | GetCurrentTaskRunner () |
Get the task runner for the thread that the current unit-test is running on. This creates a message loop as necessary. More... | |
fml::RefPtr< fml::TaskRunner > | CreateNewThread (const std::string &name="") |
Creates a new thread, initializes a message loop on it, and, returns its task runner to the unit-test. The message loop is terminated (and its thread joined) when the test ends. This allows tests to create multiple named threads as necessary. More... | |
A GoogleTest test fixture for Windows tests.
Supports looking up the test fixture data defined in the GN test_fixtures
associated with the unit test executable target. This typically includes the kernel bytecode kernel_blob.bin
compiled from the Dart file specified in the test fixture's dart_main
property, as well as any other data files used in tests, such as image files used in a screenshot golden test.
This test class can be used in GoogleTest tests using the standard TEST_F(WindowsTest, TestName)
macro.
Definition at line 27 of file windows_test.h.
flutter::testing::WindowsTest::WindowsTest | ( | ) |
Definition at line 15 of file windows_test.cc.
WindowsTestContext & flutter::testing::WindowsTest::GetContext | ( | ) |
Definition at line 21 of file windows_test.cc.
std::string flutter::testing::WindowsTest::GetFixturesDirectory | ( | ) | const |
Definition at line 17 of file windows_test.cc.