Index: net/http/http_auth_handler_mock.cc |
diff --git a/net/http/http_auth_handler_mock.cc b/net/http/http_auth_handler_mock.cc |
index b4e2268e894cc1814bfd5622f05a941ab7979e52..aad1bd18fb1aef6da104dabb1f9c2dad190ff65d 100644 |
--- a/net/http/http_auth_handler_mock.cc |
+++ b/net/http/http_auth_handler_mock.cc |
@@ -71,13 +71,6 @@ void HttpAuthHandlerMock::SetGenerateExpectation(bool async, int rv) { |
generate_rv_ = rv; |
} |
-bool HttpAuthHandlerMock::Init(HttpAuth::ChallengeTokenizer* challenge) { |
- auth_scheme_ = HttpAuth::AUTH_SCHEME_MOCK; |
- score_ = 1; |
- properties_ = connection_based_ ? IS_CONNECTION_BASED : 0; |
- return true; |
-} |
- |
HttpAuth::AuthorizationResult HttpAuthHandlerMock::HandleAnotherChallenge( |
HttpAuth::ChallengeTokenizer* challenge) { |
if (!is_connection_based()) |
@@ -87,6 +80,17 @@ HttpAuth::AuthorizationResult HttpAuthHandlerMock::HandleAnotherChallenge( |
return HttpAuth::AUTHORIZATION_RESULT_ACCEPT; |
} |
+bool HttpAuthHandlerMock::NeedsIdentity() { |
+ return first_round_; |
+} |
+ |
+bool HttpAuthHandlerMock::Init(HttpAuth::ChallengeTokenizer* challenge) { |
+ auth_scheme_ = HttpAuth::AUTH_SCHEME_MOCK; |
+ score_ = 1; |
+ properties_ = connection_based_ ? IS_CONNECTION_BASED : 0; |
+ return true; |
+} |
+ |
int HttpAuthHandlerMock::GenerateAuthTokenImpl(const string16* username, |
const string16* password, |
const HttpRequestInfo* request, |