| Index: chrome/browser/android/offline_pages/offline_page_tab_helper_unittest.cc
|
| diff --git a/chrome/browser/android/offline_pages/offline_page_tab_helper_unittest.cc b/chrome/browser/android/offline_pages/offline_page_tab_helper_unittest.cc
|
| index 3501f0edb254c6618772d783554ab72f2d4db786..1cb58a3d3d1686ee50377f69b3790700e8986fe7 100644
|
| --- a/chrome/browser/android/offline_pages/offline_page_tab_helper_unittest.cc
|
| +++ b/chrome/browser/android/offline_pages/offline_page_tab_helper_unittest.cc
|
| @@ -133,13 +133,17 @@ void OfflinePageTabHelperTest::StartLoad(const GURL& url) {
|
|
|
| void OfflinePageTabHelperTest::CommitLoad(const GURL& url) {
|
| int entry_id = controller().GetPendingEntry()->GetUniqueID();
|
| - content::RenderFrameHostTester::For(main_rfh())->SendNavigate(
|
| - 0, entry_id, true, url);
|
| + content::RenderFrameHostTester::For(main_rfh())
|
| + ->SendNavigate(0, entry_id, true, url);
|
| }
|
|
|
| void OfflinePageTabHelperTest::FailLoad(const GURL& url) {
|
| - content::RenderFrameHostTester::For(main_rfh())->SimulateNavigationError(
|
| - url, net::ERR_INTERNET_DISCONNECTED);
|
| + content::RenderFrameHostTester::For(main_rfh())->SimulateNavigationStart(url);
|
| + // Set up the error code for the failed navigation.
|
| + content::RenderFrameHostTester::For(main_rfh())->
|
| + SimulateNavigationError(url, net::ERR_INTERNET_DISCONNECTED);
|
| + content::RenderFrameHostTester::For(main_rfh())->
|
| + SimulateNavigationErrorPageCommit();
|
| // Gives a chance to run delayed task to do redirection.
|
| RunUntilIdle();
|
| }
|
|
|