| 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/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 Loading... |
| 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 |
| OLD | NEW |