src/net/third_party/quiche/src/quic/core/quic_stream_id_manager_test.cc
TEST_P(QuicStreamIdManagerTest, ProcessStreamsBlockedOk) {
  QuicStreamCount stream_count =
      stream_id_manager_.incoming_initial_max_open_streams();
  QuicStreamsBlockedFrame frame(0, stream_count - 1, IsUnidirectional());
  // We have notified peer about current max.
  EXPECT_CALL(delegate_, SendMaxStreams(stream_count, IsUnidirectional()))
      .Times(0);
  std::string error_details;
  EXPECT_TRUE(stream_id_manager_.OnStreamsBlockedFrame(frame, &error_details));
}
// Check the case of the stream count in a STREAMS_BLOCKED frame is less than
// the count most recently advertised in a MAX_STREAMS frame.
Check the case of the stream count in a STREAMS_BLOCKED frame is less than
the count most recently advertised in a MAX_STREAMS frame.
Check the case of the stream count in a STREAMS_BLOCKED frame is less than the count most recently advertised in a MAX_STREAMS frame .
TEST_P(QuicStreamIdManagerTest, ProcessStreamsBlockedOk) {
  QuicStreamCount stream_count =
      stream_id_manager_.incoming_initial_max_open_streams();
  QuicStreamsBlockedFrame frame(0, stream_count - 1, IsUnidirectional());
  EXPECT_CALL(delegate_, SendMaxStreams(stream_count, IsUnidirectional()))
      .Times(0);
  std::string error_details;
  EXPECT_TRUE(stream_id_manager_.OnStreamsBlockedFrame(frame, &error_details));
}
TEST_P ( QuicStreamIdManagerTest , ProcessStreamsBlockedOk ) { QuicStreamCount stream_count = stream_id_manager_ . incoming_initial_max_open_streams ( ) ; QuicStreamsBlockedFrame frame ( 0 , stream_count - 1 , IsUnidirectional ( ) ) ; EXPECT_CALL ( delegate_ , SendMaxStreams ( stream_count , IsUnidirectional ( ) ) ) . Times ( 0 ) ; std :: string error_details ; EXPECT_TRUE ( stream_id_manager_ . OnStreamsBlockedFrame ( frame , & error_details ) ) ; }
Check the case of the stream count in a STREAMS_BLOCKED frame is less than
the count most recently advertised in a MAX_STREAMS frame.
Check the case of the stream count in a STREAMS_BLOCKED frame is less than the count most recently advertised in a MAX_STREAMS frame .
// We have notified peer about current max.