| OLD | NEW |
| 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 #ifndef NET_SOCKET_SOCKET_TEST_UTIL_H_ | 5 #ifndef NET_SOCKET_SOCKET_TEST_UTIL_H_ |
| 6 #define NET_SOCKET_SOCKET_TEST_UTIL_H_ | 6 #define NET_SOCKET_SOCKET_TEST_UTIL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <cstring> | 9 #include <cstring> |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 MockSSLClientSocket* GetMockSSLClientSocket(size_t index) const; | 526 MockSSLClientSocket* GetMockSSLClientSocket(size_t index) const; |
| 527 | 527 |
| 528 // ClientSocketFactory | 528 // ClientSocketFactory |
| 529 virtual ClientSocket* CreateTCPClientSocket( | 529 virtual ClientSocket* CreateTCPClientSocket( |
| 530 const AddressList& addresses, | 530 const AddressList& addresses, |
| 531 NetLog* net_log, | 531 NetLog* net_log, |
| 532 const NetLog::Source& source); | 532 const NetLog::Source& source); |
| 533 virtual SSLClientSocket* CreateSSLClientSocket( | 533 virtual SSLClientSocket* CreateSSLClientSocket( |
| 534 ClientSocketHandle* transport_socket, | 534 ClientSocketHandle* transport_socket, |
| 535 const std::string& hostname, | 535 const std::string& hostname, |
| 536 uint16 port, |
| 536 const SSLConfig& ssl_config, | 537 const SSLConfig& ssl_config, |
| 537 SSLHostInfo* ssl_host_info, | 538 SSLHostInfo* ssl_host_info, |
| 538 DnsRRResolver* dnsrr_resolver); | 539 DnsRRResolver* dnsrr_resolver); |
| 539 SocketDataProviderArray<SocketDataProvider>& mock_data() { | 540 SocketDataProviderArray<SocketDataProvider>& mock_data() { |
| 540 return mock_data_; | 541 return mock_data_; |
| 541 } | 542 } |
| 542 std::vector<MockTCPClientSocket*>& tcp_client_sockets() { | 543 std::vector<MockTCPClientSocket*>& tcp_client_sockets() { |
| 543 return tcp_client_sockets_; | 544 return tcp_client_sockets_; |
| 544 } | 545 } |
| 545 | 546 |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 871 // created. | 872 // created. |
| 872 MockSSLClientSocket* GetMockSSLClientSocket(size_t index) const; | 873 MockSSLClientSocket* GetMockSSLClientSocket(size_t index) const; |
| 873 | 874 |
| 874 // ClientSocketFactory | 875 // ClientSocketFactory |
| 875 virtual ClientSocket* CreateTCPClientSocket(const AddressList& addresses, | 876 virtual ClientSocket* CreateTCPClientSocket(const AddressList& addresses, |
| 876 NetLog* net_log, | 877 NetLog* net_log, |
| 877 const NetLog::Source& source); | 878 const NetLog::Source& source); |
| 878 virtual SSLClientSocket* CreateSSLClientSocket( | 879 virtual SSLClientSocket* CreateSSLClientSocket( |
| 879 ClientSocketHandle* transport_socket, | 880 ClientSocketHandle* transport_socket, |
| 880 const std::string& hostname, | 881 const std::string& hostname, |
| 882 uint16 port, |
| 881 const SSLConfig& ssl_config, | 883 const SSLConfig& ssl_config, |
| 882 SSLHostInfo* ssl_host_info, | 884 SSLHostInfo* ssl_host_info, |
| 883 DnsRRResolver* dnsrr_resolver); | 885 DnsRRResolver* dnsrr_resolver); |
| 884 | 886 |
| 885 SocketDataProviderArray<DeterministicSocketData>& mock_data() { | 887 SocketDataProviderArray<DeterministicSocketData>& mock_data() { |
| 886 return mock_data_; | 888 return mock_data_; |
| 887 } | 889 } |
| 888 std::vector<DeterministicMockTCPClientSocket*>& tcp_client_sockets() { | 890 std::vector<DeterministicMockTCPClientSocket*>& tcp_client_sockets() { |
| 889 return tcp_client_sockets_; | 891 return tcp_client_sockets_; |
| 890 } | 892 } |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 936 | 938 |
| 937 extern const char kSOCKS5OkRequest[]; | 939 extern const char kSOCKS5OkRequest[]; |
| 938 extern const int kSOCKS5OkRequestLength; | 940 extern const int kSOCKS5OkRequestLength; |
| 939 | 941 |
| 940 extern const char kSOCKS5OkResponse[]; | 942 extern const char kSOCKS5OkResponse[]; |
| 941 extern const int kSOCKS5OkResponseLength; | 943 extern const int kSOCKS5OkResponseLength; |
| 942 | 944 |
| 943 } // namespace net | 945 } // namespace net |
| 944 | 946 |
| 945 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ | 947 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ |
| OLD | NEW |