Flutter Engine
flutter_runner_test::AccessibilityBridgeTest Class Reference
Inheritance diagram for flutter_runner_test::AccessibilityBridgeTest:

Public Member Functions

 AccessibilityBridgeTest ()
 
void RunLoopUntilIdle ()
 

Protected Member Functions

void SetUp () override
 
void TearDown () override
 

Protected Attributes

fuchsia::ui::views::ViewRefControl view_ref_control_
 
fuchsia::ui::views::ViewRef view_ref_
 
MockSemanticsManager semantics_manager_
 
AccessibilityBridgeTestDelegate accessibility_delegate_
 
std::unique_ptr< flutter_runner::AccessibilityBridgeaccessibility_bridge_
 

Detailed Description

Definition at line 52 of file accessibility_bridge_unittest.cc.

Constructor & Destructor Documentation

◆ AccessibilityBridgeTest()

flutter_runner_test::AccessibilityBridgeTest::AccessibilityBridgeTest ( )
inline

Definition at line 54 of file accessibility_bridge_unittest.cc.

55  : loop_(&kAsyncLoopConfigAttachToCurrentThread),
56  services_provider_(loop_.dispatcher()) {
57  services_provider_.AddService(
58  semantics_manager_.GetHandler(loop_.dispatcher()),
59  SemanticsManager::Name_);
60  }
fidl::InterfaceRequestHandler< SemanticsManager > GetHandler(async_dispatcher_t *dispatcher)

Member Function Documentation

◆ RunLoopUntilIdle()

void flutter_runner_test::AccessibilityBridgeTest::RunLoopUntilIdle ( )
inline

Definition at line 62 of file accessibility_bridge_unittest.cc.

62  {
63  loop_.RunUntilIdle();
64  loop_.ResetQuit();
65  }

◆ SetUp()

void flutter_runner_test::AccessibilityBridgeTest::SetUp ( )
inlineoverrideprotected

Definition at line 68 of file accessibility_bridge_unittest.cc.

68  {
69  zx_status_t status = zx::eventpair::create(
70  /*flags*/ 0u, &view_ref_control_.reference, &view_ref_.reference);
71  EXPECT_EQ(status, ZX_OK);
72 
75  std::make_unique<flutter_runner::AccessibilityBridge>(
76  accessibility_delegate_, services_provider_.service_directory(),
77  std::move(view_ref_));
79  }
std::unique_ptr< flutter_runner::AccessibilityBridge > accessibility_bridge_
std::vector< std::pair< int32_t, flutter::SemanticsAction > > actions

◆ TearDown()

void flutter_runner_test::AccessibilityBridgeTest::TearDown ( )
inlineoverrideprotected

Member Data Documentation

◆ accessibility_bridge_

std::unique_ptr<flutter_runner::AccessibilityBridge> flutter_runner_test::AccessibilityBridgeTest::accessibility_bridge_
protected

Definition at line 87 of file accessibility_bridge_unittest.cc.

◆ accessibility_delegate_

AccessibilityBridgeTestDelegate flutter_runner_test::AccessibilityBridgeTest::accessibility_delegate_
protected

Definition at line 86 of file accessibility_bridge_unittest.cc.

◆ semantics_manager_

MockSemanticsManager flutter_runner_test::AccessibilityBridgeTest::semantics_manager_
protected

Definition at line 85 of file accessibility_bridge_unittest.cc.

◆ view_ref_

fuchsia::ui::views::ViewRef flutter_runner_test::AccessibilityBridgeTest::view_ref_
protected

Definition at line 84 of file accessibility_bridge_unittest.cc.

◆ view_ref_control_

fuchsia::ui::views::ViewRefControl flutter_runner_test::AccessibilityBridgeTest::view_ref_control_
protected

Definition at line 83 of file accessibility_bridge_unittest.cc.


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