| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "base/scoped_comptr_win.h" | 8 #include "base/scoped_comptr_win.h" |
| 9 #include "chrome/browser/automation/ui_controls.h" | 9 #include "chrome/browser/automation/ui_controls.h" |
| 10 #include "chrome/browser/browser_window.h" | 10 #include "chrome/browser/browser_window.h" |
| 11 #include "chrome/browser/renderer_host/render_view_host.h" | |
| 12 #include "chrome/browser/renderer_host/render_widget_host_view_win.h" | 11 #include "chrome/browser/renderer_host/render_widget_host_view_win.h" |
| 13 #include "chrome/browser/tab_contents/tab_contents.h" | |
| 14 #include "chrome/browser/ui/browser.h" | 12 #include "chrome/browser/ui/browser.h" |
| 15 #include "chrome/common/notification_type.h" | 13 #include "chrome/common/notification_type.h" |
| 16 #include "chrome/test/in_process_browser_test.h" | 14 #include "chrome/test/in_process_browser_test.h" |
| 17 #include "chrome/test/ui_test_utils.h" | 15 #include "chrome/test/ui_test_utils.h" |
| 16 #include "content/browser/renderer_host/render_view_host.h" |
| 17 #include "content/browser/tab_contents/tab_contents.h" |
| 18 #include "ia2_api_all.h" // Generated NOLINT | 18 #include "ia2_api_all.h" // Generated NOLINT |
| 19 #include "ISimpleDOMNode.h" // Generated NOLINT | 19 #include "ISimpleDOMNode.h" // Generated NOLINT |
| 20 | 20 |
| 21 using std::auto_ptr; | 21 using std::auto_ptr; |
| 22 using std::vector; | 22 using std::vector; |
| 23 using std::wstring; | 23 using std::wstring; |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 class AccessibilityWinBrowserTest : public InProcessBrowserTest { | 27 class AccessibilityWinBrowserTest : public InProcessBrowserTest { |
| (...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 ASSERT_EQ(S_OK, hr); | 701 ASSERT_EQ(S_OK, hr); |
| 702 hr = checkbox_isimpledomnode->get_nodeInfo( | 702 hr = checkbox_isimpledomnode->get_nodeInfo( |
| 703 &node_name, &name_space_id, &node_value, &num_children, &unique_id, | 703 &node_name, &name_space_id, &node_value, &num_children, &unique_id, |
| 704 &node_type); | 704 &node_type); |
| 705 ASSERT_EQ(S_OK, hr); | 705 ASSERT_EQ(S_OK, hr); |
| 706 EXPECT_STREQ(L"input", wstring(node_name, SysStringLen(node_name)).c_str()); | 706 EXPECT_STREQ(L"input", wstring(node_name, SysStringLen(node_name)).c_str()); |
| 707 EXPECT_EQ(NODETYPE_ELEMENT, node_type); | 707 EXPECT_EQ(NODETYPE_ELEMENT, node_type); |
| 708 EXPECT_EQ(0, num_children); | 708 EXPECT_EQ(0, num_children); |
| 709 } | 709 } |
| 710 } // namespace. | 710 } // namespace. |
| OLD | NEW |