Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / net / quic / test_tools / quic_packet_creator_peer.cc
blobb5c94141678c80ea44b413ac93b11a429db44902
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,
20 bool send_version_in_packet) {
21 creator->send_version_in_packet_ = send_version_in_packet;
24 // static
25 void QuicPacketCreatorPeer::SetPacketNumberLength(
26 QuicPacketCreator* creator,
27 QuicPacketNumberLength packet_number_length) {
28 creator->packet_number_length_ = packet_number_length;
31 // static
32 void QuicPacketCreatorPeer::SetNextPacketNumberLength(
33 QuicPacketCreator* creator,
34 QuicPacketNumberLength next_packet_number_length) {
35 creator->next_packet_number_length_ = next_packet_number_length;
38 // static
39 QuicPacketNumberLength QuicPacketCreatorPeer::NextPacketNumberLength(
40 QuicPacketCreator* creator) {
41 return creator->next_packet_number_length_;
44 // static
45 QuicPacketNumberLength QuicPacketCreatorPeer::GetPacketNumberLength(
46 QuicPacketCreator* creator) {
47 return creator->packet_number_length_;
50 void QuicPacketCreatorPeer::SetPacketNumber(QuicPacketCreator* creator,
51 QuicPacketNumber s) {
52 creator->packet_number_ = s;
55 } // namespace test
56 } // namespace net