blob: 15806b372ab055abe73ebc08ca89c3350c8f1b46 [file] [log] [blame]
// 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 "quiche/quic/test_tools/quic_spdy_stream_peer.h"
#include "quiche/quic/core/http/quic_spdy_stream.h"
#include "quiche/quic/test_tools/quic_test_utils.h"
namespace quic {
namespace test {
// static
void QuicSpdyStreamPeer::set_ack_listener(
QuicSpdyStream* stream,
quiche::QuicheReferenceCountedPointer<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::OnHeadersFrameEnd(QuicSpdyStream* stream) {
return stream->OnHeadersFrameEnd();
}
} // namespace test
} // namespace quic