| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/mock_client_socket_pool_manager.h" | 5 #include "net/socket/mock_client_socket_pool_manager.h" |
| 6 | 6 |
| 7 #include "net/http/http_proxy_client_socket_pool.h" | 7 #include "net/http/http_proxy_client_socket_pool.h" |
| 8 #include "net/socket/socks_client_socket_pool.h" | 8 #include "net/socket/socks_client_socket_pool.h" |
| 9 #include "net/socket/ssl_client_socket_pool.h" | 9 #include "net/socket/ssl_client_socket_pool.h" |
| 10 #include "net/socket/transport_client_socket_pool.h" | 10 #include "net/socket/transport_client_socket_pool.h" |
| 11 | 11 |
| 12 namespace net { | 12 namespace net { |
| 13 | 13 |
| 14 MockClientSocketPoolManager::MockClientSocketPoolManager() {} | 14 MockClientSocketPoolManager::MockClientSocketPoolManager() { |
| 15 MockClientSocketPoolManager::~MockClientSocketPoolManager() {} | 15 } |
| 16 MockClientSocketPoolManager::~MockClientSocketPoolManager() { |
| 17 } |
| 16 | 18 |
| 17 void MockClientSocketPoolManager::SetTransportSocketPool( | 19 void MockClientSocketPoolManager::SetTransportSocketPool( |
| 18 TransportClientSocketPool* pool) { | 20 TransportClientSocketPool* pool) { |
| 19 transport_socket_pool_.reset(pool); | 21 transport_socket_pool_.reset(pool); |
| 20 } | 22 } |
| 21 | 23 |
| 22 void MockClientSocketPoolManager::SetSSLSocketPool( | 24 void MockClientSocketPoolManager::SetSSLSocketPool(SSLClientSocketPool* pool) { |
| 23 SSLClientSocketPool* pool) { | |
| 24 ssl_socket_pool_.reset(pool); | 25 ssl_socket_pool_.reset(pool); |
| 25 } | 26 } |
| 26 | 27 |
| 27 void MockClientSocketPoolManager::SetSocketPoolForSOCKSProxy( | 28 void MockClientSocketPoolManager::SetSocketPoolForSOCKSProxy( |
| 28 const HostPortPair& socks_proxy, | 29 const HostPortPair& socks_proxy, |
| 29 SOCKSClientSocketPool* pool) { | 30 SOCKSClientSocketPool* pool) { |
| 30 socks_socket_pools_[socks_proxy] = pool; | 31 socks_socket_pools_[socks_proxy] = pool; |
| 31 } | 32 } |
| 32 | 33 |
| 33 void MockClientSocketPoolManager::SetSocketPoolForHTTPProxy( | 34 void MockClientSocketPoolManager::SetSocketPoolForHTTPProxy( |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 return it->second; | 86 return it->second; |
| 86 return NULL; | 87 return NULL; |
| 87 } | 88 } |
| 88 | 89 |
| 89 base::Value* MockClientSocketPoolManager::SocketPoolInfoToValue() const { | 90 base::Value* MockClientSocketPoolManager::SocketPoolInfoToValue() const { |
| 90 NOTIMPLEMENTED(); | 91 NOTIMPLEMENTED(); |
| 91 return NULL; | 92 return NULL; |
| 92 } | 93 } |
| 93 | 94 |
| 94 } // namespace net | 95 } // namespace net |
| OLD | NEW |