Index: net/url_request/url_request_test_util.h |
diff --git a/net/url_request/url_request_test_util.h b/net/url_request/url_request_test_util.h |
index 9ad66a14aa1727f1ed9d33089be1882ff23570f0..0208b4392fcf3fb0789828333d636f9e3fb85ef4 100644 |
--- a/net/url_request/url_request_test_util.h |
+++ b/net/url_request/url_request_test_util.h |
@@ -265,6 +265,10 @@ class TestNetworkDelegate : public NetworkDelegateImpl { |
void set_can_access_files(bool val) { can_access_files_ = val; } |
bool can_access_files() const { return can_access_files_; } |
+ void set_first_party_only_cookies_enabled(bool val) { |
+ first_party_only_cookies_enabled_ = val; |
+ } |
+ |
void set_can_throttle_requests(bool val) { can_throttle_requests_ = val; } |
bool can_throttle_requests() const { return can_throttle_requests_; } |
@@ -325,6 +329,7 @@ class TestNetworkDelegate : public NetworkDelegateImpl { |
bool OnCanAccessFile(const URLRequest& request, |
const base::FilePath& path) const override; |
bool OnCanThrottleRequest(const URLRequest& request) const override; |
+ bool OnFirstPartyOnlyCookieExperimentEnabled() const override; |
bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
const URLRequest& request, |
const GURL& target_url, |
@@ -370,6 +375,7 @@ class TestNetworkDelegate : public NetworkDelegateImpl { |
bool can_access_files_; // true by default |
bool can_throttle_requests_; // true by default |
+ bool first_party_only_cookies_enabled_; // false by default |
bool cancel_request_with_policy_violating_referrer_; // false by default |
bool will_be_intercepted_on_next_error_; |
}; |