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

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

Issue 2870030: Implement SSLClientSocketPool. (Closed)
Patch Set: Rebase and fix mac compile error Created 10 years, 5 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
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/tcp_client_socket_pool.h" 5 #include "net/socket/tcp_client_socket_pool.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 "net/base/mock_host_resolver.h" 10 #include "net/base/mock_host_resolver.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 ClientSocketPool::kMaxConnectRetryIntervalMs); 222 ClientSocketPool::kMaxConnectRetryIntervalMs);
223 case MOCK_STALLED_CLIENT_SOCKET: 223 case MOCK_STALLED_CLIENT_SOCKET:
224 return new MockPendingClientSocket(true, true, 0); 224 return new MockPendingClientSocket(true, true, 0);
225 default: 225 default:
226 NOTREACHED(); 226 NOTREACHED();
227 return new MockClientSocket(); 227 return new MockClientSocket();
228 } 228 }
229 } 229 }
230 230
231 virtual SSLClientSocket* CreateSSLClientSocket( 231 virtual SSLClientSocket* CreateSSLClientSocket(
232 ClientSocket* transport_socket, 232 ClientSocketHandle* transport_socket,
233 const std::string& hostname, 233 const std::string& hostname,
234 const SSLConfig& ssl_config) { 234 const SSLConfig& ssl_config) {
235 NOTIMPLEMENTED(); 235 NOTIMPLEMENTED();
236 return NULL; 236 return NULL;
237 } 237 }
238 238
239 int allocation_count() const { return allocation_count_; } 239 int allocation_count() const { return allocation_count_; }
240 240
241 // Set the default ClientSocketType. 241 // Set the default ClientSocketType.
242 void set_client_socket_type(ClientSocketType type) { 242 void set_client_socket_type(ClientSocketType type) {
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 EXPECT_FALSE(handle.socket()); 874 EXPECT_FALSE(handle.socket());
875 handle.Reset(); 875 handle.Reset();
876 876
877 // Reset for the next case. 877 // Reset for the next case.
878 host_resolver_->set_synchronous_mode(false); 878 host_resolver_->set_synchronous_mode(false);
879 } 879 }
880 880
881 } // namespace 881 } // namespace
882 882
883 } // namespace net 883 } // namespace net
OLDNEW
« net/socket/ssl_client_socket_pool.cc ('K') | « net/socket/tcp_client_socket_pool.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698