blob: eeb16212484e1a3a78bead177f0b65fe737d4c0d [file] [log] [blame]
// Copyright (c) 2022 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_coalesced_packet_peer.h"
namespace quic {
namespace test {
// static
void QuicCoalescedPacketPeer::SetMaxPacketLength(
QuicCoalescedPacket& coalesced_packet, QuicPacketLength length) {
coalesced_packet.max_packet_length_ = length;
}
// static
std::string* QuicCoalescedPacketPeer::GetMutableEncryptedBuffer(
QuicCoalescedPacket& coalesced_packet, EncryptionLevel encryption_level) {
return &coalesced_packet.encrypted_buffers_[encryption_level];
}
} // namespace test
} // namespace quic