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 #include "net/quic/quic_stats.h" |
11 | 11 |
12 namespace net { | 12 namespace net { |
13 | 13 |
14 struct QuicAckFrame; | 14 struct QuicAckFrame; |
15 class QuicConnection; | 15 class QuicConnection; |
16 class QuicConnectionVisitorInterface; | 16 class QuicConnectionVisitorInterface; |
| 17 class QuicFramer; |
17 class QuicPacketCreator; | 18 class QuicPacketCreator; |
18 class ReceiveAlgorithmInterface; | 19 class ReceiveAlgorithmInterface; |
19 class SendAlgorithmInterface; | 20 class SendAlgorithmInterface; |
20 | 21 |
21 namespace test { | 22 namespace test { |
22 | 23 |
23 // Peer to make public a number of otherwise private QuicConnection methods. | 24 // Peer to make public a number of otherwise private QuicConnection methods. |
24 class QuicConnectionPeer { | 25 class QuicConnectionPeer { |
25 public: | 26 public: |
26 static void SendAck(QuicConnection* connection); | 27 static void SendAck(QuicConnection* connection); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 QuicPacketEntropyHash entropy_hash); | 61 QuicPacketEntropyHash entropy_hash); |
61 | 62 |
62 static QuicPacketEntropyHash ReceivedEntropyHash( | 63 static QuicPacketEntropyHash ReceivedEntropyHash( |
63 QuicConnection* connection, | 64 QuicConnection* connection, |
64 QuicPacketSequenceNumber sequence_number); | 65 QuicPacketSequenceNumber sequence_number); |
65 | 66 |
66 static bool IsServer(QuicConnection* connection); | 67 static bool IsServer(QuicConnection* connection); |
67 | 68 |
68 static void SetIsServer(QuicConnection* connection, bool is_server); | 69 static void SetIsServer(QuicConnection* connection, bool is_server); |
69 | 70 |
| 71 static void SwapCrypters(QuicConnection* connection, QuicFramer* framer); |
| 72 |
70 private: | 73 private: |
71 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); | 74 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); |
72 }; | 75 }; |
73 | 76 |
74 } // namespace test | 77 } // namespace test |
75 } // namespace net | 78 } // namespace net |
76 | 79 |
77 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_PEER_H_ | 80 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_PEER_H_ |
OLD | NEW |