5#include "flutter/shell/platform/glfw/client_wrapper/include/flutter/flutter_window_controller.h"
10#include "flutter/shell/platform/glfw/client_wrapper/testing/stub_flutter_glfw_api.h"
11#include "gtest/gtest.h"
18class TestGlfwApi :
public testing::StubFlutterGlfwApi {
21 bool Init()
override {
27 void Terminate()
override { terminate_called_ =
true; }
29 bool init_called() {
return init_called_; }
31 bool terminate_called() {
return terminate_called_; }
34 bool init_called_ =
false;
35 bool terminate_called_ =
false;
41 const std::string icu_data_path =
"fake/path/to/icu";
43 std::make_unique<TestGlfwApi>());
44 auto test_api =
static_cast<TestGlfwApi*
>(scoped_api_stub.
stub());
47 EXPECT_EQ(test_api->init_called(),
true);
48 EXPECT_EQ(test_api->terminate_called(),
false);
50 EXPECT_EQ(test_api->init_called(),
true);
51 EXPECT_EQ(test_api->terminate_called(),
true);
StubFlutterGlfwApi * stub()
TEST(FrameTimingsRecorderTest, RecordVsync)