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 "ui/accessibility/platform/ax_platform_node.h" | 5 #include "ui/accessibility/platform/ax_platform_node.h" |
6 | 6 |
7 #include <atlbase.h> | 7 #include <atlbase.h> |
8 #include <atlcom.h> | 8 #include <atlcom.h> |
9 #include <oleacc.h> | 9 #include <oleacc.h> |
10 | 10 |
11 #include <memory> | 11 #include <memory> |
12 | 12 |
13 #include "base/win/scoped_bstr.h" | 13 #include "base/win/scoped_bstr.h" |
14 #include "base/win/scoped_comptr.h" | 14 #include "base/win/scoped_comptr.h" |
15 #include "base/win/scoped_variant.h" | 15 #include "base/win/scoped_variant.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "third_party/iaccessible2/ia2_api_all.h" | 17 #include "third_party/iaccessible2/ia2_api_all.h" |
| 18 #include "ui/accessibility/ax_enums.h" |
18 #include "ui/accessibility/ax_node_data.h" | 19 #include "ui/accessibility/ax_node_data.h" |
19 #include "ui/accessibility/platform/test_ax_node_wrapper.h" | 20 #include "ui/accessibility/platform/test_ax_node_wrapper.h" |
20 #include "ui/base/win/atl_module.h" | 21 #include "ui/base/win/atl_module.h" |
21 | 22 |
22 using base::win::ScopedBstr; | 23 using base::win::ScopedBstr; |
23 using base::win::ScopedComPtr; | 24 using base::win::ScopedComPtr; |
24 using base::win::ScopedVariant; | 25 using base::win::ScopedVariant; |
25 | 26 |
26 namespace ui { | 27 namespace ui { |
27 | 28 |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 ASSERT_EQ(E_FAIL, root_iaccessible2->get_indexInParent(&index)); | 393 ASSERT_EQ(E_FAIL, root_iaccessible2->get_indexInParent(&index)); |
393 | 394 |
394 ASSERT_EQ(S_OK, left_iaccessible2->get_indexInParent(&index)); | 395 ASSERT_EQ(S_OK, left_iaccessible2->get_indexInParent(&index)); |
395 EXPECT_EQ(0, index); | 396 EXPECT_EQ(0, index); |
396 | 397 |
397 ASSERT_EQ(S_OK, right_iaccessible2->get_indexInParent(&index)); | 398 ASSERT_EQ(S_OK, right_iaccessible2->get_indexInParent(&index)); |
398 EXPECT_EQ(1, index); | 399 EXPECT_EQ(1, index); |
399 } | 400 } |
400 | 401 |
401 } // namespace ui | 402 } // namespace ui |
OLD | NEW |