5#ifndef FLUTTER_SHELL_PLATFORM_GLFW_CLIENT_WRAPPER_TESTING_STUB_FLUTTER_GLFW_API_H_
6#define FLUTTER_SHELL_PLATFORM_GLFW_CLIENT_WRAPPER_TESTING_STUB_FLUTTER_GLFW_API_H_
10#include "flutter/shell/platform/glfw/public/flutter_glfw.h"
33 virtual bool Init() {
return true; }
109 std::unique_ptr<StubFlutterGlfwApi> stub_;
ScopedStubFlutterGlfwApi(std::unique_ptr< StubFlutterGlfwApi > stub)
StubFlutterGlfwApi * stub()
~ScopedStubFlutterGlfwApi()
virtual double GetWindowScaleFactor()
virtual void RunEngineEventLoopWithTimeout(uint32_t millisecond_timeout)
virtual void DestroyWindow()
virtual void GetWindowFrame(int *x, int *y, int *width, int *height)
virtual ~StubFlutterGlfwApi()
virtual FlutterDesktopWindowControllerRef CreateWindow(const FlutterDesktopWindowProperties &window_properties, const FlutterDesktopEngineProperties &engine_properties)
virtual void SetHoverEnabled(bool enabled)
virtual FlutterDesktopEngineRef RunEngine(const FlutterDesktopEngineProperties &properties)
virtual bool ShutDownEngine()
static void SetTestStub(StubFlutterGlfwApi *stub)
virtual void SetWindowFrame(int x, int y, int width, int height)
virtual void SetWindowIcon(uint8_t *pixel_data, int width, int height)
virtual void SetWindowTitle(const char *title)
virtual void SetSizeLimits(FlutterDesktopSize minimum_size, FlutterDesktopSize maximum_size)
virtual void SetPixelRatioOverride(double pixel_ratio)
virtual void PluginRegistrarEnableInputBlocking(const char *channel)
virtual bool RunWindowEventLoopWithTimeout(uint32_t millisecond_timeout)
static StubFlutterGlfwApi * GetTestStub()