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

Side by Side Diff: ui/views/accessibility/native_view_accessibility_win_unittest.cc

Issue 985853005: base: Remove operator& from ScopedVariant and ScopedPropVariant. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scoped-operator: prop-ptr Created 5 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <oleacc.h> 5 #include <oleacc.h>
6 6
7 #include "base/win/scoped_bstr.h" 7 #include "base/win/scoped_bstr.h"
8 #include "base/win/scoped_comptr.h" 8 #include "base/win/scoped_comptr.h"
9 #include "base/win/scoped_variant.h" 9 #include "base/win/scoped_variant.h"
10 #include "third_party/iaccessible2/ia2_api_all.h" 10 #include "third_party/iaccessible2/ia2_api_all.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 child_index_2, child_widget_dispatch.Receive())); 121 child_index_2, child_widget_dispatch.Receive()));
122 ASSERT_EQ(S_OK, child_widget_dispatch.QueryInterface( 122 ASSERT_EQ(S_OK, child_widget_dispatch.QueryInterface(
123 child_widget_accessible.Receive())); 123 child_widget_accessible.Receive()));
124 124
125 ScopedComPtr<IDispatch> child_widget_sibling_dispatch; 125 ScopedComPtr<IDispatch> child_widget_sibling_dispatch;
126 ScopedComPtr<IAccessible> child_widget_sibling_accessible; 126 ScopedComPtr<IAccessible> child_widget_sibling_accessible;
127 ScopedVariant childid_self(CHILDID_SELF); 127 ScopedVariant childid_self(CHILDID_SELF);
128 ScopedVariant result; 128 ScopedVariant result;
129 ASSERT_EQ(S_OK, child_widget_accessible->accNavigate( 129 ASSERT_EQ(S_OK, child_widget_accessible->accNavigate(
130 NAVDIR_PREVIOUS, childid_self, result.Receive())); 130 NAVDIR_PREVIOUS, childid_self, result.Receive()));
131 ASSERT_EQ(VT_DISPATCH, V_VT(&result)); 131 ASSERT_EQ(VT_DISPATCH, V_VT(result.ptr()));
132 child_widget_sibling_dispatch = V_DISPATCH(&result); 132 child_widget_sibling_dispatch = V_DISPATCH(result.ptr());
133 ASSERT_EQ(S_OK, child_widget_sibling_dispatch.QueryInterface( 133 ASSERT_EQ(S_OK, child_widget_sibling_dispatch.QueryInterface(
134 child_widget_sibling_accessible.Receive())); 134 child_widget_sibling_accessible.Receive()));
135 ASSERT_EQ(child_view_accessible.get(), child_widget_sibling_accessible.get()); 135 ASSERT_EQ(child_view_accessible.get(), child_widget_sibling_accessible.get());
136 136
137 ScopedComPtr<IDispatch> child_widget_parent_dispatch; 137 ScopedComPtr<IDispatch> child_widget_parent_dispatch;
138 ScopedComPtr<IAccessible> child_widget_parent_accessible; 138 ScopedComPtr<IAccessible> child_widget_parent_accessible;
139 ASSERT_EQ(S_OK, child_widget_accessible->get_accParent( 139 ASSERT_EQ(S_OK, child_widget_accessible->get_accParent(
140 child_widget_parent_dispatch.Receive())); 140 child_widget_parent_dispatch.Receive()));
141 ASSERT_EQ(S_OK, child_widget_parent_dispatch.QueryInterface( 141 ASSERT_EQ(S_OK, child_widget_parent_dispatch.QueryInterface(
142 child_widget_parent_accessible.Receive())); 142 child_widget_parent_accessible.Receive()));
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 delete infobar; 203 delete infobar;
204 ASSERT_EQ(S_OK, root_view_accessible->get_relationTargetsOfType( 204 ASSERT_EQ(S_OK, root_view_accessible->get_relationTargetsOfType(
205 alerts_bstr, 0, &targets, &n_targets)); 205 alerts_bstr, 0, &targets, &n_targets));
206 ASSERT_EQ(1, n_targets); 206 ASSERT_EQ(1, n_targets);
207 ASSERT_TRUE(infobar2_accessible.IsSameObject(targets[0])); 207 ASSERT_TRUE(infobar2_accessible.IsSameObject(targets[0]));
208 CoTaskMemFree(targets); 208 CoTaskMemFree(targets);
209 } 209 }
210 210
211 } // namespace test 211 } // namespace test
212 } // namespace views 212 } // namespace views
OLDNEW
« no previous file with comments | « ui/accessibility/platform/ax_platform_node_win_unittest.cc ('k') | win8/metro_driver/ime/text_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698