OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "content/browser/renderer_host/render_view_host_impl.h" | 14 #include "content/browser/renderer_host/render_view_host_impl.h" |
15 #include "content/public/browser/notification_service.h" | 15 #include "content/public/browser/notification_service.h" |
16 #include "content/public/browser/notification_types.h" | 16 #include "content/public/browser/notification_types.h" |
17 #include "content/public/browser/render_widget_host_view.h" | 17 #include "content/public/browser/render_widget_host_view.h" |
18 #include "content/public/test/content_browser_test.h" | 18 #include "content/public/test/content_browser_test.h" |
19 #include "content/public/test/content_browser_test_utils.h" | 19 #include "content/public/test/content_browser_test_utils.h" |
20 #include "content/shell/browser/shell.h" | 20 #include "content/shell/browser/shell.h" |
21 #include "content/test/accessibility_browser_test_utils.h" | 21 #include "content/test/accessibility_browser_test_utils.h" |
| 22 #include "ui/accessibility/ax_enums.h" |
22 #include "ui/accessibility/ax_node.h" | 23 #include "ui/accessibility/ax_node.h" |
23 #include "ui/accessibility/ax_tree.h" | 24 #include "ui/accessibility/ax_tree.h" |
24 | 25 |
25 #if defined(OS_WIN) | 26 #if defined(OS_WIN) |
26 #include <atlbase.h> | 27 #include <atlbase.h> |
27 #include <atlcom.h> | 28 #include <atlcom.h> |
28 #include "base/win/scoped_com_initializer.h" | 29 #include "base/win/scoped_com_initializer.h" |
29 #include "ui/base/win/atl_module.h" | 30 #include "ui/base/win/atl_module.h" |
30 #endif | 31 #endif |
31 | 32 |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 GURL url(url_str); | 490 GURL url(url_str); |
490 NavigateToURL(shell(), url); | 491 NavigateToURL(shell(), url); |
491 const ui::AXTree& tree = GetAXTree(); | 492 const ui::AXTree& tree = GetAXTree(); |
492 const ui::AXNode* root = tree.root(); | 493 const ui::AXNode* root = tree.root(); |
493 ASSERT_EQ(1, root->child_count()); | 494 ASSERT_EQ(1, root->child_count()); |
494 const ui::AXNode* textbox = root->ChildAtIndex(0); | 495 const ui::AXNode* textbox = root->ChildAtIndex(0); |
495 EXPECT_EQ(true, GetBoolAttr(textbox, ui::AX_ATTR_CAN_SET_VALUE)); | 496 EXPECT_EQ(true, GetBoolAttr(textbox, ui::AX_ATTR_CAN_SET_VALUE)); |
496 } | 497 } |
497 | 498 |
498 } // namespace content | 499 } // namespace content |
OLD | NEW |