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
3 // found in the LICENSE file.
5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_
6 #define NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_
8 #include "net/quic/quic_protocol.h"
11 class QuicPacketCreator
;
15 class QuicPacketCreatorPeer
{
17 static bool SendVersionInPacket(QuicPacketCreator
* creator
);
19 static void SetSendVersionInPacket(QuicPacketCreator
* creator
,
20 bool send_version_in_packet
);
21 static void SetPacketNumberLength(
22 QuicPacketCreator
* creator
,
23 QuicPacketNumberLength packet_number_length
);
24 static QuicPacketNumberLength
GetPacketNumberLength(
25 QuicPacketCreator
* creator
);
26 static void SetNextPacketNumberLength(
27 QuicPacketCreator
* creator
,
28 QuicPacketNumberLength next_packet_number_length
);
29 static QuicPacketNumberLength
NextPacketNumberLength(
30 QuicPacketCreator
* creator
);
31 static void SetPacketNumber(QuicPacketCreator
* creator
, QuicPacketNumber s
);
34 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreatorPeer
);
41 #endif // NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_