blob: ad760e629065685a8d41ef38d6ac88f9dd5a056d [file] [log] [blame]
// Copyright (c) 2015 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 "net/quic/test_tools/quic_spdy_session_peer.h"
#include "net/quic/core/quic_spdy_session.h"
namespace net {
namespace test {
// static
QuicHeadersStream* QuicSpdySessionPeer::GetHeadersStream(
QuicSpdySession* session) {
return session->headers_stream_.get();
}
// static
void QuicSpdySessionPeer::SetHeadersStream(QuicSpdySession* session,
QuicHeadersStream* headers_stream) {
session->headers_stream_.reset(headers_stream);
session->static_streams()[headers_stream->id()] = headers_stream;
}
// static
void QuicSpdySessionPeer::SetForceHolBlocking(QuicSpdySession* session,
bool value) {
session->force_hol_blocking_ = value;
}
} // namespace test
} // namespace net