blob: 7c7359f935e30b4b91dca50f0aa63a5f84c7f1a1 [file] [log] [blame]
QUICHE teama6ef0a62019-03-07 20:34:33 -05001// Copyright (c) 2018 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4#ifndef QUICHE_QUIC_TEST_TOOLS_QUIC_STREAM_ID_MANAGER_PEER_H_
5#define QUICHE_QUIC_TEST_TOOLS_QUIC_STREAM_ID_MANAGER_PEER_H_
6
7#include <stddef.h>
8
QUICHE team5be974e2020-12-29 18:35:24 -05009#include "quic/core/quic_types.h"
fkastenholz3c4eabf2019-04-22 07:49:59 -070010
QUICHE teama6ef0a62019-03-07 20:34:33 -050011namespace quic {
12
13class QuicStreamIdManager;
fkastenholz3c4eabf2019-04-22 07:49:59 -070014class UberQuicStreamIdManager;
QUICHE teama6ef0a62019-03-07 20:34:33 -050015
16namespace test {
17
18class QuicStreamIdManagerPeer {
19 public:
20 QuicStreamIdManagerPeer() = delete;
fkastenholz3c4eabf2019-04-22 07:49:59 -070021
22 static void set_incoming_actual_max_streams(
QUICHE teama6ef0a62019-03-07 20:34:33 -050023 QuicStreamIdManager* stream_id_manager,
fkastenholz3c4eabf2019-04-22 07:49:59 -070024 QuicStreamCount count);
fkastenholz56055be2019-09-17 11:17:37 -070025 static void set_outgoing_max_streams(QuicStreamIdManager* stream_id_manager,
26 QuicStreamCount count);
fkastenholz3c4eabf2019-04-22 07:49:59 -070027
28 static QuicStreamId GetFirstIncomingStreamId(
29 QuicStreamIdManager* stream_id_manager);
fkastenholz56055be2019-09-17 11:17:37 -070030
31 static bool get_unidirectional(QuicStreamIdManager* stream_id_manager);
QUICHE teama6ef0a62019-03-07 20:34:33 -050032};
33
34} // namespace test
35
36} // namespace quic
37
38#endif // QUICHE_QUIC_TEST_TOOLS_QUIC_SESSION_PEER_H_