Chromium Code Reviews| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <cstring> | 9 #include <cstring> |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 589 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; | 589 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; |
| 590 virtual const BoundNetLog& NetLog() const OVERRIDE; | 590 virtual const BoundNetLog& NetLog() const OVERRIDE; |
| 591 virtual void SetSubresourceSpeculation() OVERRIDE {} | 591 virtual void SetSubresourceSpeculation() OVERRIDE {} |
| 592 virtual void SetOmniboxSpeculation() OVERRIDE {} | 592 virtual void SetOmniboxSpeculation() OVERRIDE {} |
| 593 | 593 |
| 594 // SSLClientSocket implementation. | 594 // SSLClientSocket implementation. |
| 595 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; | 595 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; |
| 596 virtual void GetSSLCertRequestInfo( | 596 virtual void GetSSLCertRequestInfo( |
| 597 SSLCertRequestInfo* cert_request_info) OVERRIDE; | 597 SSLCertRequestInfo* cert_request_info) OVERRIDE; |
| 598 virtual int ExportKeyingMaterial(const base::StringPiece& label, | 598 virtual int ExportKeyingMaterial(const base::StringPiece& label, |
| 599 bool has_context, | |
| 599 const base::StringPiece& context, | 600 const base::StringPiece& context, |
| 600 unsigned char *out, | 601 unsigned char *out, |
|
Ryan Sleevi
2012/03/10 04:23:31
nit: "unsigned char *" -> "unsigned char* "
| |
| 601 unsigned int outlen) OVERRIDE; | 602 unsigned int outlen) OVERRIDE; |
| 602 virtual NextProtoStatus GetNextProto(std::string* proto, | 603 virtual NextProtoStatus GetNextProto(std::string* proto, |
| 603 std::string* server_protos) OVERRIDE; | 604 std::string* server_protos) OVERRIDE; |
| 604 virtual OriginBoundCertService* GetOriginBoundCertService() const OVERRIDE; | 605 virtual OriginBoundCertService* GetOriginBoundCertService() const OVERRIDE; |
| 605 | 606 |
| 606 protected: | 607 protected: |
| 607 virtual ~MockClientSocket(); | 608 virtual ~MockClientSocket(); |
| 608 void RunCallbackAsync(const CompletionCallback& callback, int result); | 609 void RunCallbackAsync(const CompletionCallback& callback, int result); |
| 609 void RunCallback(const CompletionCallback& callback, int result); | 610 void RunCallback(const CompletionCallback& callback, int result); |
| 610 | 611 |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1042 | 1043 |
| 1043 extern const char kSOCKS5OkRequest[]; | 1044 extern const char kSOCKS5OkRequest[]; |
| 1044 extern const int kSOCKS5OkRequestLength; | 1045 extern const int kSOCKS5OkRequestLength; |
| 1045 | 1046 |
| 1046 extern const char kSOCKS5OkResponse[]; | 1047 extern const char kSOCKS5OkResponse[]; |
| 1047 extern const int kSOCKS5OkResponseLength; | 1048 extern const int kSOCKS5OkResponseLength; |
| 1048 | 1049 |
| 1049 } // namespace net | 1050 } // namespace net |
| 1050 | 1051 |
| 1051 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ | 1052 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ |
| OLD | NEW |