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

Unified Diff: net/http/http_response_headers_unittest.cc

Issue 2368923003: Support the Clear-Site-Data header on resource requests (Closed)
Patch Set: Addressed comments, formatted. Created 3 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
Index: net/http/http_response_headers_unittest.cc
diff --git a/net/http/http_response_headers_unittest.cc b/net/http/http_response_headers_unittest.cc
index 5ffc0e80ebb20ca261cf71d1171f00947eaf9787..21a201fe353c9c0e94153a8f10848cc8799250b8 100644
--- a/net/http/http_response_headers_unittest.cc
+++ b/net/http/http_response_headers_unittest.cc
@@ -444,6 +444,16 @@ const struct PersistData persistence_tests[] = {
"HTTP/1.1 200 OK\n"
"Bar: 1\n"},
+ {HttpResponseHeaders::PERSIST_SANS_COOKIES,
+ "HTTP/1.1 200 OK\n"
+ "Set-Cookie: foo=bar\n"
+ "Foo: 2\n"
+ "Clear-Site-Data: { \"types\" : [ \"cookies\" ] }\n"
+ "Bar: 3\n",
+
+ "HTTP/1.1 200 OK\n"
+ "Foo: 2\n"
+ "Bar: 3\n"},
// Test LWS at the end of a header.
{HttpResponseHeaders::PERSIST_ALL,
"HTTP/1.1 200 OK\n"
« no previous file with comments | « net/http/http_response_headers.cc ('k') | testing/buildbot/filters/mojo.fyi.network_content_browsertests.filter » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698