Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(415)

Side by Side Diff: net/socket/client_socket_pool_base_unittest.cc

Issue 6580006: Implement ClientSocketFactory::ClearSSLSessionCache (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Addressed wtc's final comments Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/socket/client_socket_factory.cc ('k') | net/socket/socket_test_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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() {
121 NOTIMPLEMENTED();
122 }
123
120 void WaitForSignal(TestConnectJob* job) { waiting_jobs_.push_back(job); } 124 void WaitForSignal(TestConnectJob* job) { waiting_jobs_.push_back(job); }
121 void SignalJobs(); 125 void SignalJobs();
122 126
123 int allocation_count() const { return allocation_count_; } 127 int allocation_count() const { return allocation_count_; }
124 128
125 private: 129 private:
126 int allocation_count_; 130 int allocation_count_;
127 std::vector<TestConnectJob*> waiting_jobs_; 131 std::vector<TestConnectJob*> waiting_jobs_;
128 }; 132 };
129 133
(...skipping 2977 matching lines...) Expand 10 before | Expand all | Expand 10 after
3107 EXPECT_EQ(1, pool_->IdleSocketCountInGroup("a")); 3111 EXPECT_EQ(1, pool_->IdleSocketCountInGroup("a"));
3108 EXPECT_EQ(0, pool_->NumActiveSocketsInGroup("a")); 3112 EXPECT_EQ(0, pool_->NumActiveSocketsInGroup("a"));
3109 EXPECT_EQ(0, pool_->NumConnectJobsInGroup("b")); 3113 EXPECT_EQ(0, pool_->NumConnectJobsInGroup("b"));
3110 EXPECT_EQ(1, pool_->IdleSocketCountInGroup("b")); 3114 EXPECT_EQ(1, pool_->IdleSocketCountInGroup("b"));
3111 EXPECT_EQ(0, pool_->NumActiveSocketsInGroup("b")); 3115 EXPECT_EQ(0, pool_->NumActiveSocketsInGroup("b"));
3112 } 3116 }
3113 3117
3114 } // namespace 3118 } // namespace
3115 3119
3116 } // namespace net 3120 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/client_socket_factory.cc ('k') | net/socket/socket_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698