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

Unified Diff: components/sessions/serialized_navigation_entry_test_helper.cc

Issue 14985014: Introduce content::PageState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments to the top of page_state.h Created 7 years, 7 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/serialized_navigation_entry_test_helper.cc
diff --git a/components/sessions/serialized_navigation_entry_test_helper.cc b/components/sessions/serialized_navigation_entry_test_helper.cc
index 0c26e463168183a24fb206b6df9e4ebcc373112d..b1e2c00c1c7633cc4f4fedd93acf3346283ebbea 100644
--- a/components/sessions/serialized_navigation_entry_test_helper.cc
+++ b/components/sessions/serialized_navigation_entry_test_helper.cc
@@ -21,7 +21,7 @@ void SerializedNavigationEntryTestHelper::ExpectNavigationEquals(
EXPECT_EQ(expected.referrer_.policy, actual.referrer_.policy);
EXPECT_EQ(expected.virtual_url_, actual.virtual_url_);
EXPECT_EQ(expected.title_, actual.title_);
- EXPECT_EQ(expected.content_state_, actual.content_state_);
+ EXPECT_EQ(expected.page_state_, actual.page_state_);
EXPECT_EQ(expected.transition_type_, actual.transition_type_);
EXPECT_EQ(expected.has_post_data_, actual.has_post_data_);
EXPECT_EQ(expected.original_request_url_, actual.original_request_url_);
@@ -40,16 +40,17 @@ SerializedNavigationEntry SerializedNavigationEntryTestHelper::CreateNavigation(
WebKit::WebReferrerPolicyDefault);
navigation.virtual_url_ = GURL(virtual_url);
navigation.title_ = UTF8ToUTF16(title);
- navigation.content_state_ = "fake_state";
+ navigation.page_state_ =
+ content::PageState::CreateFromEncodedData("fake_state");
navigation.timestamp_ = base::Time::Now();
return navigation;
}
// static
-void SerializedNavigationEntryTestHelper::SetContentState(
- const std::string& content_state,
+void SerializedNavigationEntryTestHelper::SetPageState(
+ const content::PageState& page_state,
SerializedNavigationEntry* navigation) {
- navigation->content_state_ = content_state;
+ navigation->page_state_ = page_state;
}
// static

Powered by Google App Engine
This is Rietveld 408576698