Index: net/quic/quic_connection_test.cc |
diff --git a/net/quic/quic_connection_test.cc b/net/quic/quic_connection_test.cc |
index 2b68fb4f78750ccaad5e2d7820449aa1841de189..f06b103d1395f2043bd806199d3fd3f868db1b4d 100644 |
--- a/net/quic/quic_connection_test.cc |
+++ b/net/quic/quic_connection_test.cc |
@@ -458,9 +458,6 @@ class TestConnection : public QuicConnection { |
HasRetransmittableData retransmittable, |
bool has_ack, |
bool has_pending_frames) { |
- QuicFrames* retransmittable_frames = |
- retransmittable == HAS_RETRANSMITTABLE_DATA ? new QuicFrames() |
- : nullptr; |
char buffer[kMaxPacketSize]; |
size_t encrypted_length = |
QuicConnectionPeer::GetFramer(this)->EncryptPayload( |
@@ -470,7 +467,11 @@ class TestConnection : public QuicConnection { |
SerializedPacket serialized_packet( |
kDefaultPathId, packet_number, PACKET_6BYTE_PACKET_NUMBER, |
new QuicEncryptedPacket(buffer, encrypted_length, false), entropy_hash, |
- retransmittable_frames, has_ack, has_pending_frames); |
+ has_ack, has_pending_frames); |
+ if (retransmittable == HAS_RETRANSMITTABLE_DATA) { |
+ serialized_packet.retransmittable_frames.push_back( |
+ QuicFrame(new QuicStreamFrame())); |
+ } |
OnSerializedPacket(&serialized_packet); |
} |