src/net/third_party/quiche/src/quic/core/quic_stream_id_manager_test.cc
TEST_P(QuicStreamIdManagerTest, ExtremeMaybeIncreaseLargestPeerStreamId) {
  QuicStreamId too_big_stream_id = GetNthIncomingStreamId(
      stream_id_manager_.incoming_actual_max_streams() + 20);

  std::string error_details;
  EXPECT_FALSE(stream_id_manager_.MaybeIncreaseLargestPeerStreamId(
      too_big_stream_id, &error_details));
  EXPECT_EQ(error_details,
            absl::StrCat("Stream id ", too_big_stream_id,
                         " would exceed stream count limit 100"));
}
// Tests that if MaybeIncreaseLargestPeerStreamId is given an extremely
// large stream ID (larger than the limit) it is rejected.
// This is a regression for Chromium bugs 909987 and 910040
Tests that if MaybeIncreaseLargestPeerStreamId is given an extremely
large stream ID (larger than the limit) it is rejected.
This is a regression for Chromium bugs 909987 and 910040
Tests that if MaybeIncreaseLargestPeerStreamId is given an extremely large stream ID ( larger than the limit ) it is rejected . This is a regression for Chromium bugs 909987 and 910040
TEST_P(QuicStreamIdManagerTest, ExtremeMaybeIncreaseLargestPeerStreamId) {
  QuicStreamId too_big_stream_id = GetNthIncomingStreamId(
      stream_id_manager_.incoming_actual_max_streams() + 20);
  std::string error_details;
  EXPECT_FALSE(stream_id_manager_.MaybeIncreaseLargestPeerStreamId(
      too_big_stream_id, &error_details));
  EXPECT_EQ(error_details,
            absl::StrCat("Stream id ", too_big_stream_id,
                         " would exceed stream count limit 100"));
}
TEST_P ( QuicStreamIdManagerTest , ExtremeMaybeIncreaseLargestPeerStreamId ) { QuicStreamId too_big_stream_id = GetNthIncomingStreamId ( stream_id_manager_ . incoming_actual_max_streams ( ) + 20 ) ; std :: string error_details ; EXPECT_FALSE ( stream_id_manager_ . MaybeIncreaseLargestPeerStreamId ( too_big_stream_id , & error_details ) ) ; EXPECT_EQ ( error_details , absl :: StrCat ( " " , too_big_stream_id , " " ) ) ; }
Tests that if MaybeIncreaseLargestPeerStreamId is given an extremely
large stream ID (larger than the limit) it is rejected.
Tests that if MaybeIncreaseLargestPeerStreamId is given an extremely large stream ID ( larger than the limit ) it is rejected .