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 988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
999 bool rv = ParseIPLiteralToNumber("192.0.2.33", &ip); | 999 bool rv = ParseIPLiteralToNumber("192.0.2.33", &ip); |
1000 CHECK(rv); | 1000 CHECK(rv); |
1001 *address = IPEndPoint(ip, 123); | 1001 *address = IPEndPoint(ip, 123); |
1002 return OK; | 1002 return OK; |
1003 } | 1003 } |
1004 | 1004 |
1005 const BoundNetLog& MockClientSocket::NetLog() const { | 1005 const BoundNetLog& MockClientSocket::NetLog() const { |
1006 return net_log_; | 1006 return net_log_; |
1007 } | 1007 } |
1008 | 1008 |
| 1009 void MockClientSocket::GetConnectionAttempts(ConnectionAttempts* out) const { |
| 1010 out->clear(); |
| 1011 } |
| 1012 |
1009 void MockClientSocket::GetSSLCertRequestInfo( | 1013 void MockClientSocket::GetSSLCertRequestInfo( |
1010 SSLCertRequestInfo* cert_request_info) { | 1014 SSLCertRequestInfo* cert_request_info) { |
1011 } | 1015 } |
1012 | 1016 |
1013 int MockClientSocket::ExportKeyingMaterial(const base::StringPiece& label, | 1017 int MockClientSocket::ExportKeyingMaterial(const base::StringPiece& label, |
1014 bool has_context, | 1018 bool has_context, |
1015 const base::StringPiece& context, | 1019 const base::StringPiece& context, |
1016 unsigned char* out, | 1020 unsigned char* out, |
1017 unsigned int outlen) { | 1021 unsigned int outlen) { |
1018 memset(out, 'A', outlen); | 1022 memset(out, 'A', outlen); |
(...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2179 | 2183 |
2180 const char kSOCKS5OkRequest[] = | 2184 const char kSOCKS5OkRequest[] = |
2181 { 0x05, 0x01, 0x00, 0x03, 0x04, 'h', 'o', 's', 't', 0x00, 0x50 }; | 2185 { 0x05, 0x01, 0x00, 0x03, 0x04, 'h', 'o', 's', 't', 0x00, 0x50 }; |
2182 const int kSOCKS5OkRequestLength = arraysize(kSOCKS5OkRequest); | 2186 const int kSOCKS5OkRequestLength = arraysize(kSOCKS5OkRequest); |
2183 | 2187 |
2184 const char kSOCKS5OkResponse[] = | 2188 const char kSOCKS5OkResponse[] = |
2185 { 0x05, 0x00, 0x00, 0x01, 127, 0, 0, 1, 0x00, 0x50 }; | 2189 { 0x05, 0x00, 0x00, 0x01, 127, 0, 0, 1, 0x00, 0x50 }; |
2186 const int kSOCKS5OkResponseLength = arraysize(kSOCKS5OkResponse); | 2190 const int kSOCKS5OkResponseLength = arraysize(kSOCKS5OkResponse); |
2187 | 2191 |
2188 } // namespace net | 2192 } // namespace net |
OLD | NEW |