| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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.h" | 5 #include "net/http/http_stream_factory.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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 int num_sockets, | 117 int num_sockets, |
| 118 const BoundNetLog& net_log) { | 118 const BoundNetLog& net_log) { |
| 119 last_num_streams_ = num_sockets; | 119 last_num_streams_ = num_sockets; |
| 120 } | 120 } |
| 121 | 121 |
| 122 virtual void CancelRequest(const std::string& group_name, | 122 virtual void CancelRequest(const std::string& group_name, |
| 123 ClientSocketHandle* handle) { | 123 ClientSocketHandle* handle) { |
| 124 ADD_FAILURE(); | 124 ADD_FAILURE(); |
| 125 } | 125 } |
| 126 virtual void ReleaseSocket(const std::string& group_name, | 126 virtual void ReleaseSocket(const std::string& group_name, |
| 127 ClientSocket* socket) { | 127 ClientSocket* socket, |
| 128 int id) { |
| 128 ADD_FAILURE(); | 129 ADD_FAILURE(); |
| 129 } | 130 } |
| 130 virtual void CloseIdleSockets() { | 131 virtual void CloseIdleSockets() { |
| 131 ADD_FAILURE(); | 132 ADD_FAILURE(); |
| 132 } | 133 } |
| 133 virtual int IdleSocketCount() const { | 134 virtual int IdleSocketCount() const { |
| 134 ADD_FAILURE(); | 135 ADD_FAILURE(); |
| 135 return 0; | 136 return 0; |
| 136 } | 137 } |
| 137 virtual int IdleSocketCountInGroup(const std::string& group_name) const { | 138 virtual int IdleSocketCountInGroup(const std::string& group_name) const { |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 if (kTests[i].ssl) | 281 if (kTests[i].ssl) |
| 281 EXPECT_EQ(-1, ssl_conn_pool->last_num_streams()); | 282 EXPECT_EQ(-1, ssl_conn_pool->last_num_streams()); |
| 282 else | 283 else |
| 283 EXPECT_EQ(kTests[i].num_streams, tcp_conn_pool->last_num_streams()); | 284 EXPECT_EQ(kTests[i].num_streams, tcp_conn_pool->last_num_streams()); |
| 284 } | 285 } |
| 285 } | 286 } |
| 286 | 287 |
| 287 } // namespace | 288 } // namespace |
| 288 | 289 |
| 289 } // namespace net | 290 } // namespace net |
| OLD | NEW |