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

Unified Diff: ios/web/public/referrer_util_unittest.cc

Issue 2111623003: Reland of Apply Referrer-Policy header when following redirects (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: initialize |read_handler| Created 4 years, 6 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 | « content/shell/browser/shell_url_request_context_getter.cc ('k') | net/url_request/redirect_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/referrer_util_unittest.cc
diff --git a/ios/web/public/referrer_util_unittest.cc b/ios/web/public/referrer_util_unittest.cc
index 0f5f75f8747c0e951ff282539ae07fe81f28ed6f..0d4cb23c3bf1a1fe3d47025e7184e8a8acbf076d 100644
--- a/ios/web/public/referrer_util_unittest.cc
+++ b/ios/web/public/referrer_util_unittest.cc
@@ -164,6 +164,15 @@ TEST(ReferrerUtilTest, PolicyForNavigation) {
EXPECT_TRUE(policy == ReferrerPolicyDefault ||
policy == ReferrerPolicyNoReferrerWhenDowngrade);
break;
+ case net::URLRequest::ORIGIN:
+ EXPECT_TRUE(policy == ReferrerPolicyOrigin);
+ break;
+ case net::URLRequest::NO_REFERRER:
+ EXPECT_TRUE(policy == ReferrerPolicyNever);
+ break;
+ case net::URLRequest::MAX_REFERRER_POLICY:
+ FAIL();
+ break;
}
}
}
« no previous file with comments | « content/shell/browser/shell_url_request_context_getter.cc ('k') | net/url_request/redirect_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698