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 #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 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; | 743 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; |
744 | 744 |
745 // SSLClientSocket implementation. | 745 // SSLClientSocket implementation. |
746 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; | 746 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; |
747 virtual void GetSSLCertRequestInfo( | 747 virtual void GetSSLCertRequestInfo( |
748 SSLCertRequestInfo* cert_request_info) OVERRIDE; | 748 SSLCertRequestInfo* cert_request_info) OVERRIDE; |
749 virtual NextProtoStatus GetNextProto(std::string* proto, | 749 virtual NextProtoStatus GetNextProto(std::string* proto, |
750 std::string* server_protos) OVERRIDE; | 750 std::string* server_protos) OVERRIDE; |
751 virtual bool was_npn_negotiated() const OVERRIDE; | 751 virtual bool was_npn_negotiated() const OVERRIDE; |
752 virtual bool set_was_npn_negotiated(bool negotiated) OVERRIDE; | 752 virtual bool set_was_npn_negotiated(bool negotiated) OVERRIDE; |
753 virtual NextProto protocol_negotiated() const OVERRIDE; | |
754 virtual void set_protocol_negotiated( | 753 virtual void set_protocol_negotiated( |
755 NextProto protocol_negotiated) OVERRIDE; | 754 NextProto protocol_negotiated) OVERRIDE; |
| 755 virtual NextProto GetNegotiatedProtocol() const OVERRIDE; |
756 | 756 |
757 // This MockSocket does not implement the manual async IO feature. | 757 // This MockSocket does not implement the manual async IO feature. |
758 virtual void OnReadComplete(const MockRead& data) OVERRIDE; | 758 virtual void OnReadComplete(const MockRead& data) OVERRIDE; |
759 | 759 |
760 virtual bool WasDomainBoundCertSent() const OVERRIDE; | 760 virtual bool WasDomainBoundCertSent() const OVERRIDE; |
761 virtual SSLClientCertType domain_bound_cert_type() const OVERRIDE; | 761 virtual SSLClientCertType domain_bound_cert_type() const OVERRIDE; |
762 virtual SSLClientCertType set_domain_bound_cert_type( | 762 virtual SSLClientCertType set_domain_bound_cert_type( |
763 SSLClientCertType type) OVERRIDE; | 763 SSLClientCertType type) OVERRIDE; |
764 virtual ServerBoundCertService* GetServerBoundCertService() const OVERRIDE; | 764 virtual ServerBoundCertService* GetServerBoundCertService() const OVERRIDE; |
765 | 765 |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1043 | 1043 |
1044 extern const char kSOCKS5OkRequest[]; | 1044 extern const char kSOCKS5OkRequest[]; |
1045 extern const int kSOCKS5OkRequestLength; | 1045 extern const int kSOCKS5OkRequestLength; |
1046 | 1046 |
1047 extern const char kSOCKS5OkResponse[]; | 1047 extern const char kSOCKS5OkResponse[]; |
1048 extern const int kSOCKS5OkResponseLength; | 1048 extern const int kSOCKS5OkResponseLength; |
1049 | 1049 |
1050 } // namespace net | 1050 } // namespace net |
1051 | 1051 |
1052 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ | 1052 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ |
OLD | NEW |