Flutter Engine
flutter::testing::StubFlutterWindowsApi Class Reference

#include <stub_flutter_windows_api.h>

Public Member Functions

virtual ~StubFlutterWindowsApi ()
 
virtual FlutterDesktopViewControllerRef ViewControllerCreate (int width, int height, FlutterDesktopEngineRef engine)
 
virtual void ViewControllerDestroy ()
 
virtual bool ViewControllerHandleTopLevelWindowProc (HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam, LRESULT *result)
 
virtual FlutterDesktopEngineRef EngineCreate (const FlutterDesktopEngineProperties &engine_properties)
 
virtual bool EngineDestroy ()
 
virtual bool EngineRun (const char *entry_point)
 
virtual uint64_t EngineProcessMessages ()
 
virtual void EngineReloadSystemFonts ()
 
virtual HWND ViewGetHWND ()
 
virtual void PluginRegistrarRegisterTopLevelWindowProcDelegate (FlutterDesktopWindowProcCallback delegate, void *user_data)
 
virtual void PluginRegistrarUnregisterTopLevelWindowProcDelegate (FlutterDesktopWindowProcCallback delegate)
 

Static Public Member Functions

static void SetTestStub (StubFlutterWindowsApi *stub)
 
static StubFlutterWindowsApiGetTestStub ()
 

Detailed Description

Definition at line 21 of file stub_flutter_windows_api.h.

Constructor & Destructor Documentation

◆ ~StubFlutterWindowsApi()

virtual flutter::testing::StubFlutterWindowsApi::~StubFlutterWindowsApi ( )
inlinevirtual

Definition at line 30 of file stub_flutter_windows_api.h.

30 {}

Member Function Documentation

◆ EngineCreate()

virtual FlutterDesktopEngineRef flutter::testing::StubFlutterWindowsApi::EngineCreate ( const FlutterDesktopEngineProperties engine_properties)
inlinevirtual

Definition at line 51 of file stub_flutter_windows_api.h.

Referenced by FlutterDesktopEngineCreate().

52  {
53  return nullptr;
54  }

◆ EngineDestroy()

virtual bool flutter::testing::StubFlutterWindowsApi::EngineDestroy ( )
inlinevirtual

Definition at line 57 of file stub_flutter_windows_api.h.

Referenced by FlutterDesktopEngineDestroy().

57 { return true; }

◆ EngineProcessMessages()

virtual uint64_t flutter::testing::StubFlutterWindowsApi::EngineProcessMessages ( )
inlinevirtual

Definition at line 63 of file stub_flutter_windows_api.h.

Referenced by FlutterDesktopEngineProcessMessages().

63 { return 0; }

◆ EngineReloadSystemFonts()

virtual void flutter::testing::StubFlutterWindowsApi::EngineReloadSystemFonts ( )
inlinevirtual

Definition at line 66 of file stub_flutter_windows_api.h.

Referenced by FlutterDesktopEngineReloadSystemFonts().

66 {}

◆ EngineRun()

virtual bool flutter::testing::StubFlutterWindowsApi::EngineRun ( const char *  entry_point)
inlinevirtual

Definition at line 60 of file stub_flutter_windows_api.h.

Referenced by FlutterDesktopEngineRun().

60 { return true; }

◆ GetTestStub()

StubFlutterWindowsApi * flutter::testing::StubFlutterWindowsApi::GetTestStub ( )
static

Definition at line 18 of file stub_flutter_windows_api.cc.

References s_stub_implementation.

Referenced by flutter::testing::ScopedStubFlutterWindowsApi::ScopedStubFlutterWindowsApi().

18  {
19  return s_stub_implementation;
20 }
static flutter::testing::StubFlutterWindowsApi * s_stub_implementation

◆ PluginRegistrarRegisterTopLevelWindowProcDelegate()

virtual void flutter::testing::StubFlutterWindowsApi::PluginRegistrarRegisterTopLevelWindowProcDelegate ( FlutterDesktopWindowProcCallback  delegate,
void *  user_data 
)
inlinevirtual

◆ PluginRegistrarUnregisterTopLevelWindowProcDelegate()

virtual void flutter::testing::StubFlutterWindowsApi::PluginRegistrarUnregisterTopLevelWindowProcDelegate ( FlutterDesktopWindowProcCallback  delegate)
inlinevirtual

◆ SetTestStub()

void flutter::testing::StubFlutterWindowsApi::SetTestStub ( StubFlutterWindowsApi stub)
static

◆ ViewControllerCreate()

virtual FlutterDesktopViewControllerRef flutter::testing::StubFlutterWindowsApi::ViewControllerCreate ( int  width,
int  height,
FlutterDesktopEngineRef  engine 
)
inlinevirtual

Definition at line 34 of file stub_flutter_windows_api.h.

Referenced by FlutterDesktopViewControllerCreate().

34  {
35  return nullptr;
36  }

◆ ViewControllerDestroy()

virtual void flutter::testing::StubFlutterWindowsApi::ViewControllerDestroy ( )
inlinevirtual

Definition at line 39 of file stub_flutter_windows_api.h.

Referenced by FlutterDesktopViewControllerDestroy().

39 {}

◆ ViewControllerHandleTopLevelWindowProc()

virtual bool flutter::testing::StubFlutterWindowsApi::ViewControllerHandleTopLevelWindowProc ( HWND  hwnd,
UINT  message,
WPARAM  wparam,
LPARAM  lparam,
LRESULT *  result 
)
inlinevirtual

Definition at line 42 of file stub_flutter_windows_api.h.

Referenced by FlutterDesktopViewControllerHandleTopLevelWindowProc().

46  {
47  return false;
48  }

◆ ViewGetHWND()

virtual HWND flutter::testing::StubFlutterWindowsApi::ViewGetHWND ( )
inlinevirtual

Definition at line 69 of file stub_flutter_windows_api.h.

Referenced by FlutterDesktopViewGetHWND().

69 { return reinterpret_cast<HWND>(1); }

The documentation for this class was generated from the following files: