| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_TRANSACTION_UNITTEST_H_ | 5 #ifndef NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_ |
| 6 #define NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_ | 6 #define NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_ |
| 7 | 7 |
| 8 #include "net/http/http_transaction.h" | 8 #include "net/http/http_transaction.h" |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| 11 #include <string> | 11 #include <string> |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 return net::OK; | 227 return net::OK; |
| 228 | 228 |
| 229 CallbackLater(callback, net::OK); | 229 CallbackLater(callback, net::OK); |
| 230 return net::ERR_IO_PENDING; | 230 return net::ERR_IO_PENDING; |
| 231 } | 231 } |
| 232 | 232 |
| 233 virtual int RestartIgnoringLastError(net::CompletionCallback* callback) { | 233 virtual int RestartIgnoringLastError(net::CompletionCallback* callback) { |
| 234 return net::ERR_FAILED; | 234 return net::ERR_FAILED; |
| 235 } | 235 } |
| 236 | 236 |
| 237 virtual int RestartWithCertificate(net::X509Certificate* client_cert, |
| 238 net::CompletionCallback* callback) { |
| 239 return net::ERR_FAILED; |
| 240 } |
| 241 |
| 237 virtual int RestartWithAuth(const std::wstring& username, | 242 virtual int RestartWithAuth(const std::wstring& username, |
| 238 const std::wstring& password, | 243 const std::wstring& password, |
| 239 net::CompletionCallback* callback) { | 244 net::CompletionCallback* callback) { |
| 240 return net::ERR_FAILED; | 245 return net::ERR_FAILED; |
| 241 } | 246 } |
| 242 | 247 |
| 243 virtual bool IsReadyToRestartForAuth() { | 248 virtual bool IsReadyToRestartForAuth() { |
| 244 return false; | 249 return false; |
| 245 } | 250 } |
| 246 | 251 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 }; | 316 }; |
| 312 | 317 |
| 313 | 318 |
| 314 //----------------------------------------------------------------------------- | 319 //----------------------------------------------------------------------------- |
| 315 // helpers | 320 // helpers |
| 316 | 321 |
| 317 // read the transaction completely | 322 // read the transaction completely |
| 318 int ReadTransaction(net::HttpTransaction* trans, std::string* result); | 323 int ReadTransaction(net::HttpTransaction* trans, std::string* result); |
| 319 | 324 |
| 320 #endif // NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_ | 325 #endif // NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_ |
| OLD | NEW |