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

Unified Diff: net/quic/congestion_control/tcp_loss_algorithm_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/congestion_control/tcp_cubic_sender_test.cc ('k') | net/quic/congestion_control/tcp_receiver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/congestion_control/tcp_loss_algorithm_test.cc
diff --git a/net/quic/congestion_control/tcp_loss_algorithm_test.cc b/net/quic/congestion_control/tcp_loss_algorithm_test.cc
index bb56d88234f9fcfb90c3950269f5a046dccb7106..a1296cddc7c9315fa5bc1496a89c3e819e21ee06 100644
--- a/net/quic/congestion_control/tcp_loss_algorithm_test.cc
+++ b/net/quic/congestion_control/tcp_loss_algorithm_test.cc
@@ -35,9 +35,7 @@ class TcpLossAlgorithmTest : public ::testing::Test {
}
void SendDataPacket(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));
SerializedPacket packet(sequence_number, PACKET_1BYTE_SEQUENCE_NUMBER,
packets_.back(), 0, new RetransmittableFrames());
unacked_packets_.AddSentPacket(packet, 0, NOT_RETRANSMISSION, clock_.Now(),
@@ -56,7 +54,7 @@ class TcpLossAlgorithmTest : public ::testing::Test {
}
}
- vector<QuicPacket*> packets_;
+ vector<QuicEncryptedPacket*> packets_;
QuicUnackedPacketMap unacked_packets_;
TCPLossAlgorithm loss_algorithm_;
RttStats rtt_stats_;
@@ -80,7 +78,7 @@ TEST_F(TcpLossAlgorithmTest, NackRetransmit1Packet) {
// Loss on three acks.
unacked_packets_.RemoveFromInFlight(4);
unacked_packets_.NackPacket(1, 3);
- QuicPacketSequenceNumber lost[] = { 1 };
+ QuicPacketSequenceNumber lost[] = {1};
VerifyLosses(4, lost, arraysize(lost));
EXPECT_EQ(QuicTime::Zero(), loss_algorithm_.GetLossTimeout());
}
« no previous file with comments | « net/quic/congestion_control/tcp_cubic_sender_test.cc ('k') | net/quic/congestion_control/tcp_receiver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698