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 void QuicPacketCreatorPeer::SetNextSequenceNumberLength(
32 QuicPacketCreator
* creator
,
33 QuicSequenceNumberLength next_sequence_number_length
) {
34 creator
->next_sequence_number_length_
= next_sequence_number_length
;
38 QuicSequenceNumberLength
QuicPacketCreatorPeer::NextSequenceNumberLength(
39 QuicPacketCreator
* creator
) {
40 return creator
->next_sequence_number_length_
;
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
;