| Flutter Windows Embedder |

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

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

## Protected Member Functions
FlutterWindowsEngine * | engine ()
void | UseHeadlessEngine ()
void | UseEngineWithView ()

## Detailed Description

Definition at line 137 of file platform_handler_unittests.cc.

## Constructor & Destructor Documentation

## ◆ PlatformHandlerTest()

flutter::testing::PlatformHandlerTest::PlatformHandlerTest | ( |  | ) |
| default

## ◆ ~PlatformHandlerTest()

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

## Member Function Documentation

## ◆ engine()

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

Definition at line 143 of file platform_handler_unittests.cc.

143 { return engine_.get(); }

## ◆ UseEngineWithView()

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

Definition at line 151 of file platform_handler_unittests.cc.

151 {
152 FlutterWindowsEngineBuilder builder{GetContext()};
153
154 auto window = std::make_unique<NiceMock<MockWindowBindingHandler>>();
155 view_ = std::make_unique<FlutterWindowsView>(std::move(window));
156 engine_ = builder.Build();
157
158 engine_->SetView(view_.get());
159 }

## ◆ UseHeadlessEngine()

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

Definition at line 145 of file platform_handler_unittests.cc.

145 {
146 FlutterWindowsEngineBuilder builder{GetContext()};
147
148 engine_ = builder.Build();
149 }

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

- shell/platform/windows/platform_handler_unittests.cc