Change CryptoServerConfigForTesting to return a unique_ptr
instead of an object because CryptoServerConfigForTesting has
now copy constructor.
gfe-relnote: n/a - Test only
PiperOrigin-RevId: 280245335
Change-Id: Ie66e8c170211f291e1ff146c6b156dfd6b7685e9
diff --git a/quic/quic_transport/quic_transport_client_session_test.cc b/quic/quic_transport/quic_transport_client_session_test.cc
index 91aecdb..53213a4 100644
--- a/quic/quic_transport/quic_transport_client_session_test.cc
+++ b/quic/quic_transport/quic_transport_client_session_test.cc
@@ -76,11 +76,11 @@
void Connect() {
session_->CryptoConnect();
QuicConfig server_config = DefaultQuicConfig();
- QuicCryptoServerConfig crypto_config =
- crypto_test_utils::CryptoServerConfigForTesting();
+ std::unique_ptr<QuicCryptoServerConfig> crypto_config(
+ crypto_test_utils::CryptoServerConfigForTesting());
crypto_test_utils::HandshakeWithFakeServer(
- &server_config, &crypto_config, &helper_, &alarm_factory_, &connection_,
- crypto_stream_, QuicTransportAlpn());
+ &server_config, crypto_config.get(), &helper_, &alarm_factory_,
+ &connection_, crypto_stream_, QuicTransportAlpn());
}
MockAlarmFactory alarm_factory_;