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 const LossDetectionInterface* GetLossAlgorithm( | 25 static const LossDetectionInterface* GetLossAlgorithm( |
26 QuicSentPacketManager* sent_packet_manager); | 26 QuicSentPacketManager* sent_packet_manager); |
27 | 27 |
| 28 static const SendAlgorithmInterface* GetCongestionControlAlgorithm( |
| 29 QuicSentPacketManager* sent_packet_manager); |
| 30 |
28 static void SetLossAlgorithm(QuicSentPacketManager* sent_packet_manager, | 31 static void SetLossAlgorithm(QuicSentPacketManager* sent_packet_manager, |
29 LossDetectionInterface* loss_detector); | 32 LossDetectionInterface* loss_detector); |
30 | 33 |
31 static RttStats* GetRttStats(QuicSentPacketManager* sent_packet_manager); | 34 static RttStats* GetRttStats(QuicSentPacketManager* sent_packet_manager); |
32 | 35 |
33 static size_t GetNackCount( | 36 static size_t GetNackCount( |
34 const QuicSentPacketManager* sent_packet_manager, | 37 const QuicSentPacketManager* sent_packet_manager, |
35 QuicPacketSequenceNumber sequence_number); | 38 QuicPacketSequenceNumber sequence_number); |
36 | 39 |
37 static size_t GetPendingRetransmissionCount( | 40 static size_t GetPendingRetransmissionCount( |
(...skipping 18 matching lines...) Expand all Loading... |
56 | 59 |
57 static bool HasUnackedCryptoPackets( | 60 static bool HasUnackedCryptoPackets( |
58 const QuicSentPacketManager* sent_packet_manager); | 61 const QuicSentPacketManager* sent_packet_manager); |
59 | 62 |
60 static size_t GetNumRetransmittablePackets( | 63 static size_t GetNumRetransmittablePackets( |
61 const QuicSentPacketManager* sent_packet_manager); | 64 const QuicSentPacketManager* sent_packet_manager); |
62 | 65 |
63 static QuicByteCount GetBytesInFlight( | 66 static QuicByteCount GetBytesInFlight( |
64 const QuicSentPacketManager* sent_packet_manager); | 67 const QuicSentPacketManager* sent_packet_manager); |
65 | 68 |
| 69 static QuicSentPacketManager::NetworkChangeVisitor* GetNetworkChangeVisitor( |
| 70 const QuicSentPacketManager* sent_packet_manager); |
| 71 |
66 private: | 72 private: |
67 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManagerPeer); | 73 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManagerPeer); |
68 }; | 74 }; |
69 | 75 |
70 } // namespace test | 76 } // namespace test |
71 | 77 |
72 } // namespace net | 78 } // namespace net |
73 | 79 |
74 #endif // NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_ | 80 #endif // NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_ |
OLD | NEW |