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_RECEIVED_PACKET_MANAGER_PEER_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_RECEIVED_PACKET_MANAGER_PEER_H_ |
6 #define NET_QUIC_TEST_TOOLS_QUIC_RECEIVED_PACKET_MANAGER_PEER_H_ | 6 #define NET_QUIC_TEST_TOOLS_QUIC_RECEIVED_PACKET_MANAGER_PEER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "net/quic/core/quic_protocol.h" | 9 #include "net/quic/core/quic_protocol.h" |
10 | 10 |
11 namespace net { | 11 namespace net { |
12 | 12 |
13 class QuicReceivedPacketManager; | 13 class QuicReceivedPacketManager; |
14 | 14 |
15 namespace test { | 15 namespace test { |
16 | 16 |
17 class QuicReceivedPacketManagerPeer { | 17 class QuicReceivedPacketManagerPeer { |
18 public: | 18 public: |
19 static void SetCumulativeEntropyUpTo( | |
20 QuicReceivedPacketManager* received_packet_manager, | |
21 QuicPacketNumber peer_least_unacked, | |
22 QuicPacketEntropyHash entropy_hash); | |
23 | |
24 static bool DontWaitForPacketsBefore( | 19 static bool DontWaitForPacketsBefore( |
25 QuicReceivedPacketManager* received_packet_manager, | 20 QuicReceivedPacketManager* received_packet_manager, |
26 QuicPacketNumber least_unacked); | 21 QuicPacketNumber least_unacked); |
27 | 22 |
28 private: | 23 private: |
29 DISALLOW_COPY_AND_ASSIGN(QuicReceivedPacketManagerPeer); | 24 DISALLOW_COPY_AND_ASSIGN(QuicReceivedPacketManagerPeer); |
30 }; | 25 }; |
31 | 26 |
32 } // namespace test | 27 } // namespace test |
33 | 28 |
34 } // namespace net | 29 } // namespace net |
35 | 30 |
36 #endif // NET_QUIC_TEST_TOOLS_QUIC_RECEIVED_PACKET_MANAGER_PEER_H_ | 31 #endif // NET_QUIC_TEST_TOOLS_QUIC_RECEIVED_PACKET_MANAGER_PEER_H_ |
OLD | NEW |