#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.
|
| 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) |
|
◆ EXPECT_UIA_BSTR_EQ
#define EXPECT_UIA_BSTR_EQ |
( |
|
node, |
|
|
|
property_id, |
|
|
|
expected |
|
) |
| |
Value: { \
ASSERT_EQ(VT_BSTR, expectedVariant.type()); \
ASSERT_NE(nullptr, expectedVariant.ptr()->bstrVal); \
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); \
}
const VARIANT * ptr() const
Definition at line 24 of file ax_fragment_root_win_unittest.cc.
25 { \
27 ASSERT_EQ(VT_BSTR, expectedVariant.type()); \
28 ASSERT_NE(nullptr, expectedVariant.ptr()->bstrVal); \
30 ASSERT_HRESULT_SUCCEEDED( \
31 node->GetPropertyValue(property_id, actual.
Receive())); \
32 ASSERT_EQ(VT_BSTR, actual.
type()); \
33 ASSERT_NE(
nullptr, actual.
ptr()->bstrVal); \
34 EXPECT_STREQ(expectedVariant.ptr()->bstrVal, actual.
ptr()->bstrVal); \
35 }