| 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 #ifndef NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_ |
| 6 #define NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_ | 6 #define NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_ |
| 7 | 7 |
| 8 #include "net/quic/quic_protocol.h" | 8 #include "net/quic/quic_protocol.h" |
| 9 #include "net/quic/quic_sent_packet_manager.h" | 9 #include "net/quic/quic_sent_packet_manager.h" |
| 10 | 10 |
| 11 namespace net { | 11 namespace net { |
| 12 | 12 |
| 13 class SendAlgorithmInterface; | 13 class SendAlgorithmInterface; |
| 14 | 14 |
| 15 namespace test { | 15 namespace test { |
| 16 | 16 |
| 17 class QuicSentPacketManagerPeer { | 17 class QuicSentPacketManagerPeer { |
| 18 public: | 18 public: |
| 19 static size_t GetMaxTailLossProbes( | 19 static size_t GetMaxTailLossProbes( |
| 20 QuicSentPacketManager* sent_packet_manager); | 20 QuicSentPacketManager* sent_packet_manager); |
| 21 | 21 |
| 22 static void SetMaxTailLossProbes( | 22 static void SetMaxTailLossProbes( |
| 23 QuicSentPacketManager* sent_packet_manager, size_t max_tail_loss_probes); | 23 QuicSentPacketManager* sent_packet_manager, size_t max_tail_loss_probes); |
| 24 | 24 |
| 25 static QuicByteCount GetReceiveWindow( |
| 26 QuicSentPacketManager* sent_packet_manager); |
| 27 |
| 28 static void SetIsServer(QuicSentPacketManager* sent_packet_manager, |
| 29 bool is_server); |
| 30 |
| 31 static const SendAlgorithmInterface* GetSendAlgorithm( |
| 32 const QuicSentPacketManager& sent_packet_manager); |
| 33 |
| 25 static void SetSendAlgorithm(QuicSentPacketManager* sent_packet_manager, | 34 static void SetSendAlgorithm(QuicSentPacketManager* sent_packet_manager, |
| 26 SendAlgorithmInterface* send_algorithm); | 35 SendAlgorithmInterface* send_algorithm); |
| 27 | 36 |
| 28 static void SetIsServer(QuicSentPacketManager* sent_packet_manager, | |
| 29 bool is_server); | |
| 30 | |
| 31 static const LossDetectionInterface* GetLossAlgorithm( | 37 static const LossDetectionInterface* GetLossAlgorithm( |
| 32 QuicSentPacketManager* sent_packet_manager); | 38 QuicSentPacketManager* sent_packet_manager); |
| 33 | 39 |
| 34 static const SendAlgorithmInterface* GetCongestionControlAlgorithm( | |
| 35 const QuicSentPacketManager& sent_packet_manager); | |
| 36 | |
| 37 static void SetLossAlgorithm(QuicSentPacketManager* sent_packet_manager, | 40 static void SetLossAlgorithm(QuicSentPacketManager* sent_packet_manager, |
| 38 LossDetectionInterface* loss_detector); | 41 LossDetectionInterface* loss_detector); |
| 39 | 42 |
| 40 static RttStats* GetRttStats(QuicSentPacketManager* sent_packet_manager); | 43 static RttStats* GetRttStats(QuicSentPacketManager* sent_packet_manager); |
| 41 | 44 |
| 42 static size_t GetNackCount( | 45 static size_t GetNackCount( |
| 43 const QuicSentPacketManager* sent_packet_manager, | 46 const QuicSentPacketManager* sent_packet_manager, |
| 44 QuicPacketSequenceNumber sequence_number); | 47 QuicPacketSequenceNumber sequence_number); |
| 45 | 48 |
| 46 static size_t GetPendingRetransmissionCount( | 49 static size_t GetPendingRetransmissionCount( |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 83 |
| 81 private: | 84 private: |
| 82 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManagerPeer); | 85 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManagerPeer); |
| 83 }; | 86 }; |
| 84 | 87 |
| 85 } // namespace test | 88 } // namespace test |
| 86 | 89 |
| 87 } // namespace net | 90 } // namespace net |
| 88 | 91 |
| 89 #endif // NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_ | 92 #endif // NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_ |
| OLD | NEW |