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

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

Issue 1777293002: Add a new QUIC Ack Decimation mode that is reordering tolerant. Protected by FLAG_quic_ack_decimati… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@115844136
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/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"
10 #include "net/quic/quic_packet_writer.h" 9 #include "net/quic/quic_packet_writer.h"
11 #include "net/quic/quic_received_packet_manager.h" 10 #include "net/quic/quic_received_packet_manager.h"
12 #include "net/quic/test_tools/quic_framer_peer.h" 11 #include "net/quic/test_tools/quic_framer_peer.h"
13 #include "net/quic/test_tools/quic_packet_generator_peer.h" 12 #include "net/quic/test_tools/quic_packet_generator_peer.h"
14 #include "net/quic/test_tools/quic_sent_packet_manager_peer.h" 13 #include "net/quic/test_tools/quic_sent_packet_manager_peer.h"
15 14
16 namespace net { 15 namespace net {
17 namespace test { 16 namespace test {
18 17
19 // static 18 // static
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 connection->packets_between_mtu_probes_ = packets; 260 connection->packets_between_mtu_probes_ = packets;
262 } 261 }
263 262
264 // static 263 // static
265 void QuicConnectionPeer::SetNextMtuProbeAt(QuicConnection* connection, 264 void QuicConnectionPeer::SetNextMtuProbeAt(QuicConnection* connection,
266 QuicPacketNumber number) { 265 QuicPacketNumber number) {
267 connection->next_mtu_probe_at_ = number; 266 connection->next_mtu_probe_at_ = number;
268 } 267 }
269 268
270 // static 269 // static
271 void QuicConnectionPeer::EnableAckDecimation(QuicConnection* connection) { 270 void QuicConnectionPeer::SetAckMode(QuicConnection* connection,
272 connection->ack_decimation_enabled_ = true; 271 QuicConnection::AckMode ack_mode) {
272 connection->ack_mode_ = ack_mode;
273 } 273 }
274 274
275 } // namespace test 275 } // namespace test
276 } // 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