| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_stream_factory_impl.h" | 5 #include "net/http/http_stream_factory_impl.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "net/base/cert_verifier.h" | 10 #include "net/base/cert_verifier.h" |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 int num_sockets, | 148 int num_sockets, |
| 149 const BoundNetLog& net_log) { | 149 const BoundNetLog& net_log) { |
| 150 last_num_streams_ = num_sockets; | 150 last_num_streams_ = num_sockets; |
| 151 } | 151 } |
| 152 | 152 |
| 153 virtual void CancelRequest(const std::string& group_name, | 153 virtual void CancelRequest(const std::string& group_name, |
| 154 ClientSocketHandle* handle) { | 154 ClientSocketHandle* handle) { |
| 155 ADD_FAILURE(); | 155 ADD_FAILURE(); |
| 156 } | 156 } |
| 157 virtual void ReleaseSocket(const std::string& group_name, | 157 virtual void ReleaseSocket(const std::string& group_name, |
| 158 ClientSocket* socket, | 158 StreamSocket* socket, |
| 159 int id) { | 159 int id) { |
| 160 ADD_FAILURE(); | 160 ADD_FAILURE(); |
| 161 } | 161 } |
| 162 virtual void CloseIdleSockets() { | 162 virtual void CloseIdleSockets() { |
| 163 ADD_FAILURE(); | 163 ADD_FAILURE(); |
| 164 } | 164 } |
| 165 virtual int IdleSocketCount() const { | 165 virtual int IdleSocketCount() const { |
| 166 ADD_FAILURE(); | 166 ADD_FAILURE(); |
| 167 return 0; | 167 return 0; |
| 168 } | 168 } |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 if (kTests[i].ssl) | 311 if (kTests[i].ssl) |
| 312 EXPECT_EQ(-1, ssl_conn_pool->last_num_streams()); | 312 EXPECT_EQ(-1, ssl_conn_pool->last_num_streams()); |
| 313 else | 313 else |
| 314 EXPECT_EQ(kTests[i].num_streams, transport_conn_pool->last_num_streams()); | 314 EXPECT_EQ(kTests[i].num_streams, transport_conn_pool->last_num_streams()); |
| 315 } | 315 } |
| 316 } | 316 } |
| 317 | 317 |
| 318 } // namespace | 318 } // namespace |
| 319 | 319 |
| 320 } // namespace net | 320 } // namespace net |
| OLD | NEW |