//third_party/quic: allow BoringSSL to enable ML-KEM by default. Primarily this needs changing tests to no longer assume a ClientHello fits into a single packet. These are the changes for tls_client_handshaker_test. PiperOrigin-RevId: 935938066
diff --git a/quiche/quic/core/tls_client_handshaker_test.cc b/quiche/quic/core/tls_client_handshaker_test.cc index b0df8eb..f8bb1b2 100644 --- a/quiche/quic/core/tls_client_handshaker_test.cc +++ b/quiche/quic/core/tls_client_handshaker_test.cc
@@ -649,11 +649,12 @@ // parameters from the server. EXPECT_CALL(*session_, OnConfigNegotiated()).Times(2); - // 4 packets will be sent in this connection: initial handshake packet, 0-RTT - // packet containing SETTINGS, handshake packet upon 0-RTT rejection, 0-RTT - // packet retransmission. + // Multiple packets will be sent in this connection: initial handshake + // packets, 0-RTT packet containing SETTINGS, handshake packet upon 0-RTT + // rejection, 0-RTT packet retransmission. EXPECT_CALL(*connection_, - OnPacketSent(ENCRYPTION_INITIAL, NOT_RETRANSMISSION)); + OnPacketSent(ENCRYPTION_INITIAL, NOT_RETRANSMISSION)) + .Times(testing::AtLeast(1)); if (VersionIsIetfQuic(session_->transport_version())) { EXPECT_CALL(*connection_, OnPacketSent(ENCRYPTION_ZERO_RTT, NOT_RETRANSMISSION)); @@ -698,11 +699,12 @@ // parameters from the server. EXPECT_CALL(*session_, OnConfigNegotiated()).Times(2); - // 4 packets will be sent in this connection: initial handshake packet, 0-RTT - // packet containing SETTINGS, handshake packet upon 0-RTT rejection, 0-RTT - // packet retransmission. + // Multiple packets will be sent in this connection: initial handshake + // packets, 0-RTT packet containing SETTINGS, handshake packet upon 0-RTT + // rejection, 0-RTT packet retransmission. EXPECT_CALL(*connection_, - OnPacketSent(ENCRYPTION_INITIAL, NOT_RETRANSMISSION)); + OnPacketSent(ENCRYPTION_INITIAL, NOT_RETRANSMISSION)) + .Times(testing::AtLeast(1)); if (VersionIsIetfQuic(session_->transport_version())) { EXPECT_CALL(*connection_, OnPacketSent(ENCRYPTION_ZERO_RTT, NOT_RETRANSMISSION));