5#ifndef FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_MOCK_WINDOWS_PROC_TABLE_H_
6#define FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_MOCK_WINDOWS_PROC_TABLE_H_
10#include "gmock/gmock.h"
23 (UINT32 pointer_id, POINTER_INPUT_TYPE* pointer_type),
28 (
DWORD, PULONG, PZZWSTR, PULONG),
39 (HINSTANCE
instance, LPCWSTR cursor_name),
46 (LPCWSTR lpszDeviceName,
DWORD iModeNum, DEVMODEW* lpDevMode),
51 (HMONITOR hMonitor, LPMONITORINFO lpmi),
57 (HDC hdc, LPCRECT lprcClip, MONITORENUMPROC lpfnEnum,
LPARAM dwData),
virtual HRESULT DwmFlush() const
virtual BOOL GetPointerType(UINT32 pointer_id, POINTER_INPUT_TYPE *pointer_type) const
virtual HCURSOR LoadCursor(HINSTANCE instance, LPCWSTR cursor_name) const
virtual HCURSOR SetCursor(HCURSOR cursor) const
virtual bool GetHighContrastEnabled() const
virtual bool DwmIsCompositionEnabled() const
virtual BOOL EnumDisplaySettings(LPCWSTR lpszDeviceName, DWORD iModeNum, DEVMODEW *lpDevMode) const
virtual BOOL GetMonitorInfo(HMONITOR hMonitor, LPMONITORINFO lpmi) const
virtual BOOL EnumDisplayMonitors(HDC hdc, LPCRECT lprcClip, MONITORENUMPROC lpfnEnum, LPARAM dwData) const
virtual LRESULT GetThreadPreferredUILanguages(DWORD flags, PULONG count, PZZWSTR languages, PULONG length) const
Mock for the |WindowsProcTable| base class.
MOCK_METHOD(HCURSOR, LoadCursor,(HINSTANCE instance, LPCWSTR cursor_name),(const, override))
MockWindowsProcTable()=default
MOCK_METHOD(bool, GetHighContrastEnabled,(),(const, override))
MOCK_METHOD(BOOL, GetMonitorInfo,(HMONITOR hMonitor, LPMONITORINFO lpmi),(const, override))
MOCK_METHOD(LRESULT, GetThreadPreferredUILanguages,(DWORD, PULONG, PZZWSTR, PULONG),(const, override))
virtual ~MockWindowsProcTable()=default
MOCK_METHOD(bool, DwmIsCompositionEnabled,(),(const, override))
MOCK_METHOD(BOOL, EnumDisplayMonitors,(HDC hdc, LPCRECT lprcClip, MONITORENUMPROC lpfnEnum, LPARAM dwData),(const, override))
MOCK_METHOD(HCURSOR, SetCursor,(HCURSOR cursor),(const, override))
MOCK_METHOD(BOOL, GetPointerType,(UINT32 pointer_id, POINTER_INPUT_TYPE *pointer_type),(const, override))
MOCK_METHOD(HRESULT, DwmFlush,(),(const, override))
MOCK_METHOD(BOOL, EnumDisplaySettings,(LPCWSTR lpszDeviceName, DWORD iModeNum, DEVMODEW *lpDevMode),(const, override))
MOCK_METHOD(UINT, GetDpiForMonitor,(HMONITOR, UINT),())
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
UINT GetDpiForMonitor(HMONITOR monitor)