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

Unified Diff: net/quic/congestion_control/send_algorithm_simulator.h

Issue 450043002: A fix to QUIC's test only SendAlgorithmSimulator to ensure it treats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Check_return_value_72727018
Patch Set: Created 6 years, 4 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 | « no previous file | net/quic/congestion_control/send_algorithm_simulator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/congestion_control/send_algorithm_simulator.h
diff --git a/net/quic/congestion_control/send_algorithm_simulator.h b/net/quic/congestion_control/send_algorithm_simulator.h
index fb6404926a6c27d278fcd72a33062c2438fbce25..934b27514a62eb67b79ba27fb393233dbc581d70 100644
--- a/net/quic/congestion_control/send_algorithm_simulator.h
+++ b/net/quic/congestion_control/send_algorithm_simulator.h
@@ -89,18 +89,27 @@ class SendAlgorithmSimulator {
};
struct SentPacket {
+ SentPacket()
+ : sequence_number(0),
+ send_time(QuicTime::Zero()),
+ ack_time(QuicTime::Zero()),
+ lost(false),
+ transfer(NULL) {}
SentPacket(QuicPacketSequenceNumber sequence_number,
QuicTime send_time,
QuicTime ack_time,
+ bool lost,
Transfer* transfer)
: sequence_number(sequence_number),
send_time(send_time),
ack_time(ack_time),
+ lost(lost),
transfer(transfer) {}
QuicPacketSequenceNumber sequence_number;
QuicTime send_time;
QuicTime ack_time;
+ bool lost;
Transfer* transfer;
};
« no previous file with comments | « no previous file | net/quic/congestion_control/send_algorithm_simulator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698