| 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 return new MockPendingClientSocket(true, true, 0); | 242 return new MockPendingClientSocket(true, true, 0); |
| 243 default: | 243 default: |
| 244 NOTREACHED(); | 244 NOTREACHED(); |
| 245 return new MockClientSocket(); | 245 return new MockClientSocket(); |
| 246 } | 246 } |
| 247 } | 247 } |
| 248 | 248 |
| 249 virtual SSLClientSocket* CreateSSLClientSocket( | 249 virtual SSLClientSocket* CreateSSLClientSocket( |
| 250 ClientSocketHandle* transport_socket, | 250 ClientSocketHandle* transport_socket, |
| 251 const std::string& hostname, | 251 const std::string& hostname, |
| 252 uint16 port, |
| 252 const SSLConfig& ssl_config, | 253 const SSLConfig& ssl_config, |
| 253 SSLHostInfo* ssl_host_info, | 254 SSLHostInfo* ssl_host_info, |
| 254 DnsRRResolver* dnsrr_resolver) { | 255 DnsRRResolver* dnsrr_resolver) { |
| 255 NOTIMPLEMENTED(); | 256 NOTIMPLEMENTED(); |
| 256 delete ssl_host_info; | 257 delete ssl_host_info; |
| 257 return NULL; | 258 return NULL; |
| 258 } | 259 } |
| 259 | 260 |
| 260 int allocation_count() const { return allocation_count_; } | 261 int allocation_count() const { return allocation_count_; } |
| 261 | 262 |
| (...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 EXPECT_FALSE(handle.socket()); | 902 EXPECT_FALSE(handle.socket()); |
| 902 handle.Reset(); | 903 handle.Reset(); |
| 903 | 904 |
| 904 // Reset for the next case. | 905 // Reset for the next case. |
| 905 host_resolver_->set_synchronous_mode(false); | 906 host_resolver_->set_synchronous_mode(false); |
| 906 } | 907 } |
| 907 | 908 |
| 908 } // namespace | 909 } // namespace |
| 909 | 910 |
| 910 } // namespace net | 911 } // namespace net |
| OLD | NEW |