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 #include "net/quic/quic_stats.h" |
10 | 11 |
11 namespace net { | 12 namespace net { |
12 | 13 |
13 struct QuicAckFrame; | 14 struct QuicAckFrame; |
14 class QuicConnection; | 15 class QuicConnection; |
15 class QuicConnectionVisitorInterface; | 16 class QuicConnectionVisitorInterface; |
16 class QuicPacketCreator; | 17 class QuicPacketCreator; |
17 class ReceiveAlgorithmInterface; | 18 class ReceiveAlgorithmInterface; |
18 class SendAlgorithmInterface; | 19 class SendAlgorithmInterface; |
19 | 20 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 56 |
56 static bool IsValidEntropy(QuicConnection* connection, | 57 static bool IsValidEntropy(QuicConnection* connection, |
57 QuicPacketSequenceNumber largest_observed, | 58 QuicPacketSequenceNumber largest_observed, |
58 const SequenceNumberSet& missing_packets, | 59 const SequenceNumberSet& missing_packets, |
59 QuicPacketEntropyHash entropy_hash); | 60 QuicPacketEntropyHash entropy_hash); |
60 | 61 |
61 static QuicPacketEntropyHash ReceivedEntropyHash( | 62 static QuicPacketEntropyHash ReceivedEntropyHash( |
62 QuicConnection* connection, | 63 QuicConnection* connection, |
63 QuicPacketSequenceNumber sequence_number); | 64 QuicPacketSequenceNumber sequence_number); |
64 | 65 |
| 66 static bool IsServer(QuicConnection* connection); |
| 67 |
| 68 static void SetIsServer(QuicConnection* connection, bool is_server); |
| 69 |
65 private: | 70 private: |
66 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); | 71 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); |
67 }; | 72 }; |
68 | 73 |
69 } // namespace test | 74 } // namespace test |
70 } // namespace net | 75 } // namespace net |
71 | 76 |
72 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_PEER_H_ | 77 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_PEER_H_ |
OLD | NEW |