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

Unified Diff: net/proxy/network_delegate_error_observer_unittest.cc

Issue 9572001: Do cookie checks in NetworkDelegate instead of the URLRequest::Delegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: TestShellNetworkDelegate Created 8 years, 10 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/proxy/network_delegate_error_observer_unittest.cc
diff --git a/net/proxy/network_delegate_error_observer_unittest.cc b/net/proxy/network_delegate_error_observer_unittest.cc
index b64e9bf97e965da8bca38de6c8ff4b775af72877..f4b4ba75b15248389d2ed8812d2146d9aaa08fbc 100644
--- a/net/proxy/network_delegate_error_observer_unittest.cc
+++ b/net/proxy/network_delegate_error_observer_unittest.cc
@@ -63,6 +63,17 @@ class TestNetworkDelegate : public net::NetworkDelegate {
AuthCredentials* credentials) OVERRIDE {
return AUTH_REQUIRED_RESPONSE_NO_ACTION;
}
+ virtual bool CanGetCookies(
+ const URLRequest* request,
+ const CookieList& cookie_list) OVERRIDE {
+ return true;
+ }
+ virtual bool CanSetCookie(
+ const URLRequest* request,
+ const std::string& cookie_line,
+ CookieOptions* options) OVERRIDE {
+ return true;
+ }
bool got_pac_error_;
};

Powered by Google App Engine
This is Rietveld 408576698