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

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

Issue 4339001: Correctly handle SSL Client Authentication requests when connecting... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
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/basictypes.h"
wtc 2010/11/11 01:11:35 Please move this #include to client_socket_factory
Ryan Hamilton 2010/11/11 18:57:00 Done.
7 #include "base/callback.h" 8 #include "base/callback.h"
8 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
9 #include "base/message_loop.h" 10 #include "base/message_loop.h"
10 #include "base/platform_thread.h" 11 #include "base/platform_thread.h"
11 #include "base/ref_counted.h" 12 #include "base/ref_counted.h"
12 #include "base/scoped_vector.h" 13 #include "base/scoped_vector.h"
13 #include "base/string_number_conversions.h" 14 #include "base/string_number_conversions.h"
14 #include "base/string_util.h" 15 #include "base/string_util.h"
15 #include "net/base/net_errors.h" 16 #include "net/base/net_errors.h"
16 #include "net/base/net_log.h" 17 #include "net/base/net_log.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 const AddressList& addresses, 102 const AddressList& addresses,
102 NetLog* /* net_log */, 103 NetLog* /* net_log */,
103 const NetLog::Source& /*source*/) { 104 const NetLog::Source& /*source*/) {
104 allocation_count_++; 105 allocation_count_++;
105 return NULL; 106 return NULL;
106 } 107 }
107 108
108 virtual SSLClientSocket* CreateSSLClientSocket( 109 virtual SSLClientSocket* CreateSSLClientSocket(
109 ClientSocketHandle* transport_socket, 110 ClientSocketHandle* transport_socket,
110 const std::string& hostname, 111 const std::string& hostname,
112 uint16 port,
111 const SSLConfig& ssl_config, 113 const SSLConfig& ssl_config,
112 SSLHostInfo* ssl_host_info, 114 SSLHostInfo* ssl_host_info,
113 DnsRRResolver* dnsrr_resolver) { 115 DnsRRResolver* dnsrr_resolver) {
114 NOTIMPLEMENTED(); 116 NOTIMPLEMENTED();
115 delete ssl_host_info; 117 delete ssl_host_info;
116 return NULL; 118 return NULL;
117 } 119 }
118 120
119 void WaitForSignal(TestConnectJob* job) { waiting_jobs_.push_back(job); } 121 void WaitForSignal(TestConnectJob* job) { waiting_jobs_.push_back(job); }
120 void SignalJobs(); 122 void SignalJobs();
(...skipping 2872 matching lines...) Expand 10 before | Expand all | Expand 10 after
2993 ASSERT_EQ(OK, callback1.WaitForResult()); 2995 ASSERT_EQ(OK, callback1.WaitForResult());
2994 2996
2995 handle1.Reset(); 2997 handle1.Reset();
2996 2998
2997 EXPECT_EQ(1, pool_->IdleSocketCountInGroup("a")); 2999 EXPECT_EQ(1, pool_->IdleSocketCountInGroup("a"));
2998 } 3000 }
2999 3001
3000 } // namespace 3002 } // namespace
3001 3003
3002 } // namespace net 3004 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698