| 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 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 // SSLClientSocket implementation. | 783 // SSLClientSocket implementation. |
| 784 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; | 784 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; |
| 785 int ExportKeyingMaterial(const base::StringPiece& label, | 785 int ExportKeyingMaterial(const base::StringPiece& label, |
| 786 bool has_context, | 786 bool has_context, |
| 787 const base::StringPiece& context, | 787 const base::StringPiece& context, |
| 788 unsigned char* out, | 788 unsigned char* out, |
| 789 unsigned int outlen) override; | 789 unsigned int outlen) override; |
| 790 int GetTLSUniqueChannelBinding(std::string* out) override; | 790 int GetTLSUniqueChannelBinding(std::string* out) override; |
| 791 NextProtoStatus GetNextProto(std::string* proto) const override; | 791 NextProtoStatus GetNextProto(std::string* proto) const override; |
| 792 ChannelIDService* GetChannelIDService() const override; | 792 ChannelIDService* GetChannelIDService() const override; |
| 793 SSLFailureState GetSSLFailureState() const override; |
| 793 | 794 |
| 794 protected: | 795 protected: |
| 795 ~MockClientSocket() override; | 796 ~MockClientSocket() override; |
| 796 void RunCallbackAsync(const CompletionCallback& callback, int result); | 797 void RunCallbackAsync(const CompletionCallback& callback, int result); |
| 797 void RunCallback(const CompletionCallback& callback, int result); | 798 void RunCallback(const CompletionCallback& callback, int result); |
| 798 | 799 |
| 799 // SSLClientSocket implementation. | 800 // SSLClientSocket implementation. |
| 800 scoped_refptr<X509Certificate> GetUnverifiedServerCertificateChain() | 801 scoped_refptr<X509Certificate> GetUnverifiedServerCertificateChain() |
| 801 const override; | 802 const override; |
| 802 | 803 |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1378 | 1379 |
| 1379 extern const char kSOCKS5OkRequest[]; | 1380 extern const char kSOCKS5OkRequest[]; |
| 1380 extern const int kSOCKS5OkRequestLength; | 1381 extern const int kSOCKS5OkRequestLength; |
| 1381 | 1382 |
| 1382 extern const char kSOCKS5OkResponse[]; | 1383 extern const char kSOCKS5OkResponse[]; |
| 1383 extern const int kSOCKS5OkResponseLength; | 1384 extern const int kSOCKS5OkResponseLength; |
| 1384 | 1385 |
| 1385 } // namespace net | 1386 } // namespace net |
| 1386 | 1387 |
| 1387 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ | 1388 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ |
| OLD | NEW |