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

Unified Diff: chrome/browser/sessions/session_types_test_helper.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: chrome/browser/sessions/session_types_test_helper.cc
diff --git a/chrome/browser/sessions/session_types_test_helper.cc b/chrome/browser/sessions/session_types_test_helper.cc
index f735ab7ea91c6ada05fdef375c844c5ada0d9525..cae80db1a9318828e1fb744a245139b0dc368450 100644
--- a/chrome/browser/sessions/session_types_test_helper.cc
+++ b/chrome/browser/sessions/session_types_test_helper.cc
@@ -37,6 +37,7 @@ TabNavigation SessionTypesTestHelper::CreateNavigation(
navigation.title_ = UTF8ToUTF16(title);
navigation.content_state_ = "fake_state";
navigation.timestamp_ = base::Time::Now();
+ navigation.http_status_code_ = 200;
return navigation;
}
@@ -71,6 +72,10 @@ bool SessionTypesTestHelper::GetIsOverridingUserAgent(
base::Time SessionTypesTestHelper::GetTimestamp(
const TabNavigation& navigation) {
return navigation.timestamp_;
+
+int SessionTypesTestHelper::GetHttpStatusCode(
+ const TabNavigation& navigation) {
+ return navigation.http_status_code_;
}
void SessionTypesTestHelper::SetContentState(
« no previous file with comments | « chrome/browser/sessions/session_types_test_helper.h ('k') | chrome/browser/sessions/session_types_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698