Index: net/quic/quic_sent_packet_manager_test.cc |
diff --git a/net/quic/quic_sent_packet_manager_test.cc b/net/quic/quic_sent_packet_manager_test.cc |
index 66222aa9ecc99dcfab4ec2c850a3206e0233513c..0fe84fb1fece3412c563f817f2df0a6e087f0a05 100644 |
--- a/net/quic/quic_sent_packet_manager_test.cc |
+++ b/net/quic/quic_sent_packet_manager_test.cc |
@@ -195,22 +195,21 @@ class QuicSentPacketManagerTest : public ::testing::TestWithParam<bool> { |
SerializedPacket CreatePacket(QuicPacketNumber packet_number, |
bool retransmittable) { |
packets_.push_back(new QuicEncryptedPacket(nullptr, kDefaultLength)); |
- QuicFrames* frames = nullptr; |
+ SerializedPacket packet(kDefaultPathId, packet_number, |
+ PACKET_6BYTE_PACKET_NUMBER, packets_.back(), 0u, |
+ false, false); |
if (retransmittable) { |
- frames = new QuicFrames(); |
- frames->push_back( |
+ packet.retransmittable_frames.push_back( |
QuicFrame(new QuicStreamFrame(kStreamId, false, 0, StringPiece()))); |
} |
- return SerializedPacket(kDefaultPathId, packet_number, |
- PACKET_6BYTE_PACKET_NUMBER, packets_.back(), 0u, |
- frames, false, false); |
+ return packet; |
} |
SerializedPacket CreateFecPacket(QuicPacketNumber packet_number) { |
packets_.push_back(new QuicEncryptedPacket(nullptr, kDefaultLength)); |
SerializedPacket serialized(kDefaultPathId, packet_number, |
PACKET_6BYTE_PACKET_NUMBER, packets_.back(), 0u, |
- nullptr, false, false); |
+ false, false); |
serialized.is_fec_packet = true; |
return serialized; |
} |
@@ -232,7 +231,7 @@ class QuicSentPacketManagerTest : public ::testing::TestWithParam<bool> { |
.Times(1) |
.WillOnce(Return(true)); |
SerializedPacket packet(CreateDataPacket(packet_number)); |
- packet.retransmittable_frames->push_back( |
+ packet.retransmittable_frames.push_back( |
QuicFrame(new QuicStreamFrame(1, false, 0, StringPiece()))); |
packet.has_crypto_handshake = IS_HANDSHAKE; |
manager_.OnPacketSent(&packet, 0, clock_.Now(), packet.packet->length(), |