Flutter Engine
The Flutter Engine
Public Member Functions | Protected Member Functions | List of all members
ui::AXPlatformNodeMacTest Class Reference

#include <ax_platform_node_mac_unittest.h>

Inheritance diagram for ui::AXPlatformNodeMacTest:
ui::AXPlatformNodeTest ui::TestAXTreeManager ui::AXTreeManager

Public Member Functions

 AXPlatformNodeMacTest ()
 
 ~AXPlatformNodeMacTest () override
 
void SetUp () override
 
void TearDown () override
 
- Public Member Functions inherited from ui::AXPlatformNodeTest
 AXPlatformNodeTest ()
 
 ~AXPlatformNodeTest () override
 
 AXPlatformNodeTest (const AXPlatformNodeTest &)=delete
 
AXPlatformNodeTestoperator= (const AXPlatformNodeTest &)=delete
 
- Public Member Functions inherited from ui::TestAXTreeManager
 TestAXTreeManager ()
 
 TestAXTreeManager (std::unique_ptr< AXTree > tree)
 
virtual ~TestAXTreeManager ()
 
 TestAXTreeManager (const TestAXTreeManager &manager)=delete
 
TestAXTreeManageroperator= (const TestAXTreeManager &manager)=delete
 
void DestroyTree ()
 
AXTreeGetTree () const
 
void SetTree (std::unique_ptr< AXTree > tree)
 
AXNodeGetNodeFromTree (const AXTreeID tree_id, const AXNode::AXID node_id) const override
 
AXNodeGetNodeFromTree (const AXNode::AXID node_id) const override
 
AXTreeID GetTreeID () const override
 
AXTreeID GetParentTreeID () const override
 
AXNodeGetRootAsAXNode () const override
 
AXNodeGetParentNodeFromParentTreeAsAXNode () const override
 
- Public Member Functions inherited from ui::AXTreeManager
virtual ~AXTreeManager ()=default
 
virtual AXNodeGetNodeFromTree (const AXTreeID tree_id, const AXNode::AXID node_id) const =0
 
virtual AXNodeGetNodeFromTree (const AXNode::AXID node_id) const =0
 
virtual AXTreeID GetTreeID () const =0
 
virtual AXTreeID GetParentTreeID () const =0
 
virtual AXNodeGetRootAsAXNode () const =0
 
virtual AXNodeGetParentNodeFromParentTreeAsAXNode () const =0
 
virtual AXTreeGetTree () const =0
 

Protected Member Functions

AXPlatformNodeAXPlatformNodeFromNode (AXNode *node)
 
- Protected Member Functions inherited from ui::AXPlatformNodeTest
void Init (const AXTreeUpdate &initial_state)
 
void Init (const ui::AXNodeData &node1, const ui::AXNodeData &node2=ui::AXNodeData(), const ui::AXNodeData &node3=ui::AXNodeData(), const ui::AXNodeData &node4=ui::AXNodeData(), const ui::AXNodeData &node5=ui::AXNodeData(), const ui::AXNodeData &node6=ui::AXNodeData(), const ui::AXNodeData &node7=ui::AXNodeData(), const ui::AXNodeData &node8=ui::AXNodeData(), const ui::AXNodeData &node9=ui::AXNodeData(), const ui::AXNodeData &node10=ui::AXNodeData(), const ui::AXNodeData &node11=ui::AXNodeData(), const ui::AXNodeData &node12=ui::AXNodeData())
 
AXTreeUpdate BuildTextField ()
 
AXTreeUpdate BuildTextFieldWithSelectionRange (int32_t start, int32_t stop)
 
AXTreeUpdate BuildContentEditable ()
 
AXTreeUpdate BuildContentEditableWithSelectionRange (int32_t start, int32_t end)
 
AXTreeUpdate Build3X3Table ()
 
AXTreeUpdate BuildAriaColumnAndRowCountGrids ()
 
AXTreeUpdate BuildListBox (bool option_1_is_selected, bool option_2_is_selected, bool option_3_is_selected, const std::vector< ax::mojom::State > &additional_state)
 

Detailed Description

Definition at line 15 of file ax_platform_node_mac_unittest.h.

Constructor & Destructor Documentation

◆ AXPlatformNodeMacTest()

ui::AXPlatformNodeMacTest::AXPlatformNodeMacTest ( )
default

◆ ~AXPlatformNodeMacTest()

ui::AXPlatformNodeMacTest::~AXPlatformNodeMacTest ( )
overridedefault

Member Function Documentation

◆ AXPlatformNodeFromNode()

AXPlatformNode * ui::AXPlatformNodeMacTest::AXPlatformNodeFromNode ( AXNode node)
protected

Definition at line 27 of file ax_platform_node_mac_unittest.mm.

27 {
28 const TestAXNodeWrapper* wrapper = TestAXNodeWrapper::GetOrCreate(GetTree(), node);
29 return wrapper ? wrapper->ax_platform_node() : nullptr;
30}
static TestAXNodeWrapper * GetOrCreate(AXTree *tree, AXNode *node)

◆ SetUp()

void ui::AXPlatformNodeMacTest::SetUp ( )
override

Definition at line 18 of file ax_platform_node_mac_unittest.mm.

18{}

◆ TearDown()

void ui::AXPlatformNodeMacTest::TearDown ( )
override

Definition at line 20 of file ax_platform_node_mac_unittest.mm.

20 {
21 // Destroy the tree and make sure we're not leaking any objects.
25}
static size_t GetInstanceCountForTesting()
static void SetGlobalIsWebContent(bool is_web_content)

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