| 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 "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
| 6 #include "base/strings/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
| 7 #include "base/win/scoped_bstr.h" | 7 #include "base/win/scoped_bstr.h" |
| 8 #include "base/win/scoped_comptr.h" | 8 #include "base/win/scoped_comptr.h" |
| 9 #include "base/win/scoped_variant.h" | 9 #include "base/win/scoped_variant.h" |
| 10 #include "content/browser/accessibility/browser_accessibility_manager.h" | 10 #include "content/browser/accessibility/browser_accessibility_manager.h" |
| 11 #include "content/browser/accessibility/browser_accessibility_manager_win.h" | 11 #include "content/browser/accessibility/browser_accessibility_manager_win.h" |
| 12 #include "content/browser/accessibility/browser_accessibility_state_impl.h" | 12 #include "content/browser/accessibility/browser_accessibility_state_impl.h" |
| 13 #include "content/browser/accessibility/browser_accessibility_win.h" | 13 #include "content/browser/accessibility/browser_accessibility_win.h" |
| 14 #include "content/browser/renderer_host/legacy_render_widget_host_win.h" | |
| 15 #include "content/common/accessibility_messages.h" | 14 #include "content/common/accessibility_messages.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 17 #include "ui/base/win/atl_module.h" | 16 #include "ui/base/win/atl_module.h" |
| 18 | 17 |
| 19 namespace content { | 18 namespace content { |
| 20 namespace { | 19 namespace { |
| 21 | 20 |
| 22 | 21 |
| 23 // CountedBrowserAccessibility ------------------------------------------------ | 22 // CountedBrowserAccessibility ------------------------------------------------ |
| 24 | 23 |
| (...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 // And the new child exists. | 672 // And the new child exists. |
| 674 EXPECT_EQ(ui::AX_ROLE_BUTTON, acc2_2->GetRole()); | 673 EXPECT_EQ(ui::AX_ROLE_BUTTON, acc2_2->GetRole()); |
| 675 EXPECT_EQ(3, acc2_2->GetId()); | 674 EXPECT_EQ(3, acc2_2->GetId()); |
| 676 | 675 |
| 677 // Ensure we properly cleaned up. | 676 // Ensure we properly cleaned up. |
| 678 manager.reset(); | 677 manager.reset(); |
| 679 ASSERT_EQ(0, CountedBrowserAccessibility::num_instances()); | 678 ASSERT_EQ(0, CountedBrowserAccessibility::num_instances()); |
| 680 } | 679 } |
| 681 | 680 |
| 682 } // namespace content | 681 } // namespace content |
| OLD | NEW |