| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 const AddressList& addresses, | 99 const AddressList& addresses, |
| 100 NetLog* /* net_log */, | 100 NetLog* /* net_log */, |
| 101 const NetLog::Source& /*source*/) { | 101 const NetLog::Source& /*source*/) { |
| 102 allocation_count_++; | 102 allocation_count_++; |
| 103 return NULL; | 103 return NULL; |
| 104 } | 104 } |
| 105 | 105 |
| 106 virtual SSLClientSocket* CreateSSLClientSocket( | 106 virtual SSLClientSocket* CreateSSLClientSocket( |
| 107 ClientSocketHandle* transport_socket, | 107 ClientSocketHandle* transport_socket, |
| 108 const std::string& hostname, | 108 const std::string& hostname, |
| 109 const SSLConfig& ssl_config) { | 109 const SSLConfig& ssl_config, |
| 110 SSLHostInfo* ssl_host_info) { |
| 110 NOTIMPLEMENTED(); | 111 NOTIMPLEMENTED(); |
| 112 delete ssl_host_info; |
| 111 return NULL; | 113 return NULL; |
| 112 } | 114 } |
| 113 | 115 |
| 114 void WaitForSignal(TestConnectJob* job) { waiting_jobs_.push_back(job); } | 116 void WaitForSignal(TestConnectJob* job) { waiting_jobs_.push_back(job); } |
| 115 void SignalJobs(); | 117 void SignalJobs(); |
| 116 | 118 |
| 117 int allocation_count() const { return allocation_count_; } | 119 int allocation_count() const { return allocation_count_; } |
| 118 | 120 |
| 119 private: | 121 private: |
| 120 int allocation_count_; | 122 int allocation_count_; |
| (...skipping 2867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2988 ASSERT_EQ(OK, callback1.WaitForResult()); | 2990 ASSERT_EQ(OK, callback1.WaitForResult()); |
| 2989 | 2991 |
| 2990 handle1.Reset(); | 2992 handle1.Reset(); |
| 2991 | 2993 |
| 2992 EXPECT_EQ(1, pool_->IdleSocketCountInGroup("a")); | 2994 EXPECT_EQ(1, pool_->IdleSocketCountInGroup("a")); |
| 2993 } | 2995 } |
| 2994 | 2996 |
| 2995 } // namespace | 2997 } // namespace |
| 2996 | 2998 |
| 2997 } // namespace net | 2999 } // namespace net |
| OLD | NEW |