| 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/base/ip_endpoint.h" | 9 #include "net/base/ip_endpoint.h" |
| 10 #include "net/quic/quic_connection_stats.h" | 10 #include "net/quic/quic_connection_stats.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 QuicConnection* connection, | 66 QuicConnection* connection, |
| 67 QuicPacketSequenceNumber sequence_number); | 67 QuicPacketSequenceNumber sequence_number); |
| 68 | 68 |
| 69 static bool IsRetransmission(QuicConnection* connection, | 69 static bool IsRetransmission(QuicConnection* connection, |
| 70 QuicPacketSequenceNumber sequence_number); | 70 QuicPacketSequenceNumber sequence_number); |
| 71 | 71 |
| 72 static QuicPacketEntropyHash GetSentEntropyHash( | 72 static QuicPacketEntropyHash GetSentEntropyHash( |
| 73 QuicConnection* connection, | 73 QuicConnection* connection, |
| 74 QuicPacketSequenceNumber sequence_number); | 74 QuicPacketSequenceNumber sequence_number); |
| 75 | 75 |
| 76 static bool IsValidEntropy(QuicConnection* connection, | 76 static QuicPacketEntropyHash PacketEntropy( |
| 77 QuicPacketSequenceNumber largest_observed, | 77 QuicConnection* connection, |
| 78 const SequenceNumberSet& missing_packets, | 78 QuicPacketSequenceNumber sequence_number); |
| 79 QuicPacketEntropyHash entropy_hash); | |
| 80 | 79 |
| 81 static QuicPacketEntropyHash ReceivedEntropyHash( | 80 static QuicPacketEntropyHash ReceivedEntropyHash( |
| 82 QuicConnection* connection, | 81 QuicConnection* connection, |
| 83 QuicPacketSequenceNumber sequence_number); | 82 QuicPacketSequenceNumber sequence_number); |
| 84 | 83 |
| 85 static bool IsServer(QuicConnection* connection); | 84 static bool IsServer(QuicConnection* connection); |
| 86 | 85 |
| 87 static void SetIsServer(QuicConnection* connection, bool is_server); | 86 static void SetIsServer(QuicConnection* connection, bool is_server); |
| 88 | 87 |
| 89 static void SetSelfAddress(QuicConnection* connection, | 88 static void SetSelfAddress(QuicConnection* connection, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 121 |
| 123 private: | 122 private: |
| 124 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); | 123 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); |
| 125 }; | 124 }; |
| 126 | 125 |
| 127 } // namespace test | 126 } // namespace test |
| 128 | 127 |
| 129 } // namespace net | 128 } // namespace net |
| 130 | 129 |
| 131 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ | 130 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ |
| OLD | NEW |