Index: net/quic/quic_connection_test.cc |
diff --git a/net/quic/quic_connection_test.cc b/net/quic/quic_connection_test.cc |
index 1c34eef5302969a89dac87bdc05b3aebcacf7a10..078304b952439e8321104d9dff19d9c5fedf38aa 100644 |
--- a/net/quic/quic_connection_test.cc |
+++ b/net/quic/quic_connection_test.cc |
@@ -465,9 +465,8 @@ class TestConnection : public QuicConnection { |
kMaxPacketSize); |
delete packet; |
SerializedPacket serialized_packet( |
- kDefaultPathId, packet_number, PACKET_6BYTE_PACKET_NUMBER, |
- new QuicEncryptedPacket(buffer, encrypted_length, false), entropy_hash, |
- has_ack, has_pending_frames); |
+ kDefaultPathId, packet_number, PACKET_6BYTE_PACKET_NUMBER, buffer, |
+ encrypted_length, entropy_hash, has_ack, has_pending_frames); |
if (retransmittable == HAS_RETRANSMITTABLE_DATA) { |
serialized_packet.retransmittable_frames.push_back( |
QuicFrame(new QuicStreamFrame())); |
@@ -773,8 +772,10 @@ class QuicConnectionTest : public ::testing::TestWithParam<TestParams> { |
SerializedPacket serialized_packet = |
QuicPacketCreatorPeer::SerializeAllFrames(&peer_creator_, frames, |
buffer, kMaxPacketSize); |
- scoped_ptr<QuicEncryptedPacket> encrypted(serialized_packet.packet); |
- connection_.ProcessUdpPacket(kSelfAddress, kPeerAddress, *encrypted); |
+ connection_.ProcessUdpPacket( |
+ kSelfAddress, kPeerAddress, |
+ QuicEncryptedPacket(serialized_packet.encrypted_buffer, |
+ serialized_packet.encrypted_length)); |
return serialized_packet.entropy_hash; |
} |