Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
ui::AXPlatformNodeTextProviderTest Class Reference
Inheritance diagram for ui::AXPlatformNodeTextProviderTest:
ui::AXPlatformNodeWinTest ui::AXPlatformNodeTest ui::TestAXTreeManager ui::AXTreeManager

Public Member Functions

 AXPlatformNodeTextProviderTest ()=default
 
 ~AXPlatformNodeTextProviderTest () override=default
 
 AXPlatformNodeTextProviderTest (const AXPlatformNodeTextProviderTest &)=delete
 
AXPlatformNodeTextProviderTestoperator= (const AXPlatformNodeTextProviderTest &)=delete
 
- Public Member Functions inherited from ui::AXPlatformNodeWinTest
 AXPlatformNodeWinTest ()
 
 ~AXPlatformNodeWinTest () override
 
void SetUp () override
 
void TearDown () override
 
template<typename T >
ComPtr< TQueryInterfaceFromNodeId (AXNode::AXID id)
 
template<typename T >
ComPtr< TQueryInterfaceFromNode (AXNode *node)
 
- 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
 

Protected Member Functions

void SetOwner (AXPlatformNodeWin *owner, ITextRangeProvider *destination_range)
 
AXPlatformNodeWin * GetOwner (const AXPlatformNodeTextProviderWin *text_provider)
 
const AXNodePosition::AXPositionInstanceGetStart (const AXPlatformNodeTextRangeProviderWin *text_range)
 
const AXNodePosition::AXPositionInstanceGetEnd (const AXPlatformNodeTextRangeProviderWin *text_range)
 
- Protected Member Functions inherited from ui::AXPlatformNodeWinTest
AXPlatformNodeAXPlatformNodeFromNode (AXNode *node)
 
template<typename T >
Microsoft::WRL::ComPtr< TQueryInterfaceFromNodeId (AXNode::AXID id)
 
template<typename T >
Microsoft::WRL::ComPtr< TQueryInterfaceFromNode (AXNode *node)
 
Microsoft::WRL::ComPtr< IRawElementProviderSimple > GetRootIRawElementProviderSimple ()
 
Microsoft::WRL::ComPtr< IRawElementProviderSimple > GetIRawElementProviderSimpleFromChildIndex (int child_index)
 
Microsoft::WRL::ComPtr< IRawElementProviderSimple > GetIRawElementProviderSimpleFromTree (const ui::AXTreeID tree_id, const AXNode::AXID node_id)
 
Microsoft::WRL::ComPtr< IRawElementProviderFragment > GetRootIRawElementProviderFragment ()
 
Microsoft::WRL::ComPtr< IRawElementProviderFragment > IRawElementProviderFragmentFromNode (AXNode *node)
 
Microsoft::WRL::ComPtr< IAccessible > IAccessibleFromNode (AXNode *node)
 
Microsoft::WRL::ComPtr< IAccessible > GetRootIAccessible ()
 
void CheckVariantHasName (const base::win::ScopedVariant &variant, const wchar_t *expected_name)
 
void CheckIUnknownHasName (Microsoft::WRL::ComPtr< IUnknown > unknown, const wchar_t *expected_name)
 
Microsoft::WRL::ComPtr< IAccessibleTableCell > GetCellInTable ()
 
void InitFragmentRoot ()
 
AXFragmentRootWinInitNodeAsFragmentRoot (AXNode *node, TestFragmentRootDelegate *delegate)
 
Microsoft::WRL::ComPtr< IRawElementProviderFragmentRoot > GetFragmentRoot ()
 
PatternSet GetSupportedPatternsFromNodeId (AXNode::AXID id)
 
- 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)
 

Additional Inherited Members

- Protected Types inherited from ui::AXPlatformNodeWinTest
using PatternSet = std::unordered_set< LONG >
 
- Protected Attributes inherited from ui::AXPlatformNodeWinTest
std::unique_ptr< AXFragmentRootWinax_fragment_root_
 
std::unique_ptr< TestFragmentRootDelegatetest_fragment_root_delegate_
 
- Static Protected Attributes inherited from ui::AXPlatformNodeWinTest
static const std::u16string kEmbeddedCharacterAsString
 

Detailed Description

Definition at line 33 of file ax_platform_node_textprovider_win_unittest.cc.

Constructor & Destructor Documentation

◆ AXPlatformNodeTextProviderTest() [1/2]

ui::AXPlatformNodeTextProviderTest::AXPlatformNodeTextProviderTest ( )
default

◆ ~AXPlatformNodeTextProviderTest()

ui::AXPlatformNodeTextProviderTest::~AXPlatformNodeTextProviderTest ( )
overridedefault

◆ AXPlatformNodeTextProviderTest() [2/2]

ui::AXPlatformNodeTextProviderTest::AXPlatformNodeTextProviderTest ( const AXPlatformNodeTextProviderTest )
delete

Member Function Documentation

◆ GetEnd()

const AXNodePosition::AXPositionInstance & ui::AXPlatformNodeTextProviderTest::GetEnd ( const AXPlatformNodeTextRangeProviderWin *  text_range)
inlineprotected

Definition at line 60 of file ax_platform_node_textprovider_win_unittest.cc.

61 {
62 return text_range->end();
63 }

◆ GetOwner()

AXPlatformNodeWin * ui::AXPlatformNodeTextProviderTest::GetOwner ( const AXPlatformNodeTextProviderWin *  text_provider)
inlineprotected

Definition at line 52 of file ax_platform_node_textprovider_win_unittest.cc.

53 {
54 return text_provider->owner_.Get();
55 }

◆ GetStart()

const AXNodePosition::AXPositionInstance & ui::AXPlatformNodeTextProviderTest::GetStart ( const AXPlatformNodeTextRangeProviderWin *  text_range)
inlineprotected

Definition at line 56 of file ax_platform_node_textprovider_win_unittest.cc.

57 {
58 return text_range->start();
59 }

◆ operator=()

AXPlatformNodeTextProviderTest & ui::AXPlatformNodeTextProviderTest::operator= ( const AXPlatformNodeTextProviderTest )
delete

◆ SetOwner()

void ui::AXPlatformNodeTextProviderTest::SetOwner ( AXPlatformNodeWin *  owner,
ITextRangeProvider *  destination_range 
)
inlineprotected

Definition at line 43 of file ax_platform_node_textprovider_win_unittest.cc.

44 {
45 ComPtr<ITextRangeProvider> destination_provider = destination_range;
46 ComPtr<AXPlatformNodeTextRangeProviderWin> destination_provider_interal;
47
48 destination_provider->QueryInterface(
49 IID_PPV_ARGS(&destination_provider_interal));
50 destination_provider_interal->SetOwnerForTesting(owner);
51 }

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