Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::testing::IsolateStartupFailureTest Class Reference

Tests error handling path of Isolate.spawn() in the engine. More...

Inheritance diagram for flutter::testing::IsolateStartupFailureTest:
flutter::testing::FixtureTest flutter::testing::DartFixture flutter::testing::ThreadTest

Public Member Functions

 IsolateStartupFailureTest ()
 
void NotifyDone ()
 
void WaitForDone ()
 
- 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

Tests error handling path of Isolate.spawn() in the engine.

Definition at line 337 of file dart_isolate_unittests.cc.

Constructor & Destructor Documentation

◆ IsolateStartupFailureTest()

flutter::testing::IsolateStartupFailureTest::IsolateStartupFailureTest ( )
inline

Definition at line 339 of file dart_isolate_unittests.cc.

339: latch_(1) {}

Member Function Documentation

◆ NotifyDone()

void flutter::testing::IsolateStartupFailureTest::NotifyDone ( )
inline

Definition at line 340 of file dart_isolate_unittests.cc.

340{ latch_.CountDown(); }

◆ WaitForDone()

void flutter::testing::IsolateStartupFailureTest::WaitForDone ( )
inline

Definition at line 341 of file dart_isolate_unittests.cc.

341{ latch_.Wait(); }

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