Flutter Engine
flutter::testing::DartSecondaryIsolateTest Class Reference
Inheritance diagram for flutter::testing::DartSecondaryIsolateTest:
flutter::testing::FixtureTest 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 ()
 
virtual Settings CreateSettingsForFixture ()
 
void AddNativeCallback (std::string name, Dart_NativeFunction callback)
 
- 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 (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::FixtureTest
void SetSnapshotsAndAssets (Settings &settings)
 
- Protected Attributes inherited from flutter::testing::FixtureTest
std::shared_ptr< TestDartNativeResolvernative_resolver_
 

Detailed Description

Definition at line 236 of file dart_isolate_unittests.cc.

Constructor & Destructor Documentation

◆ DartSecondaryIsolateTest()

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

Definition at line 238 of file dart_isolate_unittests.cc.

238 : latch_(3) {}

Member Function Documentation

◆ ChildShutdownSignal()

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

Definition at line 244 of file dart_isolate_unittests.cc.

244 { child_shutdown_latch_.Signal(); }

◆ ChildShutdownWait()

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

Definition at line 246 of file dart_isolate_unittests.cc.

246 { child_shutdown_latch_.Wait(); }

◆ LatchCountDown()

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

Definition at line 240 of file dart_isolate_unittests.cc.

240 { latch_.CountDown(); }

◆ LatchWait()

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

Definition at line 242 of file dart_isolate_unittests.cc.

242 { latch_.Wait(); }

◆ RootIsolateIsSignaled()

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

Definition at line 250 of file dart_isolate_unittests.cc.

References FML_DISALLOW_COPY_AND_ASSIGN.

250  {
251  return root_isolate_shutdown_latch_.IsSignaledForTest();
252  }

◆ RootIsolateShutdownSignal()

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

Definition at line 248 of file dart_isolate_unittests.cc.

248 { root_isolate_shutdown_latch_.Signal(); }

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