Bence Béky | bac0405 | 2022-04-07 15:44:29 -0400 | [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 "quiche/quic/test_tools/quic_spdy_stream_peer.h" |
| 6 | |
| 7 | #include "quiche/quic/core/http/quic_spdy_stream.h" |
| 8 | #include "quiche/quic/test_tools/quic_test_utils.h" |
| 9 | |
| 10 | namespace quic { |
| 11 | namespace test { |
| 12 | |
| 13 | // static |
| 14 | void QuicSpdyStreamPeer::set_ack_listener( |
| 15 | QuicSpdyStream* stream, |
| 16 | quiche::QuicheReferenceCountedPointer<QuicAckListenerInterface> |
| 17 | ack_listener) { |
| 18 | stream->set_ack_listener(std::move(ack_listener)); |
| 19 | } |
| 20 | |
| 21 | // static |
| 22 | const QuicIntervalSet<QuicStreamOffset>& |
| 23 | QuicSpdyStreamPeer::unacked_frame_headers_offsets(QuicSpdyStream* stream) { |
| 24 | return stream->unacked_frame_headers_offsets_; |
| 25 | } |
| 26 | |
| 27 | // static |
Bence Béky | bac0405 | 2022-04-07 15:44:29 -0400 | [diff] [blame] | 28 | bool QuicSpdyStreamPeer::OnHeadersFrameEnd(QuicSpdyStream* stream) { |
| 29 | return stream->OnHeadersFrameEnd(); |
| 30 | } |
| 31 | |
| 32 | } // namespace test |
| 33 | } // namespace quic |