#include <windows_test_config_builder.h>
◆ WindowsConfigBuilder()
flutter::testing::WindowsConfigBuilder::WindowsConfigBuilder |
( |
WindowsTestContext & |
context | ) |
|
|
explicit |
◆ ~WindowsConfigBuilder()
flutter::testing::WindowsConfigBuilder::~WindowsConfigBuilder |
( |
| ) |
|
|
default |
◆ AddDartEntrypointArgument()
void flutter::testing::WindowsConfigBuilder::AddDartEntrypointArgument |
( |
std::string_view |
arg | ) |
|
Definition at line 33 of file windows_test_config_builder.cc.
33 {
34 if (arg.empty()) {
35 return;
36 }
37
38 dart_entrypoint_arguments_.emplace_back(std::move(arg));
39}
◆ GetEngineProperties()
Definition at line 41 of file windows_test_config_builder.cc.
42 {
46
47
49
50
51 std::vector<const char*> dart_args;
52 dart_args.reserve(dart_entrypoint_arguments_.size());
53 for (const auto& arg : dart_entrypoint_arguments_) {
54 dart_args.push_back(arg.c_str());
55 }
56 if (!dart_args.empty()) {
59 } else {
60
61
64 }
65
66 return engine_properties;
67}
const std::wstring & GetIcuDataPath() const
const std::wstring & GetAssetsPath() const
const char * dart_entrypoint
const char * icu_data_path
const char ** dart_entrypoint_argv
◆ InitializeEngine()
EnginePtr flutter::testing::WindowsConfigBuilder::InitializeEngine |
( |
| ) |
const |
Definition at line 69 of file windows_test_config_builder.cc.
69 {
72}
FlutterDesktopEngineProperties GetEngineProperties() const
std::unique_ptr< FlutterDesktopEngine, EngineDeleter > EnginePtr
FlutterDesktopEngineRef FlutterDesktopEngineCreate(const FlutterDesktopEngineProperties *engine_properties)
◆ Run()
Definition at line 95 of file windows_test_config_builder.cc.
95 {
96 InitializeCOM();
97
100 return {};
101 }
102
103
104 FlutterWindowsEngine* windows_engine =
105 reinterpret_cast<FlutterWindowsEngine*
>(
engine.get());
106 windows_engine->SetRootIsolateCreateCallback(
108
111
112
115 if (!controller) {
116 return {};
117 }
118
119 return controller;
120}
EnginePtr InitializeEngine() const
fml::closure GetRootIsolateCallback()
std::unique_ptr< FlutterDesktopViewController, ViewControllerDeleter > ViewControllerPtr
FlutterDesktopViewControllerRef FlutterDesktopViewControllerCreate(int width, int height, FlutterDesktopEngineRef engine)
◆ RunHeadless()
EnginePtr flutter::testing::WindowsConfigBuilder::RunHeadless |
( |
| ) |
const |
Definition at line 74 of file windows_test_config_builder.cc.
74 {
75 InitializeCOM();
76
79 return {};
80 }
81
82
83 FlutterWindowsEngine* windows_engine =
84 reinterpret_cast<FlutterWindowsEngine*
>(
engine.get());
85 windows_engine->SetRootIsolateCreateCallback(
87
89 return {};
90 }
91
93}
bool FlutterDesktopEngineRun(FlutterDesktopEngineRef engine, const char *entry_point)
◆ SetDartEntrypoint()
void flutter::testing::WindowsConfigBuilder::SetDartEntrypoint |
( |
std::string_view |
entrypoint | ) |
|
The documentation for this class was generated from the following files: