| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CONNECTION_PEER_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ |
| 6 #define NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ | 6 #define NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "net/quic/quic_protocol.h" | 9 #include "net/quic/quic_protocol.h" |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 static size_t GetNumRetransmissionTimeouts(QuicConnection* connection); | 42 static size_t GetNumRetransmissionTimeouts(QuicConnection* connection); |
| 43 | 43 |
| 44 static bool IsSavedForRetransmission( | 44 static bool IsSavedForRetransmission( |
| 45 QuicConnection* connection, | 45 QuicConnection* connection, |
| 46 QuicPacketSequenceNumber sequence_number); | 46 QuicPacketSequenceNumber sequence_number); |
| 47 | 47 |
| 48 static size_t GetRetransmissionCount( | 48 static size_t GetRetransmissionCount( |
| 49 QuicConnection* connection, | 49 QuicConnection* connection, |
| 50 QuicPacketSequenceNumber sequence_number); | 50 QuicPacketSequenceNumber sequence_number); |
| 51 | 51 |
| 52 static QuicPacketEntropyHash GetSentEntropyHash( |
| 53 QuicConnection* connection, |
| 54 QuicPacketSequenceNumber sequence_number); |
| 55 |
| 56 static bool IsValidEntropy(QuicConnection* connection, |
| 57 QuicPacketSequenceNumber largest_observed, |
| 58 const SequenceNumberSet& missing_packets, |
| 59 QuicPacketEntropyHash entropy_hash); |
| 60 |
| 61 static QuicPacketEntropyHash ReceivedEntropyHash( |
| 62 QuicConnection* connection, |
| 63 QuicPacketSequenceNumber sequence_number); |
| 64 |
| 52 private: | 65 private: |
| 53 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); | 66 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); |
| 54 }; | 67 }; |
| 55 | 68 |
| 56 } // namespace test | 69 } // namespace test |
| 57 } // namespace net | 70 } // namespace net |
| 58 | 71 |
| 59 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_PEER_H_ | 72 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_PEER_H_ |
| OLD | NEW |