blob: c8662a1e9696de0e979554a36810e05cc5cd7813 [file] [log] [blame]
// Copyright (c) 2018 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_stream_id_manager_peer.h"
#include "quic/core/quic_stream_id_manager.h"
#include "quic/core/quic_utils.h"
#include "quic/core/uber_quic_stream_id_manager.h"
#include "quic/platform/api/quic_bug_tracker.h"
#include "quic/platform/api/quic_logging.h"
namespace quic {
namespace test {
// static
void QuicStreamIdManagerPeer::set_incoming_actual_max_streams(
QuicStreamIdManager* stream_id_manager,
QuicStreamCount count) {
stream_id_manager->incoming_actual_max_streams_ = count;
}
// static
void QuicStreamIdManagerPeer::set_outgoing_max_streams(
QuicStreamIdManager* stream_id_manager,
QuicStreamCount count) {
stream_id_manager->outgoing_max_streams_ = count;
}
// static
QuicStreamId QuicStreamIdManagerPeer::GetFirstIncomingStreamId(
QuicStreamIdManager* stream_id_manager) {
return stream_id_manager->GetFirstIncomingStreamId();
}
// static
bool QuicStreamIdManagerPeer::get_unidirectional(
QuicStreamIdManager* stream_id_manager) {
return stream_id_manager->unidirectional_;
}
} // namespace test
} // namespace quic