| Index: net/quic/test_tools/crypto_test_utils.cc
|
| diff --git a/net/quic/test_tools/crypto_test_utils.cc b/net/quic/test_tools/crypto_test_utils.cc
|
| index 77426e7c54ec5f8dd40296e39dd304a57926f90e..38d7b2c4d387676bedeed50a9550de9bec0bff8d 100644
|
| --- a/net/quic/test_tools/crypto_test_utils.cc
|
| +++ b/net/quic/test_tools/crypto_test_utils.cc
|
| @@ -130,11 +130,13 @@ CryptoTestUtils::FakeClientOptions::FakeClientOptions()
|
| // static
|
| int CryptoTestUtils::HandshakeWithFakeServer(
|
| MockConnectionHelper* helper,
|
| + MockAlarmFactory* alarm_factory,
|
| PacketSavingConnection* client_conn,
|
| QuicCryptoClientStream* client,
|
| const FakeServerOptions& options) {
|
| - PacketSavingConnection* server_conn = new PacketSavingConnection(
|
| - helper, Perspective::IS_SERVER, client_conn->supported_versions());
|
| + PacketSavingConnection* server_conn =
|
| + new PacketSavingConnection(helper, alarm_factory, Perspective::IS_SERVER,
|
| + client_conn->supported_versions());
|
|
|
| QuicConfig config = DefaultQuicConfig();
|
| QuicCryptoServerConfig crypto_config(QuicCryptoServerConfig::TESTING,
|
| @@ -162,12 +164,13 @@ int CryptoTestUtils::HandshakeWithFakeServer(
|
| // static
|
| int CryptoTestUtils::HandshakeWithFakeClient(
|
| MockConnectionHelper* helper,
|
| + MockAlarmFactory* alarm_factory,
|
| PacketSavingConnection* server_conn,
|
| QuicCryptoServerStream* server,
|
| const QuicServerId& server_id,
|
| const FakeClientOptions& options) {
|
| PacketSavingConnection* client_conn =
|
| - new PacketSavingConnection(helper, Perspective::IS_CLIENT);
|
| + new PacketSavingConnection(helper, alarm_factory, Perspective::IS_CLIENT);
|
| // Advance the time, because timers do not like uninitialized times.
|
| client_conn->AdvanceTime(QuicTime::Delta::FromSeconds(1));
|
|
|
|
|