Flutter Engine
The Flutter Engine
Protected Member Functions | Protected Attributes | List of all members
flutter_runner::testing::PointerDelegateTest Class Reference
Inheritance diagram for flutter_runner::testing::PointerDelegateTest:

Protected Member Functions

 PointerDelegateTest ()
 
void RunLoopUntilIdle ()
 

Protected Attributes

std::unique_ptr< FakeTouchSourcetouch_source_
 
std::unique_ptr< FakeMouseSourcemouse_source_
 
std::unique_ptr< flutter_runner::PointerDelegatepointer_delegate_
 

Detailed Description

Definition at line 48 of file pointer_delegate_unittests.cc.

Constructor & Destructor Documentation

◆ PointerDelegateTest()

flutter_runner::testing::PointerDelegateTest::PointerDelegateTest ( )
inlineprotected

Definition at line 50 of file pointer_delegate_unittests.cc.

50 : loop_(&kAsyncLoopConfigAttachToCurrentThread) {
51 touch_source_ = std::make_unique<FakeTouchSource>();
52 mouse_source_ = std::make_unique<FakeMouseSource>();
53 pointer_delegate_ = std::make_unique<flutter_runner::PointerDelegate>(
54 touch_source_bindings_.AddBinding(touch_source_.get()),
55 mouse_source_bindings_.AddBinding(mouse_source_.get()));
56 }
std::unique_ptr< flutter_runner::PointerDelegate > pointer_delegate_

Member Function Documentation

◆ RunLoopUntilIdle()

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

Definition at line 58 of file pointer_delegate_unittests.cc.

58{ loop_.RunUntilIdle(); }

Member Data Documentation

◆ mouse_source_

std::unique_ptr<FakeMouseSource> flutter_runner::testing::PointerDelegateTest::mouse_source_
protected

Definition at line 61 of file pointer_delegate_unittests.cc.

◆ pointer_delegate_

std::unique_ptr<flutter_runner::PointerDelegate> flutter_runner::testing::PointerDelegateTest::pointer_delegate_
protected

Definition at line 62 of file pointer_delegate_unittests.cc.

◆ touch_source_

std::unique_ptr<FakeTouchSource> flutter_runner::testing::PointerDelegateTest::touch_source_
protected

Definition at line 60 of file pointer_delegate_unittests.cc.


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