| Index: content/test/test_render_view_host.h
|
| diff --git a/content/test/test_render_view_host.h b/content/test/test_render_view_host.h
|
| index 34ba8f63348e60857137f89e4146228b89f040cf..4a07fe0612323669f48ad65919c9e572d0ae9ff7 100644
|
| --- a/content/test/test_render_view_host.h
|
| +++ b/content/test/test_render_view_host.h
|
| @@ -26,7 +26,7 @@
|
| //
|
| // To use, derive your test base class from RenderViewHostImplTestHarness.
|
|
|
| -struct ViewHostMsg_FrameNavigate_Params;
|
| +struct FrameHostMsg_DidCommitProvisionalLoad_Params;
|
|
|
| namespace gfx {
|
| class Rect;
|
| @@ -40,7 +40,7 @@ class TestWebContents;
|
|
|
| // Utility function to initialize ViewHostMsg_NavigateParams_Params
|
| // with given |page_id|, |url| and |transition_type|.
|
| -void InitNavigateParams(ViewHostMsg_FrameNavigate_Params* params,
|
| +void InitNavigateParams(FrameHostMsg_DidCommitProvisionalLoad_Params* params,
|
| int page_id,
|
| const GURL& url,
|
| PageTransition transition_type);
|
| @@ -237,16 +237,19 @@ class TestRenderViewHost
|
| // RenderViewHostTester implementation. Note that CreateRenderView
|
| // is not specified since it is synonymous with the one from
|
| // RenderViewHostImpl, see below.
|
| - virtual void SendNavigate(int page_id, const GURL& url) OVERRIDE;
|
| - virtual void SendFailedNavigate(int page_id, const GURL& url) OVERRIDE;
|
| - virtual void SendNavigateWithTransition(int page_id, const GURL& url,
|
| - PageTransition transition) OVERRIDE;
|
| virtual void SendShouldCloseACK(bool proceed) OVERRIDE;
|
| virtual void SetContentsMimeType(const std::string& mime_type) OVERRIDE;
|
| virtual void SimulateSwapOutACK() OVERRIDE;
|
| virtual void SimulateWasHidden() OVERRIDE;
|
| virtual void SimulateWasShown() OVERRIDE;
|
|
|
| + // NOTE: These methods are deprecated and the equivalents in
|
| + // TestRenderFrameHost should be used.
|
| + virtual void SendNavigate(int page_id, const GURL& url) OVERRIDE;
|
| + virtual void SendFailedNavigate(int page_id, const GURL& url) OVERRIDE;
|
| + virtual void SendNavigateWithTransition(int page_id, const GURL& url,
|
| + PageTransition transition) OVERRIDE;
|
| +
|
| // Calls OnNavigate on the RenderViewHost with the given information,
|
| // including a custom original request URL. Sets the rest of the
|
| // parameters in the message to the "typical" values. This is a helper
|
| @@ -257,7 +260,8 @@ class TestRenderViewHost
|
| void SendNavigateWithFile(
|
| int page_id, const GURL& url, const base::FilePath& file_path);
|
|
|
| - void SendNavigateWithParams(ViewHostMsg_FrameNavigate_Params* params);
|
| + void SendNavigateWithParams(
|
| + FrameHostMsg_DidCommitProvisionalLoad_Params* params);
|
|
|
| void TestOnUpdateStateWithFile(
|
| int process_id, const base::FilePath& file_path);
|
| @@ -300,7 +304,8 @@ class TestRenderViewHost
|
| void set_simulate_fetch_via_proxy(bool proxy);
|
|
|
| // If set, navigations will appear to have cleared the history list in the
|
| - // RenderView (ViewHostMsg_FrameNavigate_Params::history_list_was_cleared).
|
| + // RenderView
|
| + // (FrameHostMsg_DidCommitProvisionalLoad_Params::history_list_was_cleared).
|
| // False by default.
|
| void set_simulate_history_list_was_cleared(bool cleared);
|
|
|
|
|