| 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 #include "net/socket/socket_test_util.h" | 5 #include "net/socket/socket_test_util.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 | 710 |
| 711 int MockClientSocket::ExportKeyingMaterial(const base::StringPiece& label, | 711 int MockClientSocket::ExportKeyingMaterial(const base::StringPiece& label, |
| 712 bool has_context, | 712 bool has_context, |
| 713 const base::StringPiece& context, | 713 const base::StringPiece& context, |
| 714 unsigned char* out, | 714 unsigned char* out, |
| 715 unsigned int outlen) { | 715 unsigned int outlen) { |
| 716 memset(out, 'A', outlen); | 716 memset(out, 'A', outlen); |
| 717 return OK; | 717 return OK; |
| 718 } | 718 } |
| 719 | 719 |
| 720 int MockClientSocket::GetTLSUniqueChannelBinding(std::string* out) { |
| 721 out->assign("MOCK_TLSUNIQ"); |
| 722 return OK; |
| 723 } |
| 724 |
| 720 ServerBoundCertService* MockClientSocket::GetServerBoundCertService() const { | 725 ServerBoundCertService* MockClientSocket::GetServerBoundCertService() const { |
| 721 NOTREACHED(); | 726 NOTREACHED(); |
| 722 return NULL; | 727 return NULL; |
| 723 } | 728 } |
| 724 | 729 |
| 725 SSLClientSocket::NextProtoStatus | 730 SSLClientSocket::NextProtoStatus |
| 726 MockClientSocket::GetNextProto(std::string* proto, std::string* server_protos) { | 731 MockClientSocket::GetNextProto(std::string* proto, std::string* server_protos) { |
| 727 proto->clear(); | 732 proto->clear(); |
| 728 server_protos->clear(); | 733 server_protos->clear(); |
| 729 return SSLClientSocket::kNextProtoUnsupported; | 734 return SSLClientSocket::kNextProtoUnsupported; |
| (...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1656 | 1661 |
| 1657 const char kSOCKS5OkRequest[] = | 1662 const char kSOCKS5OkRequest[] = |
| 1658 { 0x05, 0x01, 0x00, 0x03, 0x04, 'h', 'o', 's', 't', 0x00, 0x50 }; | 1663 { 0x05, 0x01, 0x00, 0x03, 0x04, 'h', 'o', 's', 't', 0x00, 0x50 }; |
| 1659 const int kSOCKS5OkRequestLength = arraysize(kSOCKS5OkRequest); | 1664 const int kSOCKS5OkRequestLength = arraysize(kSOCKS5OkRequest); |
| 1660 | 1665 |
| 1661 const char kSOCKS5OkResponse[] = | 1666 const char kSOCKS5OkResponse[] = |
| 1662 { 0x05, 0x00, 0x00, 0x01, 127, 0, 0, 1, 0x00, 0x50 }; | 1667 { 0x05, 0x00, 0x00, 0x01, 127, 0, 0, 1, 0x00, 0x50 }; |
| 1663 const int kSOCKS5OkResponseLength = arraysize(kSOCKS5OkResponse); | 1668 const int kSOCKS5OkResponseLength = arraysize(kSOCKS5OkResponse); |
| 1664 | 1669 |
| 1665 } // namespace net | 1670 } // namespace net |
| OLD | NEW |