| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_PACKET_CREATOR_PEER_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_ |
| 6 #define NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_ | 6 #define NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_ |
| 7 | 7 |
| 8 #include "net/quic/quic_protocol.h" | 8 #include "net/quic/quic_protocol.h" |
| 9 | 9 |
| 10 namespace net { | 10 namespace net { |
| 11 class QuicPacketCreator; | 11 class QuicPacketCreator; |
| 12 | 12 |
| 13 namespace test { | 13 namespace test { |
| 14 | 14 |
| 15 class QuicPacketCreatorPeer { | 15 class QuicPacketCreatorPeer { |
| 16 public: | 16 public: |
| 17 static bool SendVersionInPacket(QuicPacketCreator* creator); | 17 static bool SendVersionInPacket(QuicPacketCreator* creator); |
| 18 | 18 |
| 19 static void SetSendVersionInPacket(QuicPacketCreator* creator, | 19 static void SetSendVersionInPacket(QuicPacketCreator* creator, |
| 20 bool send_version_in_packet); | 20 bool send_version_in_packet); |
| 21 static void SetSequenceNumberLength( | 21 static void SetSequenceNumberLength( |
| 22 QuicPacketCreator* creator, | 22 QuicPacketCreator* creator, |
| 23 QuicSequenceNumberLength sequence_number_length); | 23 QuicSequenceNumberLength sequence_number_length); |
| 24 static QuicSequenceNumberLength GetSequenceNumberLength( | 24 static QuicSequenceNumberLength GetSequenceNumberLength( |
| 25 QuicPacketCreator* creator); | 25 QuicPacketCreator* creator); |
| 26 | 26 |
| 27 static void SetIsServer(QuicPacketCreator* creator, bool is_server); | 27 static void SetIsServer(QuicPacketCreator* creator, bool is_server); |
| 28 | 28 |
| 29 static bool SwitchFecProtectionOn(QuicPacketCreator* creator, |
| 30 size_t max_packets_per_fec_group); |
| 31 |
| 29 private: | 32 private: |
| 30 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreatorPeer); | 33 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreatorPeer); |
| 31 }; | 34 }; |
| 32 | 35 |
| 33 } // namespace test | 36 } // namespace test |
| 34 | 37 |
| 35 } // namespace net | 38 } // namespace net |
| 36 | 39 |
| 37 #endif // NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_ | 40 #endif // NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_ |
| OLD | NEW |