src/net/third_party/quiche/src/quic/core/quic_stream_id_manager_test.cc
TEST_P(QuicStreamIdManagerTest, IsIncomingStreamIdValidBelowLimit) {
  QuicStreamId stream_id = GetNthIncomingStreamId(
      stream_id_manager_.incoming_actual_max_streams() - 2);
  EXPECT_TRUE(
      stream_id_manager_.MaybeIncreaseLargestPeerStreamId(stream_id, nullptr));
}
// Same basic tests as above, but calls
// QuicStreamIdManager::MaybeIncreaseLargestPeerStreamId directly, avoiding the
// call chain. The intent is that if there is a problem, the following tests
// will point to either the stream ID manager or the call chain. They also
// provide specific, small scale, tests of a public QuicStreamIdManager method.
// First test make sure that streams with ids below the limit are accepted.
Same basic tests as above, but calls
QuicStreamIdManager::MaybeIncreaseLargestPeerStreamId directly, avoiding the
call chain. The intent is that if there is a problem, the following tests
will point to either the stream ID manager or the call chain. They also
provide specific, small scale, tests of a public QuicStreamIdManager method.
First test make sure that streams with ids below the limit are accepted.
Same basic tests as above but calls QuicStreamIdManager :: MaybeIncreaseLargestPeerStreamId directly avoiding the call chain . The intent is that if there is a problem the following tests will point to either the stream ID manager or the call chain . They also provide specific small scale tests of a public QuicStreamIdManager method . First test make sure that streams with ids below the limit are accepted .
TEST_P(QuicStreamIdManagerTest, IsIncomingStreamIdValidBelowLimit) {
  QuicStreamId stream_id = GetNthIncomingStreamId(
      stream_id_manager_.incoming_actual_max_streams() - 2);
  EXPECT_TRUE(
      stream_id_manager_.MaybeIncreaseLargestPeerStreamId(stream_id, nullptr));
}
TEST_P ( QuicStreamIdManagerTest , IsIncomingStreamIdValidBelowLimit ) { QuicStreamId stream_id = GetNthIncomingStreamId ( stream_id_manager_ . incoming_actual_max_streams ( ) - 2 ) ; EXPECT_TRUE ( stream_id_manager_ . MaybeIncreaseLargestPeerStreamId ( stream_id , nullptr ) ) ; }
Same basic tests as above, but calls
QuicStreamIdManager::MaybeIncreaseLargestPeerStreamId directly, avoiding the
call chain.
Same basic tests as above but calls QuicStreamIdManager :: MaybeIncreaseLargestPeerStreamId directly avoiding the call chain .