| 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 241       case MOCK_STALLED_CLIENT_SOCKET: | 241       case MOCK_STALLED_CLIENT_SOCKET: | 
| 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 HostPortPair& host_and_port, | 
| 252       const SSLConfig& ssl_config, | 252       const SSLConfig& ssl_config, | 
| 253       SSLHostInfo* ssl_host_info, | 253       SSLHostInfo* ssl_host_info, | 
| 254       DnsRRResolver* dnsrr_resolver) { | 254       DnsRRResolver* dnsrr_resolver) { | 
| 255     NOTIMPLEMENTED(); | 255     NOTIMPLEMENTED(); | 
| 256     delete ssl_host_info; | 256     delete ssl_host_info; | 
| 257     return NULL; | 257     return NULL; | 
| 258   } | 258   } | 
| 259 | 259 | 
| 260   int allocation_count() const { return allocation_count_; } | 260   int allocation_count() const { return allocation_count_; } | 
| 261 | 261 | 
| (...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 901   EXPECT_FALSE(handle.socket()); | 901   EXPECT_FALSE(handle.socket()); | 
| 902   handle.Reset(); | 902   handle.Reset(); | 
| 903 | 903 | 
| 904   // Reset for the next case. | 904   // Reset for the next case. | 
| 905   host_resolver_->set_synchronous_mode(false); | 905   host_resolver_->set_synchronous_mode(false); | 
| 906 } | 906 } | 
| 907 | 907 | 
| 908 }  // namespace | 908 }  // namespace | 
| 909 | 909 | 
| 910 }  // namespace net | 910 }  // namespace net | 
| OLD | NEW | 
|---|