| 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 b9031a1d3bdb9a7f35cc9aa2a28c46c3ad97e7fd..b2e0647bf00fe18e35f6e857ba95e53e14fa830a 100644
|
| --- a/net/tools/quic/end_to_end_test.cc
|
| +++ b/net/tools/quic/end_to_end_test.cc
|
| @@ -139,23 +139,15 @@ std::vector<TestParams> GetTestParams() {
|
| // to do 0-RTT across incompatible versions. Chromium only supports
|
| // a single version at a time anyway. :)
|
| QuicVersionVector all_supported_versions = AllSupportedVersions();
|
| - QuicVersionVector version_buckets[3];
|
| + // Even though this currently has one element, it may well get another
|
| + // with future versions of QUIC, so don't remove it.
|
| + QuicVersionVector version_buckets[1];
|
|
|
| for (const QuicVersion version : all_supported_versions) {
|
| - if (version <= QUIC_VERSION_32) {
|
| - // Versions: 31-32
|
| - // v31 adds a hash of the CHLO into the proof signature.
|
| - version_buckets[0].push_back(version);
|
| - } else if (version <= QUIC_VERSION_33) {
|
| - // Versions: 33
|
| - // v33 adds a diversification nonce into the hkdf.
|
| - version_buckets[1].push_back(version);
|
| - } else {
|
| - // Versions: 34+
|
| - // QUIC_VERSION_34 deprecates entropy and uses new ack and stop waiting
|
| - // wire formats.
|
| - version_buckets[2].push_back(version);
|
| - }
|
| + // Versions: 34+
|
| + // QUIC_VERSION_34 deprecates entropy and uses new ack and stop waiting
|
| + // wire formats.
|
| + version_buckets[0].push_back(version);
|
| }
|
|
|
| // This must be kept in sync with the number of nested for-loops below as it
|
| @@ -895,14 +887,8 @@ TEST_P(EndToEndTest, LargePostZeroRTTFailure) {
|
| EXPECT_EQ(kFooResponseBody,
|
| client_->SendCustomSynchronousRequest(headers, body));
|
|
|
| - if (negotiated_version_ <= QUIC_VERSION_32) {
|
| - EXPECT_EQ(expected_num_hellos_latest_session,
|
| - client_->client()->session()->GetNumSentClientHellos());
|
| - EXPECT_EQ(2, client_->client()->GetNumSentClientHellos());
|
| - } else {
|
| - EXPECT_EQ(1, client_->client()->session()->GetNumSentClientHellos());
|
| - EXPECT_EQ(1, client_->client()->GetNumSentClientHellos());
|
| - }
|
| + EXPECT_EQ(1, client_->client()->session()->GetNumSentClientHellos());
|
| + EXPECT_EQ(1, client_->client()->GetNumSentClientHellos());
|
|
|
| client_->Disconnect();
|
|
|
| @@ -955,14 +941,8 @@ TEST_P(EndToEndTest, SynchronousRequestZeroRTTFailure) {
|
| ASSERT_TRUE(client_->client()->connected());
|
| EXPECT_EQ(kFooResponseBody, client_->SendSynchronousRequest("/foo"));
|
|
|
| - if (negotiated_version_ <= QUIC_VERSION_32) {
|
| - EXPECT_EQ(expected_num_hellos_latest_session,
|
| - client_->client()->session()->GetNumSentClientHellos());
|
| - EXPECT_EQ(2, client_->client()->GetNumSentClientHellos());
|
| - } else {
|
| - EXPECT_EQ(1, client_->client()->session()->GetNumSentClientHellos());
|
| - EXPECT_EQ(1, client_->client()->GetNumSentClientHellos());
|
| - }
|
| + EXPECT_EQ(1, client_->client()->session()->GetNumSentClientHellos());
|
| + EXPECT_EQ(1, client_->client()->GetNumSentClientHellos());
|
|
|
| client_->Disconnect();
|
|
|
| @@ -1024,14 +1004,8 @@ TEST_P(EndToEndTest, LargePostSynchronousRequest) {
|
| EXPECT_EQ(kFooResponseBody,
|
| client_->SendCustomSynchronousRequest(headers, body));
|
|
|
| - if (negotiated_version_ <= QUIC_VERSION_32) {
|
| - EXPECT_EQ(expected_num_hellos_latest_session,
|
| - client_->client()->session()->GetNumSentClientHellos());
|
| - EXPECT_EQ(2, client_->client()->GetNumSentClientHellos());
|
| - } else {
|
| - EXPECT_EQ(1, client_->client()->session()->GetNumSentClientHellos());
|
| - EXPECT_EQ(1, client_->client()->GetNumSentClientHellos());
|
| - }
|
| + EXPECT_EQ(1, client_->client()->session()->GetNumSentClientHellos());
|
| + EXPECT_EQ(1, client_->client()->GetNumSentClientHellos());
|
|
|
| client_->Disconnect();
|
|
|
| @@ -2961,11 +2935,6 @@ INSTANTIATE_TEST_CASE_P(EndToEndBufferedPacketsTests,
|
|
|
| TEST_P(EndToEndBufferedPacketsTest, Buffer0RttRequest) {
|
| ASSERT_TRUE(Initialize());
|
| - if (negotiated_version_ <= QUIC_VERSION_32) {
|
| - // Since no 0-rtt for v32 and under, and this test relies on 0-rtt, skip
|
| - // this test if QUIC doesn't do 0-rtt.
|
| - return;
|
| - }
|
| // Finish one request to make sure handshake established.
|
| client_->SendSynchronousRequest("/foo");
|
| // Disconnect for next 0-rtt request.
|
|
|