| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_network_transaction.h" | 5 #include "net/http/http_network_transaction.h" |
| 6 | 6 |
| 7 #include <math.h> // ceil | 7 #include <math.h> // ceil |
| 8 #include <stdarg.h> | 8 #include <stdarg.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 CaptureGroupNameSSLSocketPool::CaptureGroupNameSocketPool( | 505 CaptureGroupNameSSLSocketPool::CaptureGroupNameSocketPool( |
| 506 HostResolver* host_resolver, | 506 HostResolver* host_resolver, |
| 507 CertVerifier* cert_verifier) | 507 CertVerifier* cert_verifier) |
| 508 : SSLClientSocketPool(0, | 508 : SSLClientSocketPool(0, |
| 509 0, | 509 0, |
| 510 NULL, | 510 NULL, |
| 511 host_resolver, | 511 host_resolver, |
| 512 cert_verifier, | 512 cert_verifier, |
| 513 NULL, | 513 NULL, |
| 514 NULL, | 514 NULL, |
| 515 NULL, |
| 515 std::string(), | 516 std::string(), |
| 516 NULL, | 517 NULL, |
| 517 NULL, | 518 NULL, |
| 518 NULL, | 519 NULL, |
| 519 NULL, | 520 NULL, |
| 520 NULL, | 521 NULL, |
| 521 NULL) {} | 522 NULL) {} |
| 522 | 523 |
| 523 //----------------------------------------------------------------------------- | 524 //----------------------------------------------------------------------------- |
| 524 | 525 |
| (...skipping 11752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12277 // established, to let the HTTP request start. | 12278 // established, to let the HTTP request start. |
| 12278 ASSERT_EQ(OK, http_callback.WaitForResult()); | 12279 ASSERT_EQ(OK, http_callback.WaitForResult()); |
| 12279 std::string response_data; | 12280 std::string response_data; |
| 12280 ASSERT_EQ(OK, ReadTransaction(http_trans.get(), &response_data)); | 12281 ASSERT_EQ(OK, ReadTransaction(http_trans.get(), &response_data)); |
| 12281 EXPECT_EQ("falafel", response_data); | 12282 EXPECT_EQ("falafel", response_data); |
| 12282 | 12283 |
| 12283 EXPECT_EQ(1, GetIdleSocketCountInTransportSocketPool(session)); | 12284 EXPECT_EQ(1, GetIdleSocketCountInTransportSocketPool(session)); |
| 12284 } | 12285 } |
| 12285 | 12286 |
| 12286 } // namespace net | 12287 } // namespace net |
| OLD | NEW |