OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |