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