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

Unified Diff: components/sessions/core/serialized_navigation_entry_test_helper.cc

Issue 2310363002: Persist offline page info in a navigation entry if needed (Closed)
Patch Set: Add extended info support Created 4 years, 3 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: components/sessions/core/serialized_navigation_entry_test_helper.cc
diff --git a/components/sessions/core/serialized_navigation_entry_test_helper.cc b/components/sessions/core/serialized_navigation_entry_test_helper.cc
index a47c870684115d4b6c0271de330594abad9e3324..f090d67a112a770075be3c98e1ebcce25ef77f5a 100644
--- a/components/sessions/core/serialized_navigation_entry_test_helper.cc
+++ b/components/sessions/core/serialized_navigation_entry_test_helper.cc
@@ -41,6 +41,10 @@ const GURL kOtherURL = GURL("http://other.com");
const int kPageID = 10;
const SerializedNavigationEntry::PasswordState kPasswordState =
SerializedNavigationEntry::HAS_PASSWORD_FIELD;
+const std::string kExtendedInfoKey1 = "key 1";
+const std::string kExtendedInfoKey2 = "key 2";
+const std::string kExtendedInfoValue1 = "value 1";
+const std::string kExtendedInfoValue2 = "value 2";
} // namespace test_data
@@ -98,6 +102,11 @@ SerializedNavigationEntryTestHelper::CreateNavigationForTest() {
navigation.http_status_code_ = test_data::kHttpStatusCode;
navigation.password_state_ = test_data::kPasswordState;
+ navigation.extended_info_map_[test_data::kExtendedInfoKey1] =
+ test_data::kExtendedInfoValue1;
+ navigation.extended_info_map_[test_data::kExtendedInfoKey2] =
+ test_data::kExtendedInfoValue2;
+
navigation.redirect_chain_.push_back(test_data::kRedirectURL0);
navigation.redirect_chain_.push_back(test_data::kRedirectURL1);
navigation.redirect_chain_.push_back(test_data::kVirtualURL);

Powered by Google App Engine
This is Rietveld 408576698