5#include "flutter/shell/platform/windows/flutter_project_bundle.h"
6#include "gtest/gtest.h"
19 EXPECT_EQ(project.
assets_path().string(),
"C:\\foo\\flutter_assets");
20 EXPECT_EQ(project.
icu_path().string(),
"C:\\foo\\icudtl.dat");
32 EXPECT_EQ(project.
assets_path().filename().string(),
"flutter_assets");
34 EXPECT_EQ(project.
icu_path().filename().string(),
"icudtl.dat");
43 _putenv_s(
"FLUTTER_ENGINE_SWITCHES",
"");
55 std::vector<const char*> test_arguments = {
"arg1",
"arg2"};
61 std::vector<std::string> retrieved_arguments =
63 EXPECT_EQ(retrieved_arguments.size(), 2U);
64 EXPECT_EQ(retrieved_arguments[0],
"arg1");
65 EXPECT_EQ(retrieved_arguments[1],
"arg2");
68#ifndef FLUTTER_RELEASE
74 _putenv_s(
"FLUTTER_ENGINE_SWITCHES",
"2");
75 _putenv_s(
"FLUTTER_ENGINE_SWITCH_1",
"abc");
76 _putenv_s(
"FLUTTER_ENGINE_SWITCH_2",
"foo=\"bar, baz\"");
80 std::vector<std::string> switches = project.
GetSwitches();
81 EXPECT_EQ(switches.size(), 2);
82 EXPECT_EQ(switches[0],
"--abc");
83 EXPECT_EQ(switches[1],
"--foo=\"bar, baz\"");
const std::filesystem::path & assets_path()
const std::vector< std::string > GetSwitches()
const std::vector< std::string > & dart_entrypoint_arguments() const
const std::filesystem::path & icu_path()
TEST(DisplayListComplexity, EmptyDisplayList)
const char * icu_data_path
const char ** dart_entrypoint_argv
#define EXPECT_TRUE(handle)