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

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

Issue 11054025: [Sync] Add HTTP status codes to NavigationEntry and TabNavigation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase onto 11096037 Created 8 years, 2 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/navigation_controller_impl_unittest.cc
diff --git a/content/browser/web_contents/navigation_controller_impl_unittest.cc b/content/browser/web_contents/navigation_controller_impl_unittest.cc
index 3d399e260e62f95735f2401ffbe95e483c4d8f05..01409b8d0d33078235dc9e8823ede30987e4bf2a 100644
--- a/content/browser/web_contents/navigation_controller_impl_unittest.cc
+++ b/content/browser/web_contents/navigation_controller_impl_unittest.cc
@@ -264,8 +264,10 @@ TEST_F(NavigationControllerTest, LoadURL) {
EXPECT_FALSE(controller.CanGoForward());
EXPECT_EQ(contents()->GetMaxPageID(), -1);
- // The timestamp should not have been set yet.
+ // Neither the timestamp nor the status code should have been set
+ // yet.
EXPECT_TRUE(controller.GetPendingEntry()->GetTimestamp().is_null());
+ EXPECT_EQ(0, controller.GetPendingEntry()->GetHttpStatusCode());
// We should have gotten no notifications from the preceeding checks.
EXPECT_EQ(0U, notifications.size());
@@ -329,6 +331,7 @@ TEST_F(NavigationControllerTest, LoadURL) {
EXPECT_EQ(contents()->GetMaxPageID(), 1);
EXPECT_FALSE(controller.GetActiveEntry()->GetTimestamp().is_null());
+ EXPECT_EQ(200, controller.GetActiveEntry()->GetHttpStatusCode());
}
namespace {
« no previous file with comments | « content/browser/web_contents/navigation_controller_impl.cc ('k') | content/browser/web_contents/navigation_entry_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698