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

Side by Side Diff: content/test/test_render_view_host.cc

Issue 1051343005: Add covariant overrides to TestRVH::GetProcess and TestRFH::GetProcess (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@unittest_frame_liveness
Patch Set: Rebase Created 5 years, 8 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
« no previous file with comments | « content/test/test_render_view_host.h ('k') | no next file » | 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 "content/test/test_render_view_host.h" 5 #include "content/test/test_render_view_host.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" 8 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
9 #include "content/browser/dom_storage/session_storage_namespace_impl.h" 9 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
10 #include "content/browser/loader/resource_dispatcher_host_impl.h" 10 #include "content/browser/loader/resource_dispatcher_host_impl.h"
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 } 246 }
247 247
248 bool TestRenderViewHost::IsRenderViewLive() const { 248 bool TestRenderViewHost::IsRenderViewLive() const {
249 return render_view_created_; 249 return render_view_created_;
250 } 250 }
251 251
252 bool TestRenderViewHost::IsFullscreenGranted() const { 252 bool TestRenderViewHost::IsFullscreenGranted() const {
253 return RenderViewHostImpl::IsFullscreenGranted(); 253 return RenderViewHostImpl::IsFullscreenGranted();
254 } 254 }
255 255
256 MockRenderProcessHost* TestRenderViewHost::GetProcess() const {
257 return static_cast<MockRenderProcessHost*>(RenderViewHostImpl::GetProcess());
258 }
259
256 void TestRenderViewHost::SimulateWasHidden() { 260 void TestRenderViewHost::SimulateWasHidden() {
257 WasHidden(); 261 WasHidden();
258 } 262 }
259 263
260 void TestRenderViewHost::SimulateWasShown() { 264 void TestRenderViewHost::SimulateWasShown() {
261 WasShown(ui::LatencyInfo()); 265 WasShown(ui::LatencyInfo());
262 } 266 }
263 267
264 WebPreferences TestRenderViewHost::TestComputeWebkitPrefs() { 268 WebPreferences TestRenderViewHost::TestComputeWebkitPrefs() {
265 return ComputeWebkitPrefs(); 269 return ComputeWebkitPrefs();
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 313
310 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { 314 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() {
311 return contents()->GetMainFrame(); 315 return contents()->GetMainFrame();
312 } 316 }
313 317
314 TestWebContents* RenderViewHostImplTestHarness::contents() { 318 TestWebContents* RenderViewHostImplTestHarness::contents() {
315 return static_cast<TestWebContents*>(web_contents()); 319 return static_cast<TestWebContents*>(web_contents());
316 } 320 }
317 321
318 } // namespace content 322 } // namespace content
OLDNEW
« no previous file with comments | « content/test/test_render_view_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698