Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Unified Diff: ui/accessibility/platform/ax_platform_node_win_unittest.cc

Issue 2870263002: Rename ScopedComPtr::Receive to ScopedComPtr::GetAddressOf (Closed)
Patch Set: Rebase to 2a6f440 Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/accessibility/platform/ax_platform_node_win_unittest.cc
diff --git a/ui/accessibility/platform/ax_platform_node_win_unittest.cc b/ui/accessibility/platform/ax_platform_node_win_unittest.cc
index 5dcfb798589b7fcce00a3e15e5707007d954845e..38be292ddb5d4a247153348adc3f8695ef1121bf 100644
--- a/ui/accessibility/platform/ax_platform_node_win_unittest.cc
+++ b/ui/accessibility/platform/ax_platform_node_win_unittest.cc
@@ -99,8 +99,8 @@ class AXPlatformNodeWinTest : public testing::Test {
ScopedComPtr<IServiceProvider> service_provider;
service_provider.QueryFrom(accessible.Get());
ScopedComPtr<IAccessible2> result;
- CHECK(SUCCEEDED(
- service_provider->QueryService(IID_IAccessible2, result.Receive())));
+ CHECK(SUCCEEDED(service_provider->QueryService(IID_IAccessible2,
+ result.GetAddressOf())));
return result;
}
@@ -290,21 +290,24 @@ TEST_F(AXPlatformNodeWinTest, TestIAccessibleChildAndParent) {
{
ScopedComPtr<IDispatch> result;
- EXPECT_EQ(S_OK, root_iaccessible->get_accChild(SELF, result.Receive()));
+ EXPECT_EQ(S_OK,
+ root_iaccessible->get_accChild(SELF, result.GetAddressOf()));
EXPECT_EQ(result.Get(), root_iaccessible);
}
{
ScopedComPtr<IDispatch> result;
ScopedVariant child1(1);
- EXPECT_EQ(S_OK, root_iaccessible->get_accChild(child1, result.Receive()));
+ EXPECT_EQ(S_OK,
+ root_iaccessible->get_accChild(child1, result.GetAddressOf()));
EXPECT_EQ(result.Get(), button_iaccessible);
}
{
ScopedComPtr<IDispatch> result;
ScopedVariant child2(2);
- EXPECT_EQ(S_OK, root_iaccessible->get_accChild(child2, result.Receive()));
+ EXPECT_EQ(S_OK,
+ root_iaccessible->get_accChild(child2, result.GetAddressOf()));
EXPECT_EQ(result.Get(), checkbox_iaccessible);
}
@@ -313,7 +316,7 @@ TEST_F(AXPlatformNodeWinTest, TestIAccessibleChildAndParent) {
ScopedComPtr<IDispatch> result;
ScopedVariant child3(3);
EXPECT_EQ(E_INVALIDARG,
- root_iaccessible->get_accChild(child3, result.Receive()));
+ root_iaccessible->get_accChild(child3, result.GetAddressOf()));
}
// We should be able to ask for the button by its unique id too.
@@ -326,7 +329,7 @@ TEST_F(AXPlatformNodeWinTest, TestIAccessibleChildAndParent) {
ScopedComPtr<IDispatch> result;
ScopedVariant button_id_variant(button_unique_id);
EXPECT_EQ(S_OK, root_iaccessible->get_accChild(button_id_variant,
- result.Receive()));
+ result.GetAddressOf()));
EXPECT_EQ(result.Get(), button_iaccessible);
}
@@ -340,26 +343,26 @@ TEST_F(AXPlatformNodeWinTest, TestIAccessibleChildAndParent) {
{
ScopedComPtr<IDispatch> result;
ScopedVariant root_id_variant(root_unique_id);
- EXPECT_EQ(E_INVALIDARG, button_iaccessible->get_accChild(root_id_variant,
- result.Receive()));
+ EXPECT_EQ(E_INVALIDARG, button_iaccessible->get_accChild(
+ root_id_variant, result.GetAddressOf()));
}
// Now check parents.
{
ScopedComPtr<IDispatch> result;
- EXPECT_EQ(S_OK, button_iaccessible->get_accParent(result.Receive()));
+ EXPECT_EQ(S_OK, button_iaccessible->get_accParent(result.GetAddressOf()));
EXPECT_EQ(result.Get(), root_iaccessible);
}
{
ScopedComPtr<IDispatch> result;
- EXPECT_EQ(S_OK, checkbox_iaccessible->get_accParent(result.Receive()));
+ EXPECT_EQ(S_OK, checkbox_iaccessible->get_accParent(result.GetAddressOf()));
EXPECT_EQ(result.Get(), root_iaccessible);
}
{
ScopedComPtr<IDispatch> result;
- EXPECT_EQ(S_FALSE, root_iaccessible->get_accParent(result.Receive()));
+ EXPECT_EQ(S_FALSE, root_iaccessible->get_accParent(result.GetAddressOf()));
}
}
« no previous file with comments | « ui/accessibility/platform/ax_platform_node_win.cc ('k') | ui/base/dragdrop/os_exchange_data_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698