#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. | |
| 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. | |
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.
Referenced by flutter::testing::CursorHandlerTest::UseEngineWithView(), flutter::testing::CursorHandlerTest::UseHeadlessEngine(), and flutter::testing::PlatformHandlerTest::UseHeadlessEngine().
| std::string flutter::testing::WindowsTest::GetFixturesDirectory | ( | ) | const |
Definition at line 17 of file windows_test.cc.
References flutter::testing::GetFixturesPath().