Flutter Engine
The Flutter Engine
Classes | Namespaces | Macros | Functions
ax_fragment_root_win_unittest.cc File Reference
#include "ax_fragment_root_win.h"
#include "ax_platform_node_win.h"
#include "ax_platform_node_win_unittest.h"
#include "test_ax_node_wrapper.h"
#include <UIAutomationClient.h>
#include <UIAutomationCoreApi.h>
#include "base/auto_reset.h"
#include "base/win/scoped_safearray.h"
#include "base/win/scoped_variant.h"
#include "gtest/gtest.h"
#include "uia_registrar_win.h"

Go to the source code of this file.

Classes

class  ui::AXFragmentRootTest
 

Namespaces

namespace  ui
 

Macros

#define EXPECT_UIA_BSTR_EQ(node, property_id, expected)
 

Functions

 ui::TEST_F (AXFragmentRootTest, UIAFindItemByPropertyUniqueId)
 
 ui::TEST_F (AXFragmentRootTest, TestUIAGetFragmentRoot)
 
 ui::TEST_F (AXFragmentRootTest, DISABLED_TestUIAElementProviderFromPoint)
 
 ui::TEST_F (AXFragmentRootTest, TestUIAGetFocus)
 
 ui::TEST_F (AXFragmentRootTest, TestUIAErrorHandling)
 
 ui::TEST_F (AXFragmentRootTest, TestGetChildCount)
 
 ui::TEST_F (AXFragmentRootTest, TestChildAtIndex)
 
 ui::TEST_F (AXFragmentRootTest, TestGetParent)
 
 ui::TEST_F (AXFragmentRootTest, TestGetPropertyValue)
 
 ui::TEST_F (AXFragmentRootTest, TestUIAMultipleFragmentRoots)
 
 ui::TEST_F (AXFragmentRootTest, TestFragmentRootMap)
 

Macro Definition Documentation

◆ EXPECT_UIA_BSTR_EQ

#define EXPECT_UIA_BSTR_EQ (   node,
  property_id,
  expected 
)
Value:
{ \
ScopedVariant expectedVariant(expected); \
ASSERT_EQ(VT_BSTR, expectedVariant.type()); \
ASSERT_NE(nullptr, expectedVariant.ptr()->bstrVal); \
ScopedVariant actual; \
ASSERT_HRESULT_SUCCEEDED( \
node->GetPropertyValue(property_id, actual.Receive())); \
ASSERT_EQ(VT_BSTR, actual.type()); \
ASSERT_NE(nullptr, actual.ptr()->bstrVal); \
EXPECT_STREQ(expectedVariant.ptr()->bstrVal, actual.ptr()->bstrVal); \
}

Definition at line 24 of file ax_fragment_root_win_unittest.cc.