Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
mock_platform_view_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_MOCK_PLATFORM_VIEW_MANAGER_H_
6#define FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_MOCK_PLATFORM_VIEW_MANAGER_H_
7
8#include "flutter/shell/platform/windows/platform_view_plugin.h"
9
10#include "flutter/shell/platform/windows/flutter_windows_engine.h"
11#include "gmock/gmock.h"
12
13namespace flutter {
14
16 public:
18 : PlatformViewPlugin(engine->messenger_wrapper(), engine->task_runner()) {
19 }
20
22
23 MOCK_METHOD(bool, AddPlatformView, (PlatformViewId id, std::string_view));
24};
25
26} // namespace flutter
27
28#endif // FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_MOCK_PLATFORM_VIEW_MANAGER_H_
MockPlatformViewManager(FlutterWindowsEngine *engine)
MOCK_METHOD(bool, AddPlatformView,(PlatformViewId id, std::string_view))
bool AddPlatformView(PlatformViewId id, std::string_view type_name) override
FlutterEngine engine
Definition main.cc:68
int64_t PlatformViewId