Flutter Engine
 
Loading...
Searching...
No Matches
mock_window_binding_handler.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_WINDOW_BINDING_HANDLER_H_
6#define FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_MOCK_WINDOW_BINDING_HANDLER_H_
7
11#include "gmock/gmock.h"
12
13namespace flutter {
14namespace testing {
15
16/// Mock for the |Window| base class.
18 public:
21
23 MOCK_METHOD(HWND, GetWindowHandle, (), (override));
24 MOCK_METHOD(float, GetDpiScale, (), (override));
26 MOCK_METHOD(void, OnCursorRectUpdated, (const Rect& rect), (override));
27 MOCK_METHOD(void, OnResetImeComposing, (), (override));
28 MOCK_METHOD(bool, OnBitmapSurfaceCleared, (), (override));
31 (const void* allocation, size_t row_bytes, size_t height),
32 (override));
35 MOCK_METHOD(ui::AXPlatformNodeWin*, GetAlert, (), (override));
36 MOCK_METHOD(bool, Focus, (), (override));
38
39 private:
41};
42
43} // namespace testing
44} // namespace flutter
45
46#endif // FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_MOCK_WINDOW_BINDING_HANDLER_H_
virtual void OnResetImeComposing()=0
virtual PointerLocation GetPrimaryPointerLocation()=0
virtual HWND GetWindowHandle()=0
virtual bool OnBitmapSurfaceUpdated(const void *allocation, size_t row_bytes, size_t height)=0
virtual FlutterEngineDisplayId GetDisplayId()=0
virtual ui::AXPlatformNodeWin * GetAlert()=0
virtual bool OnBitmapSurfaceCleared()=0
virtual PhysicalWindowBounds GetPhysicalWindowBounds()=0
virtual float GetDpiScale()=0
virtual void SetView(WindowBindingHandlerDelegate *view)=0
virtual AlertPlatformNodeDelegate * GetAlertDelegate()=0
virtual void OnCursorRectUpdated(const Rect &rect)=0
MOCK_METHOD(AlertPlatformNodeDelegate *, GetAlertDelegate,(),(override))
MOCK_METHOD(bool, OnBitmapSurfaceCleared,(),(override))
MOCK_METHOD(HWND, GetWindowHandle,(),(override))
MOCK_METHOD(FlutterEngineDisplayId, GetDisplayId,(),(override))
MOCK_METHOD(bool, Focus,(),(override))
MOCK_METHOD(float, GetDpiScale,(),(override))
MOCK_METHOD(bool, OnBitmapSurfaceUpdated,(const void *allocation, size_t row_bytes, size_t height),(override))
MOCK_METHOD(ui::AXPlatformNodeWin *, GetAlert,(),(override))
MOCK_METHOD(PhysicalWindowBounds, GetPhysicalWindowBounds,(),(override))
MOCK_METHOD(PointerLocation, GetPrimaryPointerLocation,(),(override))
MOCK_METHOD(void, OnCursorRectUpdated,(const Rect &rect),(override))
MOCK_METHOD(void, OnResetImeComposing,(),(override))
MOCK_METHOD(void, SetView,(WindowBindingHandlerDelegate *view),(override))
uint64_t FlutterEngineDisplayId
Definition embedder.h:1043
FlView * view
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27
int32_t height