1 // Copyright (c) 2022 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.
4 
5 #include "quiche/quic/test_tools/quic_coalesced_packet_peer.h"
6 
7 namespace quic {
8 namespace test {
9 
10 //  static
SetMaxPacketLength(QuicCoalescedPacket & coalesced_packet,QuicPacketLength length)11 void QuicCoalescedPacketPeer::SetMaxPacketLength(
12     QuicCoalescedPacket& coalesced_packet, QuicPacketLength length) {
13   coalesced_packet.max_packet_length_ = length;
14 }
15 
16 //  static
GetMutableEncryptedBuffer(QuicCoalescedPacket & coalesced_packet,EncryptionLevel encryption_level)17 std::string* QuicCoalescedPacketPeer::GetMutableEncryptedBuffer(
18     QuicCoalescedPacket& coalesced_packet, EncryptionLevel encryption_level) {
19   return &coalesced_packet.encrypted_buffers_[encryption_level];
20 }
21 
22 }  // namespace test
23 }  // namespace quic
24