| 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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 // ClientSocketFactory | 530 // ClientSocketFactory |
| 531 virtual ClientSocket* CreateTCPClientSocket( | 531 virtual ClientSocket* CreateTCPClientSocket( |
| 532 const AddressList& addresses, | 532 const AddressList& addresses, |
| 533 NetLog* net_log, | 533 NetLog* net_log, |
| 534 const NetLog::Source& source); | 534 const NetLog::Source& source); |
| 535 virtual SSLClientSocket* CreateSSLClientSocket( | 535 virtual SSLClientSocket* CreateSSLClientSocket( |
| 536 ClientSocketHandle* transport_socket, | 536 ClientSocketHandle* transport_socket, |
| 537 const HostPortPair& host_and_port, | 537 const HostPortPair& host_and_port, |
| 538 const SSLConfig& ssl_config, | 538 const SSLConfig& ssl_config, |
| 539 SSLHostInfo* ssl_host_info, | 539 SSLHostInfo* ssl_host_info, |
| 540 CertVerifier* cert_verifier, |
| 540 DnsCertProvenanceChecker* dns_cert_checker); | 541 DnsCertProvenanceChecker* dns_cert_checker); |
| 541 SocketDataProviderArray<SocketDataProvider>& mock_data() { | 542 SocketDataProviderArray<SocketDataProvider>& mock_data() { |
| 542 return mock_data_; | 543 return mock_data_; |
| 543 } | 544 } |
| 544 std::vector<MockTCPClientSocket*>& tcp_client_sockets() { | 545 std::vector<MockTCPClientSocket*>& tcp_client_sockets() { |
| 545 return tcp_client_sockets_; | 546 return tcp_client_sockets_; |
| 546 } | 547 } |
| 547 | 548 |
| 548 private: | 549 private: |
| 549 SocketDataProviderArray<SocketDataProvider> mock_data_; | 550 SocketDataProviderArray<SocketDataProvider> mock_data_; |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 875 | 876 |
| 876 // ClientSocketFactory | 877 // ClientSocketFactory |
| 877 virtual ClientSocket* CreateTCPClientSocket(const AddressList& addresses, | 878 virtual ClientSocket* CreateTCPClientSocket(const AddressList& addresses, |
| 878 NetLog* net_log, | 879 NetLog* net_log, |
| 879 const NetLog::Source& source); | 880 const NetLog::Source& source); |
| 880 virtual SSLClientSocket* CreateSSLClientSocket( | 881 virtual SSLClientSocket* CreateSSLClientSocket( |
| 881 ClientSocketHandle* transport_socket, | 882 ClientSocketHandle* transport_socket, |
| 882 const HostPortPair& host_and_port, | 883 const HostPortPair& host_and_port, |
| 883 const SSLConfig& ssl_config, | 884 const SSLConfig& ssl_config, |
| 884 SSLHostInfo* ssl_host_info, | 885 SSLHostInfo* ssl_host_info, |
| 886 CertVerifier* cert_verifier, |
| 885 DnsCertProvenanceChecker* dns_cert_checker); | 887 DnsCertProvenanceChecker* dns_cert_checker); |
| 886 | 888 |
| 887 SocketDataProviderArray<DeterministicSocketData>& mock_data() { | 889 SocketDataProviderArray<DeterministicSocketData>& mock_data() { |
| 888 return mock_data_; | 890 return mock_data_; |
| 889 } | 891 } |
| 890 std::vector<DeterministicMockTCPClientSocket*>& tcp_client_sockets() { | 892 std::vector<DeterministicMockTCPClientSocket*>& tcp_client_sockets() { |
| 891 return tcp_client_sockets_; | 893 return tcp_client_sockets_; |
| 892 } | 894 } |
| 893 | 895 |
| 894 private: | 896 private: |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 938 | 940 |
| 939 extern const char kSOCKS5OkRequest[]; | 941 extern const char kSOCKS5OkRequest[]; |
| 940 extern const int kSOCKS5OkRequestLength; | 942 extern const int kSOCKS5OkRequestLength; |
| 941 | 943 |
| 942 extern const char kSOCKS5OkResponse[]; | 944 extern const char kSOCKS5OkResponse[]; |
| 943 extern const int kSOCKS5OkResponseLength; | 945 extern const int kSOCKS5OkResponseLength; |
| 944 | 946 |
| 945 } // namespace net | 947 } // namespace net |
| 946 | 948 |
| 947 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ | 949 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ |
| OLD | NEW |