8#include "flutter/shell/platform/windows/client_wrapper/include/flutter/flutter_view.h"
9#include "flutter/shell/platform/windows/client_wrapper/testing/stub_flutter_windows_api.h"
10#include "gtest/gtest.h"
17class TestWindowsApi :
public testing::StubFlutterWindowsApi {
18 HWND ViewGetHWND()
override {
return reinterpret_cast<HWND
>(7); }
20 IDXGIAdapter* ViewGetGraphicsAdapter()
override {
21 return reinterpret_cast<IDXGIAdapter*
>(8);
29 std::make_unique<TestWindowsApi>());
30 auto test_api =
static_cast<TestWindowsApi*
>(scoped_api_stub.
stub());
37 std::make_unique<TestWindowsApi>());
38 auto test_api =
static_cast<TestWindowsApi*
>(scoped_api_stub.
stub());
42 EXPECT_EQ(adapter,
reinterpret_cast<IDXGIAdapter*
>(8));
IDXGIAdapter * GetGraphicsAdapter()
StubFlutterWindowsApi * stub()
struct FlutterDesktopView * FlutterDesktopViewRef
TEST(FrameTimingsRecorderTest, RecordVsync)