| 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/core/congestion_control/loss_detection_interface.h" | 8 #include "net/quic/core/congestion_control/loss_detection_interface.h" |
| 9 #include "net/quic/core/congestion_control/send_algorithm_interface.h" | 9 #include "net/quic/core/congestion_control/send_algorithm_interface.h" |
| 10 #include "net/quic/core/quic_flags.h" | 10 #include "net/quic/core/quic_flags.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 return sent_packet_manager->use_new_rto_; | 39 return sent_packet_manager->use_new_rto_; |
| 40 } | 40 } |
| 41 | 41 |
| 42 // static | 42 // static |
| 43 bool QuicSentPacketManagerPeer::GetUndoRetransmits( | 43 bool QuicSentPacketManagerPeer::GetUndoRetransmits( |
| 44 QuicSentPacketManager* sent_packet_manager) { | 44 QuicSentPacketManager* sent_packet_manager) { |
| 45 return sent_packet_manager->undo_pending_retransmits_; | 45 return sent_packet_manager->undo_pending_retransmits_; |
| 46 } | 46 } |
| 47 | 47 |
| 48 // static | 48 // static |
| 49 QuicByteCount QuicSentPacketManagerPeer::GetReceiveWindow( | |
| 50 QuicSentPacketManager* sent_packet_manager) { | |
| 51 return sent_packet_manager->receive_buffer_bytes_; | |
| 52 } | |
| 53 | |
| 54 // static | |
| 55 void QuicSentPacketManagerPeer::SetPerspective( | 49 void QuicSentPacketManagerPeer::SetPerspective( |
| 56 QuicSentPacketManager* sent_packet_manager, | 50 QuicSentPacketManager* sent_packet_manager, |
| 57 Perspective perspective) { | 51 Perspective perspective) { |
| 58 sent_packet_manager->perspective_ = perspective; | 52 sent_packet_manager->perspective_ = perspective; |
| 59 } | 53 } |
| 60 | 54 |
| 61 // static | 55 // static |
| 62 SendAlgorithmInterface* QuicSentPacketManagerPeer::GetSendAlgorithm( | 56 SendAlgorithmInterface* QuicSentPacketManagerPeer::GetSendAlgorithm( |
| 63 const QuicSentPacketManager& sent_packet_manager) { | 57 const QuicSentPacketManager& sent_packet_manager) { |
| 64 return sent_packet_manager.send_algorithm_.get(); | 58 return sent_packet_manager.send_algorithm_.get(); |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 } | 202 } |
| 209 | 203 |
| 210 // static | 204 // static |
| 211 QuicUnackedPacketMap* QuicSentPacketManagerPeer::GetUnackedPacketMap( | 205 QuicUnackedPacketMap* QuicSentPacketManagerPeer::GetUnackedPacketMap( |
| 212 QuicSentPacketManager* sent_packet_manager) { | 206 QuicSentPacketManager* sent_packet_manager) { |
| 213 return &sent_packet_manager->unacked_packets_; | 207 return &sent_packet_manager->unacked_packets_; |
| 214 } | 208 } |
| 215 | 209 |
| 216 } // namespace test | 210 } // namespace test |
| 217 } // namespace net | 211 } // namespace net |
| OLD | NEW |