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

Side by Side Diff: ui/accessibility/platform/ax_platform_node_win_unittest.cc

Issue 1112693003: Apply automated fixits for Chrome clang plugin to ui. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 <atlbase.h> 5 #include <atlbase.h>
6 #include <atlcom.h> 6 #include <atlcom.h>
7 #include <oleacc.h> 7 #include <oleacc.h>
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/win/scoped_bstr.h" 10 #include "base/win/scoped_bstr.h"
(...skipping 16 matching lines...) Expand all
27 27
28 // Most IAccessible functions require a VARIANT set to CHILDID_SELF as 28 // Most IAccessible functions require a VARIANT set to CHILDID_SELF as
29 // the first argument. 29 // the first argument.
30 ScopedVariant SELF(CHILDID_SELF); 30 ScopedVariant SELF(CHILDID_SELF);
31 31
32 } // namespace 32 } // namespace
33 33
34 class AXPlatformNodeWinTest : public testing::Test { 34 class AXPlatformNodeWinTest : public testing::Test {
35 public: 35 public:
36 AXPlatformNodeWinTest() {} 36 AXPlatformNodeWinTest() {}
37 virtual ~AXPlatformNodeWinTest() {} 37 ~AXPlatformNodeWinTest() override {}
38 38
39 void SetUp() override { 39 void SetUp() override {
40 win::CreateATLModuleIfNeeded(); 40 win::CreateATLModuleIfNeeded();
41 } 41 }
42 42
43 // Initialize given an AXTreeUpdate. 43 // Initialize given an AXTreeUpdate.
44 void Init(const AXTreeUpdate& initial_state) { 44 void Init(const AXTreeUpdate& initial_state) {
45 tree_.reset(new AXTree(initial_state)); 45 tree_.reset(new AXTree(initial_state));
46 } 46 }
47 47
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 ASSERT_EQ(E_FAIL, root_iaccessible2->get_indexInParent(&index)); 399 ASSERT_EQ(E_FAIL, root_iaccessible2->get_indexInParent(&index));
400 400
401 ASSERT_EQ(S_OK, left_iaccessible2->get_indexInParent(&index)); 401 ASSERT_EQ(S_OK, left_iaccessible2->get_indexInParent(&index));
402 EXPECT_EQ(0, index); 402 EXPECT_EQ(0, index);
403 403
404 ASSERT_EQ(S_OK, right_iaccessible2->get_indexInParent(&index)); 404 ASSERT_EQ(S_OK, right_iaccessible2->get_indexInParent(&index));
405 EXPECT_EQ(1, index); 405 EXPECT_EQ(1, index);
406 } 406 }
407 407
408 } // namespace ui 408 } // namespace ui
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698