chromium/net/third_party/quiche/src/quiche/quic/test_tools/quic_framer_peer.cc

// 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 "quiche/quic/test_tools/quic_framer_peer.h"

#include <string>

#include "quiche/quic/core/quic_framer.h"
#include "quiche/quic/core/quic_packets.h"

namespace quic {
namespace test {

// static
uint64_t QuicFramerPeer::CalculatePacketNumberFromWire(
    QuicFramer* framer, QuicPacketNumberLength packet_number_length,
    QuicPacketNumber last_packet_number, uint64_t packet_number) {}

// static
void QuicFramerPeer::SetLastSerializedServerConnectionId(
    QuicFramer* framer, QuicConnectionId server_connection_id) {}

// static
void QuicFramerPeer::SetLastWrittenPacketNumberLength(
    QuicFramer* framer, size_t packet_number_length) {}

// static
void QuicFramerPeer::SetLargestPacketNumber(QuicFramer* framer,
                                            QuicPacketNumber packet_number) {}

// static
void QuicFramerPeer::SetPerspective(QuicFramer* framer,
                                    Perspective perspective) {}

// static
void QuicFramerPeer::SwapCrypters(QuicFramer* framer1, QuicFramer* framer2) {}

// static
QuicEncrypter* QuicFramerPeer::GetEncrypter(QuicFramer* framer,
                                            EncryptionLevel level) {}

// static
QuicDecrypter* QuicFramerPeer::GetDecrypter(QuicFramer* framer,
                                            EncryptionLevel level) {}

// static
void QuicFramerPeer::SetFirstSendingPacketNumber(QuicFramer* framer,
                                                 uint64_t packet_number) {}

// static
void QuicFramerPeer::SetExpectedServerConnectionIDLength(
    QuicFramer* framer, uint8_t expected_server_connection_id_length) {}

// static
QuicPacketNumber QuicFramerPeer::GetLargestDecryptedPacketNumber(
    QuicFramer* framer, PacketNumberSpace packet_number_space) {}

// static
bool QuicFramerPeer::ProcessAndValidateIetfConnectionIdLength(
    QuicDataReader* reader, ParsedQuicVersion version, Perspective perspective,
    bool should_update_expected_server_connection_id_length,
    uint8_t* expected_server_connection_id_length,
    uint8_t* destination_connection_id_length,
    uint8_t* source_connection_id_length, std::string* detailed_error) {}

}  // namespace test
}  // namespace quic