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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
595 virtual void SetOmniboxSpeculation() OVERRIDE {} | 595 virtual void SetOmniboxSpeculation() OVERRIDE {} |
596 | 596 |
597 // SSLClientSocket implementation. | 597 // SSLClientSocket implementation. |
598 virtual void GetSSLCertRequestInfo( | 598 virtual void GetSSLCertRequestInfo( |
599 SSLCertRequestInfo* cert_request_info) OVERRIDE; | 599 SSLCertRequestInfo* cert_request_info) OVERRIDE; |
600 virtual int ExportKeyingMaterial(const base::StringPiece& label, | 600 virtual int ExportKeyingMaterial(const base::StringPiece& label, |
601 bool has_context, | 601 bool has_context, |
602 const base::StringPiece& context, | 602 const base::StringPiece& context, |
603 unsigned char* out, | 603 unsigned char* out, |
604 unsigned int outlen) OVERRIDE; | 604 unsigned int outlen) OVERRIDE; |
| 605 virtual int GetTLSUniqueChannelBinding(std::string* out) OVERRIDE; |
605 virtual NextProtoStatus GetNextProto(std::string* proto, | 606 virtual NextProtoStatus GetNextProto(std::string* proto, |
606 std::string* server_protos) OVERRIDE; | 607 std::string* server_protos) OVERRIDE; |
607 virtual ServerBoundCertService* GetServerBoundCertService() const OVERRIDE; | 608 virtual ServerBoundCertService* GetServerBoundCertService() const OVERRIDE; |
608 | 609 |
609 protected: | 610 protected: |
610 virtual ~MockClientSocket(); | 611 virtual ~MockClientSocket(); |
611 void RunCallbackAsync(const CompletionCallback& callback, int result); | 612 void RunCallbackAsync(const CompletionCallback& callback, int result); |
612 void RunCallback(const CompletionCallback& callback, int result); | 613 void RunCallback(const CompletionCallback& callback, int result); |
613 | 614 |
614 base::WeakPtrFactory<MockClientSocket> weak_factory_; | 615 base::WeakPtrFactory<MockClientSocket> weak_factory_; |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1051 | 1052 |
1052 extern const char kSOCKS5OkRequest[]; | 1053 extern const char kSOCKS5OkRequest[]; |
1053 extern const int kSOCKS5OkRequestLength; | 1054 extern const int kSOCKS5OkRequestLength; |
1054 | 1055 |
1055 extern const char kSOCKS5OkResponse[]; | 1056 extern const char kSOCKS5OkResponse[]; |
1056 extern const int kSOCKS5OkResponseLength; | 1057 extern const int kSOCKS5OkResponseLength; |
1057 | 1058 |
1058 } // namespace net | 1059 } // namespace net |
1059 | 1060 |
1060 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ | 1061 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ |
OLD | NEW |