| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_sent_packet_manager_peer.h" | 5 #include "net/quic/test_tools/quic_sent_packet_manager_peer.h" |
| 6 | 6 |
| 7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
| 8 #include "net/quic/congestion_control/loss_detection_interface.h" | 8 #include "net/quic/congestion_control/loss_detection_interface.h" |
| 9 #include "net/quic/congestion_control/send_algorithm_interface.h" | 9 #include "net/quic/congestion_control/send_algorithm_interface.h" |
| 10 #include "net/quic/quic_protocol.h" | 10 #include "net/quic/quic_protocol.h" |
| 11 #include "net/quic/quic_sent_packet_manager.h" | 11 #include "net/quic/quic_sent_packet_manager.h" |
| 12 | 12 |
| 13 namespace net { | 13 namespace net { |
| 14 namespace test { | 14 namespace test { |
| 15 | 15 |
| 16 // static | 16 // static |
| 17 size_t QuicSentPacketManagerPeer::GetMaxTailLossProbes( |
| 18 QuicSentPacketManager* sent_packet_manager) { |
| 19 return sent_packet_manager->max_tail_loss_probes_; |
| 20 } |
| 21 |
| 22 // static |
| 17 void QuicSentPacketManagerPeer::SetMaxTailLossProbes( | 23 void QuicSentPacketManagerPeer::SetMaxTailLossProbes( |
| 18 QuicSentPacketManager* sent_packet_manager, size_t max_tail_loss_probes) { | 24 QuicSentPacketManager* sent_packet_manager, size_t max_tail_loss_probes) { |
| 19 sent_packet_manager->max_tail_loss_probes_ = max_tail_loss_probes; | 25 sent_packet_manager->max_tail_loss_probes_ = max_tail_loss_probes; |
| 20 } | 26 } |
| 21 | 27 |
| 22 // static | 28 // static |
| 23 void QuicSentPacketManagerPeer::SetSendAlgorithm( | 29 void QuicSentPacketManagerPeer::SetSendAlgorithm( |
| 24 QuicSentPacketManager* sent_packet_manager, | 30 QuicSentPacketManager* sent_packet_manager, |
| 25 SendAlgorithmInterface* send_algorithm) { | 31 SendAlgorithmInterface* send_algorithm) { |
| 26 sent_packet_manager->send_algorithm_.reset(send_algorithm); | 32 sent_packet_manager->send_algorithm_.reset(send_algorithm); |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 } | 154 } |
| 149 | 155 |
| 150 // static | 156 // static |
| 151 QuicSustainedBandwidthRecorder& QuicSentPacketManagerPeer::GetBandwidthRecorder( | 157 QuicSustainedBandwidthRecorder& QuicSentPacketManagerPeer::GetBandwidthRecorder( |
| 152 QuicSentPacketManager* sent_packet_manager) { | 158 QuicSentPacketManager* sent_packet_manager) { |
| 153 return sent_packet_manager->sustained_bandwidth_recorder_; | 159 return sent_packet_manager->sustained_bandwidth_recorder_; |
| 154 } | 160 } |
| 155 | 161 |
| 156 } // namespace test | 162 } // namespace test |
| 157 } // namespace net | 163 } // namespace net |
| OLD | NEW |