| Flutter Windows Embedder |

Public Member Functions | Protected Member Functions | List of all members
flutter::testing::TextInputPluginTest Class Reference
Inheritance diagram for flutter::testing::TextInputPluginTest:

## Public Member Functions
| TextInputPluginTest ()=default
virtual | ~TextInputPluginTest ()=default

## Protected Member Functions
FlutterWindowsEngine * | engine ()
MockFlutterWindowsView * | view ()
MockWindowBindingHandler * | window ()
void | UseHeadlessEngine ()
void | UseEngineWithView ()

## Detailed Description

Definition at line 120 of file text_input_plugin_unittest.cc.

## Constructor & Destructor Documentation

## ◆ TextInputPluginTest()

flutter::testing::TextInputPluginTest::TextInputPluginTest | ( |  | ) |
| default

## ◆ ~TextInputPluginTest()

virtual flutter::testing::TextInputPluginTest::~TextInputPluginTest | ( |  | ) |
| virtual default

## Member Function Documentation

## ◆ engine()

FlutterWindowsEngine* flutter::testing::TextInputPluginTest::engine | ( |  | ) |
| inline protected

Definition at line 126 of file text_input_plugin_unittest.cc.

126 { return engine_.get(); }

## ◆ UseEngineWithView()

void flutter::testing::TextInputPluginTest::UseEngineWithView | ( |  | ) |
| inline protected

Definition at line 136 of file text_input_plugin_unittest.cc.

136 {
137 FlutterWindowsEngineBuilder builder{GetContext()};
138
139 auto window = std::make_unique<MockWindowBindingHandler>();
140
141 window_ = window.get();
142 EXPECT_CALL(*window_, SetView).Times(1);
143 EXPECT_CALL(*window, GetWindowHandle).WillRepeatedly(Return(nullptr));
144
145 engine_ = builder.Build();
146 view_ = std::make_unique<MockFlutterWindowsView>(std::move(window));
147
148 engine_->SetView(view_.get());
149 }

References window().

## ◆ UseHeadlessEngine()

void flutter::testing::TextInputPluginTest::UseHeadlessEngine | ( |  | ) |
| inline protected

Definition at line 130 of file text_input_plugin_unittest.cc.

130 {
131 FlutterWindowsEngineBuilder builder{GetContext()};
132
133 engine_ = builder.Build();
134 }

## ◆ view()

MockFlutterWindowsView* flutter::testing::TextInputPluginTest::view | ( |  | ) |
| inline protected

Definition at line 127 of file text_input_plugin_unittest.cc.

127 { return view_.get(); }

## ◆ window()

MockWindowBindingHandler* flutter::testing::TextInputPluginTest::window | ( |  | ) |
| inline protected

Definition at line 128 of file text_input_plugin_unittest.cc.

128 { return window_; }

Referenced by UseEngineWithView().

The documentation for this class was generated from the following file:

- shell/platform/windows/text_input_plugin_unittest.cc

flutter::testing::TextInputPluginTest::window
MockWindowBindingHandler * window()
Definition: text_input_plugin_unittest.cc:128