Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(907)

Unified Diff: content/browser/web_contents/web_contents_impl_unittest.cc

Issue 2225343002: Navigation: move RestoreType and ReloadType into a separate file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [rebase] Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_impl_unittest.cc
diff --git a/content/browser/web_contents/web_contents_impl_unittest.cc b/content/browser/web_contents/web_contents_impl_unittest.cc
index 447c1c04b49f0ef25039b239ef229edc3ae51653..e33cc8095b7f2682af7ba9fa032ba311cd6e83ab 100644
--- a/content/browser/web_contents/web_contents_impl_unittest.cc
+++ b/content/browser/web_contents/web_contents_impl_unittest.cc
@@ -874,10 +874,7 @@ TEST_F(WebContentsImplTest, NavigateFromRestoredSitelessUrl) {
std::string(), browser_context());
new_entry->SetPageID(0);
entries.push_back(std::move(new_entry));
- controller().Restore(
- 0,
- NavigationController::RESTORE_LAST_SESSION_EXITED_CLEANLY,
- &entries);
+ controller().Restore(0, RestoreType::LAST_SESSION_EXITED_CLEANLY, &entries);
ASSERT_EQ(0u, entries.size());
ASSERT_EQ(1, controller().GetEntryCount());
@@ -924,10 +921,7 @@ TEST_F(WebContentsImplTest, NavigateFromRestoredRegularUrl) {
std::string(), browser_context());
new_entry->SetPageID(0);
entries.push_back(std::move(new_entry));
- controller().Restore(
- 0,
- NavigationController::RESTORE_LAST_SESSION_EXITED_CLEANLY,
- &entries);
+ controller().Restore(0, RestoreType::LAST_SESSION_EXITED_CLEANLY, &entries);
ASSERT_EQ(0u, entries.size());
ASSERT_EQ(1, controller().GetEntryCount());
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/browser/web_contents/web_contents_view_aura_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698