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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_mac_unittest.mm

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months 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
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 "content/browser/renderer_host/render_widget_host_view_mac.h" 5 #include "content/browser/renderer_host/render_widget_host_view_mac.h"
6 6
7 #include "base/mac/mac_util.h" 7 #include "base/mac/mac_util.h"
8 #include "base/mac/scoped_nsautorelease_pool.h" 8 #include "base/mac/scoped_nsautorelease_pool.h"
9 #include "base/mac/sdk_forward_declarations.h" 9 #include "base/mac/sdk_forward_declarations.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 @end 85 @end
86 86
87 namespace content { 87 namespace content {
88 88
89 namespace { 89 namespace {
90 90
91 class MockRenderWidgetHostDelegate : public RenderWidgetHostDelegate { 91 class MockRenderWidgetHostDelegate : public RenderWidgetHostDelegate {
92 public: 92 public:
93 MockRenderWidgetHostDelegate() {} 93 MockRenderWidgetHostDelegate() {}
94 virtual ~MockRenderWidgetHostDelegate() {} 94 ~MockRenderWidgetHostDelegate() override {}
95 }; 95 };
96 96
97 class MockRenderWidgetHostImpl : public RenderWidgetHostImpl { 97 class MockRenderWidgetHostImpl : public RenderWidgetHostImpl {
98 public: 98 public:
99 MockRenderWidgetHostImpl(RenderWidgetHostDelegate* delegate, 99 MockRenderWidgetHostImpl(RenderWidgetHostDelegate* delegate,
100 RenderProcessHost* process, 100 RenderProcessHost* process,
101 int routing_id) 101 int routing_id)
102 : RenderWidgetHostImpl(delegate, process, routing_id, false) { 102 : RenderWidgetHostImpl(delegate, process, routing_id, false) {
103 } 103 }
104 104
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 // Let |guest_rwhv_weak| have a chance to delete itself. 823 // Let |guest_rwhv_weak| have a chance to delete itself.
824 base::RunLoop run_loop; 824 base::RunLoop run_loop;
825 content::BrowserThread::PostTask( 825 content::BrowserThread::PostTask(
826 content::BrowserThread::UI, FROM_HERE, run_loop.QuitClosure()); 826 content::BrowserThread::UI, FROM_HERE, run_loop.QuitClosure());
827 run_loop.Run(); 827 run_loop.Run();
828 828
829 ASSERT_FALSE(guest_rwhv_weak.get()); 829 ASSERT_FALSE(guest_rwhv_weak.get());
830 } 830 }
831 831
832 } // namespace content 832 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698