OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 virtual ~HttpAuthHandlerMock(); | 61 virtual ~HttpAuthHandlerMock(); |
62 | 62 |
63 void SetResolveExpectation(Resolve resolve); | 63 void SetResolveExpectation(Resolve resolve); |
64 | 64 |
65 virtual bool NeedsCanonicalName(); | 65 virtual bool NeedsCanonicalName(); |
66 | 66 |
67 virtual int ResolveCanonicalName(HostResolver* host_resolver, | 67 virtual int ResolveCanonicalName(HostResolver* host_resolver, |
68 CompletionCallback* callback); | 68 CompletionCallback* callback); |
69 | 69 |
70 | |
71 void SetGenerateExpectation(bool async, int rv); | 70 void SetGenerateExpectation(bool async, int rv); |
72 | 71 |
73 void set_connection_based(bool connection_based) { | 72 void set_connection_based(bool connection_based) { |
74 connection_based_ = connection_based; | 73 connection_based_ = connection_based; |
75 } | 74 } |
76 | 75 |
77 const GURL& request_url() const { | 76 const GURL& request_url() const { |
78 return request_url_; | 77 return request_url_; |
79 } | 78 } |
80 | 79 |
(...skipping 23 matching lines...) Expand all Loading... |
104 int generate_rv_; | 103 int generate_rv_; |
105 std::string* auth_token_; | 104 std::string* auth_token_; |
106 bool first_round_; | 105 bool first_round_; |
107 bool connection_based_; | 106 bool connection_based_; |
108 GURL request_url_; | 107 GURL request_url_; |
109 }; | 108 }; |
110 | 109 |
111 } // namespace net | 110 } // namespace net |
112 | 111 |
113 #endif // NET_HTTP_HTTP_AUTH_HANDLER_MOCK_H_ | 112 #endif // NET_HTTP_HTTP_AUTH_HANDLER_MOCK_H_ |
OLD | NEW |