| 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 528 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 539     HostResolver* host_resolver, | 539     HostResolver* host_resolver, | 
| 540     CertVerifier* cert_verifier) | 540     CertVerifier* cert_verifier) | 
| 541     : SSLClientSocketPool(0, | 541     : SSLClientSocketPool(0, | 
| 542                           0, | 542                           0, | 
| 543                           NULL, | 543                           NULL, | 
| 544                           host_resolver, | 544                           host_resolver, | 
| 545                           cert_verifier, | 545                           cert_verifier, | 
| 546                           NULL, | 546                           NULL, | 
| 547                           NULL, | 547                           NULL, | 
| 548                           NULL, | 548                           NULL, | 
|  | 549                           NULL, | 
| 549                           std::string(), | 550                           std::string(), | 
| 550                           NULL, | 551                           NULL, | 
| 551                           NULL, | 552                           NULL, | 
| 552                           NULL, | 553                           NULL, | 
| 553                           NULL, | 554                           NULL, | 
| 554                           NULL, | 555                           NULL, | 
| 555                           NULL) {} | 556                           NULL) {} | 
| 556 | 557 | 
| 557 //----------------------------------------------------------------------------- | 558 //----------------------------------------------------------------------------- | 
| 558 | 559 | 
| (...skipping 11875 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 12434   // established, to let the HTTP request start. | 12435   // established, to let the HTTP request start. | 
| 12435   ASSERT_EQ(OK, http_callback.WaitForResult()); | 12436   ASSERT_EQ(OK, http_callback.WaitForResult()); | 
| 12436   std::string response_data; | 12437   std::string response_data; | 
| 12437   ASSERT_EQ(OK, ReadTransaction(http_trans.get(), &response_data)); | 12438   ASSERT_EQ(OK, ReadTransaction(http_trans.get(), &response_data)); | 
| 12438   EXPECT_EQ("falafel", response_data); | 12439   EXPECT_EQ("falafel", response_data); | 
| 12439 | 12440 | 
| 12440   EXPECT_EQ(1, GetIdleSocketCountInTransportSocketPool(session)); | 12441   EXPECT_EQ(1, GetIdleSocketCountInTransportSocketPool(session)); | 
| 12441 } | 12442 } | 
| 12442 | 12443 | 
| 12443 }  // namespace net | 12444 }  // namespace net | 
| OLD | NEW | 
|---|