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

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

Issue 5386001: Cache certificate verification results in memory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Upload before checkin Created 10 years 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/client_socket_pool_manager.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/platform_thread.h" 10 #include "base/platform_thread.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 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 DnsCertProvenanceChecker* dns_cert_checker) { 114 DnsCertProvenanceChecker* dns_cert_checker) {
114 NOTIMPLEMENTED(); 115 NOTIMPLEMENTED();
115 delete ssl_host_info; 116 delete ssl_host_info;
116 return NULL; 117 return NULL;
117 } 118 }
118 119
119 void WaitForSignal(TestConnectJob* job) { waiting_jobs_.push_back(job); } 120 void WaitForSignal(TestConnectJob* job) { waiting_jobs_.push_back(job); }
120 void SignalJobs(); 121 void SignalJobs();
121 122
122 int allocation_count() const { return allocation_count_; } 123 int allocation_count() const { return allocation_count_; }
(...skipping 2973 matching lines...) Expand 10 before | Expand all | Expand 10 after
3096 EXPECT_EQ(1, pool_->IdleSocketCountInGroup("a")); 3097 EXPECT_EQ(1, pool_->IdleSocketCountInGroup("a"));
3097 EXPECT_EQ(0, pool_->NumActiveSocketsInGroup("a")); 3098 EXPECT_EQ(0, pool_->NumActiveSocketsInGroup("a"));
3098 EXPECT_EQ(0, pool_->NumConnectJobsInGroup("b")); 3099 EXPECT_EQ(0, pool_->NumConnectJobsInGroup("b"));
3099 EXPECT_EQ(1, pool_->IdleSocketCountInGroup("b")); 3100 EXPECT_EQ(1, pool_->IdleSocketCountInGroup("b"));
3100 EXPECT_EQ(0, pool_->NumActiveSocketsInGroup("b")); 3101 EXPECT_EQ(0, pool_->NumActiveSocketsInGroup("b"));
3101 } 3102 }
3102 3103
3103 } // namespace 3104 } // namespace
3104 3105
3105 } // namespace net 3106 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/client_socket_factory.cc ('k') | net/socket/client_socket_pool_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698