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 void SetMaxTailLossProbes( | 19 static void SetMaxTailLossProbes( |
20 QuicSentPacketManager* sent_packet_manager, size_t max_tail_loss_probes); | 20 QuicSentPacketManager* sent_packet_manager, size_t max_tail_loss_probes); |
21 | 21 |
22 static void SetSendAlgorithm(QuicSentPacketManager* sent_packet_manager, | 22 static void SetSendAlgorithm(QuicSentPacketManager* sent_packet_manager, |
23 SendAlgorithmInterface* send_algorithm); | 23 SendAlgorithmInterface* send_algorithm); |
24 | 24 |
| 25 static void SetLossAlgorithm(QuicSentPacketManager* sent_packet_manager, |
| 26 LossDetectionInterface* loss_detector); |
| 27 |
25 static size_t GetNackCount( | 28 static size_t GetNackCount( |
26 const QuicSentPacketManager* sent_packet_manager, | 29 const QuicSentPacketManager* sent_packet_manager, |
27 QuicPacketSequenceNumber sequence_number); | 30 QuicPacketSequenceNumber sequence_number); |
28 | 31 |
29 static size_t GetPendingRetransmissionCount( | 32 static size_t GetPendingRetransmissionCount( |
30 const QuicSentPacketManager* sent_packet_manager); | 33 const QuicSentPacketManager* sent_packet_manager); |
31 | 34 |
32 static bool HasPendingPackets( | 35 static bool HasPendingPackets( |
33 const QuicSentPacketManager* sent_packet_manager); | 36 const QuicSentPacketManager* sent_packet_manager); |
34 | 37 |
(...skipping 24 matching lines...) Expand all Loading... |
59 | 62 |
60 private: | 63 private: |
61 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManagerPeer); | 64 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManagerPeer); |
62 }; | 65 }; |
63 | 66 |
64 } // namespace test | 67 } // namespace test |
65 | 68 |
66 } // namespace net | 69 } // namespace net |
67 | 70 |
68 #endif // NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_ | 71 #endif // NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_ |
OLD | NEW |