blob: 61fda95b40dc98074016d45d3cb8b1ea6a054f82 [file] [log] [blame]
QUICHE teama6ef0a62019-03-07 20:34:33 -05001// 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 team5be974e2020-12-29 18:35:24 -05005#include "quic/test_tools/quic_unacked_packet_map_peer.h"
QUICHE teama6ef0a62019-03-07 20:34:33 -05006
7namespace quic {
8namespace test {
9
10// static
11const QuicStreamFrame& QuicUnackedPacketMapPeer::GetAggregatedStreamFrame(
12 const QuicUnackedPacketMap& unacked_packets) {
13 return unacked_packets.aggregated_stream_frame_;
14}
15
16// static
17void QuicUnackedPacketMapPeer::SetPerspective(
18 QuicUnackedPacketMap* unacked_packets,
19 Perspective perspective) {
20 *const_cast<Perspective*>(&unacked_packets->perspective_) = perspective;
21}
22
haoyuewange0acd512020-11-05 09:18:36 -080023// static
24size_t QuicUnackedPacketMapPeer::GetCapacity(
25 const QuicUnackedPacketMap& unacked_packets) {
26 return unacked_packets.unacked_packets_.capacity();
27}
28
QUICHE teama6ef0a62019-03-07 20:34:33 -050029} // namespace test
30} // namespace quic