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

Unified Diff: content/test/test_render_frame_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/test_render_frame_host.h ('k') | content/test/test_render_view_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_render_frame_host.cc
diff --git a/content/test/test_render_frame_host.cc b/content/test/test_render_frame_host.cc
index 93bc602599602e5a8ce517628c914dc2b1c966c9..f38d13949c082b69c2095de0b407e248cd240b43 100644
--- a/content/test/test_render_frame_host.cc
+++ b/content/test/test_render_frame_host.cc
@@ -67,6 +67,10 @@ TestRenderViewHost* TestRenderFrameHost::GetRenderViewHost() {
RenderFrameHostImpl::GetRenderViewHost());
}
+MockRenderProcessHost* TestRenderFrameHost::GetProcess() {
+ return static_cast<MockRenderProcessHost*>(RenderFrameHostImpl::GetProcess());
+}
+
TestRenderFrameHost* TestRenderFrameHost::AppendChild(
const std::string& frame_name) {
OnCreateChildFrame(GetProcess()->GetNextRoutingID(), frame_name,
« no previous file with comments | « content/test/test_render_frame_host.h ('k') | content/test/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698