| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/string16.h" | 5 #include "base/string16.h" |
| 6 #include "base/utf_string_conversions.h" | 6 #include "base/utf_string_conversions.h" |
| 7 #include "content/browser/accessibility/browser_accessibility.h" | 7 #include "content/browser/accessibility/browser_accessibility.h" |
| 8 #include "content/browser/accessibility/browser_accessibility_manager.h" | 8 #include "content/browser/accessibility/browser_accessibility_manager.h" |
| 9 #include "content/common/view_messages.h" | 9 #include "content/common/view_messages.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 EXPECT_NE(root, manager->GetRoot()); | 625 EXPECT_NE(root, manager->GetRoot()); |
| 626 | 626 |
| 627 // And the new child exists. | 627 // And the new child exists. |
| 628 EXPECT_EQ(WebAccessibility::ROLE_BUTTON, acc2_2->role()); | 628 EXPECT_EQ(WebAccessibility::ROLE_BUTTON, acc2_2->role()); |
| 629 EXPECT_EQ(3, acc2_2->renderer_id()); | 629 EXPECT_EQ(3, acc2_2->renderer_id()); |
| 630 | 630 |
| 631 // Ensure we properly cleaned up. | 631 // Ensure we properly cleaned up. |
| 632 manager.reset(); | 632 manager.reset(); |
| 633 ASSERT_EQ(0, CountedBrowserAccessibility::global_obj_count_); | 633 ASSERT_EQ(0, CountedBrowserAccessibility::global_obj_count_); |
| 634 } | 634 } |
| OLD | NEW |