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

Unified Diff: content/test/test_render_frame_host.cc

Issue 636673002: Remove navigation from TestRenderViewHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a TODO 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 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 8cfc8f57e38d7134dcde088ac3d92ee3b1f45337..598ee5d0605025e5ac9d494d88a5d0eae1da6bca 100644
--- a/content/test/test_render_frame_host.cc
+++ b/content/test/test_render_frame_host.cc
@@ -42,11 +42,6 @@ TestRenderFrameHost::TestRenderFrameHost(RenderViewHostImpl* render_view_host,
child_creation_observer_(delegate ? delegate->GetAsWebContents() : NULL),
contents_mime_type_("text/html"),
simulate_history_list_was_cleared_(false) {
- // Allow TestRenderViewHosts to easily access their main frame RFH.
- if (frame_tree_node == frame_tree->root()) {
- static_cast<TestRenderViewHost*>(render_view_host)->
- set_main_render_frame_host(this);
- }
}
TestRenderFrameHost::~TestRenderFrameHost() {}
@@ -70,6 +65,10 @@ void TestRenderFrameHost::SendNavigateWithTransition(
SendNavigateWithTransitionAndResponseCode(page_id, url, transition, 200);
}
+void TestRenderFrameHost::SetContentsMimeType(const std::string& mime_type) {
+ contents_mime_type_ = mime_type;
+}
+
void TestRenderFrameHost::SendBeforeUnloadACK(bool proceed) {
base::TimeTicks now = base::TimeTicks::Now();
OnBeforeUnloadACK(proceed, now, now);
« 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