1 // Copyright (c) 2019 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_unacked_packet_map_peer.h" 6 7 namespace quic { 8 namespace test { 9 10 // static GetAggregatedStreamFrame(const QuicUnackedPacketMap & unacked_packets)11const QuicStreamFrame& QuicUnackedPacketMapPeer::GetAggregatedStreamFrame( 12 const QuicUnackedPacketMap& unacked_packets) { 13 return unacked_packets.aggregated_stream_frame_; 14 } 15 16 // static SetPerspective(QuicUnackedPacketMap * unacked_packets,Perspective perspective)17void QuicUnackedPacketMapPeer::SetPerspective( 18 QuicUnackedPacketMap* unacked_packets, Perspective perspective) { 19 *const_cast<Perspective*>(&unacked_packets->perspective_) = perspective; 20 } 21 22 // static GetCapacity(const QuicUnackedPacketMap & unacked_packets)23size_t QuicUnackedPacketMapPeer::GetCapacity( 24 const QuicUnackedPacketMap& unacked_packets) { 25 return unacked_packets.unacked_packets_.capacity(); 26 } 27 28 } // namespace test 29 } // namespace quic 30