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 02cd3752ecb696ec8ad6a94c8dc998905338cbbc..947bb1929a08492d4680718c57ed1b993ce02016 100644 |
--- a/content/browser/web_contents/navigation_controller_impl_unittest.cc |
+++ b/content/browser/web_contents/navigation_controller_impl_unittest.cc |
@@ -205,8 +205,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()); |
@@ -270,6 +272,7 @@ TEST_F(NavigationControllerTest, LoadURL) { |
EXPECT_EQ(contents()->GetMaxPageID(), 1); |
EXPECT_FALSE(controller.GetActiveEntry()->GetTimestamp().is_null()); |
+ EXPECT_EQ(200, controller.GetActiveEntry()->GetHttpStatusCode()); |
} |
void CheckNavigationEntryMatchLoadParams( |