root/net/quic/test_tools/quic_packet_creator_peer.cc

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. SendVersionInPacket
  2. SetSendVersionInPacket
  3. SetSequenceNumberLength
  4. GetSequenceNumberLength
  5. SetIsServer

// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "net/quic/test_tools/quic_packet_creator_peer.h"

#include "net/quic/quic_packet_creator.h"

namespace net {
namespace test {

// static
bool QuicPacketCreatorPeer::SendVersionInPacket(QuicPacketCreator* creator) {
  return creator->send_version_in_packet_;
}

// static
void QuicPacketCreatorPeer::SetSendVersionInPacket(
    QuicPacketCreator* creator, bool send_version_in_packet) {
  creator->send_version_in_packet_ = send_version_in_packet;
}

// static
void QuicPacketCreatorPeer::SetSequenceNumberLength(
      QuicPacketCreator* creator,
      QuicSequenceNumberLength sequence_number_length) {
  creator->sequence_number_length_ = sequence_number_length;
}

// static
QuicSequenceNumberLength QuicPacketCreatorPeer::GetSequenceNumberLength(
    QuicPacketCreator* creator) {
  return creator->sequence_number_length_;
}

// static
void QuicPacketCreatorPeer::SetIsServer(QuicPacketCreator* creator,
                                        bool is_server) {
  creator->is_server_ = is_server;
}

}  // namespace test
}  // namespace net

/* [<][>][^][v][top][bottom][index][help] */