| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_MOCK_H_ | 5 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_MOCK_H_ |
| 6 #define NET_HTTP_HTTP_AUTH_HANDLER_MOCK_H_ | 6 #define NET_HTTP_HTTP_AUTH_HANDLER_MOCK_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "googleurl/src/gurl.h" | |
| 13 #include "net/http/http_auth_handler.h" | 12 #include "net/http/http_auth_handler.h" |
| 14 #include "net/http/http_auth_handler_factory.h" | 13 #include "net/http/http_auth_handler_factory.h" |
| 14 #include "url/gurl.h" |
| 15 | 15 |
| 16 namespace net { | 16 namespace net { |
| 17 | 17 |
| 18 class HostResolver; | 18 class HostResolver; |
| 19 | 19 |
| 20 // MockAuthHandler is used in tests to reliably trigger edge cases. | 20 // MockAuthHandler is used in tests to reliably trigger edge cases. |
| 21 class HttpAuthHandlerMock : public HttpAuthHandler { | 21 class HttpAuthHandlerMock : public HttpAuthHandler { |
| 22 public: | 22 public: |
| 23 enum Resolve { | 23 enum Resolve { |
| 24 RESOLVE_INIT, | 24 RESOLVE_INIT, |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 bool first_round_; | 115 bool first_round_; |
| 116 bool connection_based_; | 116 bool connection_based_; |
| 117 bool allows_default_credentials_; | 117 bool allows_default_credentials_; |
| 118 bool allows_explicit_credentials_; | 118 bool allows_explicit_credentials_; |
| 119 GURL request_url_; | 119 GURL request_url_; |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 } // namespace net | 122 } // namespace net |
| 123 | 123 |
| 124 #endif // NET_HTTP_HTTP_AUTH_HANDLER_MOCK_H_ | 124 #endif // NET_HTTP_HTTP_AUTH_HANDLER_MOCK_H_ |
| OLD | NEW |