Re-land: C++ readability review
[chromium-blink-merge.git] / net / quic / test_tools / quic_packet_creator_peer.cc
blob87c257b12f89feebea1d60d5185ed5364d6c032c
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 #include "net/quic/test_tools/quic_packet_creator_peer.h"
7 #include "net/quic/quic_packet_creator.h"
9 namespace net {
10 namespace test {
12 // static
13 bool QuicPacketCreatorPeer::SendVersionInPacket(QuicPacketCreator* creator) {
14 return creator->send_version_in_packet_;
17 // static
18 void QuicPacketCreatorPeer::SetSendVersionInPacket(
19 QuicPacketCreator* creator, bool send_version_in_packet) {
20 creator->send_version_in_packet_ = send_version_in_packet;
23 // static
24 void QuicPacketCreatorPeer::SetSequenceNumberLength(
25 QuicPacketCreator* creator,
26 QuicSequenceNumberLength sequence_number_length) {
27 creator->sequence_number_length_ = sequence_number_length;
30 // static
31 void QuicPacketCreatorPeer::SetNextSequenceNumberLength(
32 QuicPacketCreator* creator,
33 QuicSequenceNumberLength next_sequence_number_length) {
34 creator->next_sequence_number_length_ = next_sequence_number_length;
37 // static
38 QuicSequenceNumberLength QuicPacketCreatorPeer::NextSequenceNumberLength(
39 QuicPacketCreator* creator) {
40 return creator->next_sequence_number_length_;
43 // static
44 QuicSequenceNumberLength QuicPacketCreatorPeer::GetSequenceNumberLength(
45 QuicPacketCreator* creator) {
46 return creator->sequence_number_length_;
49 void QuicPacketCreatorPeer::SetSequenceNumber(QuicPacketCreator* creator,
50 QuicPacketSequenceNumber s) {
51 creator->sequence_number_ = s;
54 } // namespace test
55 } // namespace net