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 b01157bf13be2272044ab388e6344253a3bf35f3..bac5d3b577133490561270f964cd0a7ce8c56e7b 100644 |
--- a/content/browser/frame_host/navigation_controller_impl_unittest.cc |
+++ b/content/browser/frame_host/navigation_controller_impl_unittest.cc |
@@ -211,9 +211,8 @@ class NavigationControllerTest |
} |
// WebContentsObserver: |
- void DidStartNavigationToPendingEntry( |
- const GURL& url, |
- NavigationController::ReloadType reload_type) override { |
+ void DidStartNavigationToPendingEntry(const GURL& url, |
+ ReloadType reload_type) override { |
navigated_url_ = url; |
} |
@@ -3004,16 +3003,13 @@ TEST_F(NavigationControllerTest, RestoreNavigate) { |
std::unique_ptr<WebContentsImpl> our_contents(static_cast<WebContentsImpl*>( |
WebContents::Create(WebContents::CreateParams(browser_context())))); |
NavigationControllerImpl& our_controller = our_contents->GetController(); |
- our_controller.Restore( |
- 0, |
- NavigationController::RESTORE_LAST_SESSION_EXITED_CLEANLY, |
- &entries); |
+ our_controller.Restore(0, RestoreType::LAST_SESSION_EXITED_CLEANLY, &entries); |
ASSERT_EQ(0u, entries.size()); |
// Before navigating to the restored entry, it should have a restore_type |
// and no SiteInstance. |
ASSERT_EQ(1, our_controller.GetEntryCount()); |
- EXPECT_EQ(NavigationEntryImpl::RESTORE_LAST_SESSION_EXITED_CLEANLY, |
+ EXPECT_EQ(RestoreType::LAST_SESSION_EXITED_CLEANLY, |
our_controller.GetEntryAtIndex(0)->restore_type()); |
EXPECT_FALSE(our_controller.GetEntryAtIndex(0)->site_instance()); |
@@ -3052,7 +3048,7 @@ TEST_F(NavigationControllerTest, RestoreNavigate) { |
EXPECT_EQ( |
url, |
our_controller.GetLastCommittedEntry()->site_instance()->GetSiteURL()); |
- EXPECT_EQ(NavigationEntryImpl::RESTORE_NONE, |
+ EXPECT_EQ(RestoreType::NONE, |
our_controller.GetEntryAtIndex(0)->restore_type()); |
// Timestamp should have been updated. |
@@ -3076,8 +3072,7 @@ TEST_F(NavigationControllerTest, RestoreNavigateAfterFailure) { |
std::unique_ptr<WebContentsImpl> our_contents(static_cast<WebContentsImpl*>( |
WebContents::Create(WebContents::CreateParams(browser_context())))); |
NavigationControllerImpl& our_controller = our_contents->GetController(); |
- our_controller.Restore( |
- 0, NavigationController::RESTORE_LAST_SESSION_EXITED_CLEANLY, &entries); |
+ our_controller.Restore(0, RestoreType::LAST_SESSION_EXITED_CLEANLY, &entries); |
ASSERT_EQ(0u, entries.size()); |
// Ensure the RenderFrame is initialized before simulating events coming from |
@@ -3087,7 +3082,7 @@ TEST_F(NavigationControllerTest, RestoreNavigateAfterFailure) { |
// Before navigating to the restored entry, it should have a restore_type |
// and no SiteInstance. |
NavigationEntry* entry = our_controller.GetEntryAtIndex(0); |
- EXPECT_EQ(NavigationEntryImpl::RESTORE_LAST_SESSION_EXITED_CLEANLY, |
+ EXPECT_EQ(RestoreType::LAST_SESSION_EXITED_CLEANLY, |
our_controller.GetEntryAtIndex(0)->restore_type()); |
EXPECT_FALSE(our_controller.GetEntryAtIndex(0)->site_instance()); |
@@ -3133,7 +3128,7 @@ TEST_F(NavigationControllerTest, RestoreNavigateAfterFailure) { |
EXPECT_EQ( |
url, |
our_controller.GetLastCommittedEntry()->site_instance()->GetSiteURL()); |
- EXPECT_EQ(NavigationEntryImpl::RESTORE_NONE, |
+ EXPECT_EQ(RestoreType::NONE, |
our_controller.GetEntryAtIndex(0)->restore_type()); |
} |
@@ -4656,10 +4651,8 @@ TEST_F(NavigationControllerTest, CopyRestoredStateAndNavigate) { |
static_cast<TestWebContents*>(CreateTestWebContents())); |
NavigationControllerImpl& source_controller = |
source_contents->GetController(); |
- source_controller.Restore( |
- entries.size() - 1, |
- NavigationController::RESTORE_LAST_SESSION_EXITED_CLEANLY, |
- &entries); |
+ source_controller.Restore(entries.size() - 1, |
+ RestoreType::LAST_SESSION_EXITED_CLEANLY, &entries); |
ASSERT_EQ(0u, entries.size()); |
source_controller.LoadIfNecessary(); |
source_contents->CommitPendingNavigation(); |