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

Unified Diff: components/sessions/serialized_navigation_entry_unittest.cc

Issue 128193002: Include the referrer policy in sync'd tab navigations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
« no previous file with comments | « components/sessions/serialized_navigation_entry.cc ('k') | sync/protocol/proto_value_conversions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sessions/serialized_navigation_entry_unittest.cc
diff --git a/components/sessions/serialized_navigation_entry_unittest.cc b/components/sessions/serialized_navigation_entry_unittest.cc
index 2f535cb1e54aced5efff59856cf9413a44e3b4b3..db32f3185360da73c2bb3453427505b97f0962e9 100644
--- a/components/sessions/serialized_navigation_entry_unittest.cc
+++ b/components/sessions/serialized_navigation_entry_unittest.cc
@@ -78,6 +78,7 @@ sync_pb::TabNavigation MakeSyncDataForTest() {
sync_pb::TabNavigation sync_data;
sync_data.set_virtual_url(kVirtualURL.spec());
sync_data.set_referrer(kReferrer.url.spec());
+ sync_data.set_referrer_policy(blink::WebReferrerPolicyOrigin);
sync_data.set_title(base::UTF16ToUTF8(kTitle));
sync_data.set_state(kPageState.ToEncodedData());
sync_data.set_page_transition(
@@ -153,7 +154,7 @@ TEST(SerializedNavigationEntryTest, FromSyncData) {
EXPECT_EQ(kIndex, navigation.index());
EXPECT_EQ(kUniqueID, navigation.unique_id());
EXPECT_EQ(kReferrer.url, navigation.referrer().url);
- EXPECT_EQ(blink::WebReferrerPolicyDefault, navigation.referrer().policy);
+ EXPECT_EQ(blink::WebReferrerPolicyOrigin, navigation.referrer().policy);
EXPECT_EQ(kVirtualURL, navigation.virtual_url());
EXPECT_EQ(kTitle, navigation.title());
EXPECT_EQ(kPageState, navigation.page_state());
« no previous file with comments | « components/sessions/serialized_navigation_entry.cc ('k') | sync/protocol/proto_value_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698