| Index: content/browser/frame_host/navigator_impl_unittest.cc
|
| diff --git a/content/browser/frame_host/navigator_impl_unittest.cc b/content/browser/frame_host/navigator_impl_unittest.cc
|
| index 33d23ab550b07544f4e3e213fa11b20813c5cd84..4559ee4aaefa352f6b7bb402ca7f248bd5015bb6 100644
|
| --- a/content/browser/frame_host/navigator_impl_unittest.cc
|
| +++ b/content/browser/frame_host/navigator_impl_unittest.cc
|
| @@ -14,6 +14,7 @@
|
| #include "content/browser/frame_host/render_frame_host_manager.h"
|
| #include "content/browser/site_instance_impl.h"
|
| #include "content/browser/streams/stream.h"
|
| +#include "content/common/frame_messages.h"
|
| #include "content/common/navigation_params.h"
|
| #include "content/public/browser/stream_handle.h"
|
| #include "content/public/common/content_switches.h"
|
| @@ -453,13 +454,13 @@ TEST_F(NavigatorTestWithBrowserSideNavigation, Reload) {
|
| SendRequestNavigationWithParameters(
|
| node, kUrl, Referrer(), ui::PAGE_TRANSITION_LINK,
|
| NavigationController::RELOAD);
|
| - main_test_rfh()->SendBeginNavigationWithURL(kUrl);
|
| // A NavigationRequest should have been generated.
|
| NavigationRequest* main_request =
|
| GetNavigationRequestForFrameTreeNode(node);
|
| ASSERT_TRUE(main_request != NULL);
|
| EXPECT_EQ(FrameMsg_Navigate_Type::RELOAD,
|
| main_request->common_params().navigation_type);
|
| + main_test_rfh()->PrepareForCommit(kUrl);
|
| EXPECT_FALSE(GetSpeculativeRenderFrameHost(node));
|
|
|
| main_test_rfh()->SendNavigate(0, kUrl);
|
| @@ -469,12 +470,12 @@ TEST_F(NavigatorTestWithBrowserSideNavigation, Reload) {
|
| SendRequestNavigationWithParameters(
|
| node, kUrl, Referrer(), ui::PAGE_TRANSITION_LINK,
|
| NavigationController::RELOAD_IGNORING_CACHE);
|
| - main_test_rfh()->SendBeginNavigationWithURL(kUrl);
|
| // A NavigationRequest should have been generated.
|
| main_request = GetNavigationRequestForFrameTreeNode(node);
|
| ASSERT_TRUE(main_request != NULL);
|
| EXPECT_EQ(FrameMsg_Navigate_Type::RELOAD_IGNORING_CACHE,
|
| main_request->common_params().navigation_type);
|
| + main_test_rfh()->PrepareForCommit(kUrl);
|
| EXPECT_FALSE(GetSpeculativeRenderFrameHost(node));
|
| }
|
|
|
|
|