| Index: net/tools/quic/end_to_end_test.cc
|
| diff --git a/net/tools/quic/end_to_end_test.cc b/net/tools/quic/end_to_end_test.cc
|
| index 46e1ee910f9a426114582279f150de05ee4a9eb6..ca66c54988be71e5804798effcdb14069a220a2e 100644
|
| --- a/net/tools/quic/end_to_end_test.cc
|
| +++ b/net/tools/quic/end_to_end_test.cc
|
| @@ -166,7 +166,8 @@ std::vector<TestParams> GetTestParams() {
|
| std::vector<TestParams> params;
|
| for (bool server_uses_stateless_rejects_if_peer_supported : {true, false}) {
|
| for (bool client_supports_stateless_rejects : {true, false}) {
|
| - for (const QuicTag congestion_control_tag : {kRENO, kTBBR, kQBIC}) {
|
| + for (const QuicTag congestion_control_tag :
|
| + {kRENO, kTBBR, kQBIC, kTPCC}) {
|
| for (bool disable_hpack_dynamic_table : {false}) {
|
| for (bool force_hol_blocking : {true, false}) {
|
| for (bool use_cheap_stateless_reject : {true, false}) {
|
| @@ -425,6 +426,10 @@ class EndToEndTest : public QuicTestWithParam<TestParams> {
|
| FLAGS_quic_reloadable_flag_quic_enable_cubic_per_ack_updates) {
|
| copt.push_back(kCPAU);
|
| }
|
| + if (GetParam().congestion_control_tag == kTPCC &&
|
| + FLAGS_quic_reloadable_flag_quic_enable_pcc) {
|
| + copt.push_back(kTPCC);
|
| + }
|
|
|
| if (support_server_push_) {
|
| copt.push_back(kSPSH);
|
| @@ -1348,6 +1353,13 @@ TEST_P(EndToEndTest, SetIndependentMaxIncomingDynamicStreamsLimits) {
|
| TEST_P(EndToEndTest, NegotiateCongestionControl) {
|
| FLAGS_quic_reloadable_flag_quic_allow_new_bbr = true;
|
| ASSERT_TRUE(Initialize());
|
| +
|
| + // For PCC, the underlying implementation may be a stub with a
|
| + // different name-tag. Skip the rest of this test.
|
| + if (GetParam().congestion_control_tag == kTPCC) {
|
| + return;
|
| + }
|
| +
|
| EXPECT_TRUE(client_->client()->WaitForCryptoHandshakeConfirmed());
|
|
|
| CongestionControlType expected_congestion_control_type = kReno;
|
| @@ -2543,49 +2555,6 @@ TEST_P(EndToEndTest, EarlyResponseFinRecording) {
|
| server_thread_->Resume();
|
| }
|
|
|
| -TEST_P(EndToEndTest, LargePostEarlyResponse) {
|
| - const uint32_t kWindowSize = 65536;
|
| - set_client_initial_stream_flow_control_receive_window(kWindowSize);
|
| - set_client_initial_session_flow_control_receive_window(kWindowSize);
|
| - set_server_initial_stream_flow_control_receive_window(kWindowSize);
|
| - set_server_initial_session_flow_control_receive_window(kWindowSize);
|
| -
|
| - ASSERT_TRUE(Initialize());
|
| - if (FLAGS_quic_reloadable_flag_quic_always_enable_bidi_streaming) {
|
| - // This test is testing the same behavior as
|
| - // EarlyResponseWithQuicStreamNoError, except for the additional final check
|
| - // that the stream is reset on early response. Once this flag is deprecated
|
| - // the tests will be the same and this one can be removed.
|
| - return;
|
| - }
|
| -
|
| - EXPECT_TRUE(client_->client()->WaitForCryptoHandshakeConfirmed());
|
| -
|
| - // POST to a URL that gets an early error response, after the headers are
|
| - // received and before the body is received.
|
| - SpdyHeaderBlock headers;
|
| - headers[":method"] = "POST";
|
| - headers[":path"] = "/foo";
|
| - headers[":scheme"] = "https";
|
| - headers[":authority"] = server_hostname_;
|
| - headers["content-length"] = "-1";
|
| -
|
| - // Tell the client to not close the stream if it receives an early response.
|
| - client_->set_allow_bidirectional_data(true);
|
| - // Send the headers.
|
| - client_->SendMessage(headers, "", /*fin=*/false);
|
| -
|
| - // Receive the response and let the server close writing.
|
| - client_->WaitForInitialResponse();
|
| - EXPECT_EQ("500", client_->response_headers()->find(":status")->second);
|
| -
|
| - // Receive the reset stream from server on early response.
|
| - QuicStream* stream = client_->client()->session()->GetOrCreateStream(
|
| - GetNthClientInitiatedId(0));
|
| - // The stream is reset by server's reset stream.
|
| - EXPECT_EQ(stream, nullptr);
|
| -}
|
| -
|
| TEST_P(EndToEndTest, Trailers) {
|
| // Test sending and receiving HTTP/2 Trailers (trailing HEADERS frames).
|
| ASSERT_TRUE(Initialize());
|
|
|