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
13
namespace
flutter
{
14
15
class
MockPlatformViewManager
:
public
PlatformViewPlugin
{
16
public
:
17
MockPlatformViewManager
(
FlutterWindowsEngine
*
engine
)
18
:
PlatformViewPlugin
(
engine
->messenger_wrapper(),
engine
->task_runner()) {
19
}
20
21
~MockPlatformViewManager
() {}
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_
flutter::FlutterWindowsEngine
Definition
flutter_windows_engine.h:92
flutter::MockPlatformViewManager
Definition
mock_platform_view_manager.h:15
flutter::MockPlatformViewManager::~MockPlatformViewManager
~MockPlatformViewManager()
Definition
mock_platform_view_manager.h:21
flutter::MockPlatformViewManager::MockPlatformViewManager
MockPlatformViewManager(FlutterWindowsEngine *engine)
Definition
mock_platform_view_manager.h:17
flutter::MockPlatformViewManager::MOCK_METHOD
MOCK_METHOD(bool, AddPlatformView,(PlatformViewId id, std::string_view))
flutter::PlatformViewPlugin
Definition
platform_view_plugin.h:18
flutter::PlatformViewPlugin::AddPlatformView
bool AddPlatformView(PlatformViewId id, std::string_view type_name) override
Definition
platform_view_plugin.cc:34
engine
FlutterEngine engine
Definition
main.cc:84
flutter_windows_engine.h
PlatformViewId
int64_t PlatformViewId
Definition
flutter_windows_internal.h:42
flutter
Definition
asset_manager.cc:10
platform_view_plugin.h
shell
platform
windows
testing
mock_platform_view_manager.h
Generated on Thu Nov 6 2025 16:11:28 for Flutter Engine by
1.9.8