Re-land: C++ readability review
[chromium-blink-merge.git] / net / quic / test_tools / quic_packet_creator_peer.h
blobf95f1c12a32555e32610def835fbdb1b60c605dc
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"
10 namespace net {
11 class QuicPacketCreator;
13 namespace test {
15 class QuicPacketCreatorPeer {
16 public:
17 static bool SendVersionInPacket(QuicPacketCreator* creator);
19 static void SetSendVersionInPacket(QuicPacketCreator* creator,
20 bool send_version_in_packet);
21 static void SetSequenceNumberLength(
22 QuicPacketCreator* creator,
23 QuicSequenceNumberLength sequence_number_length);
24 static QuicSequenceNumberLength GetSequenceNumberLength(
25 QuicPacketCreator* creator);
26 static void SetNextSequenceNumberLength(
27 QuicPacketCreator* creator,
28 QuicSequenceNumberLength next_sequence_number_length);
29 static QuicSequenceNumberLength NextSequenceNumberLength(
30 QuicPacketCreator* creator);
31 static void SetSequenceNumber(QuicPacketCreator* creator,
32 QuicPacketSequenceNumber s);
34 private:
35 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreatorPeer);
38 } // namespace test
40 } // namespace net
42 #endif // NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_