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

Unified Diff: content/test/test_render_frame_host.cc

Issue 367653002: Add a FrameHostMsg_BeginNavigation IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Przemek's comments + fixed compilation error Created 6 years, 5 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
« content/common/frame_messages.h ('K') | « content/test/test_render_frame_host.h ('k') | no next file » | 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 f1498315246cfcd1a3825a8345379ca0a3dfdafa..f7c13f83d612f65fc590037f77dd26c1d8ad059e 100644
--- a/content/test/test_render_frame_host.cc
+++ b/content/test/test_render_frame_host.cc
@@ -7,7 +7,10 @@
#include "content/browser/frame_host/frame_tree.h"
#include "content/browser/frame_host/render_frame_host_delegate.h"
#include "content/common/frame_messages.h"
+#include "content/public/common/page_transition_types.h"
#include "content/test/test_render_view_host.h"
+#include "net/base/load_flags.h"
+#include "third_party/WebKit/public/web/WebPageVisibilityState.h"
namespace content {
@@ -157,4 +160,16 @@ void TestRenderFrameHost::SendNavigateWithParameters(
OnNavigate(msg);
}
+void TestRenderFrameHost::SendBeginNavigationWithURL(const GURL& url) {
+ FrameHostMsg_BeginNavigation_Params params;
+ params.method="GET";
davidben 2014/07/09 15:14:28 Nit: spaces around the =.
clamy 2014/07/15 15:32:14 Done.
+ params.url = url;
+ params.referrer_policy = blink::WebReferrerPolicyDefault;
+ params.load_flags = net::LOAD_NORMAL | net::LOAD_ENABLE_LOAD_TIMING;
+ params.has_user_gesture = false;
+ params.transition_type = PAGE_TRANSITION_LINK;
+ params.should_replace_current_entry = false;
+ params.allow_download = true;
+ OnBeginNavigation(params);
+}
} // namespace content
« content/common/frame_messages.h ('K') | « content/test/test_render_frame_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698