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 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
694 OVERRIDE; | 694 OVERRIDE; |
695 virtual int ExportKeyingMaterial(const base::StringPiece& label, | 695 virtual int ExportKeyingMaterial(const base::StringPiece& label, |
696 bool has_context, | 696 bool has_context, |
697 const base::StringPiece& context, | 697 const base::StringPiece& context, |
698 unsigned char* out, | 698 unsigned char* out, |
699 unsigned int outlen) OVERRIDE; | 699 unsigned int outlen) OVERRIDE; |
700 virtual int GetTLSUniqueChannelBinding(std::string* out) OVERRIDE; | 700 virtual int GetTLSUniqueChannelBinding(std::string* out) OVERRIDE; |
701 virtual NextProtoStatus GetNextProto(std::string* proto, | 701 virtual NextProtoStatus GetNextProto(std::string* proto, |
702 std::string* server_protos) OVERRIDE; | 702 std::string* server_protos) OVERRIDE; |
703 virtual ServerBoundCertService* GetServerBoundCertService() const OVERRIDE; | 703 virtual ServerBoundCertService* GetServerBoundCertService() const OVERRIDE; |
704 // Returns the certificate chain as presented by server. | |
705 virtual const scoped_refptr<X509Certificate> GetUnverifiedServerCertificate() | |
wtc
2014/03/10 21:45:34
Should this method be public? The base class SSLCl
haavardm
2014/03/11 18:43:21
Done.
| |
706 const OVERRIDE; | |
704 | 707 |
705 protected: | 708 protected: |
706 virtual ~MockClientSocket(); | 709 virtual ~MockClientSocket(); |
707 void RunCallbackAsync(const CompletionCallback& callback, int result); | 710 void RunCallbackAsync(const CompletionCallback& callback, int result); |
708 void RunCallback(const CompletionCallback& callback, int result); | 711 void RunCallback(const CompletionCallback& callback, int result); |
709 | 712 |
710 // True if Connect completed successfully and Disconnect hasn't been called. | 713 // True if Connect completed successfully and Disconnect hasn't been called. |
711 bool connected_; | 714 bool connected_; |
712 | 715 |
713 // Address of the "remote" peer we're connected to. | 716 // Address of the "remote" peer we're connected to. |
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1280 | 1283 |
1281 extern const char kSOCKS5OkRequest[]; | 1284 extern const char kSOCKS5OkRequest[]; |
1282 extern const int kSOCKS5OkRequestLength; | 1285 extern const int kSOCKS5OkRequestLength; |
1283 | 1286 |
1284 extern const char kSOCKS5OkResponse[]; | 1287 extern const char kSOCKS5OkResponse[]; |
1285 extern const int kSOCKS5OkResponseLength; | 1288 extern const int kSOCKS5OkResponseLength; |
1286 | 1289 |
1287 } // namespace net | 1290 } // namespace net |
1288 | 1291 |
1289 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ | 1292 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ |
OLD | NEW |