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

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

Issue 968233004: Land Recent QUIC Changes until 03/02/2015. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup
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
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 2685d23293320b56ae77e3b23c603349f6bad501..50e78f3543eafee84e25cc7d9cf9cf076a594cfc 100644
--- a/net/quic/congestion_control/send_algorithm_simulator.h
+++ b/net/quic/congestion_control/send_algorithm_simulator.h
@@ -122,6 +122,7 @@ class SendAlgorithmSimulator {
QuicTime::Delta rtt);
~SendAlgorithmSimulator();
+ // For local ad-hoc testing.
void set_bandwidth(QuicBandwidth bandwidth) {
bandwidth_ = bandwidth;
}
@@ -131,11 +132,13 @@ class SendAlgorithmSimulator {
forward_loss_rate_ = loss_rate;
}
+ // For local ad-hoc testing.
void set_reverse_loss_rate(float loss_rate) {
DCHECK_LT(loss_rate, 1.0f);
reverse_loss_rate_ = loss_rate;
}
+ // For local ad-hoc testing.
void set_loss_correlation(float loss_correlation) {
DCHECK_LT(loss_correlation, 1.0f);
loss_correlation_ = loss_correlation;
@@ -150,6 +153,7 @@ class SendAlgorithmSimulator {
}
// Advance the time by |delta| without sending anything.
+ // For local ad-hoc testing.
void AdvanceTime(QuicTime::Delta delta);
// Adds a pending sender. The send will run when TransferBytes is called.
« no previous file with comments | « net/quic/congestion_control/send_algorithm_interface.cc ('k') | net/quic/congestion_control/send_algorithm_simulator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698