blob: 972440b3096d2de9f637db7eedc223bba817b36b [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 <utility>
#include "quiche/quic/core/http/quic_spdy_stream.h"
#include "quiche/quic/test_tools/quic_test_utils.h"
namespace quic {
namespace test {
void QuicSpdyStreamPeer::set_ack_listener(
QuicSpdyStream* stream,
quiche::QuicheReferenceCountedPointer<QuicAckListenerInterface>
ack_listener) {
stream->set_ack_listener(std::move(ack_listener));
}
const QuicIntervalSet<QuicStreamOffset>&
QuicSpdyStreamPeer::unacked_frame_headers_offsets(QuicSpdyStream* stream) {
return stream->unacked_frame_headers_offsets_;
}
bool QuicSpdyStreamPeer::OnHeadersFrameEnd(QuicSpdyStream* stream) {
return stream->OnHeadersFrameEnd();
}
void QuicSpdyStreamPeer::set_header_decoding_delay(QuicSpdyStream* stream,
QuicTime::Delta delay) {
stream->header_decoding_delay_ = delay;
}
} // namespace test
} // namespace quic