Index: content/browser/renderer_host/test_render_view_host.cc |
diff --git a/content/browser/renderer_host/test_render_view_host.cc b/content/browser/renderer_host/test_render_view_host.cc |
index 12422e96327808f68b0ef668bb1a426d8fdfc9de..7545a74af77bc44dcc5a61851aec2890d6665b6f 100644 |
--- a/content/browser/renderer_host/test_render_view_host.cc |
+++ b/content/browser/renderer_host/test_render_view_host.cc |
@@ -263,7 +263,19 @@ void TestRenderViewHost::SendNavigate(int page_id, const GURL& url) { |
void TestRenderViewHost::SendNavigateWithTransition( |
int page_id, const GURL& url, PageTransition transition) { |
OnMsgDidStartProvisionalLoadForFrame(0, true, GURL(), url); |
+ SendNavigateWithParameters(page_id, url, transition, url); |
+} |
+ |
+void TestRenderViewHost::SendNavigateWithOriginalRequestURL( |
+ int page_id, const GURL& url, const GURL& original_request_url) { |
+ OnMsgDidStartProvisionalLoadForFrame(0, true, GURL(), url); |
+ SendNavigateWithParameters(page_id, url, PAGE_TRANSITION_LINK, |
+ original_request_url); |
+} |
+void TestRenderViewHost::SendNavigateWithParameters( |
+ int page_id, const GURL& url, PageTransition transition, |
+ const GURL& original_request_url) { |
ViewHostMsg_FrameNavigate_Params params; |
params.page_id = page_id; |
@@ -286,6 +298,7 @@ void TestRenderViewHost::SendNavigateWithTransition( |
params.socket_address.set_port(80); |
params.was_fetched_via_proxy = simulate_fetch_via_proxy_; |
params.content_state = webkit_glue::CreateHistoryStateForURL(GURL(url)); |
+ params.original_request_url = original_request_url; |
ViewHostMsg_FrameNavigate msg(1, params); |
OnMsgNavigate(msg); |