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 | 7 |
8 #include <cstring> | 8 #include <cstring> |
9 #include <deque> | 9 #include <deque> |
10 #include <string> | 10 #include <string> |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
697 virtual void Disconnect() OVERRIDE; | 697 virtual void Disconnect() OVERRIDE; |
698 virtual bool IsConnected() const OVERRIDE; | 698 virtual bool IsConnected() const OVERRIDE; |
699 virtual bool IsConnectedAndIdle() const OVERRIDE; | 699 virtual bool IsConnectedAndIdle() const OVERRIDE; |
700 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; | 700 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; |
701 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; | 701 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; |
702 virtual const BoundNetLog& NetLog() const OVERRIDE; | 702 virtual const BoundNetLog& NetLog() const OVERRIDE; |
703 virtual void SetSubresourceSpeculation() OVERRIDE {} | 703 virtual void SetSubresourceSpeculation() OVERRIDE {} |
704 virtual void SetOmniboxSpeculation() OVERRIDE {} | 704 virtual void SetOmniboxSpeculation() OVERRIDE {} |
705 | 705 |
706 // SSLClientSocket implementation. | 706 // SSLClientSocket implementation. |
| 707 virtual std::string GetSessionCacheKey() const OVERRIDE; |
707 virtual bool InSessionCache() const OVERRIDE; | 708 virtual bool InSessionCache() const OVERRIDE; |
708 virtual void WatchSessionForCompletion(const base::Closure& cb) OVERRIDE; | 709 virtual void WatchSessionForCompletion(const base::Closure& cb) OVERRIDE; |
709 virtual void SetSocketFailureCallback(const base::Closure& cb) OVERRIDE; | 710 virtual void SetSocketFailureCallback(const base::Closure& cb) OVERRIDE; |
710 virtual void OnSocketFailure() OVERRIDE; | 711 virtual void OnSocketFailure() OVERRIDE; |
711 virtual void SetIsLeader() OVERRIDE; | 712 virtual void SetIsLeader() OVERRIDE; |
712 virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) | 713 virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) |
713 OVERRIDE; | 714 OVERRIDE; |
714 virtual int ExportKeyingMaterial(const base::StringPiece& label, | 715 virtual int ExportKeyingMaterial(const base::StringPiece& label, |
715 bool has_context, | 716 bool has_context, |
716 const base::StringPiece& context, | 717 const base::StringPiece& context, |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1314 | 1315 |
1315 extern const char kSOCKS5OkRequest[]; | 1316 extern const char kSOCKS5OkRequest[]; |
1316 extern const int kSOCKS5OkRequestLength; | 1317 extern const int kSOCKS5OkRequestLength; |
1317 | 1318 |
1318 extern const char kSOCKS5OkResponse[]; | 1319 extern const char kSOCKS5OkResponse[]; |
1319 extern const int kSOCKS5OkResponseLength; | 1320 extern const int kSOCKS5OkResponseLength; |
1320 | 1321 |
1321 } // namespace net | 1322 } // namespace net |
1322 | 1323 |
1323 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ | 1324 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ |
OLD | NEW |