| 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/core/congestion_control/send_algorithm_interface.h" | 8 #include "net/quic/core/congestion_control/send_algorithm_interface.h" |
| 9 #include "net/quic/core/quic_multipath_sent_packet_manager.h" | 9 #include "net/quic/core/quic_multipath_sent_packet_manager.h" |
| 10 #include "net/quic/core/quic_packet_writer.h" | 10 #include "net/quic/core/quic_packet_writer.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 connection->SendAck(); | 21 connection->SendAck(); |
| 22 } | 22 } |
| 23 | 23 |
| 24 // static | 24 // static |
| 25 void QuicConnectionPeer::SetSendAlgorithm( | 25 void QuicConnectionPeer::SetSendAlgorithm( |
| 26 QuicConnection* connection, | 26 QuicConnection* connection, |
| 27 QuicPathId path_id, | 27 QuicPathId path_id, |
| 28 SendAlgorithmInterface* send_algorithm) { | 28 SendAlgorithmInterface* send_algorithm) { |
| 29 GetSentPacketManager(connection, path_id) | 29 GetSentPacketManager(connection, path_id) |
| 30 ->send_algorithm_.reset(send_algorithm); | 30 ->send_algorithm_.reset(send_algorithm); |
| 31 GetSentPacketManager(connection, path_id)->using_inline_pacing_ = false; | |
| 32 } | 31 } |
| 33 | 32 |
| 34 // static | 33 // static |
| 35 void QuicConnectionPeer::SetLossAlgorithm( | 34 void QuicConnectionPeer::SetLossAlgorithm( |
| 36 QuicConnection* connection, | 35 QuicConnection* connection, |
| 37 QuicPathId path_id, | 36 QuicPathId path_id, |
| 38 LossDetectionInterface* loss_algorithm) { | 37 LossDetectionInterface* loss_algorithm) { |
| 39 GetSentPacketManager(connection, path_id)->loss_algorithm_ = loss_algorithm; | 38 GetSentPacketManager(connection, path_id)->loss_algorithm_ = loss_algorithm; |
| 40 } | 39 } |
| 41 | 40 |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 bool QuicConnectionPeer::HasRetransmittableFrames( | 297 bool QuicConnectionPeer::HasRetransmittableFrames( |
| 299 QuicConnection* connection, | 298 QuicConnection* connection, |
| 300 QuicPathId path_id, | 299 QuicPathId path_id, |
| 301 QuicPacketNumber packet_number) { | 300 QuicPacketNumber packet_number) { |
| 302 return QuicSentPacketManagerPeer::HasRetransmittableFrames( | 301 return QuicSentPacketManagerPeer::HasRetransmittableFrames( |
| 303 GetSentPacketManager(connection, path_id), packet_number); | 302 GetSentPacketManager(connection, path_id), packet_number); |
| 304 } | 303 } |
| 305 | 304 |
| 306 } // namespace test | 305 } // namespace test |
| 307 } // namespace net | 306 } // namespace net |
| OLD | NEW |