Chromium Code Reviews| Index: content/browser/frame_host/navigation_controller_impl_unittest.cc |
| diff --git a/content/browser/frame_host/navigation_controller_impl_unittest.cc b/content/browser/frame_host/navigation_controller_impl_unittest.cc |
| index d50994083b71e60041a080173b033964469a0011..a5082e4756186768bd2927d65ac1f34e7ebb0584 100644 |
| --- a/content/browser/frame_host/navigation_controller_impl_unittest.cc |
| +++ b/content/browser/frame_host/navigation_controller_impl_unittest.cc |
| @@ -2793,15 +2793,11 @@ TEST_F(NavigationControllerTest, RestoreNavigate) { |
| EXPECT_FALSE(our_controller.GetEntryAtIndex(0)->site_instance()); |
| // After navigating, we should have one entry, and it should be "pending". |
| - // It should now have a SiteInstance and no restore_type. |
| our_controller.GoToIndex(0); |
| EXPECT_EQ(1, our_controller.GetEntryCount()); |
| EXPECT_EQ(our_controller.GetEntryAtIndex(0), |
| our_controller.GetPendingEntry()); |
| EXPECT_EQ(0, our_controller.GetEntryAtIndex(0)->GetPageID()); |
| - EXPECT_EQ(NavigationEntryImpl::RESTORE_NONE, |
| - our_controller.GetEntryAtIndex(0)->restore_type()); |
|
Charlie Reis
2015/07/29 23:58:27
We still need this to be set to RESTORE_NONE at so
Fabrice (no longer in Chrome)
2015/07/30 15:59:26
I'm removing the check here, and restoring the che
|
| - EXPECT_TRUE(our_controller.GetEntryAtIndex(0)->site_instance()); |
| // Timestamp should remain the same before the navigation finishes. |
| EXPECT_EQ(timestamp, our_controller.GetEntryAtIndex(0)->GetTimestamp()); |
| @@ -2830,8 +2826,6 @@ TEST_F(NavigationControllerTest, RestoreNavigate) { |
| EXPECT_EQ( |
| url, |
| our_controller.GetLastCommittedEntry()->site_instance()->GetSiteURL()); |
| - EXPECT_EQ(NavigationEntryImpl::RESTORE_NONE, |
| - our_controller.GetEntryAtIndex(0)->restore_type()); |
|
Charlie Reis
2015/07/29 23:58:27
We definitely need this check.
Fabrice (no longer in Chrome)
2015/07/30 15:59:26
Yes, sorry. Done.
|
| // Timestamp should have been updated. |
| EXPECT_GE(our_controller.GetEntryAtIndex(0)->GetTimestamp(), timestamp); |
| @@ -2870,15 +2864,11 @@ TEST_F(NavigationControllerTest, RestoreNavigateAfterFailure) { |
| EXPECT_FALSE(our_controller.GetEntryAtIndex(0)->site_instance()); |
| // After navigating, we should have one entry, and it should be "pending". |
| - // It should now have a SiteInstance and no restore_type. |
| our_controller.GoToIndex(0); |
| EXPECT_EQ(1, our_controller.GetEntryCount()); |
| EXPECT_EQ(our_controller.GetEntryAtIndex(0), |
| our_controller.GetPendingEntry()); |
| EXPECT_EQ(0, our_controller.GetEntryAtIndex(0)->GetPageID()); |
| - EXPECT_EQ(NavigationEntryImpl::RESTORE_NONE, |
| - our_controller.GetEntryAtIndex(0)->restore_type()); |
| - EXPECT_TRUE(our_controller.GetEntryAtIndex(0)->site_instance()); |
| // This pending navigation may have caused a different navigation to fail, |
| // which causes the pending entry to be cleared. |
| @@ -2914,8 +2904,6 @@ TEST_F(NavigationControllerTest, RestoreNavigateAfterFailure) { |
| EXPECT_EQ( |
| url, |
| our_controller.GetLastCommittedEntry()->site_instance()->GetSiteURL()); |
| - EXPECT_EQ(NavigationEntryImpl::RESTORE_NONE, |
| - our_controller.GetEntryAtIndex(0)->restore_type()); |
| } |
| // Make sure that the page type and stuff is correct after an interstitial. |