| Index: content/renderer/render_view_browsertest.cc
|
| diff --git a/content/renderer/render_view_browsertest.cc b/content/renderer/render_view_browsertest.cc
|
| index 78a950be4d11242fd11802cc3b2fdd205c73c109..086680712eda7daf044ae3b6ec0dc5ab0dfcd58a 100644
|
| --- a/content/renderer/render_view_browsertest.cc
|
| +++ b/content/renderer/render_view_browsertest.cc
|
| @@ -439,11 +439,11 @@ TEST_F(RenderViewImplTest, DISABLED_OnNavStateChanged) {
|
| }
|
|
|
| TEST_F(RenderViewImplTest, OnNavigationHttpPost) {
|
| - ViewMsg_Navigate_Params nav_params;
|
| + FrameMsg_Navigate_Params nav_params;
|
|
|
| // An http url will trigger a resource load so cannot be used here.
|
| nav_params.url = GURL("data:text/html,<div>Page</div>");
|
| - nav_params.navigation_type = ViewMsg_Navigate_Type::NORMAL;
|
| + nav_params.navigation_type = FrameMsg_Navigate_Type::NORMAL;
|
| nav_params.transition = PAGE_TRANSITION_TYPED;
|
| nav_params.page_id = -1;
|
| nav_params.is_post = true;
|
| @@ -644,9 +644,9 @@ TEST_F(RenderViewImplTest, SendSwapOutACK) {
|
|
|
| // If we navigate back to this RenderView, ensure we don't send a state
|
| // update for the swapped out URL. (http://crbug.com/72235)
|
| - ViewMsg_Navigate_Params nav_params;
|
| + FrameMsg_Navigate_Params nav_params;
|
| nav_params.url = GURL("data:text/html,<div>Page B</div>");
|
| - nav_params.navigation_type = ViewMsg_Navigate_Type::NORMAL;
|
| + nav_params.navigation_type = FrameMsg_Navigate_Type::NORMAL;
|
| nav_params.transition = PAGE_TRANSITION_TYPED;
|
| nav_params.current_history_list_length = 1;
|
| nav_params.current_history_list_offset = 0;
|
| @@ -680,8 +680,8 @@ TEST_F(RenderViewImplTest, ReloadWhileSwappedOut) {
|
| render_thread_->sink().ClearMessages();
|
|
|
| // Back to page A (page_id 1) and commit.
|
| - ViewMsg_Navigate_Params params_A;
|
| - params_A.navigation_type = ViewMsg_Navigate_Type::NORMAL;
|
| + FrameMsg_Navigate_Params params_A;
|
| + params_A.navigation_type = FrameMsg_Navigate_Type::NORMAL;
|
| params_A.transition = PAGE_TRANSITION_FORWARD_BACK;
|
| params_A.current_history_list_length = 2;
|
| params_A.current_history_list_offset = 1;
|
| @@ -704,9 +704,9 @@ TEST_F(RenderViewImplTest, ReloadWhileSwappedOut) {
|
| // params.page_state of the initial page (e.g., if the new page fails the
|
| // provisional load in the renderer process, after we unload the old page).
|
| // Ensure the old page gets reloaded, not swappedout://.
|
| - ViewMsg_Navigate_Params nav_params;
|
| + FrameMsg_Navigate_Params nav_params;
|
| nav_params.url = GURL("data:text/html,<div>Page A</div>");
|
| - nav_params.navigation_type = ViewMsg_Navigate_Type::RELOAD;
|
| + nav_params.navigation_type = FrameMsg_Navigate_Type::RELOAD;
|
| nav_params.transition = PAGE_TRANSITION_RELOAD;
|
| nav_params.current_history_list_length = 2;
|
| nav_params.current_history_list_offset = 0;
|
| @@ -782,8 +782,8 @@ TEST_F(RenderViewImplTest, DISABLED_LastCommittedUpdateState) {
|
| render_thread_->sink().ClearMessages();
|
|
|
| // Go back to C and commit, preparing for our real test.
|
| - ViewMsg_Navigate_Params params_C;
|
| - params_C.navigation_type = ViewMsg_Navigate_Type::NORMAL;
|
| + FrameMsg_Navigate_Params params_C;
|
| + params_C.navigation_type = FrameMsg_Navigate_Type::NORMAL;
|
| params_C.transition = PAGE_TRANSITION_FORWARD_BACK;
|
| params_C.current_history_list_length = 4;
|
| params_C.current_history_list_offset = 3;
|
| @@ -799,8 +799,8 @@ TEST_F(RenderViewImplTest, DISABLED_LastCommittedUpdateState) {
|
| // the RenderView's page ID.
|
|
|
| // Back to page B (page_id 2), without committing.
|
| - ViewMsg_Navigate_Params params_B;
|
| - params_B.navigation_type = ViewMsg_Navigate_Type::NORMAL;
|
| + FrameMsg_Navigate_Params params_B;
|
| + params_B.navigation_type = FrameMsg_Navigate_Type::NORMAL;
|
| params_B.transition = PAGE_TRANSITION_FORWARD_BACK;
|
| params_B.current_history_list_length = 4;
|
| params_B.current_history_list_offset = 2;
|
| @@ -810,8 +810,8 @@ TEST_F(RenderViewImplTest, DISABLED_LastCommittedUpdateState) {
|
| view()->OnNavigate(params_B);
|
|
|
| // Back to page A (page_id 1) and commit.
|
| - ViewMsg_Navigate_Params params;
|
| - params.navigation_type = ViewMsg_Navigate_Type::NORMAL;
|
| + FrameMsg_Navigate_Params params;
|
| + params.navigation_type = FrameMsg_Navigate_Type::NORMAL;
|
| params.transition = PAGE_TRANSITION_FORWARD_BACK;
|
| params_B.current_history_list_length = 4;
|
| params_B.current_history_list_offset = 2;
|
| @@ -863,8 +863,8 @@ TEST_F(RenderViewImplTest, StaleNavigationsIgnored) {
|
| render_thread_->sink().ClearMessages();
|
|
|
| // Back to page A (page_id 1) and commit.
|
| - ViewMsg_Navigate_Params params_A;
|
| - params_A.navigation_type = ViewMsg_Navigate_Type::NORMAL;
|
| + FrameMsg_Navigate_Params params_A;
|
| + params_A.navigation_type = FrameMsg_Navigate_Type::NORMAL;
|
| params_A.transition = PAGE_TRANSITION_FORWARD_BACK;
|
| params_A.current_history_list_length = 2;
|
| params_A.current_history_list_offset = 1;
|
| @@ -881,8 +881,8 @@ TEST_F(RenderViewImplTest, StaleNavigationsIgnored) {
|
| EXPECT_EQ(3, view()->history_page_ids_[1]);
|
|
|
| // The browser then sends a stale navigation to B, which should be ignored.
|
| - ViewMsg_Navigate_Params params_B;
|
| - params_B.navigation_type = ViewMsg_Navigate_Type::NORMAL;
|
| + FrameMsg_Navigate_Params params_B;
|
| + params_B.navigation_type = FrameMsg_Navigate_Type::NORMAL;
|
| params_B.transition = PAGE_TRANSITION_FORWARD_BACK;
|
| params_B.current_history_list_length = 2;
|
| params_B.current_history_list_offset = 0;
|
| @@ -947,8 +947,8 @@ TEST_F(RenderViewImplTest, DontIgnoreBackAfterNavEntryLimit) {
|
| // Suppose the browser has limited the number of NavigationEntries to 2.
|
| // It has now dropped the first entry, but the renderer isn't notified.
|
| // Ensure that going back to page B (page_id 2) at offset 0 is successful.
|
| - ViewMsg_Navigate_Params params_B;
|
| - params_B.navigation_type = ViewMsg_Navigate_Type::NORMAL;
|
| + FrameMsg_Navigate_Params params_B;
|
| + params_B.navigation_type = FrameMsg_Navigate_Type::NORMAL;
|
| params_B.transition = PAGE_TRANSITION_FORWARD_BACK;
|
| params_B.current_history_list_length = 2;
|
| params_B.current_history_list_offset = 1;
|
| @@ -1666,9 +1666,9 @@ TEST_F(RenderViewImplTest, DISABLED_DidFailProvisionalLoadWithErrorForError) {
|
|
|
| // Start a load that will reach provisional state synchronously,
|
| // but won't complete synchronously.
|
| - ViewMsg_Navigate_Params params;
|
| + FrameMsg_Navigate_Params params;
|
| params.page_id = -1;
|
| - params.navigation_type = ViewMsg_Navigate_Type::NORMAL;
|
| + params.navigation_type = FrameMsg_Navigate_Type::NORMAL;
|
| params.url = GURL("data:text/html,test data");
|
| view()->OnNavigate(params);
|
|
|
| @@ -1688,9 +1688,9 @@ TEST_F(RenderViewImplTest, DidFailProvisionalLoadWithErrorForCancellation) {
|
|
|
| // Start a load that will reach provisional state synchronously,
|
| // but won't complete synchronously.
|
| - ViewMsg_Navigate_Params params;
|
| + FrameMsg_Navigate_Params params;
|
| params.page_id = -1;
|
| - params.navigation_type = ViewMsg_Navigate_Type::NORMAL;
|
| + params.navigation_type = FrameMsg_Navigate_Type::NORMAL;
|
| params.url = GURL("data:text/html,test data");
|
| view()->OnNavigate(params);
|
|
|
| @@ -2021,9 +2021,9 @@ TEST_F(RenderViewImplTest, ZoomLimit) {
|
| const double kMinZoomLevel = ZoomFactorToZoomLevel(kMinimumZoomFactor);
|
| const double kMaxZoomLevel = ZoomFactorToZoomLevel(kMaximumZoomFactor);
|
|
|
| - ViewMsg_Navigate_Params params;
|
| + FrameMsg_Navigate_Params params;
|
| params.page_id = -1;
|
| - params.navigation_type = ViewMsg_Navigate_Type::NORMAL;
|
| + params.navigation_type = FrameMsg_Navigate_Type::NORMAL;
|
|
|
| // Verifies navigation to a URL with preset zoom level indeed sets the level.
|
| // Regression test for http://crbug.com/139559, where the level was not
|
| @@ -2099,9 +2099,9 @@ TEST_F(RenderViewImplTest, NavigateFrame) {
|
| LoadHTML("hello <iframe srcdoc='fail' name='frame'></iframe>");
|
|
|
| // Navigate the frame only.
|
| - ViewMsg_Navigate_Params nav_params;
|
| + FrameMsg_Navigate_Params nav_params;
|
| nav_params.url = GURL("data:text/html,world");
|
| - nav_params.navigation_type = ViewMsg_Navigate_Type::NORMAL;
|
| + nav_params.navigation_type = FrameMsg_Navigate_Type::NORMAL;
|
| nav_params.transition = PAGE_TRANSITION_TYPED;
|
| nav_params.current_history_list_length = 1;
|
| nav_params.current_history_list_offset = 0;
|
| @@ -2221,9 +2221,9 @@ TEST_F(SuppressErrorPageTest, MAYBE_Suppresses) {
|
|
|
| // Start a load that will reach provisional state synchronously,
|
| // but won't complete synchronously.
|
| - ViewMsg_Navigate_Params params;
|
| + FrameMsg_Navigate_Params params;
|
| params.page_id = -1;
|
| - params.navigation_type = ViewMsg_Navigate_Type::NORMAL;
|
| + params.navigation_type = FrameMsg_Navigate_Type::NORMAL;
|
| params.url = GURL("data:text/html,test data");
|
| view()->OnNavigate(params);
|
|
|
| @@ -2249,9 +2249,9 @@ TEST_F(SuppressErrorPageTest, MAYBE_DoesNotSuppress) {
|
|
|
| // Start a load that will reach provisional state synchronously,
|
| // but won't complete synchronously.
|
| - ViewMsg_Navigate_Params params;
|
| + FrameMsg_Navigate_Params params;
|
| params.page_id = -1;
|
| - params.navigation_type = ViewMsg_Navigate_Type::NORMAL;
|
| + params.navigation_type = FrameMsg_Navigate_Type::NORMAL;
|
| params.url = GURL("data:text/html,test data");
|
| view()->OnNavigate(params);
|
|
|
|
|