blob: 1ecc65f2480916f50580ad89ad1298a7ea80618d [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
5#include "net/third_party/quiche/src/quic/test_tools/quic_unacked_packet_map_peer.h"
6
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
23} // namespace test
24} // namespace quic