diff options
Diffstat (limited to 'net/http/http_auth_handler_mock.cc')
-rw-r--r-- | net/http/http_auth_handler_mock.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net/http/http_auth_handler_mock.cc b/net/http/http_auth_handler_mock.cc index 4d034a8..09a03561 100644 --- a/net/http/http_auth_handler_mock.cc +++ b/net/http/http_auth_handler_mock.cc @@ -14,7 +14,9 @@ HttpAuthHandlerMock::HttpAuthHandlerMock() : resolve_(RESOLVE_INIT), user_callback_(NULL), ALLOW_THIS_IN_INITIALIZER_LIST(method_factory_(this)), generate_async_(false), generate_rv_(OK), - auth_token_(NULL) { + auth_token_(NULL), + first_round_(true), + connection_based_(false) { } HttpAuthHandlerMock::~HttpAuthHandlerMock() { @@ -70,7 +72,7 @@ void HttpAuthHandlerMock::SetGenerateExpectation(bool async, int rv) { bool HttpAuthHandlerMock::Init(HttpAuth::ChallengeTokenizer* challenge) { scheme_ = "mock"; score_ = 1; - properties_ = 0; + properties_ = connection_based_ ? IS_CONNECTION_BASED : 0; return true; } @@ -79,6 +81,7 @@ int HttpAuthHandlerMock::GenerateAuthTokenImpl(const std::wstring* username, const HttpRequestInfo* request, CompletionCallback* callback, std::string* auth_token) { + first_round_ = false; if (generate_async_) { EXPECT_TRUE(user_callback_ == NULL); EXPECT_TRUE(auth_token_ == NULL); |