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"
13 bool QuicPacketCreatorPeer::SendVersionInPacket(QuicPacketCreator
* creator
) {
14 return creator
->send_version_in_packet_
;
18 void QuicPacketCreatorPeer::SetSendVersionInPacket(
19 QuicPacketCreator
* creator
, bool send_version_in_packet
) {
20 creator
->send_version_in_packet_
= send_version_in_packet
;
24 void QuicPacketCreatorPeer::SetSequenceNumberLength(
25 QuicPacketCreator
* creator
,
26 QuicSequenceNumberLength sequence_number_length
) {
27 creator
->sequence_number_length_
= sequence_number_length
;
31 QuicSequenceNumberLength
QuicPacketCreatorPeer::GetSequenceNumberLength(
32 QuicPacketCreator
* creator
) {
33 return creator
->sequence_number_length_
;