5#include "flutter/shell/platform/windows/testing/windows_test_config_builder.h"
13#include "flutter/fml/logging.h"
14#include "flutter/shell/platform/windows/flutter_windows_engine.h"
15#include "flutter/shell/platform/windows/public/flutter_windows.h"
16#include "flutter/shell/platform/windows/testing/windows_test_context.h"
22 : context_(context) {}
27 if (entrypoint.empty()) {
30 dart_entrypoint_ = entrypoint;
38 dart_entrypoint_arguments_.emplace_back(std::move(arg));
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());
56 if (!dart_args.empty()) {
66 return engine_properties;
122void WindowsConfigBuilder::InitializeCOM()
const {
void SetRootIsolateCreateCallback(const fml::closure &callback)
FlutterDesktopEngineProperties GetEngineProperties() const
EnginePtr InitializeEngine() const
void SetDartEntrypoint(std::string_view entrypoint)
void AddDartEntrypointArgument(std::string_view arg)
EnginePtr RunHeadless() const
WindowsConfigBuilder(WindowsTestContext &context)
ViewControllerPtr Run() const
const std::wstring & GetIcuDataPath() const
const std::wstring & GetAssetsPath() const
fml::closure GetRootIsolateCallback()
#define FML_CHECK(condition)
std::unique_ptr< FlutterDesktopEngine, EngineDeleter > EnginePtr
std::unique_ptr< FlutterDesktopViewController, ViewControllerDeleter > ViewControllerPtr
const char * dart_entrypoint
const char * icu_data_path
const char ** dart_entrypoint_argv
FlutterDesktopEngineRef FlutterDesktopEngineCreate(const FlutterDesktopEngineProperties *engine_properties)
FlutterDesktopViewControllerRef FlutterDesktopViewControllerCreate(int width, int height, FlutterDesktopEngineRef engine)
bool FlutterDesktopEngineRun(FlutterDesktopEngineRef engine, const char *entry_point)