OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 | 604 |
605 // SSLClientSocket methods: | 605 // SSLClientSocket methods: |
606 virtual void GetSSLInfo(net::SSLInfo* ssl_info) OVERRIDE; | 606 virtual void GetSSLInfo(net::SSLInfo* ssl_info) OVERRIDE; |
607 virtual void GetSSLCertRequestInfo( | 607 virtual void GetSSLCertRequestInfo( |
608 net::SSLCertRequestInfo* cert_request_info) OVERRIDE; | 608 net::SSLCertRequestInfo* cert_request_info) OVERRIDE; |
609 virtual int ExportKeyingMaterial(const base::StringPiece& label, | 609 virtual int ExportKeyingMaterial(const base::StringPiece& label, |
610 const base::StringPiece& context, | 610 const base::StringPiece& context, |
611 unsigned char *out, | 611 unsigned char *out, |
612 unsigned int outlen) OVERRIDE; | 612 unsigned int outlen) OVERRIDE; |
613 virtual NextProtoStatus GetNextProto(std::string* proto) OVERRIDE; | 613 virtual NextProtoStatus GetNextProto(std::string* proto) OVERRIDE; |
| 614 virtual bool WasOriginBoundCertNegotiated() OVERRIDE; |
614 | 615 |
615 protected: | 616 protected: |
616 virtual ~MockClientSocket(); | 617 virtual ~MockClientSocket(); |
617 void RunCallbackAsync(net::OldCompletionCallback* callback, int result); | 618 void RunCallbackAsync(net::OldCompletionCallback* callback, int result); |
618 void RunCallback(net::OldCompletionCallback*, int result); | 619 void RunCallback(net::OldCompletionCallback*, int result); |
619 | 620 |
620 ScopedRunnableMethodFactory<MockClientSocket> method_factory_; | 621 ScopedRunnableMethodFactory<MockClientSocket> method_factory_; |
621 | 622 |
622 // True if Connect completed successfully and Disconnect hasn't been called. | 623 // True if Connect completed successfully and Disconnect hasn't been called. |
623 bool connected_; | 624 bool connected_; |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1034 | 1035 |
1035 extern const char kSOCKS5OkRequest[]; | 1036 extern const char kSOCKS5OkRequest[]; |
1036 extern const int kSOCKS5OkRequestLength; | 1037 extern const int kSOCKS5OkRequestLength; |
1037 | 1038 |
1038 extern const char kSOCKS5OkResponse[]; | 1039 extern const char kSOCKS5OkResponse[]; |
1039 extern const int kSOCKS5OkResponseLength; | 1040 extern const int kSOCKS5OkResponseLength; |
1040 | 1041 |
1041 } // namespace net | 1042 } // namespace net |
1042 | 1043 |
1043 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ | 1044 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ |
OLD | NEW |