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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/string16.h" 5 #include "base/string16.h"
6 #include "base/string_util.h" 6 #include "base/string_util.h"
7 #include "chrome/browser/renderer_host/site_instance.h" 7 #include "chrome/browser/renderer_host/site_instance.h"
8 #include "chrome/browser/tab_contents/navigation_entry.h" 8 #include "chrome/browser/tab_contents/navigation_entry.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 entry2_.get()->set_transition_type(PageTransition::RELOAD); 167 entry2_.get()->set_transition_type(PageTransition::RELOAD);
168 EXPECT_EQ(PageTransition::RELOAD, entry2_.get()->transition_type()); 168 EXPECT_EQ(PageTransition::RELOAD, entry2_.get()->transition_type());
169 169
170 // Post Data 170 // Post Data
171 EXPECT_FALSE(entry1_.get()->has_post_data()); 171 EXPECT_FALSE(entry1_.get()->has_post_data());
172 EXPECT_FALSE(entry2_.get()->has_post_data()); 172 EXPECT_FALSE(entry2_.get()->has_post_data());
173 entry2_.get()->set_has_post_data(true); 173 entry2_.get()->set_has_post_data(true);
174 EXPECT_TRUE(entry2_.get()->has_post_data()); 174 EXPECT_TRUE(entry2_.get()->has_post_data());
175 175
176 // Restored 176 // Restored
177 EXPECT_FALSE(entry1_.get()->restored()); 177 EXPECT_EQ(NavigationEntry::RESTORE_NONE, entry1_->restore_type());
178 EXPECT_FALSE(entry2_.get()->restored()); 178 EXPECT_EQ(NavigationEntry::RESTORE_NONE, entry2_->restore_type());
179 entry2_.get()->set_restored(true); 179 entry2_->set_restore_type(NavigationEntry::RESTORE_LAST_SESSION);
180 EXPECT_TRUE(entry2_.get()->restored()); 180 EXPECT_EQ(NavigationEntry::RESTORE_LAST_SESSION, entry2_->restore_type());
181 } 181 }
OLDNEW
« 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