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/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
6 #include "base/win/scoped_comptr.h" | 6 #include "base/win/scoped_comptr.h" |
7 #include "content/browser/accessibility/browser_accessibility_manager.h" | 7 #include "content/browser/accessibility/browser_accessibility_manager.h" |
8 #include "content/browser/accessibility/browser_accessibility_win.h" | 8 #include "content/browser/accessibility/browser_accessibility_win.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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 | 358 |
359 ASSERT_EQ(S_OK, text1_obj->get_text(0, IA2_TEXT_OFFSET_LENGTH, &text)); | 359 ASSERT_EQ(S_OK, text1_obj->get_text(0, IA2_TEXT_OFFSET_LENGTH, &text)); |
360 ASSERT_EQ(text, string16(L"One two three.\nFour five six.")); | 360 ASSERT_EQ(text, string16(L"One two three.\nFour five six.")); |
361 SysFreeString(text); | 361 SysFreeString(text); |
362 | 362 |
363 // Delete the manager and test that all BrowserAccessibility instances are | 363 // Delete the manager and test that all BrowserAccessibility instances are |
364 // deleted. | 364 // deleted. |
365 delete manager; | 365 delete manager; |
366 ASSERT_EQ(0, CountedBrowserAccessibility::global_obj_count_); | 366 ASSERT_EQ(0, CountedBrowserAccessibility::global_obj_count_); |
367 } | 367 } |
OLD | NEW |