52 const std::string icu_data_path =
"fake/path/to/icu";
53 const std::string assets_path =
"fake/path/to/assets";
55 std::make_unique<TestGlfwApi>());
56 auto test_api =
static_cast<TestGlfwApi*
>(scoped_api_stub.
stub());
60 EXPECT_EQ(test_api->run_called(),
true);
61 EXPECT_EQ(test_api->shut_down_called(),
false);
64 EXPECT_EQ(test_api->shut_down_called(),
true);
68 const std::string icu_data_path =
"fake/path/to/icu";
69 const std::string assets_path =
"fake/path/to/assets";
71 std::make_unique<TestGlfwApi>());
72 auto test_api =
static_cast<TestGlfwApi*
>(scoped_api_stub.
stub());
76 EXPECT_EQ(test_api->run_called(),
true);
77 EXPECT_EQ(test_api->shut_down_called(),
false);
79 EXPECT_EQ(test_api->shut_down_called(),
true);
83 const std::string icu_data_path =
"fake/path/to/icu";
84 const std::string assets_path =
"fake/path/to/assets";
86 std::make_unique<TestGlfwApi>());
87 auto test_api =
static_cast<TestGlfwApi*
>(scoped_api_stub.
stub());
93 EXPECT_EQ(test_api->last_run_loop_timeout(), 100U);
96 std::chrono::milliseconds(1));
97 EXPECT_EQ(test_api->last_run_loop_timeout(), UINT32_MAX);
100 EXPECT_EQ(test_api->last_run_loop_timeout(), 0U);