Flutter Engine
The Flutter Engine
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
14namespace flutter {
15namespace testing {
16
17// Mock for FlTextInputVuewDelegate.
19 public:
22
23 // NOLINTNEXTLINE(google-explicit-constructor)
24 operator FlTextInputViewDelegate*();
25
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_
MOCK_METHOD(void, fl_text_input_view_delegate_translate_coordinates,(FlTextInputViewDelegate *delegate, gint view_x, gint view_y, gint *window_x, gint *window_y))
void fl_text_input_view_delegate_translate_coordinates(FlTextInputViewDelegate *self, gint view_x, gint view_y, gint *window_x, gint *window_y)