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

Unified Diff: net/quic/congestion_control/general_loss_algorithm_test.cc

Issue 1667583004: Landing Recent QUIC changes until 01/31/2016 05:22 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0203
Patch Set: Rebase Created 4 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 | « components/domain_reliability/util.cc ('k') | net/quic/quic_chromium_client_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/congestion_control/general_loss_algorithm_test.cc
diff --git a/net/quic/congestion_control/general_loss_algorithm_test.cc b/net/quic/congestion_control/general_loss_algorithm_test.cc
index 12bf9eb67d5d4d77d07b280af89f95a43d7c7c2d..162224a81b4566499eecaa89556360567af1a41c 100644
--- a/net/quic/congestion_control/general_loss_algorithm_test.cc
+++ b/net/quic/congestion_control/general_loss_algorithm_test.cc
@@ -29,15 +29,14 @@ class GeneralLossAlgorithmTest : public ::testing::Test {
QuicTime::Delta::Zero(), clock_.Now());
}
- ~GeneralLossAlgorithmTest() override { STLDeleteElements(&packets_); }
+ ~GeneralLossAlgorithmTest() override {}
void SendDataPacket(QuicPacketNumber packet_number) {
- packets_.push_back(new QuicEncryptedPacket(nullptr, kDefaultLength));
QuicStreamFrame* frame = new QuicStreamFrame();
frame->stream_id = kHeadersStreamId;
SerializedPacket packet(kDefaultPathId, packet_number,
- PACKET_1BYTE_PACKET_NUMBER, packets_.back(), 0,
- false, false);
+ PACKET_1BYTE_PACKET_NUMBER, nullptr, kDefaultLength,
+ 0, false, false);
packet.retransmittable_frames.push_back(QuicFrame(frame));
unacked_packets_.AddSentPacket(&packet, 0, NOT_RETRANSMISSION, clock_.Now(),
1000, true);
@@ -55,7 +54,6 @@ class GeneralLossAlgorithmTest : public ::testing::Test {
}
}
- vector<QuicEncryptedPacket*> packets_;
QuicUnackedPacketMap unacked_packets_;
GeneralLossAlgorithm loss_algorithm_;
RttStats rtt_stats_;
« no previous file with comments | « components/domain_reliability/util.cc ('k') | net/quic/quic_chromium_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698