Flutter Engine
The Flutter Engine
mock_manager.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_EGL_MOCK_MANAGER_H_
6#define FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_EGL_MOCK_MANAGER_H_
7
8#include "flutter/fml/macros.h"
9#include "flutter/shell/platform/windows/egl/manager.h"
10#include "gmock/gmock.h"
11
12namespace flutter {
13namespace testing {
14namespace egl {
15
16/// Mock for the |Manager| base class.
18 public:
20
21 MOCK_METHOD(std::unique_ptr<flutter::egl::WindowSurface>,
23 (HWND, size_t, size_t),
24 (override));
25
28
29 private:
30 FML_DISALLOW_COPY_AND_ASSIGN(MockManager);
31};
32
33} // namespace egl
34} // namespace testing
35} // namespace flutter
36
37#endif // FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_EGL_MOCK_MANAGER_H_
virtual Context * resource_context() const
Definition: manager.cc:322
Manager(bool enable_impeller)
Definition: manager.cc:26
virtual Context * render_context() const
Definition: manager.cc:318
virtual std::unique_ptr< WindowSurface > CreateWindowSurface(HWND hwnd, size_t width, size_t height)
Definition: manager.cc:266
Mock for the |Manager| base class.
Definition: mock_manager.h:17
MOCK_METHOD(flutter::egl::Context *, resource_context,(),(const, override))
MOCK_METHOD(std::unique_ptr< flutter::egl::WindowSurface >, CreateWindowSurface,(HWND, size_t, size_t),(override))
MOCK_METHOD(flutter::egl::Context *, render_context,(),(const, override))