Flutter Engine
flutter_runner::testing::PlatformViewTests Class Reference
Inheritance diagram for flutter_runner::testing::PlatformViewTests:

Protected Member Functions

 PlatformViewTests ()
 
async_dispatcher_t * dispatcher ()
 
void RunLoopUntilIdle ()
 
fuchsia::ui::input3::KeyEvent MakeEvent (fuchsia::ui::input3::KeyEventType event_type, std::optional< fuchsia::ui::input3::Modifiers > modifiers, fuchsia::input::Key key)
 

Detailed Description

Definition at line 378 of file platform_view_unittest.cc.

Constructor & Destructor Documentation

◆ PlatformViewTests()

flutter_runner::testing::PlatformViewTests::PlatformViewTests ( )
inlineprotected

Definition at line 380 of file platform_view_unittest.cc.

380 : loop_(&kAsyncLoopConfigAttachToCurrentThread) {}

Member Function Documentation

◆ dispatcher()

async_dispatcher_t* flutter_runner::testing::PlatformViewTests::dispatcher ( )
inlineprotected

Definition at line 382 of file platform_view_unittest.cc.

382 { return loop_.dispatcher(); }

◆ MakeEvent()

fuchsia::ui::input3::KeyEvent flutter_runner::testing::PlatformViewTests::MakeEvent ( fuchsia::ui::input3::KeyEventType  event_type,
std::optional< fuchsia::ui::input3::Modifiers >  modifiers,
fuchsia::input::Key  key 
)
inlineprotected

Definition at line 389 of file platform_view_unittest.cc.

References event, and FML_DISALLOW_COPY_AND_ASSIGN.

392  {
393  fuchsia::ui::input3::KeyEvent event;
394  event.set_timestamp(++event_timestamp_);
395  event.set_type(event_type);
396  if (modifiers.has_value()) {
397  event.set_modifiers(modifiers.value());
398  }
399  event.set_key(key);
400  return event;
401  }
FlKeyEvent * event

◆ RunLoopUntilIdle()

void flutter_runner::testing::PlatformViewTests::RunLoopUntilIdle ( )
inlineprotected

Definition at line 384 of file platform_view_unittest.cc.

384  {
385  loop_.RunUntilIdle();
386  loop_.ResetQuit();
387  }

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