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

Side by Side Diff: net/quic/test_tools/quic_connection_peer.cc

Issue 1572033003: relnote: Allowing multipath support negotiation. Protected by --quic_enable_multipath, default valu… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0044_CL_111708360
Patch Set: rebase after removing 111628983 Created 4 years, 11 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/quic/test_tools/quic_connection_peer.h ('k') | no next file » | 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/quic/test_tools/quic_connection_peer.h" 5 #include "net/quic/test_tools/quic_connection_peer.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "net/quic/congestion_control/send_algorithm_interface.h" 8 #include "net/quic/congestion_control/send_algorithm_interface.h"
9 #include "net/quic/quic_connection.h" 9 #include "net/quic/quic_connection.h"
10 #include "net/quic/quic_packet_writer.h" 10 #include "net/quic/quic_packet_writer.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 const IPEndPoint& peer_address) { 122 const IPEndPoint& peer_address) {
123 connection->peer_address_ = peer_address; 123 connection->peer_address_ = peer_address;
124 } 124 }
125 125
126 // static 126 // static
127 bool QuicConnectionPeer::IsSilentCloseEnabled(QuicConnection* connection) { 127 bool QuicConnectionPeer::IsSilentCloseEnabled(QuicConnection* connection) {
128 return connection->silent_close_enabled_; 128 return connection->silent_close_enabled_;
129 } 129 }
130 130
131 // static 131 // static
132 bool QuicConnectionPeer::IsMultipathEnabled(QuicConnection* connection) {
133 return connection->multipath_enabled_;
134 }
135
136 // static
132 void QuicConnectionPeer::SwapCrypters(QuicConnection* connection, 137 void QuicConnectionPeer::SwapCrypters(QuicConnection* connection,
133 QuicFramer* framer) { 138 QuicFramer* framer) {
134 QuicFramerPeer::SwapCrypters(framer, &connection->framer_); 139 QuicFramerPeer::SwapCrypters(framer, &connection->framer_);
135 } 140 }
136 141
137 // static 142 // static
138 QuicConnectionHelperInterface* QuicConnectionPeer::GetHelper( 143 QuicConnectionHelperInterface* QuicConnectionPeer::GetHelper(
139 QuicConnection* connection) { 144 QuicConnection* connection) {
140 return connection->helper_; 145 return connection->helper_;
141 } 146 }
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 connection->next_mtu_probe_at_ = number; 267 connection->next_mtu_probe_at_ = number;
263 } 268 }
264 269
265 // static 270 // static
266 void QuicConnectionPeer::EnableAckDecimation(QuicConnection* connection) { 271 void QuicConnectionPeer::EnableAckDecimation(QuicConnection* connection) {
267 connection->ack_decimation_enabled_ = true; 272 connection->ack_decimation_enabled_ = true;
268 } 273 }
269 274
270 } // namespace test 275 } // namespace test
271 } // namespace net 276 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_connection_peer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698