Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(499)

Unified Diff: net/quic/quic_unacked_packet_map_test.cc

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_unacked_packet_map.cc ('k') | net/quic/quic_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_unacked_packet_map_test.cc
diff --git a/net/quic/quic_unacked_packet_map_test.cc b/net/quic/quic_unacked_packet_map_test.cc
index 7840495507402656322730af6c8154568d8a21a6..a93874cc9b4da1da314a8b0dc46e02bfcc7855af 100644
--- a/net/quic/quic_unacked_packet_map_test.cc
+++ b/net/quic/quic_unacked_packet_map_test.cc
@@ -30,18 +30,14 @@ class QuicUnackedPacketMapTest : public ::testing::Test {
SerializedPacket CreateRetransmittablePacket(
QuicPacketSequenceNumber sequence_number) {
- packets_.push_back(QuicPacket::NewDataPacket(
- nullptr, kDefaultLength, false, PACKET_8BYTE_CONNECTION_ID, false,
- PACKET_1BYTE_SEQUENCE_NUMBER));
+ packets_.push_back(new QuicEncryptedPacket(nullptr, kDefaultLength));
return SerializedPacket(sequence_number, PACKET_1BYTE_SEQUENCE_NUMBER,
packets_.back(), 0, new RetransmittableFrames());
}
SerializedPacket CreateNonRetransmittablePacket(
QuicPacketSequenceNumber sequence_number) {
- packets_.push_back(QuicPacket::NewDataPacket(
- nullptr, kDefaultLength, false, PACKET_8BYTE_CONNECTION_ID, false,
- PACKET_1BYTE_SEQUENCE_NUMBER));
+ packets_.push_back(new QuicEncryptedPacket(nullptr, kDefaultLength));
return SerializedPacket(sequence_number, PACKET_1BYTE_SEQUENCE_NUMBER,
packets_.back(), 0, nullptr);
}
@@ -105,7 +101,7 @@ class QuicUnackedPacketMapTest : public ::testing::Test {
<< " packets[" << i << "]:" << packets[i];
}
}
- vector<QuicPacket*> packets_;
+ vector<QuicEncryptedPacket*> packets_;
QuicUnackedPacketMap unacked_packets_;
QuicTime now_;
};
« no previous file with comments | « net/quic/quic_unacked_packet_map.cc ('k') | net/quic/quic_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698