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

Unified Diff: net/proxy/network_delegate_error_observer_unittest.cc

Issue 8015004: webRequest.onAuthRequired listeners can provide authentication credentials. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Handle multiple blocking onAuthRequired Created 9 years, 3 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 551c006b4c627440601fa02696c07b0e484e11da..7b62023e58246f06f15b479724299d7edff03676 100644
--- a/net/proxy/network_delegate_error_observer_unittest.cc
+++ b/net/proxy/network_delegate_error_observer_unittest.cc
@@ -28,12 +28,12 @@ class TestNetworkDelegate : public net::NetworkDelegate {
virtual int OnBeforeURLRequest(URLRequest* request,
CompletionCallback* callback,
GURL* new_url) OVERRIDE {
- return net::OK;
+ return OK;
}
virtual int OnBeforeSendHeaders(URLRequest* request,
CompletionCallback* callback,
HttpRequestHeaders* headers) OVERRIDE {
- return net::OK;
+ return OK;
}
virtual void OnSendHeaders(URLRequest* request,
const HttpRequestHeaders& headers) OVERRIDE {}
@@ -49,8 +49,12 @@ class TestNetworkDelegate : public net::NetworkDelegate {
const string16& error) OVERRIDE {
got_pac_error_ = true;
}
- virtual void OnAuthRequired(URLRequest* request,
- const AuthChallengeInfo& auth_info) OVERRIDE {}
+ virtual int OnAuthRequired(URLRequest* request,
+ const AuthChallengeInfo& auth_info,
+ CompletionCallback* callback,
+ AuthCredentials* credentials) OVERRIDE {
+ return OK;
+ }
bool got_pac_error_;
};

Powered by Google App Engine
This is Rietveld 408576698