Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
shell
platform
linux
testing
mock_text_input_view_delegate.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_LINUX_TESTING_MOCK_TEXT_INPUT_VIEW_DELEGATE_H_
6
#define FLUTTER_SHELL_PLATFORM_LINUX_TESTING_MOCK_TEXT_INPUT_VIEW_DELEGATE_H_
7
8
#include <unordered_map>
9
10
#include "flutter/shell/platform/linux/fl_text_input_view_delegate.h"
11
12
#include "gmock/gmock.h"
13
14
namespace
flutter
{
15
namespace
testing {
16
17
// Mock for FlTextInputVuewDelegate.
18
class
MockTextInputViewDelegate
{
19
public
:
20
MockTextInputViewDelegate
();
21
~MockTextInputViewDelegate
();
22
23
// NOLINTNEXTLINE(google-explicit-constructor)
24
operator
FlTextInputViewDelegate*();
25
26
MOCK_METHOD
(
void
,
27
fl_text_input_view_delegate_translate_coordinates
,
28
(FlTextInputViewDelegate * delegate,
29
gint view_x,
30
gint view_y,
31
gint* window_x,
32
gint* window_y));
33
34
private
:
35
FlTextInputViewDelegate* instance_ =
nullptr
;
36
};
37
38
}
// namespace testing
39
}
// namespace flutter
40
41
#endif
// FLUTTER_SHELL_PLATFORM_LINUX_TESTING_MOCK_TEXT_INPUT_VIEW_DELEGATE_H_
flutter::testing::MockTextInputViewDelegate
Definition
mock_text_input_view_delegate.h:18
flutter::testing::MockTextInputViewDelegate::MOCK_METHOD
MOCK_METHOD(void, fl_text_input_view_delegate_translate_coordinates,(FlTextInputViewDelegate *delegate, gint view_x, gint view_y, gint *window_x, gint *window_y))
flutter::testing::MockTextInputViewDelegate::MockTextInputViewDelegate
MockTextInputViewDelegate()
Definition
mock_text_input_view_delegate.cc:28
flutter::testing::MockTextInputViewDelegate::~MockTextInputViewDelegate
~MockTextInputViewDelegate()
Definition
mock_text_input_view_delegate.cc:31
fl_text_input_view_delegate_translate_coordinates
void fl_text_input_view_delegate_translate_coordinates(FlTextInputViewDelegate *self, gint view_x, gint view_y, gint *window_x, gint *window_y)
Definition
fl_text_input_view_delegate.cc:14
flutter
Definition
asset_manager.cc:10
Generated on Fri Apr 26 2024 06:14:32 for Flutter Engine by
1.9.8