| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 10 |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 } | 505 } |
| 506 | 506 |
| 507 bool MockSSLClientSocket::IsConnected() const { | 507 bool MockSSLClientSocket::IsConnected() const { |
| 508 return transport_->socket()->IsConnected(); | 508 return transport_->socket()->IsConnected(); |
| 509 } | 509 } |
| 510 | 510 |
| 511 bool MockSSLClientSocket::WasEverUsed() const { | 511 bool MockSSLClientSocket::WasEverUsed() const { |
| 512 return transport_->socket()->WasEverUsed(); | 512 return transport_->socket()->WasEverUsed(); |
| 513 } | 513 } |
| 514 | 514 |
| 515 bool MockSSLClientSocket::UsingTCPFastOpen() const { |
| 516 return transport_->socket()->UsingTCPFastOpen(); |
| 517 } |
| 518 |
| 515 int MockSSLClientSocket::Read(net::IOBuffer* buf, int buf_len, | 519 int MockSSLClientSocket::Read(net::IOBuffer* buf, int buf_len, |
| 516 net::CompletionCallback* callback) { | 520 net::CompletionCallback* callback) { |
| 517 return transport_->socket()->Read(buf, buf_len, callback); | 521 return transport_->socket()->Read(buf, buf_len, callback); |
| 518 } | 522 } |
| 519 | 523 |
| 520 int MockSSLClientSocket::Write(net::IOBuffer* buf, int buf_len, | 524 int MockSSLClientSocket::Write(net::IOBuffer* buf, int buf_len, |
| 521 net::CompletionCallback* callback) { | 525 net::CompletionCallback* callback) { |
| 522 return transport_->socket()->Write(buf, buf_len, callback); | 526 return transport_->socket()->Write(buf, buf_len, callback); |
| 523 } | 527 } |
| 524 | 528 |
| (...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1268 | 1272 |
| 1269 const char kSOCKS5OkRequest[] = | 1273 const char kSOCKS5OkRequest[] = |
| 1270 { 0x05, 0x01, 0x00, 0x03, 0x04, 'h', 'o', 's', 't', 0x00, 0x50 }; | 1274 { 0x05, 0x01, 0x00, 0x03, 0x04, 'h', 'o', 's', 't', 0x00, 0x50 }; |
| 1271 const int kSOCKS5OkRequestLength = arraysize(kSOCKS5OkRequest); | 1275 const int kSOCKS5OkRequestLength = arraysize(kSOCKS5OkRequest); |
| 1272 | 1276 |
| 1273 const char kSOCKS5OkResponse[] = | 1277 const char kSOCKS5OkResponse[] = |
| 1274 { 0x05, 0x00, 0x00, 0x01, 127, 0, 0, 1, 0x00, 0x50 }; | 1278 { 0x05, 0x00, 0x00, 0x01, 127, 0, 0, 1, 0x00, 0x50 }; |
| 1275 const int kSOCKS5OkResponseLength = arraysize(kSOCKS5OkResponse); | 1279 const int kSOCKS5OkResponseLength = arraysize(kSOCKS5OkResponse); |
| 1276 | 1280 |
| 1277 } // namespace net | 1281 } // namespace net |
| OLD | NEW |