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

Unified Diff: net/url_request/url_request_unittest.cc

Issue 1392853006: Rename NetworkDelegate first-party-only flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename to Are<blah> 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
« no previous file with comments | « net/url_request/url_request_test_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_unittest.cc
diff --git a/net/url_request/url_request_unittest.cc b/net/url_request/url_request_unittest.cc
index 87ad8ebe878e645cf7b60725e11b6e8014e1a900..41dca32bed173c4ecc06fff6571b4697375ce0c1 100644
--- a/net/url_request/url_request_unittest.cc
+++ b/net/url_request/url_request_unittest.cc
@@ -2610,7 +2610,7 @@ TEST_F(URLRequestTest, FirstPartyOnlyCookiesEnabled) {
// LocalHttpTestServer points).
{
TestNetworkDelegate network_delegate;
- network_delegate.set_first_party_only_cookies_enabled(true);
+ network_delegate.set_experimental_cookie_features_enabled(true);
default_context_.set_network_delegate(&network_delegate);
TestDelegate d;
@@ -2628,7 +2628,7 @@ TEST_F(URLRequestTest, FirstPartyOnlyCookiesEnabled) {
// Verify that the cookie is sent for first-party requests.
{
TestNetworkDelegate network_delegate;
- network_delegate.set_first_party_only_cookies_enabled(true);
+ network_delegate.set_experimental_cookie_features_enabled(true);
default_context_.set_network_delegate(&network_delegate);
TestDelegate d;
scoped_ptr<URLRequest> req(default_context_.CreateRequest(
@@ -2646,7 +2646,7 @@ TEST_F(URLRequestTest, FirstPartyOnlyCookiesEnabled) {
// Verify that the cookie is not-sent for non-first-party requests.
{
TestNetworkDelegate network_delegate;
- network_delegate.set_first_party_only_cookies_enabled(true);
+ network_delegate.set_experimental_cookie_features_enabled(true);
default_context_.set_network_delegate(&network_delegate);
TestDelegate d;
scoped_ptr<URLRequest> req(default_context_.CreateRequest(
@@ -2670,7 +2670,7 @@ TEST_F(URLRequestTest, FirstPartyOnlyCookiesDisabled) {
// LocalHttpTestServer points).
{
TestNetworkDelegate network_delegate;
- network_delegate.set_first_party_only_cookies_enabled(false);
+ network_delegate.set_experimental_cookie_features_enabled(false);
default_context_.set_network_delegate(&network_delegate);
TestDelegate d;
@@ -2688,7 +2688,7 @@ TEST_F(URLRequestTest, FirstPartyOnlyCookiesDisabled) {
// Verify that the cookie is sent for first-party requests.
{
TestNetworkDelegate network_delegate;
- network_delegate.set_first_party_only_cookies_enabled(false);
+ network_delegate.set_experimental_cookie_features_enabled(false);
default_context_.set_network_delegate(&network_delegate);
TestDelegate d;
scoped_ptr<URLRequest> req(default_context_.CreateRequest(
@@ -2706,7 +2706,7 @@ TEST_F(URLRequestTest, FirstPartyOnlyCookiesDisabled) {
// Verify that the cookie is also sent for non-first-party requests.
{
TestNetworkDelegate network_delegate;
- network_delegate.set_first_party_only_cookies_enabled(false);
+ network_delegate.set_experimental_cookie_features_enabled(false);
default_context_.set_network_delegate(&network_delegate);
TestDelegate d;
scoped_ptr<URLRequest> req(default_context_.CreateRequest(
« no previous file with comments | « net/url_request/url_request_test_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698