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

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: Fix 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..eaf3237ef4700b993e8a27659a7f665eb6c327aa 100644
--- a/components/sessions/core/serialized_navigation_entry_test_helper.cc
+++ b/components/sessions/core/serialized_navigation_entry_test_helper.cc
@@ -41,6 +41,7 @@ const GURL kOtherURL = GURL("http://other.com");
const int kPageID = 10;
const SerializedNavigationEntry::PasswordState kPasswordState =
SerializedNavigationEntry::HAS_PASSWORD_FIELD;
+const std::string kOfflinePageInfo = "persist=1 reason=download";
} // namespace test_data
@@ -97,6 +98,7 @@ SerializedNavigationEntryTestHelper::CreateNavigationForTest() {
navigation.favicon_url_ = test_data::kFaviconURL;
navigation.http_status_code_ = test_data::kHttpStatusCode;
navigation.password_state_ = test_data::kPasswordState;
+ navigation.offline_page_info_ = test_data::kOfflinePageInfo;
navigation.redirect_chain_.push_back(test_data::kRedirectURL0);
navigation.redirect_chain_.push_back(test_data::kRedirectURL1);

Powered by Google App Engine
This is Rietveld 408576698