src/net/third_party/quiche/src/quic/tools/quic_simple_server_session_test.cc
// Tests that given more than kMaxStreamsForTest resources, all their
// PUSH_PROMISE's will be sent out and only kMaxStreamsForTest streams will be
// opened and send push response.
Tests that given more than kMaxStreamsForTest resources, all their
PUSH_PROMISE's will be sent out and only kMaxStreamsForTest streams will be
opened and send push response.
Tests that given more than kMaxStreamsForTest resources all their PUSH_PROMISE ' s will be sent out and only kMaxStreamsForTest streams will be opened and send push response .
TEST_P(QuicSimpleServerSessionServerPushTest, TestPromisePushResources) {
  MaybeConsumeHeadersStreamData();
  if (VersionUsesHttp3(transport_version())) {
    session_->EnableServerPush();
    session_->OnMaxPushIdFrame(kMaxQuicStreamId);
  }
  size_t num_resources = kMaxStreamsForTest + 5;
  PromisePushResources(num_resources);
  EXPECT_EQ(kMaxStreamsForTest, session_->GetNumOpenOutgoingStreams());
}
TEST_P ( QuicSimpleServerSessionServerPushTest , TestPromisePushResources ) { MaybeConsumeHeadersStreamData ( ) ; if ( VersionUsesHttp3 ( transport_version ( ) ) ) { session_ -> EnableServerPush ( ) ; session_ -> OnMaxPushIdFrame ( kMaxQuicStreamId ) ; } size_t num_resources = kMaxStreamsForTest + 5 ; PromisePushResources ( num_resources ) ; EXPECT_EQ ( kMaxStreamsForTest , session_ -> GetNumOpenOutgoingStreams ( ) ) ; }
Tests that given more than kMaxStreamsForTest resources, all their
PUSH_PROMISE's will be sent out and only kMaxStreamsForTest streams will be
opened and send push response.
Tests that given more than kMaxStreamsForTest resources all their PUSH_PROMISE ' s will be sent out and only kMaxStreamsForTest streams will be opened and send push response .