| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 static void SetSendAlgorithm(QuicSentPacketManager* sent_packet_manager, | 44 static void SetSendAlgorithm(QuicSentPacketManager* sent_packet_manager, |
| 45 SendAlgorithmInterface* send_algorithm); | 45 SendAlgorithmInterface* send_algorithm); |
| 46 | 46 |
| 47 static const LossDetectionInterface* GetLossAlgorithm( | 47 static const LossDetectionInterface* GetLossAlgorithm( |
| 48 QuicSentPacketManager* sent_packet_manager); | 48 QuicSentPacketManager* sent_packet_manager); |
| 49 | 49 |
| 50 static void SetLossAlgorithm(QuicSentPacketManager* sent_packet_manager, | 50 static void SetLossAlgorithm(QuicSentPacketManager* sent_packet_manager, |
| 51 LossDetectionInterface* loss_detector); | 51 LossDetectionInterface* loss_detector); |
| 52 | 52 |
| 53 static RttStats* GetRttStats(QuicSentPacketManager* sent_packet_manager); | |
| 54 | |
| 55 static bool HasPendingPackets( | 53 static bool HasPendingPackets( |
| 56 const QuicSentPacketManager* sent_packet_manager); | 54 const QuicSentPacketManager* sent_packet_manager); |
| 57 | 55 |
| 58 static QuicTime GetSentTime(const QuicSentPacketManager* sent_packet_manager, | 56 static QuicTime GetSentTime(const QuicSentPacketManager* sent_packet_manager, |
| 59 QuicPacketNumber packet_number); | 57 QuicPacketNumber packet_number); |
| 60 | 58 |
| 61 // Returns true if |packet_number| is a retransmission of a packet. | 59 // Returns true if |packet_number| is a retransmission of a packet. |
| 62 static bool IsRetransmission(QuicSentPacketManager* sent_packet_manager, | 60 static bool IsRetransmission(QuicSentPacketManager* sent_packet_manager, |
| 63 QuicPacketNumber packet_number); | 61 QuicPacketNumber packet_number); |
| 64 | 62 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 92 | 90 |
| 93 private: | 91 private: |
| 94 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManagerPeer); | 92 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManagerPeer); |
| 95 }; | 93 }; |
| 96 | 94 |
| 97 } // namespace test | 95 } // namespace test |
| 98 | 96 |
| 99 } // namespace net | 97 } // namespace net |
| 100 | 98 |
| 101 #endif // NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_ | 99 #endif // NET_QUIC_TEST_TOOLS_QUIC_SENT_PACKET_MANAGER_PEER_H_ |
| OLD | NEW |