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

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: Update 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..da6c5d9c1513770a1c5de91d1928d34e93d3bd52 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,13 @@ SerializedNavigationEntryTestHelper::CreateNavigationForTest() {
navigation.http_status_code_ = test_data::kHttpStatusCode;
navigation.password_state_ = test_data::kPasswordState;
+#if !defined(OS_IOS)
+ navigation.extended_info_map_[test_data::kExtendedInfoKey1] =
+ test_data::kExtendedInfoValue1;
+ navigation.extended_info_map_[test_data::kExtendedInfoKey2] =
+ test_data::kExtendedInfoValue2;
+#endif // !defined(OS_IOS)
+
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