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" |
11 #include "net/quic/quic_protocol.h" | 11 #include "net/quic/quic_protocol.h" |
12 | 12 |
13 namespace net { | 13 namespace net { |
14 | 14 |
15 struct QuicAckFrame; | 15 struct QuicAckFrame; |
16 struct QuicPacketHeader; | 16 struct QuicPacketHeader; |
17 class QuicAlarm; | 17 class QuicAlarm; |
18 class QuicConnection; | 18 class QuicConnection; |
19 class QuicConnectionHelperInterface; | 19 class QuicConnectionHelperInterface; |
20 class QuicConnectionVisitorInterface; | 20 class QuicConnectionVisitorInterface; |
21 class QuicEncryptedPacket; | 21 class QuicEncryptedPacket; |
22 class QuicFecGroup; | 22 class QuicFecGroup; |
23 class QuicFramer; | 23 class QuicFramer; |
24 class QuicPacketCreator; | 24 class QuicPacketCreator; |
25 class QuicPacketGenerator; | 25 class QuicPacketGenerator; |
26 class QuicPacketWriter; | 26 class QuicPacketWriter; |
27 class QuicReceivedPacketManager; | 27 class QuicReceivedPacketManager; |
| 28 class QuicSentEntropyManager; |
28 class QuicSentPacketManager; | 29 class QuicSentPacketManager; |
29 class SendAlgorithmInterface; | 30 class SendAlgorithmInterface; |
30 | 31 |
31 namespace test { | 32 namespace test { |
32 | 33 |
33 // Peer to make public a number of otherwise private QuicConnection methods. | 34 // Peer to make public a number of otherwise private QuicConnection methods. |
34 class QuicConnectionPeer { | 35 class QuicConnectionPeer { |
35 public: | 36 public: |
36 static void SendAck(QuicConnection* connection); | 37 static void SendAck(QuicConnection* connection); |
37 | 38 |
(...skipping 10 matching lines...) Expand all Loading... |
48 | 49 |
49 static QuicPacketCreator* GetPacketCreator(QuicConnection* connection); | 50 static QuicPacketCreator* GetPacketCreator(QuicConnection* connection); |
50 | 51 |
51 static QuicPacketGenerator* GetPacketGenerator(QuicConnection* connection); | 52 static QuicPacketGenerator* GetPacketGenerator(QuicConnection* connection); |
52 | 53 |
53 static QuicSentPacketManager* GetSentPacketManager( | 54 static QuicSentPacketManager* GetSentPacketManager( |
54 QuicConnection* connection); | 55 QuicConnection* connection); |
55 | 56 |
56 static QuicTime::Delta GetNetworkTimeout(QuicConnection* connection); | 57 static QuicTime::Delta GetNetworkTimeout(QuicConnection* connection); |
57 | 58 |
| 59 static QuicSentEntropyManager* GetSentEntropyManager( |
| 60 QuicConnection* connection); |
| 61 |
58 static QuicPacketEntropyHash GetSentEntropyHash( | 62 static QuicPacketEntropyHash GetSentEntropyHash( |
59 QuicConnection* connection, | 63 QuicConnection* connection, |
60 QuicPacketNumber packet_number); | 64 QuicPacketNumber packet_number); |
61 | 65 |
62 static QuicPacketEntropyHash PacketEntropy(QuicConnection* connection, | 66 static QuicPacketEntropyHash PacketEntropy(QuicConnection* connection, |
63 QuicPacketNumber packet_number); | 67 QuicPacketNumber packet_number); |
64 | 68 |
65 static QuicPacketEntropyHash ReceivedEntropyHash( | 69 static QuicPacketEntropyHash ReceivedEntropyHash( |
66 QuicConnection* connection, | 70 QuicConnection* connection, |
67 QuicPacketNumber packet_number); | 71 QuicPacketNumber packet_number); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 124 |
121 private: | 125 private: |
122 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); | 126 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); |
123 }; | 127 }; |
124 | 128 |
125 } // namespace test | 129 } // namespace test |
126 | 130 |
127 } // namespace net | 131 } // namespace net |
128 | 132 |
129 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ | 133 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ |
OLD | NEW |