Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1269)

Side by Side Diff: net/socket/socket_test_util.cc

Issue 1825273002: Add more out of line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/socket/socket_test_util.h ('k') | remoting/protocol/client_authentication_config.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/socket/socket_test_util.h ('k') | remoting/protocol/client_authentication_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698