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/ref_counted.h" | 10 #include "base/ref_counted.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
110 const HostPortPair& host_and_port, | 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 CertVerifier* cert_verifier, | 113 CertVerifier* cert_verifier, |
114 DnsCertProvenanceChecker* dns_cert_checker) { | 114 DnsCertProvenanceChecker* dns_cert_checker) { |
115 NOTIMPLEMENTED(); | 115 NOTIMPLEMENTED(); |
116 delete ssl_host_info; | 116 delete ssl_host_info; |
117 return NULL; | 117 return NULL; |
118 } | 118 } |
119 | 119 |
120 virtual void ClearSSLSessionCache() {} | |
wtc
2011/02/24 22:49:37
Probably should add NOTIMPLEMENTED() because the
C
Ryan Hamilton
2011/02/24 23:38:35
Done.
| |
121 | |
120 void WaitForSignal(TestConnectJob* job) { waiting_jobs_.push_back(job); } | 122 void WaitForSignal(TestConnectJob* job) { waiting_jobs_.push_back(job); } |
121 void SignalJobs(); | 123 void SignalJobs(); |
122 | 124 |
123 int allocation_count() const { return allocation_count_; } | 125 int allocation_count() const { return allocation_count_; } |
124 | 126 |
125 private: | 127 private: |
126 int allocation_count_; | 128 int allocation_count_; |
127 std::vector<TestConnectJob*> waiting_jobs_; | 129 std::vector<TestConnectJob*> waiting_jobs_; |
128 }; | 130 }; |
129 | 131 |
(...skipping 2977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3107 EXPECT_EQ(1, pool_->IdleSocketCountInGroup("a")); | 3109 EXPECT_EQ(1, pool_->IdleSocketCountInGroup("a")); |
3108 EXPECT_EQ(0, pool_->NumActiveSocketsInGroup("a")); | 3110 EXPECT_EQ(0, pool_->NumActiveSocketsInGroup("a")); |
3109 EXPECT_EQ(0, pool_->NumConnectJobsInGroup("b")); | 3111 EXPECT_EQ(0, pool_->NumConnectJobsInGroup("b")); |
3110 EXPECT_EQ(1, pool_->IdleSocketCountInGroup("b")); | 3112 EXPECT_EQ(1, pool_->IdleSocketCountInGroup("b")); |
3111 EXPECT_EQ(0, pool_->NumActiveSocketsInGroup("b")); | 3113 EXPECT_EQ(0, pool_->NumActiveSocketsInGroup("b")); |
3112 } | 3114 } |
3113 | 3115 |
3114 } // namespace | 3116 } // namespace |
3115 | 3117 |
3116 } // namespace net | 3118 } // namespace net |
OLD | NEW |