5#ifndef UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_WIN_UNITTEST_H_
6#define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_WIN_UNITTEST_H_
13#include <UIAutomationCore.h>
18#include <unordered_set>
23struct IAccessibleTableCell;
24struct IRawElementProviderFragment;
25struct IRawElementProviderFragmentRoot;
26struct IRawElementProviderSimple;
37class AXFragmentRootWin;
53 :
public CComObjectRootEx<CComMultiThreadModel>,
54 public IRawElementProviderSimple {
57 COM_INTERFACE_ENTRY(IRawElementProviderSimple)
64 IRawElementProviderSimple** provider);
70 IUnknown**
result) override;
87 void SetUp()
override;
89 void TearDown()
override;
99 Microsoft::WRL::ComPtr<IRawElementProviderSimple>
100 GetRootIRawElementProviderSimple();
101 Microsoft::WRL::ComPtr<IRawElementProviderSimple>
102 GetIRawElementProviderSimpleFromChildIndex(
int child_index);
103 Microsoft::WRL::ComPtr<IRawElementProviderSimple>
104 GetIRawElementProviderSimpleFromTree(
const ui::AXTreeID tree_id,
106 Microsoft::WRL::ComPtr<IRawElementProviderFragment>
107 GetRootIRawElementProviderFragment();
108 Microsoft::WRL::ComPtr<IRawElementProviderFragment>
109 IRawElementProviderFragmentFromNode(
AXNode* node);
110 Microsoft::WRL::ComPtr<IAccessible> IAccessibleFromNode(
AXNode* node);
111 Microsoft::WRL::ComPtr<IAccessible> GetRootIAccessible();
113 const wchar_t* expected_name);
115 const wchar_t* expected_name);
118 void InitFragmentRoot();
121 Microsoft::WRL::ComPtr<IRawElementProviderFragmentRoot> GetFragmentRoot();
IFACEMETHODIMP GetPatternProvider(PATTERNID pattern_id, IUnknown **result) override
IFACEMETHODIMP GetPropertyValue(PROPERTYID property_id, VARIANT *result) override
static HRESULT CreateMockIRawElementProviderSimple(IRawElementProviderSimple **provider)
IFACEMETHODIMP get_ProviderOptions(enum ProviderOptions *ret) override
IFACEMETHODIMP get_HostRawElementProvider(IRawElementProviderSimple **provider) override
gfx::NativeViewAccessible GetParentOfAXFragmentRoot() override
gfx::NativeViewAccessible GetChildOfAXFragmentRoot() override
gfx::NativeViewAccessible child_
gfx::NativeViewAccessible parent_
TestFragmentRootDelegate()
virtual ~TestFragmentRootDelegate()
bool IsAXFragmentRootAControlElement() override
UnimplementedNativeViewAccessible * NativeViewAccessible