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

Protected Member Functions

 FocusDelegateTest ()
 
void RunLoopUntilIdle ()
 
void SetUp () override
 
void TearDown () override
 

Protected Attributes

std::unique_ptr< FakeViewRefFocusedvrf_
 
std::unique_ptr< FakeFocuserfocuser_
 
std::unique_ptr< FocusDelegatefocus_delegate_
 

Detailed Description

Definition at line 30 of file focus_delegate_unittests.cc.

Constructor & Destructor Documentation

◆ FocusDelegateTest()

flutter_runner::testing::FocusDelegateTest::FocusDelegateTest ( )
inlineprotected

Definition at line 32 of file focus_delegate_unittests.cc.

32: loop_(&kAsyncLoopConfigAttachToCurrentThread) {}

Member Function Documentation

◆ RunLoopUntilIdle()

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

Definition at line 34 of file focus_delegate_unittests.cc.

34{ loop_.RunUntilIdle(); }

◆ SetUp()

void flutter_runner::testing::FocusDelegateTest::SetUp ( )
inlineoverrideprotected

Definition at line 36 of file focus_delegate_unittests.cc.

36 {
37 vrf_ = std::make_unique<FakeViewRefFocused>();
38 focuser_ = std::make_unique<FakeFocuser>();
39 focus_delegate_ = std::make_unique<FocusDelegate>(
40 vrf_bindings.AddBinding(vrf_.get()),
41 focuser_bindings.AddBinding(focuser_.get()));
42 }
std::unique_ptr< FocusDelegate > focus_delegate_
std::unique_ptr< FakeViewRefFocused > vrf_

◆ TearDown()

void flutter_runner::testing::FocusDelegateTest::TearDown ( )
inlineoverrideprotected

Definition at line 44 of file focus_delegate_unittests.cc.

44 {
45 vrf_bindings.CloseAll();
46 focuser_bindings.CloseAll();
47 loop_.Quit();
48 loop_.ResetQuit();
49 }

Member Data Documentation

◆ focus_delegate_

std::unique_ptr<FocusDelegate> flutter_runner::testing::FocusDelegateTest::focus_delegate_
protected

Definition at line 53 of file focus_delegate_unittests.cc.

◆ focuser_

std::unique_ptr<FakeFocuser> flutter_runner::testing::FocusDelegateTest::focuser_
protected

Definition at line 52 of file focus_delegate_unittests.cc.

◆ vrf_

std::unique_ptr<FakeViewRefFocused> flutter_runner::testing::FocusDelegateTest::vrf_
protected

Definition at line 51 of file focus_delegate_unittests.cc.


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