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

Unified Diff: chrome/browser/tab_contents/navigation_entry_unittest.cc

Issue 341043: Changes session restore to use a normal load rather than preferring... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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: chrome/browser/tab_contents/navigation_entry_unittest.cc
===================================================================
--- chrome/browser/tab_contents/navigation_entry_unittest.cc (revision 30525)
+++ chrome/browser/tab_contents/navigation_entry_unittest.cc (working copy)
@@ -174,8 +174,8 @@
EXPECT_TRUE(entry2_.get()->has_post_data());
// Restored
- EXPECT_FALSE(entry1_.get()->restored());
- EXPECT_FALSE(entry2_.get()->restored());
- entry2_.get()->set_restored(true);
- EXPECT_TRUE(entry2_.get()->restored());
+ EXPECT_EQ(NavigationEntry::RESTORE_NONE, entry1_->restore_type());
+ EXPECT_EQ(NavigationEntry::RESTORE_NONE, entry2_->restore_type());
+ entry2_->set_restore_type(NavigationEntry::RESTORE_LAST_SESSION);
+ EXPECT_EQ(NavigationEntry::RESTORE_LAST_SESSION, entry2_->restore_type());
}
« no previous file with comments | « chrome/browser/tab_contents/navigation_entry.cc ('k') | chrome/browser/tab_contents/render_view_host_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698