| 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" | 11 #include "chrome/browser/renderer_host/render_view_host.h" |
| 12 #include "chrome/browser/renderer_host/render_widget_host_view_win.h" | 12 #include "chrome/browser/renderer_host/render_widget_host_view_win.h" |
| 13 #include "chrome/browser/tab_contents/tab_contents.h" | 13 #include "chrome/browser/tab_contents/tab_contents.h" |
| 14 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
| 15 #include "chrome/common/chrome_switches.h" | |
| 16 #include "chrome/common/notification_type.h" | 15 #include "chrome/common/notification_type.h" |
| 17 #include "chrome/test/in_process_browser_test.h" | 16 #include "chrome/test/in_process_browser_test.h" |
| 18 #include "chrome/test/ui_test_utils.h" | 17 #include "chrome/test/ui_test_utils.h" |
| 19 #include "ia2_api_all.h" // Generated | 18 #include "ia2_api_all.h" // Generated NOLINT |
| 20 | 19 |
| 21 using std::auto_ptr; | 20 using std::auto_ptr; |
| 22 using std::vector; | 21 using std::vector; |
| 23 using std::wstring; | 22 using std::wstring; |
| 24 | 23 |
| 25 namespace { | 24 namespace { |
| 26 | 25 |
| 27 class AccessibilityWinBrowserTest : public InProcessBrowserTest { | 26 class AccessibilityWinBrowserTest : public InProcessBrowserTest { |
| 28 public: | 27 public: |
| 29 AccessibilityWinBrowserTest() {} | 28 AccessibilityWinBrowserTest() {} |
| (...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 640 // If pointer comparison fails resort to the exhuasive search that can use | 639 // If pointer comparison fails resort to the exhuasive search that can use |
| 641 // IAccessible2::get_uniqueID for equality comparison. | 640 // IAccessible2::get_uniqueID for equality comparison. |
| 642 if (!found) { | 641 if (!found) { |
| 643 AccessibleContainsAccessible( | 642 AccessibleContainsAccessible( |
| 644 browser_accessible, document_accessible2, &found); | 643 browser_accessible, document_accessible2, &found); |
| 645 } | 644 } |
| 646 | 645 |
| 647 ASSERT_EQ(found, true); | 646 ASSERT_EQ(found, true); |
| 648 } | 647 } |
| 649 } // namespace. | 648 } // namespace. |
| OLD | NEW |