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 #ifndef QUICHE_QUIC_TEST_TOOLS_QUIC_COALESCED_PACKET_PEER_H_ 6 #define QUICHE_QUIC_TEST_TOOLS_QUIC_COALESCED_PACKET_PEER_H_ 7 8 #include "quiche/quic/core/quic_coalesced_packet.h" 9 #include "quiche/quic/core/quic_types.h" 10 11 namespace quic { 12 namespace test { 13 14 class QuicCoalescedPacketPeer { 15 public: 16 static void SetMaxPacketLength(QuicCoalescedPacket& coalesced_packet, 17 QuicPacketLength length); 18 19 static std::string* GetMutableEncryptedBuffer( 20 QuicCoalescedPacket& coalesced_packet, EncryptionLevel encryption_level); 21 }; 22 23 } // namespace test 24 } // namespace quic 25 26 #endif // QUICHE_QUIC_TEST_TOOLS_QUIC_COALESCED_PACKET_PEER_H_ 27