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
,
20 bool send_version_in_packet
) {
21 creator
->send_version_in_packet_
= send_version_in_packet
;
25 void QuicPacketCreatorPeer::SetPacketNumberLength(
26 QuicPacketCreator
* creator
,
27 QuicPacketNumberLength packet_number_length
) {
28 creator
->packet_number_length_
= packet_number_length
;
32 void QuicPacketCreatorPeer::SetNextPacketNumberLength(
33 QuicPacketCreator
* creator
,
34 QuicPacketNumberLength next_packet_number_length
) {
35 creator
->next_packet_number_length_
= next_packet_number_length
;
39 QuicPacketNumberLength
QuicPacketCreatorPeer::NextPacketNumberLength(
40 QuicPacketCreator
* creator
) {
41 return creator
->next_packet_number_length_
;
45 QuicPacketNumberLength
QuicPacketCreatorPeer::GetPacketNumberLength(
46 QuicPacketCreator
* creator
) {
47 return creator
->packet_number_length_
;
50 void QuicPacketCreatorPeer::SetPacketNumber(QuicPacketCreator
* creator
,
52 creator
->packet_number_
= s
;