Flutter Engine
 
Loading...
Searching...
No Matches
mock_windows_proc_table.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_MOCK_WINDOWS_PROC_TABLE_H_
6#define FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_MOCK_WINDOWS_PROC_TABLE_H_
7
10#include "gmock/gmock.h"
11
12namespace flutter {
13namespace testing {
14
15/// Mock for the |WindowsProcTable| base class.
17 public:
19 virtual ~MockWindowsProcTable() = default;
20
23 (UINT32 pointer_id, POINTER_INPUT_TYPE* pointer_type),
24 (const, override));
25
28 (DWORD, PULONG, PZZWSTR, PULONG),
29 (const, override));
30
31 MOCK_METHOD(bool, GetHighContrastEnabled, (), (const, override));
32
33 MOCK_METHOD(bool, DwmIsCompositionEnabled, (), (const, override));
34
35 MOCK_METHOD(HRESULT, DwmFlush, (), (const, override));
36
37 MOCK_METHOD(HCURSOR,
39 (HINSTANCE instance, LPCWSTR cursor_name),
40 (const, override));
41
42 MOCK_METHOD(HCURSOR, SetCursor, (HCURSOR cursor), (const, override));
43
46 (LPCWSTR lpszDeviceName, DWORD iModeNum, DEVMODEW* lpDevMode),
47 (const, override));
48
51 (HMONITOR hMonitor, LPMONITORINFO lpmi),
52 (const, override));
53
55 BOOL,
57 (HDC hdc, LPCRECT lprcClip, MONITORENUMPROC lpfnEnum, LPARAM dwData),
58 (const, override));
59
61
62 private:
64};
65
66} // namespace testing
67} // namespace flutter
68
69#endif // FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_MOCK_WINDOWS_PROC_TABLE_H_
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))
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))
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),())
VkInstance instance
Definition main.cc:64
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27
UINT GetDpiForMonitor(HMONITOR monitor)
Definition dpi_utils.cc:132
int BOOL
LONG_PTR LRESULT
unsigned int UINT
LONG_PTR LPARAM
unsigned long DWORD