Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
flutter::testing::WindowsTest Class Reference

#include <windows_test.h>

Inheritance diagram for flutter::testing::WindowsTest:
flutter::testing::ThreadTest flutter::testing::CursorHandlerTest flutter::testing::FlutterWindowsEngineTest flutter::testing::PlatformHandlerTest flutter::testing::TextInputPluginTest flutter::testing::WindowsLifecycleManagerTest

Public Member Functions

 WindowsTest ()
 
std::string GetFixturesDirectory () const
 
WindowsTestContextGetContext ()
 
- Public Member Functions inherited from flutter::testing::ThreadTest
 ThreadTest ()
 
fml::RefPtr< fml::TaskRunnerGetCurrentTaskRunner ()
 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::TaskRunnerCreateNewThread (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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ WindowsTest()

flutter::testing::WindowsTest::WindowsTest ( )

Definition at line 15 of file windows_test.cc.

15: context_(GetFixturesDirectory()) {}
std::string GetFixturesDirectory() const

Member Function Documentation

◆ GetContext()

WindowsTestContext & flutter::testing::WindowsTest::GetContext ( )

Definition at line 21 of file windows_test.cc.

21 {
22 return context_;
23}

◆ GetFixturesDirectory()

std::string flutter::testing::WindowsTest::GetFixturesDirectory ( ) const

Definition at line 17 of file windows_test.cc.

17 {
18 return GetFixturesPath();
19}
const char * GetFixturesPath()
Returns the directory containing the test fixture for the target if this target has fixtures configur...

The documentation for this class was generated from the following files: