| 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/macros.h" | 8 #include "base/macros.h" |
| 9 #include "net/base/ip_endpoint.h" | 9 #include "net/base/ip_endpoint.h" |
| 10 #include "net/quic/core/quic_connection.h" | 10 #include "net/quic/core/quic_connection.h" |
| 11 #include "net/quic/core/quic_connection_stats.h" | 11 #include "net/quic/core/quic_connection_stats.h" |
| 12 #include "net/quic/core/quic_protocol.h" | 12 #include "net/quic/core/quic_protocol.h" |
| 13 | 13 |
| 14 namespace net { | 14 namespace net { |
| 15 | 15 |
| 16 struct QuicAckFrame; | 16 struct QuicAckFrame; |
| 17 struct QuicPacketHeader; | 17 struct QuicPacketHeader; |
| 18 class QuicAlarm; | 18 class QuicAlarm; |
| 19 class QuicConnectionHelperInterface; | 19 class QuicConnectionHelperInterface; |
| 20 class QuicConnectionVisitorInterface; | 20 class QuicConnectionVisitorInterface; |
| 21 class QuicEncryptedPacket; | 21 class QuicEncryptedPacket; |
| 22 class QuicFramer; | 22 class QuicFramer; |
| 23 class QuicPacketCreator; | 23 class QuicPacketCreator; |
| 24 class QuicPacketGenerator; | 24 class QuicPacketGenerator; |
| 25 class QuicPacketWriter; | 25 class QuicPacketWriter; |
| 26 class QuicReceivedPacketManager; | 26 class QuicReceivedPacketManager; |
| 27 class QuicSentEntropyManager; | |
| 28 class QuicSentPacketManager; | 27 class QuicSentPacketManager; |
| 29 class SendAlgorithmInterface; | 28 class SendAlgorithmInterface; |
| 30 | 29 |
| 31 namespace test { | 30 namespace test { |
| 32 | 31 |
| 33 // Peer to make public a number of otherwise private QuicConnection methods. | 32 // Peer to make public a number of otherwise private QuicConnection methods. |
| 34 class QuicConnectionPeer { | 33 class QuicConnectionPeer { |
| 35 public: | 34 public: |
| 36 static void SendAck(QuicConnection* connection); | 35 static void SendAck(QuicConnection* connection); |
| 37 | 36 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 55 static QuicPacketCreator* GetPacketCreator(QuicConnection* connection); | 54 static QuicPacketCreator* GetPacketCreator(QuicConnection* connection); |
| 56 | 55 |
| 57 static QuicPacketGenerator* GetPacketGenerator(QuicConnection* connection); | 56 static QuicPacketGenerator* GetPacketGenerator(QuicConnection* connection); |
| 58 | 57 |
| 59 // Returns sent packet manager of |path_id|. | 58 // Returns sent packet manager of |path_id|. |
| 60 static QuicSentPacketManager* GetSentPacketManager(QuicConnection* connection, | 59 static QuicSentPacketManager* GetSentPacketManager(QuicConnection* connection, |
| 61 QuicPathId path_id); | 60 QuicPathId path_id); |
| 62 | 61 |
| 63 static QuicTime::Delta GetNetworkTimeout(QuicConnection* connection); | 62 static QuicTime::Delta GetNetworkTimeout(QuicConnection* connection); |
| 64 | 63 |
| 65 static QuicSentEntropyManager* GetSentEntropyManager( | |
| 66 QuicConnection* connection); | |
| 67 | |
| 68 static QuicPacketEntropyHash GetSentEntropyHash( | |
| 69 QuicConnection* connection, | |
| 70 QuicPacketNumber packet_number); | |
| 71 | |
| 72 static QuicPacketEntropyHash PacketEntropy(QuicConnection* connection, | |
| 73 QuicPacketNumber packet_number); | |
| 74 | |
| 75 static QuicPacketEntropyHash ReceivedEntropyHash( | |
| 76 QuicConnection* connection, | |
| 77 QuicPacketNumber packet_number); | |
| 78 | |
| 79 static void SetPerspective(QuicConnection* connection, | 64 static void SetPerspective(QuicConnection* connection, |
| 80 Perspective perspective); | 65 Perspective perspective); |
| 81 | 66 |
| 82 static void SetSelfAddress(QuicConnection* connection, | 67 static void SetSelfAddress(QuicConnection* connection, |
| 83 const IPEndPoint& self_address); | 68 const IPEndPoint& self_address); |
| 84 | 69 |
| 85 static void SetPeerAddress(QuicConnection* connection, | 70 static void SetPeerAddress(QuicConnection* connection, |
| 86 const IPEndPoint& peer_address); | 71 const IPEndPoint& peer_address); |
| 87 | 72 |
| 88 static bool IsSilentCloseEnabled(QuicConnection* connection); | 73 static bool IsSilentCloseEnabled(QuicConnection* connection); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 | 125 |
| 141 private: | 126 private: |
| 142 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); | 127 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); |
| 143 }; | 128 }; |
| 144 | 129 |
| 145 } // namespace test | 130 } // namespace test |
| 146 | 131 |
| 147 } // namespace net | 132 } // namespace net |
| 148 | 133 |
| 149 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ | 134 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ |
| OLD | NEW |