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

Unified Diff: net/cookies/cookie_store_unittest.h

Issue 1393193005: Implement $Secure- cookie prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fix Created 5 years, 2 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/cookies/cookie_store_unittest.h
diff --git a/net/cookies/cookie_store_unittest.h b/net/cookies/cookie_store_unittest.h
index b380fbcab05ac73a31d377de50582a53ffb90b70..f62f7ac2f67078d9642d3eb8e4e36ac76fdfa29b 100644
--- a/net/cookies/cookie_store_unittest.h
+++ b/net/cookies/cookie_store_unittest.h
@@ -69,6 +69,9 @@ const char kValidCookieLine[] = "A=B; path=/";
// // Time to wait between two cookie insertions to ensure that cookies have
// // different creation times.
// static const int creation_time_granularity_in_ms;
+//
+// // The cookie store enforces cookie prefixes.
+// static const bool enforces_prefixes;
// };
template <class CookieStoreTestTraits>
@@ -155,6 +158,8 @@ class CookieStoreTest : public testing::Test {
CookieOptions options;
if (!CookieStoreTestTraits::supports_http_only)
options.set_include_httponly();
+ if (CookieStoreTestTraits::enforces_prefixes)
+ options.set_enforce_prefixes();
return SetCookieWithOptions(cs, url, cookie_line, options);
}

Powered by Google App Engine
This is Rietveld 408576698