diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-05-12 15:59:20 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-05-25 06:57:22 +0000 |
commit | f7eaed5286974984ba5f9e3189d8f49d03e99f81 (patch) | |
tree | caed19b2af2024f35449fb0b781d0a25e09d4f8f /chromium/net/third_party/quiche/src/quic/core/crypto/transport_parameters_test.cc | |
parent | 9729c4479fe23554eae6e6dd1f30ff488f470c84 (diff) | |
download | qtwebengine-chromium-f7eaed5286974984ba5f9e3189d8f49d03e99f81.tar.gz |
BASELINE: Update Chromium to 100.0.4896.167
Change-Id: I98cbeb5d7543d966ffe04d8cefded0c493a11333
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/net/third_party/quiche/src/quic/core/crypto/transport_parameters_test.cc')
-rw-r--r-- | chromium/net/third_party/quiche/src/quic/core/crypto/transport_parameters_test.cc | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/chromium/net/third_party/quiche/src/quic/core/crypto/transport_parameters_test.cc b/chromium/net/third_party/quiche/src/quic/core/crypto/transport_parameters_test.cc index d9b55730454..c9df18a3d8a 100644 --- a/chromium/net/third_party/quiche/src/quic/core/crypto/transport_parameters_test.cc +++ b/chromium/net/third_party/quiche/src/quic/core/crypto/transport_parameters_test.cc @@ -37,7 +37,6 @@ const uint64_t kFakeInitialRoundTripTime = 53; const uint8_t kFakePreferredStatelessResetTokenData[16] = { 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F}; -const bool kFakeKeyUpdateNotYetSupported = true; const auto kCustomParameter1 = static_cast<TransportParameters::TransportParameterId>(0xffcd); @@ -128,10 +127,6 @@ QuicTagVector CreateFakeGoogleConnectionOptions() { MakeQuicTag('H', 'I', 'J', 0xff)}; } -std::string CreateFakeUserAgentId() { - return "FakeUAID"; -} - void RemoveGreaseParameters(TransportParameters* params) { std::vector<TransportParameters::TransportParameterId> grease_params; for (const auto& kv : params->custom_parameters) { @@ -291,8 +286,6 @@ TEST_P(TransportParametersTest, CopyConstructor) { orig_params.retry_source_connection_id = CreateFakeRetrySourceConnectionId(); orig_params.initial_round_trip_time_us.set_value(kFakeInitialRoundTripTime); orig_params.google_connection_options = CreateFakeGoogleConnectionOptions(); - orig_params.user_agent_id = CreateFakeUserAgentId(); - orig_params.key_update_not_yet_supported = kFakeKeyUpdateNotYetSupported; orig_params.custom_parameters[kCustomParameter1] = kCustomParameter1Value; orig_params.custom_parameters[kCustomParameter2] = kCustomParameter2Value; @@ -329,12 +322,6 @@ TEST_P(TransportParametersTest, RoundTripClient) { CreateFakeInitialSourceConnectionId(); orig_params.initial_round_trip_time_us.set_value(kFakeInitialRoundTripTime); orig_params.google_connection_options = CreateFakeGoogleConnectionOptions(); - if (!GetQuicReloadableFlag(quic_ignore_user_agent_transport_parameter)) { - orig_params.user_agent_id = CreateFakeUserAgentId(); - } - if (!GetQuicReloadableFlag(quic_ignore_key_update_not_yet_supported)) { - orig_params.key_update_not_yet_supported = kFakeKeyUpdateNotYetSupported; - } orig_params.custom_parameters[kCustomParameter1] = kCustomParameter1Value; orig_params.custom_parameters[kCustomParameter2] = kCustomParameter2Value; @@ -578,13 +565,6 @@ TEST_P(TransportParametersTest, ParseClientParams) { 'A', 'L', 'P', 'N', // value 'E', 'F', 'G', 0x00, 'H', 'I', 'J', 0xff, - // user_agent_id - 0x71, 0x29, // parameter id - 0x08, // length - 'F', 'a', 'k', 'e', 'U', 'A', 'I', 'D', // value - // key_update_not_yet_supported - 0x71, 0x2B, // parameter id - 0x00, // length // Google version extension 0x80, 0x00, 0x47, 0x52, // parameter id 0x04, // length @@ -649,15 +629,6 @@ TEST_P(TransportParametersTest, ParseClientParams) { ASSERT_TRUE(new_params.google_connection_options.has_value()); EXPECT_EQ(CreateFakeGoogleConnectionOptions(), new_params.google_connection_options.value()); - if (!GetQuicReloadableFlag(quic_ignore_user_agent_transport_parameter)) { - ASSERT_TRUE(new_params.user_agent_id.has_value()); - EXPECT_EQ(CreateFakeUserAgentId(), new_params.user_agent_id.value()); - } else { - EXPECT_FALSE(new_params.user_agent_id.has_value()); - } - if (!GetQuicReloadableFlag(quic_ignore_key_update_not_yet_supported)) { - EXPECT_TRUE(new_params.key_update_not_yet_supported); - } } TEST_P(TransportParametersTest, @@ -844,9 +815,6 @@ TEST_P(TransportParametersTest, ParseServerParams) { 'A', 'L', 'P', 'N', // value 'E', 'F', 'G', 0x00, 'H', 'I', 'J', 0xff, - // key_update_not_yet_supported - 0x71, 0x2B, // parameter id - 0x00, // length // Google version extension 0x80, 0x00, 0x47, 0x52, // parameter id 0x0d, // length @@ -933,10 +901,6 @@ TEST_P(TransportParametersTest, ParseServerParams) { ASSERT_TRUE(new_params.google_connection_options.has_value()); EXPECT_EQ(CreateFakeGoogleConnectionOptions(), new_params.google_connection_options.value()); - EXPECT_FALSE(new_params.user_agent_id.has_value()); - if (!GetQuicReloadableFlag(quic_ignore_key_update_not_yet_supported)) { - EXPECT_TRUE(new_params.key_update_not_yet_supported); - } } TEST_P(TransportParametersTest, ParseServerParametersRepeated) { @@ -1054,8 +1018,6 @@ TEST_P(TransportParametersTest, SerializationOrderIsRandom) { CreateFakeInitialSourceConnectionId(); orig_params.initial_round_trip_time_us.set_value(kFakeInitialRoundTripTime); orig_params.google_connection_options = CreateFakeGoogleConnectionOptions(); - orig_params.user_agent_id = CreateFakeUserAgentId(); - orig_params.key_update_not_yet_supported = kFakeKeyUpdateNotYetSupported; orig_params.custom_parameters[kCustomParameter1] = kCustomParameter1Value; orig_params.custom_parameters[kCustomParameter2] = kCustomParameter2Value; |