MacViews: Get c/b/ui/views/tabs to build on Mac
[chromium-blink-merge.git] / net / quic / test_tools / quic_packet_creator_peer.cc
bloba80144794785913d8f5a436a83a4c9bba41a1465
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 QuicSequenceNumberLength QuicPacketCreatorPeer::GetSequenceNumberLength(
32 QuicPacketCreator* creator) {
33 return creator->sequence_number_length_;
36 } // namespace test
37 } // namespace net