OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "net/http/http_transaction_test_util.h" | 5 #include "net/http/http_transaction_test_util.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 return StartInternal(request, callback, net_log); | 258 return StartInternal(request, callback, net_log); |
259 } | 259 } |
260 | 260 |
261 int MockNetworkTransaction::RestartIgnoringLastError( | 261 int MockNetworkTransaction::RestartIgnoringLastError( |
262 const CompletionCallback& callback) { | 262 const CompletionCallback& callback) { |
263 return ERR_FAILED; | 263 return ERR_FAILED; |
264 } | 264 } |
265 | 265 |
266 int MockNetworkTransaction::RestartWithCertificate( | 266 int MockNetworkTransaction::RestartWithCertificate( |
267 X509Certificate* client_cert, | 267 X509Certificate* client_cert, |
| 268 SSLPrivateKey* client_private_key, |
268 const CompletionCallback& callback) { | 269 const CompletionCallback& callback) { |
269 return ERR_FAILED; | 270 return ERR_FAILED; |
270 } | 271 } |
271 | 272 |
272 int MockNetworkTransaction::RestartWithAuth( | 273 int MockNetworkTransaction::RestartWithAuth( |
273 const AuthCredentials& credentials, | 274 const AuthCredentials& credentials, |
274 const CompletionCallback& callback) { | 275 const CompletionCallback& callback) { |
275 if (!IsReadyToRestartForAuth()) | 276 if (!IsReadyToRestartForAuth()) |
276 return ERR_FAILED; | 277 return ERR_FAILED; |
277 | 278 |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 content.append(buf->data(), rv); | 562 content.append(buf->data(), rv); |
562 else if (rv < 0) | 563 else if (rv < 0) |
563 return rv; | 564 return rv; |
564 } while (rv > 0); | 565 } while (rv > 0); |
565 | 566 |
566 result->swap(content); | 567 result->swap(content); |
567 return OK; | 568 return OK; |
568 } | 569 } |
569 | 570 |
570 } // namespace net | 571 } // namespace net |
OLD | NEW |