#include "quiche/quic/core/legacy_quic_stream_id_manager.h"
#include <string>
#include <utility>
#include <vector>
#include "absl/strings/str_cat.h"
#include "quiche/quic/core/quic_types.h"
#include "quiche/quic/core/quic_utils.h"
#include "quiche/quic/core/quic_versions.h"
#include "quiche/quic/platform/api/quic_test.h"
#include "quiche/quic/test_tools/quic_session_peer.h"
#include "quiche/quic/test_tools/quic_test_utils.h"
namespace quic {
namespace test {
namespace {
_;
StrictMock;
struct TestParams { … };
std::string PrintToString(const TestParams& p) { … }
std::vector<TestParams> GetTestParams() { … }
class LegacyQuicStreamIdManagerTest : public QuicTestWithParam<TestParams> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(LegacyQuicStreamIdManagerTest, CanOpenNextOutgoingStream) { … }
TEST_P(LegacyQuicStreamIdManagerTest, CanOpenIncomingStream) { … }
TEST_P(LegacyQuicStreamIdManagerTest, AvailableStreams) { … }
TEST_P(LegacyQuicStreamIdManagerTest, MaxAvailableStreams) { … }
TEST_P(LegacyQuicStreamIdManagerTest, MaximumAvailableOpenedStreams) { … }
TEST_P(LegacyQuicStreamIdManagerTest, TooManyAvailableStreams) { … }
TEST_P(LegacyQuicStreamIdManagerTest, ManyAvailableStreams) { … }
TEST_P(LegacyQuicStreamIdManagerTest,
TestMaxIncomingAndOutgoingStreamsAllowed) { … }
}
}
}