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) { | |
111 NOTIMPLEMENTED(); | 110 NOTIMPLEMENTED(); |
112 delete ssl_host_info; | |
113 return NULL; | 111 return NULL; |
114 } | 112 } |
115 | 113 |
116 void WaitForSignal(TestConnectJob* job) { waiting_jobs_.push_back(job); } | 114 void WaitForSignal(TestConnectJob* job) { waiting_jobs_.push_back(job); } |
117 void SignalJobs(); | 115 void SignalJobs(); |
118 | 116 |
119 int allocation_count() const { return allocation_count_; } | 117 int allocation_count() const { return allocation_count_; } |
120 | 118 |
121 private: | 119 private: |
122 int allocation_count_; | 120 int allocation_count_; |
(...skipping 2867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2990 ASSERT_EQ(OK, callback1.WaitForResult()); | 2988 ASSERT_EQ(OK, callback1.WaitForResult()); |
2991 | 2989 |
2992 handle1.Reset(); | 2990 handle1.Reset(); |
2993 | 2991 |
2994 EXPECT_EQ(1, pool_->IdleSocketCountInGroup("a")); | 2992 EXPECT_EQ(1, pool_->IdleSocketCountInGroup("a")); |
2995 } | 2993 } |
2996 | 2994 |
2997 } // namespace | 2995 } // namespace |
2998 | 2996 |
2999 } // namespace net | 2997 } // namespace net |
OLD | NEW |