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

Public Member Functions

 DartIsolateTest ()
 
void Wait ()
 
void Signal ()
 
 DartIsolateTest ()
 
void OverrideDartPluginRegistrant (const std::string &override_value)
 
void SetUp () override
 
void TearDown () override
 
 DartIsolateTest ()
 
- 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...
 

Public Attributes

std::string dart_plugin_registrant_library_
 

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 27 of file dart_isolate_unittests.cc.

Constructor & Destructor Documentation

◆ DartIsolateTest() [1/3]

flutter::testing::DartIsolateTest::DartIsolateTest ( )
inline

Definition at line 29 of file dart_isolate_unittests.cc.

29{}

◆ DartIsolateTest() [2/3]

flutter::testing::DartIsolateTest::DartIsolateTest ( )
inline

◆ DartIsolateTest() [3/3]

flutter::testing::DartIsolateTest::DartIsolateTest ( )
inline

Member Function Documentation

◆ OverrideDartPluginRegistrant()

void flutter::testing::DartIsolateTest::OverrideDartPluginRegistrant ( const std::string &  override_value)
inline

◆ SetUp()

void flutter::testing::DartIsolateTest::SetUp ( )
inlineoverride

Definition at line 35 of file dart_plugin_registrant_unittests.cc.

35 {
36 std::string source_path = GetSourcePath();
37 if (source_path[0] != '/') {
38 // On windows we need an extra '/' prefix.
39 source_path = "/" + source_path;
40 }
41 std::string registrant_uri = std::string("file://") + source_path +
42 "flutter/runtime/fixtures/dart_tool/"
43 "flutter_build/dart_plugin_registrant.dart";
44 OverrideDartPluginRegistrant(registrant_uri);
45 }
void OverrideDartPluginRegistrant(const std::string &override_value)
const char * GetSourcePath()

◆ Signal()

void flutter::testing::DartIsolateTest::Signal ( )
inline

Definition at line 33 of file dart_isolate_unittests.cc.

33{ latch_.Signal(); }

◆ TearDown()

void flutter::testing::DartIsolateTest::TearDown ( )
inlineoverride

Definition at line 47 of file dart_plugin_registrant_unittests.cc.

47 {
49 }

◆ Wait()

void flutter::testing::DartIsolateTest::Wait ( )
inline

Definition at line 31 of file dart_isolate_unittests.cc.

31{ latch_.Wait(); }

Member Data Documentation

◆ dart_plugin_registrant_library_

std::string flutter::testing::DartIsolateTest::dart_plugin_registrant_library_

Definition at line 51 of file dart_plugin_registrant_unittests.cc.


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