5#include "flutter/shell/platform/glfw/client_wrapper/testing/stub_flutter_glfw_api.h"
23 std::unique_ptr<StubFlutterGlfwApi> stub)
24 : stub_(
std::move(stub)) {
128 double pixel_ratio) {
136 uint32_t millisecond_timeout) {
139 millisecond_timeout);
154 uint32_t timeout_milliseconds) {
181 const char* plugin_name) {
194 const char* channel) {
ScopedStubFlutterGlfwApi(std::unique_ptr< 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 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()
FlutterDesktopWindowControllerRef FlutterDesktopCreateWindow(const FlutterDesktopWindowProperties &window_properties, const FlutterDesktopEngineProperties &engine_properties)
static flutter::testing::StubFlutterGlfwApi * s_stub_implementation
void FlutterDesktopDestroyWindow(FlutterDesktopWindowControllerRef controller)
FlutterDesktopWindowRef FlutterDesktopPluginRegistrarGetWindow(FlutterDesktopPluginRegistrarRef registrar)
bool FlutterDesktopInit()
double FlutterDesktopWindowGetScaleFactor(FlutterDesktopWindowRef flutter_window)
void FlutterDesktopWindowSetPixelRatioOverride(FlutterDesktopWindowRef flutter_window, double pixel_ratio)
void FlutterDesktopWindowSetSizeLimits(FlutterDesktopWindowRef flutter_window, FlutterDesktopSize minimum_size, FlutterDesktopSize maximum_size)
FlutterDesktopWindowRef FlutterDesktopGetWindow(FlutterDesktopWindowControllerRef controller)
void FlutterDesktopWindowGetFrame(FlutterDesktopWindowRef flutter_window, int *x, int *y, int *width, int *height)
void FlutterDesktopPluginRegistrarEnableInputBlocking(FlutterDesktopPluginRegistrarRef registrar, const char *channel)
void FlutterDesktopRunEngineEventLoopWithTimeout(FlutterDesktopEngineRef engine, uint32_t timeout_milliseconds)
bool FlutterDesktopShutDownEngine(FlutterDesktopEngineRef engine_ref)
void FlutterDesktopWindowSetHoverEnabled(FlutterDesktopWindowRef flutter_window, bool enabled)
void FlutterDesktopWindowSetFrame(FlutterDesktopWindowRef flutter_window, int x, int y, int width, int height)
FlutterDesktopEngineRef FlutterDesktopRunEngine(const FlutterDesktopEngineProperties &properties)
FlutterDesktopEngineRef FlutterDesktopGetEngine(FlutterDesktopWindowControllerRef controller)
bool FlutterDesktopRunWindowEventLoopWithTimeout(FlutterDesktopWindowControllerRef controller, uint32_t millisecond_timeout)
void FlutterDesktopWindowSetTitle(FlutterDesktopWindowRef flutter_window, const char *title)
void FlutterDesktopTerminate()
void FlutterDesktopWindowSetIcon(FlutterDesktopWindowRef flutter_window, uint8_t *pixel_data, int width, int height)
FlutterDesktopPluginRegistrarRef FlutterDesktopGetPluginRegistrar(FlutterDesktopEngineRef engine, const char *plugin_name)