| 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 <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 cert_request_info(NULL), | 287 cert_request_info(NULL), |
| 288 channel_id_sent(false), | 288 channel_id_sent(false), |
| 289 connection_status(0), | 289 connection_status(0), |
| 290 token_binding_negotiated(false) { | 290 token_binding_negotiated(false) { |
| 291 SSLConnectionStatusSetVersion(SSL_CONNECTION_VERSION_TLS1_2, | 291 SSLConnectionStatusSetVersion(SSL_CONNECTION_VERSION_TLS1_2, |
| 292 &connection_status); | 292 &connection_status); |
| 293 // Set to TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 | 293 // Set to TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 |
| 294 SSLConnectionStatusSetCipherSuite(0xcc14, &connection_status); | 294 SSLConnectionStatusSetCipherSuite(0xcc14, &connection_status); |
| 295 } | 295 } |
| 296 | 296 |
| 297 SSLSocketDataProvider::SSLSocketDataProvider( |
| 298 const SSLSocketDataProvider& other) = default; |
| 299 |
| 297 SSLSocketDataProvider::~SSLSocketDataProvider() { | 300 SSLSocketDataProvider::~SSLSocketDataProvider() { |
| 298 } | 301 } |
| 299 | 302 |
| 300 void SSLSocketDataProvider::SetNextProto(NextProto proto) { | 303 void SSLSocketDataProvider::SetNextProto(NextProto proto) { |
| 301 next_proto_status = SSLClientSocket::kNextProtoNegotiated; | 304 next_proto_status = SSLClientSocket::kNextProtoNegotiated; |
| 302 next_proto = SSLClientSocket::NextProtoToString(proto); | 305 next_proto = SSLClientSocket::NextProtoToString(proto); |
| 303 } | 306 } |
| 304 | 307 |
| 305 SequencedSocketData::SequencedSocketData(MockRead* reads, | 308 SequencedSocketData::SequencedSocketData(MockRead* reads, |
| 306 size_t reads_count, | 309 size_t reads_count, |
| (...skipping 1411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1718 } | 1721 } |
| 1719 | 1722 |
| 1720 int64_t CountWriteBytes(const MockWrite writes[], size_t writes_size) { | 1723 int64_t CountWriteBytes(const MockWrite writes[], size_t writes_size) { |
| 1721 int64_t total = 0; | 1724 int64_t total = 0; |
| 1722 for (const MockWrite* write = writes; write != writes + writes_size; ++write) | 1725 for (const MockWrite* write = writes; write != writes + writes_size; ++write) |
| 1723 total += write->data_len; | 1726 total += write->data_len; |
| 1724 return total; | 1727 return total; |
| 1725 } | 1728 } |
| 1726 | 1729 |
| 1727 } // namespace net | 1730 } // namespace net |
| OLD | NEW |