| 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/socket/tcp_client_socket_pool.h" | 5 #include "net/socket/tcp_client_socket_pool.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "net/base/mock_host_resolver.h" | 10 #include "net/base/mock_host_resolver.h" |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 return new MockPendingClientSocket(true, true, 0); | 238 return new MockPendingClientSocket(true, true, 0); |
| 239 default: | 239 default: |
| 240 NOTREACHED(); | 240 NOTREACHED(); |
| 241 return new MockClientSocket(); | 241 return new MockClientSocket(); |
| 242 } | 242 } |
| 243 } | 243 } |
| 244 | 244 |
| 245 virtual SSLClientSocket* CreateSSLClientSocket( | 245 virtual SSLClientSocket* CreateSSLClientSocket( |
| 246 ClientSocketHandle* transport_socket, | 246 ClientSocketHandle* transport_socket, |
| 247 const std::string& hostname, | 247 const std::string& hostname, |
| 248 const SSLConfig& ssl_config) { | 248 const SSLConfig& ssl_config, |
| 249 SSLHostInfo* ssl_host_info) { |
| 249 NOTIMPLEMENTED(); | 250 NOTIMPLEMENTED(); |
| 251 delete ssl_host_info; |
| 250 return NULL; | 252 return NULL; |
| 251 } | 253 } |
| 252 | 254 |
| 253 int allocation_count() const { return allocation_count_; } | 255 int allocation_count() const { return allocation_count_; } |
| 254 | 256 |
| 255 // Set the default ClientSocketType. | 257 // Set the default ClientSocketType. |
| 256 void set_client_socket_type(ClientSocketType type) { | 258 void set_client_socket_type(ClientSocketType type) { |
| 257 client_socket_type_ = type; | 259 client_socket_type_ = type; |
| 258 } | 260 } |
| 259 | 261 |
| (...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 894 EXPECT_FALSE(handle.socket()); | 896 EXPECT_FALSE(handle.socket()); |
| 895 handle.Reset(); | 897 handle.Reset(); |
| 896 | 898 |
| 897 // Reset for the next case. | 899 // Reset for the next case. |
| 898 host_resolver_->set_synchronous_mode(false); | 900 host_resolver_->set_synchronous_mode(false); |
| 899 } | 901 } |
| 900 | 902 |
| 901 } // namespace | 903 } // namespace |
| 902 | 904 |
| 903 } // namespace net | 905 } // namespace net |
| OLD | NEW |