QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 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 | |
QUICHE team | 5be974e | 2020-12-29 18:35:24 -0500 | [diff] [blame] | 5 | #include "quic/test_tools/quic_unacked_packet_map_peer.h" |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 6 | |
| 7 | namespace quic { |
| 8 | namespace test { |
| 9 | |
| 10 | // static |
| 11 | const QuicStreamFrame& QuicUnackedPacketMapPeer::GetAggregatedStreamFrame( |
| 12 | const QuicUnackedPacketMap& unacked_packets) { |
| 13 | return unacked_packets.aggregated_stream_frame_; |
| 14 | } |
| 15 | |
| 16 | // static |
| 17 | void QuicUnackedPacketMapPeer::SetPerspective( |
| 18 | QuicUnackedPacketMap* unacked_packets, |
| 19 | Perspective perspective) { |
| 20 | *const_cast<Perspective*>(&unacked_packets->perspective_) = perspective; |
| 21 | } |
| 22 | |
haoyuewang | e0acd51 | 2020-11-05 09:18:36 -0800 | [diff] [blame] | 23 | // static |
| 24 | size_t QuicUnackedPacketMapPeer::GetCapacity( |
| 25 | const QuicUnackedPacketMap& unacked_packets) { |
| 26 | return unacked_packets.unacked_packets_.capacity(); |
| 27 | } |
| 28 | |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 29 | } // namespace test |
| 30 | } // namespace quic |