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 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 704 |
705 protected: | 705 protected: |
706 virtual ~MockClientSocket(); | 706 virtual ~MockClientSocket(); |
707 void RunCallbackAsync(const CompletionCallback& callback, int result); | 707 void RunCallbackAsync(const CompletionCallback& callback, int result); |
708 void RunCallback(const CompletionCallback& callback, int result); | 708 void RunCallback(const CompletionCallback& callback, int result); |
709 | 709 |
| 710 // SSLClientSocket implementation. |
| 711 virtual scoped_refptr<X509Certificate> GetUnverifiedServerCertificateChain() |
| 712 const OVERRIDE; |
| 713 |
710 // True if Connect completed successfully and Disconnect hasn't been called. | 714 // True if Connect completed successfully and Disconnect hasn't been called. |
711 bool connected_; | 715 bool connected_; |
712 | 716 |
713 // Address of the "remote" peer we're connected to. | 717 // Address of the "remote" peer we're connected to. |
714 IPEndPoint peer_addr_; | 718 IPEndPoint peer_addr_; |
715 | 719 |
716 BoundNetLog net_log_; | 720 BoundNetLog net_log_; |
717 | 721 |
718 base::WeakPtrFactory<MockClientSocket> weak_factory_; | 722 base::WeakPtrFactory<MockClientSocket> weak_factory_; |
719 | 723 |
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1280 | 1284 |
1281 extern const char kSOCKS5OkRequest[]; | 1285 extern const char kSOCKS5OkRequest[]; |
1282 extern const int kSOCKS5OkRequestLength; | 1286 extern const int kSOCKS5OkRequestLength; |
1283 | 1287 |
1284 extern const char kSOCKS5OkResponse[]; | 1288 extern const char kSOCKS5OkResponse[]; |
1285 extern const int kSOCKS5OkResponseLength; | 1289 extern const int kSOCKS5OkResponseLength; |
1286 | 1290 |
1287 } // namespace net | 1291 } // namespace net |
1288 | 1292 |
1289 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ | 1293 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ |
OLD | NEW |