| 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 "base/values.h" | 7 #include "base/values.h" |
| 8 #include "net/http/http_proxy_client_socket_pool.h" | 8 #include "net/http/http_proxy_client_socket_pool.h" |
| 9 #include "net/socket/socks_client_socket_pool.h" | 9 #include "net/socket/socks_client_socket_pool.h" |
| 10 #include "net/socket/ssl_client_socket_pool.h" | 10 #include "net/socket/ssl_client_socket_pool.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 | 45 |
| 46 void MockClientSocketPoolManager::FlushSocketPoolsWithError(int error) { | 46 void MockClientSocketPoolManager::FlushSocketPoolsWithError(int error) { |
| 47 NOTIMPLEMENTED(); | 47 NOTIMPLEMENTED(); |
| 48 } | 48 } |
| 49 | 49 |
| 50 void MockClientSocketPoolManager::CloseIdleSockets() { | 50 void MockClientSocketPoolManager::CloseIdleSockets() { |
| 51 NOTIMPLEMENTED(); | 51 NOTIMPLEMENTED(); |
| 52 } | 52 } |
| 53 | 53 |
| 54 void MockClientSocketPoolManager::CloseIdleSocketsInGroup( |
| 55 const std::string& group_name) { |
| 56 NOTIMPLEMENTED(); |
| 57 } |
| 58 |
| 54 TransportClientSocketPool* | 59 TransportClientSocketPool* |
| 55 MockClientSocketPoolManager::GetTransportSocketPool() { | 60 MockClientSocketPoolManager::GetTransportSocketPool() { |
| 56 return transport_socket_pool_.get(); | 61 return transport_socket_pool_.get(); |
| 57 } | 62 } |
| 58 | 63 |
| 59 SSLClientSocketPool* MockClientSocketPoolManager::GetSSLSocketPool() { | 64 SSLClientSocketPool* MockClientSocketPoolManager::GetSSLSocketPool() { |
| 60 return ssl_socket_pool_.get(); | 65 return ssl_socket_pool_.get(); |
| 61 } | 66 } |
| 62 | 67 |
| 63 SOCKSClientSocketPool* MockClientSocketPoolManager::GetSocketPoolForSOCKSProxy( | 68 SOCKSClientSocketPool* MockClientSocketPoolManager::GetSocketPoolForSOCKSProxy( |
| (...skipping 27 matching lines...) Expand all Loading... |
| 91 MockClientSocketPoolManager::SocketPoolInfoToValue() const { | 96 MockClientSocketPoolManager::SocketPoolInfoToValue() const { |
| 92 NOTIMPLEMENTED(); | 97 NOTIMPLEMENTED(); |
| 93 return std::unique_ptr<base::Value>(nullptr); | 98 return std::unique_ptr<base::Value>(nullptr); |
| 94 } | 99 } |
| 95 | 100 |
| 96 void MockClientSocketPoolManager::DumpMemoryStats( | 101 void MockClientSocketPoolManager::DumpMemoryStats( |
| 97 base::trace_event::ProcessMemoryDump* pmd, | 102 base::trace_event::ProcessMemoryDump* pmd, |
| 98 const std::string& parent_dump_absolute_name) const {} | 103 const std::string& parent_dump_absolute_name) const {} |
| 99 | 104 |
| 100 } // namespace net | 105 } // namespace net |
| OLD | NEW |