Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(607)

Side by Side Diff: content/browser/accessibility/browser_accessibility_win_unittest.cc

Issue 796333009: Revert "Create only a single LegacyRenderWidgetHostHWND per WebContentsViewAura." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/legacy_render_widget_host_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
14 #include "content/common/accessibility_messages.h" 15 #include "content/common/accessibility_messages.h"
15 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
16 #include "ui/base/win/atl_module.h" 17 #include "ui/base/win/atl_module.h"
17 18
18 namespace content { 19 namespace content {
19 namespace { 20 namespace {
20 21
21 22
22 // CountedBrowserAccessibility ------------------------------------------------ 23 // CountedBrowserAccessibility ------------------------------------------------
23 24
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 EXPECT_EQ(S_OK, hr); 740 EXPECT_EQ(S_OK, hr);
740 EXPECT_NE(nullptr, static_cast<BSTR>(attributes)); 741 EXPECT_NE(nullptr, static_cast<BSTR>(attributes));
741 std::wstring attributes_str(attributes, attributes.Length()); 742 std::wstring attributes_str(attributes, attributes.Length());
742 EXPECT_EQ(L"checkable:true;", attributes_str); 743 EXPECT_EQ(L"checkable:true;", attributes_str);
743 744
744 manager.reset(); 745 manager.reset();
745 ASSERT_EQ(0, CountedBrowserAccessibility::num_instances()); 746 ASSERT_EQ(0, CountedBrowserAccessibility::num_instances());
746 } 747 }
747 748
748 } // namespace content 749 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/legacy_render_widget_host_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698