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

Unified Diff: net/quic/quic_unacked_packet_map_test.cc

Issue 1542123002: Add path_id to SerializedPacket. No functional change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@110310127
Patch Set: Created 5 years 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_sent_packet_manager_test.cc ('k') | no next file » | 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 adbca84ed44924c5b86c47bab81d91b899b51f48..0c86ef1d3e749b2ae13756d927284be27de89967 100644
--- a/net/quic/quic_unacked_packet_map_test.cc
+++ b/net/quic/quic_unacked_packet_map_test.cc
@@ -33,9 +33,9 @@ class QuicUnackedPacketMapTest : public ::testing::Test {
SerializedPacket CreateRetransmittablePacket(QuicPacketNumber packet_number) {
packets_.push_back(new QuicEncryptedPacket(nullptr, kDefaultLength));
- return SerializedPacket(packet_number, PACKET_1BYTE_PACKET_NUMBER,
- packets_.back(), 0, new RetransmittableFrames(),
- false, false);
+ return SerializedPacket(kDefaultPathId, packet_number,
+ PACKET_1BYTE_PACKET_NUMBER, packets_.back(), 0,
+ new RetransmittableFrames(), false, false);
}
SerializedPacket CreateRetransmittablePacketForStream(
@@ -46,15 +46,17 @@ class QuicUnackedPacketMapTest : public ::testing::Test {
QuicStreamFrame* frame = new QuicStreamFrame();
frame->stream_id = stream_id;
frames->AddFrame(QuicFrame(frame));
- return SerializedPacket(packet_number, PACKET_1BYTE_PACKET_NUMBER,
- packets_.back(), 0, frames, false, false);
+ return SerializedPacket(kDefaultPathId, packet_number,
+ PACKET_1BYTE_PACKET_NUMBER, packets_.back(), 0,
+ frames, false, false);
}
SerializedPacket CreateNonRetransmittablePacket(
QuicPacketNumber packet_number) {
packets_.push_back(new QuicEncryptedPacket(nullptr, kDefaultLength));
- return SerializedPacket(packet_number, PACKET_1BYTE_PACKET_NUMBER,
- packets_.back(), 0, nullptr, false, false);
+ return SerializedPacket(kDefaultPathId, packet_number,
+ PACKET_1BYTE_PACKET_NUMBER, packets_.back(), 0,
+ nullptr, false, false);
}
void VerifyInFlightPackets(QuicPacketNumber* packets, size_t num_packets) {
« no previous file with comments | « net/quic/quic_sent_packet_manager_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698