src/net/third_party/quiche/src/quic/tools/quic_simple_server_session_test.cc
// Tests that calling GetOrCreateStream() on an outgoing stream not promised yet
// should result close connection.
Tests that calling GetOrCreateStream() on an outgoing stream not promised yet
should result close connection.
Tests that calling GetOrCreateStream () on an outgoing stream not promised yet should result close connection .
TEST_P(QuicSimpleServerSessionTest, GetEvenIncomingError) {
  const size_t initial_num_open_stream = session_->GetNumOpenIncomingStreams();
  const QuicErrorCode expected_error = VersionUsesHttp3(transport_version())
                                           ? QUIC_HTTP_STREAM_WRONG_DIRECTION
                                           : QUIC_INVALID_STREAM_ID;
  EXPECT_CALL(*connection_, CloseConnection(expected_error,
                                            "Data for nonexistent stream", _));
  EXPECT_EQ(nullptr,
            QuicSessionPeer::GetOrCreateStream(
                session_.get(), GetNthServerInitiatedUnidirectionalId(3)));
  EXPECT_EQ(initial_num_open_stream, session_->GetNumOpenIncomingStreams());
}
TEST_P ( QuicSimpleServerSessionTest , GetEvenIncomingError ) { const size_t initial_num_open_stream = session_ -> GetNumOpenIncomingStreams ( ) ; const QuicErrorCode expected_error = VersionUsesHttp3 ( transport_version ( ) ) ? QUIC_HTTP_STREAM_WRONG_DIRECTION : QUIC_INVALID_STREAM_ID ; EXPECT_CALL ( * connection_ , CloseConnection ( expected_error , " " , _ ) ) ; EXPECT_EQ ( nullptr , QuicSessionPeer :: GetOrCreateStream ( session_ . get ( ) , GetNthServerInitiatedUnidirectionalId ( 3 ) ) ) ; EXPECT_EQ ( initial_num_open_stream , session_ -> GetNumOpenIncomingStreams ( ) ) ; }
Tests that calling GetOrCreateStream() on an outgoing stream not promised yet
should result close connection.
Tests that calling GetOrCreateStream () on an outgoing stream not promised yet should result close connection .