src/net/third_party/quiche/src/quic/core/quic_stream_id_manager_test.cc
TEST_P(QuicStreamIdManagerTest, ProcessStreamsBlockedTooBig) {
  EXPECT_CALL(delegate_, SendMaxStreams(_, _)).Times(0);
  QuicStreamCount stream_count =
      stream_id_manager_.incoming_initial_max_open_streams() + 1;
  QuicStreamsBlockedFrame frame(0, stream_count, IsUnidirectional());
  std::string error_details;
  EXPECT_FALSE(stream_id_manager_.OnStreamsBlockedFrame(frame, &error_details));
  EXPECT_EQ(
      error_details,
      "StreamsBlockedFrame's stream count 101 exceeds incoming max stream 100");
}
// Check the case of the stream count in a STREAMS_BLOCKED frame is greater than
// the count most recently advertised in a MAX_STREAMS frame. Expect a
// connection close with an error.
Check the case of the stream count in a STREAMS_BLOCKED frame is greater than
the count most recently advertised in a MAX_STREAMS frame. Expect a
connection close with an error.
Check the case of the stream count in a STREAMS_BLOCKED frame is greater than the count most recently advertised in a MAX_STREAMS frame . Expect a connection close with an error .
TEST_P(QuicStreamIdManagerTest, ProcessStreamsBlockedTooBig) {
  EXPECT_CALL(delegate_, SendMaxStreams(_, _)).Times(0);
  QuicStreamCount stream_count =
      stream_id_manager_.incoming_initial_max_open_streams() + 1;
  QuicStreamsBlockedFrame frame(0, stream_count, IsUnidirectional());
  std::string error_details;
  EXPECT_FALSE(stream_id_manager_.OnStreamsBlockedFrame(frame, &error_details));
  EXPECT_EQ(
      error_details,
      "StreamsBlockedFrame's stream count 101 exceeds incoming max stream 100");
}
TEST_P ( QuicStreamIdManagerTest , ProcessStreamsBlockedTooBig ) { EXPECT_CALL ( delegate_ , SendMaxStreams ( _ , _ ) ) . Times ( 0 ) ; QuicStreamCount stream_count = stream_id_manager_ . incoming_initial_max_open_streams ( ) + 1 ; QuicStreamsBlockedFrame frame ( 0 , stream_count , IsUnidirectional ( ) ) ; std :: string error_details ; EXPECT_FALSE ( stream_id_manager_ . OnStreamsBlockedFrame ( frame , & error_details ) ) ; EXPECT_EQ ( error_details , " " ) ; }
Check the case of the stream count in a STREAMS_BLOCKED frame is greater than
the count most recently advertised in a MAX_STREAMS frame.
Check the case of the stream count in a STREAMS_BLOCKED frame is greater than the count most recently advertised in a MAX_STREAMS frame .