#include "quiche/quic/core/quic_stream_id_manager.h"
#include <cstdint>
#include <string>
#include <utility>
#include <vector>
#include "absl/strings/str_cat.h"
#include "quiche/quic/core/quic_constants.h"
#include "quiche/quic/core/quic_utils.h"
#include "quiche/quic/core/quic_versions.h"
#include "quiche/quic/platform/api/quic_expect_bug.h"
#include "quiche/quic/platform/api/quic_test.h"
#include "quiche/quic/test_tools/quic_stream_id_manager_peer.h"
_;
StrictMock;
namespace quic {
namespace test {
namespace {
class MockDelegate : public QuicStreamIdManager::DelegateInterface { … };
struct TestParams { … };
std::string PrintToString(const TestParams& p) { … }
std::vector<TestParams> GetTestParams() { … }
class QuicStreamIdManagerTest : public QuicTestWithParam<TestParams> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(QuicStreamIdManagerTest, Initialization) { … }
TEST_P(QuicStreamIdManagerTest, CheckMaxStreamsWindowForSingleStream) { … }
TEST_P(QuicStreamIdManagerTest, CheckMaxStreamsBadValuesOverMaxFailsOutgoing) { … }
TEST_P(QuicStreamIdManagerTest, ProcessStreamsBlockedOk) { … }
TEST_P(QuicStreamIdManagerTest, ProcessStreamsBlockedNoOp) { … }
TEST_P(QuicStreamIdManagerTest, ProcessStreamsBlockedTooBig) { … }
TEST_P(QuicStreamIdManagerTest, IsIncomingStreamIdValidBelowLimit) { … }
TEST_P(QuicStreamIdManagerTest, IsIncomingStreamIdValidAtLimit) { … }
TEST_P(QuicStreamIdManagerTest, IsIncomingStreamIdInValidAboveLimit) { … }
TEST_P(QuicStreamIdManagerTest, OnStreamsBlockedFrame) { … }
TEST_P(QuicStreamIdManagerTest, OnStreamsBlockedFrameCantSend) { … }
TEST_P(QuicStreamIdManagerTest, GetNextOutgoingStream) { … }
TEST_P(QuicStreamIdManagerTest, MaybeIncreaseLargestPeerStreamId) { … }
TEST_P(QuicStreamIdManagerTest, MaxStreamsWindow) { … }
TEST_P(QuicStreamIdManagerTest, MaxStreamsWindowCantSend) { … }
TEST_P(QuicStreamIdManagerTest, MaxStreamsWindowStopsIncreasing) { … }
TEST_P(QuicStreamIdManagerTest, StreamsBlockedEdgeConditions) { … }
TEST_P(QuicStreamIdManagerTest, MaxStreamsSlidingWindow) { … }
TEST_P(QuicStreamIdManagerTest, NewStreamDoesNotExceedLimit) { … }
TEST_P(QuicStreamIdManagerTest, AvailableStreams) { … }
TEST_P(QuicStreamIdManagerTest, ExtremeMaybeIncreaseLargestPeerStreamId) { … }
}
}
}