| 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/client_socket_pool_base.h" | 5 #include "net/socket/client_socket_pool_base.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 "base/platform_thread.h" | 10 #include "base/platform_thread.h" | 
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 100   virtual ClientSocket* CreateTCPClientSocket( | 100   virtual ClientSocket* CreateTCPClientSocket( | 
| 101       const AddressList& addresses, | 101       const AddressList& addresses, | 
| 102       NetLog* /* net_log */, | 102       NetLog* /* net_log */, | 
| 103       const NetLog::Source& /*source*/) { | 103       const NetLog::Source& /*source*/) { | 
| 104     allocation_count_++; | 104     allocation_count_++; | 
| 105     return NULL; | 105     return NULL; | 
| 106   } | 106   } | 
| 107 | 107 | 
| 108   virtual SSLClientSocket* CreateSSLClientSocket( | 108   virtual SSLClientSocket* CreateSSLClientSocket( | 
| 109       ClientSocketHandle* transport_socket, | 109       ClientSocketHandle* transport_socket, | 
| 110       const std::string& hostname, | 110       const HostPortPair& host_and_port, | 
| 111       const SSLConfig& ssl_config, | 111       const SSLConfig& ssl_config, | 
| 112       SSLHostInfo* ssl_host_info, | 112       SSLHostInfo* ssl_host_info, | 
| 113       DnsRRResolver* dnsrr_resolver) { | 113       DnsRRResolver* dnsrr_resolver) { | 
| 114     NOTIMPLEMENTED(); | 114     NOTIMPLEMENTED(); | 
| 115     delete ssl_host_info; | 115     delete ssl_host_info; | 
| 116     return NULL; | 116     return NULL; | 
| 117   } | 117   } | 
| 118 | 118 | 
| 119   void WaitForSignal(TestConnectJob* job) { waiting_jobs_.push_back(job); } | 119   void WaitForSignal(TestConnectJob* job) { waiting_jobs_.push_back(job); } | 
| 120   void SignalJobs(); | 120   void SignalJobs(); | 
| (...skipping 2872 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2993   ASSERT_EQ(OK, callback1.WaitForResult()); | 2993   ASSERT_EQ(OK, callback1.WaitForResult()); | 
| 2994 | 2994 | 
| 2995   handle1.Reset(); | 2995   handle1.Reset(); | 
| 2996 | 2996 | 
| 2997   EXPECT_EQ(1, pool_->IdleSocketCountInGroup("a")); | 2997   EXPECT_EQ(1, pool_->IdleSocketCountInGroup("a")); | 
| 2998 } | 2998 } | 
| 2999 | 2999 | 
| 3000 }  // namespace | 3000 }  // namespace | 
| 3001 | 3001 | 
| 3002 }  // namespace net | 3002 }  // namespace net | 
| OLD | NEW | 
|---|