Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::testing::DartSecondaryIsolateTest Class Reference
Inheritance diagram for flutter::testing::DartSecondaryIsolateTest:
flutter::testing::FixtureTest flutter::testing::DartFixture flutter::testing::ThreadTest

Public Member Functions

 DartSecondaryIsolateTest ()
 
void LatchCountDown ()
 
void LatchWait ()
 
void ChildShutdownSignal ()
 
void ChildShutdownWait ()
 
void RootIsolateShutdownSignal ()
 
bool RootIsolateIsSignaled ()
 
- Public Member Functions inherited from flutter::testing::FixtureTest
 FixtureTest ()
 
 FixtureTest (std::string kernel_filename, std::string elf_filename, std::string elf_split_filename)
 
- Public Member Functions inherited from flutter::testing::DartFixture
 DartFixture ()
 
 DartFixture (std::string kernel_filename, std::string elf_filename, std::string elf_split_filename)
 
virtual Settings CreateSettingsForFixture ()
 
void AddNativeCallback (const std::string &name, Dart_NativeFunction callback)
 
void AddFfiNativeCallback (const std::string &name, void *callback_ptr)
 
- 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. More...
 
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. More...
 

Additional Inherited Members

- Protected Member Functions inherited from flutter::testing::DartFixture
void SetSnapshotsAndAssets (Settings &settings)
 
- Protected Attributes inherited from flutter::testing::DartFixture
std::shared_ptr< TestDartNativeResolvernative_resolver_
 
ELFAOTSymbols split_aot_symbols_
 
std::string kernel_filename_
 
std::string elf_filename_
 
fml::UniqueFD assets_dir_
 
ELFAOTSymbols aot_symbols_
 

Detailed Description

Definition at line 274 of file dart_isolate_unittests.cc.

Constructor & Destructor Documentation

◆ DartSecondaryIsolateTest()

flutter::testing::DartSecondaryIsolateTest::DartSecondaryIsolateTest ( )
inline

Definition at line 276 of file dart_isolate_unittests.cc.

276: latch_(3) {}

Member Function Documentation

◆ ChildShutdownSignal()

void flutter::testing::DartSecondaryIsolateTest::ChildShutdownSignal ( )
inline

Definition at line 282 of file dart_isolate_unittests.cc.

282{ child_shutdown_latch_.Signal(); }

◆ ChildShutdownWait()

void flutter::testing::DartSecondaryIsolateTest::ChildShutdownWait ( )
inline

Definition at line 284 of file dart_isolate_unittests.cc.

284{ child_shutdown_latch_.Wait(); }

◆ LatchCountDown()

void flutter::testing::DartSecondaryIsolateTest::LatchCountDown ( )
inline

Definition at line 278 of file dart_isolate_unittests.cc.

278{ latch_.CountDown(); }

◆ LatchWait()

void flutter::testing::DartSecondaryIsolateTest::LatchWait ( )
inline

Definition at line 280 of file dart_isolate_unittests.cc.

280{ latch_.Wait(); }

◆ RootIsolateIsSignaled()

bool flutter::testing::DartSecondaryIsolateTest::RootIsolateIsSignaled ( )
inline

Definition at line 288 of file dart_isolate_unittests.cc.

288 {
289 return root_isolate_shutdown_latch_.IsSignaledForTest();
290 }

◆ RootIsolateShutdownSignal()

void flutter::testing::DartSecondaryIsolateTest::RootIsolateShutdownSignal ( )
inline

Definition at line 286 of file dart_isolate_unittests.cc.

286{ root_isolate_shutdown_latch_.Signal(); }

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