| // Copyright (c) 2019 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "quic/test_tools/quic_spdy_stream_peer.h" |
| |
| #include "quic/core/http/quic_spdy_stream.h" |
| #include "quic/test_tools/quic_test_utils.h" |
| |
| namespace quic { |
| namespace test { |
| |
| // static |
| void QuicSpdyStreamPeer::set_ack_listener( |
| QuicSpdyStream* stream, |
| QuicReferenceCountedPointer<QuicAckListenerInterface> ack_listener) { |
| stream->set_ack_listener(std::move(ack_listener)); |
| } |
| |
| // static |
| const QuicIntervalSet<QuicStreamOffset>& |
| QuicSpdyStreamPeer::unacked_frame_headers_offsets(QuicSpdyStream* stream) { |
| return stream->unacked_frame_headers_offsets_; |
| } |
| |
| // static |
| bool QuicSpdyStreamPeer::use_datagram_contexts(QuicSpdyStream* stream) { |
| return stream->use_datagram_contexts_; |
| } |
| |
| } // namespace test |
| } // namespace quic |