Flutter Engine
The Flutter Engine
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
8#include "flutter/fml/macros.h"
9#include "flutter/shell/platform/windows/windows_proc_table.h"
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 private:
38 FML_DISALLOW_COPY_AND_ASSIGN(MockWindowsProcTable);
39};
40
41} // namespace testing
42} // namespace flutter
43
44#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 bool GetHighContrastEnabled() const
virtual bool DwmIsCompositionEnabled() const
virtual LRESULT GetThreadPreferredUILanguages(DWORD flags, PULONG count, PZZWSTR languages, PULONG length) const
Mock for the |WindowsProcTable| base class.
MOCK_METHOD(bool, GetHighContrastEnabled,(),(const, override))
MOCK_METHOD(LRESULT, GetThreadPreferredUILanguages,(DWORD, PULONG, PZZWSTR, PULONG),(const, override))
MOCK_METHOD(bool, DwmIsCompositionEnabled,(),(const, override))
MOCK_METHOD(BOOL, GetPointerType,(UINT32 pointer_id, POINTER_INPUT_TYPE *pointer_type),(const, override))
MOCK_METHOD(HRESULT, DwmFlush,(),(const, override))
int BOOL
Definition: windows_types.h:37
LONG_PTR LRESULT
Definition: windows_types.h:61
unsigned long DWORD
Definition: windows_types.h:22