#include <windows_test_context.h>
Definition at line 24 of file windows_test_context.h.
◆ WindowsTestContext()
flutter::testing::WindowsTestContext::WindowsTestContext |
( |
std::string_view |
assets_path = "" | ) |
|
|
explicit |
Definition at line 12 of file windows_test_context.cc.
14 native_resolver_(std::make_shared<TestDartNativeResolver>()) {
15 isolate_create_callbacks_.push_back(
16 [weak_resolver =
17 std::weak_ptr<TestDartNativeResolver>{native_resolver_}]() {
18 if (auto resolver = weak_resolver.lock()) {
19 resolver->SetNativeResolverForIsolate();
20 }
21 });
22}
std::wstring Utf8ToWideString(const std::string_view str)
◆ ~WindowsTestContext()
flutter::testing::WindowsTestContext::~WindowsTestContext |
( |
| ) |
|
|
virtualdefault |
◆ AddNativeFunction()
void flutter::testing::WindowsTestContext::AddNativeFunction |
( |
std::string_view |
name, |
|
|
Dart_NativeFunction |
function |
|
) |
| |
Definition at line 38 of file windows_test_context.cc.
39 {
40 native_resolver_->AddNativeCallback(std::string{
name},
function);
41}
Dart_NativeFunction function
DEF_SWITCHES_START aot vmservice shared library name
◆ GetAotLibraryPath()
const std::wstring & flutter::testing::WindowsTestContext::GetAotLibraryPath |
( |
| ) |
const |
◆ GetAssetsPath()
const std::wstring & flutter::testing::WindowsTestContext::GetAssetsPath |
( |
| ) |
const |
◆ GetIcuDataPath()
const std::wstring & flutter::testing::WindowsTestContext::GetIcuDataPath |
( |
| ) |
const |
◆ GetRootIsolateCallback()
fml::closure flutter::testing::WindowsTestContext::GetRootIsolateCallback |
( |
| ) |
|
Definition at line 43 of file windows_test_context.cc.
43 {
44 return [this]() {
45 for (
auto closure : this->isolate_create_callbacks_) {
47 }
48 };
49}
std::function< void()> closure
The documentation for this class was generated from the following files: