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

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

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/tcp_loss_algorithm.cc
diff --git a/net/quic/congestion_control/tcp_loss_algorithm.cc b/net/quic/congestion_control/tcp_loss_algorithm.cc
index 70198d6fe5f1b5a4123b48dd1f140fa395d267a5..f4f4f1a239a1fe370e4f082738ee7938f2fbbfa9 100644
--- a/net/quic/congestion_control/tcp_loss_algorithm.cc
+++ b/net/quic/congestion_control/tcp_loss_algorithm.cc
@@ -17,11 +17,11 @@ static const size_t kNumberOfNacksBeforeRetransmission = 3;
// How many RTTs the algorithm waits before determining a packet is lost due
// to early retransmission.
static const double kEarlyRetransmitLossDelayMultiplier = 1.25;
-
}
TCPLossAlgorithm::TCPLossAlgorithm()
- : loss_detection_timeout_(QuicTime::Zero()) { }
+ : loss_detection_timeout_(QuicTime::Zero()) {
+}
LossDetectionType TCPLossAlgorithm::GetLossDetectionType() const {
return kNack;
@@ -39,7 +39,8 @@ SequenceNumberSet TCPLossAlgorithm::DetectLostPackets(
rtt_stats.SmoothedRtt().Multiply(kEarlyRetransmitLossDelayMultiplier);
for (QuicUnackedPacketMap::const_iterator it = unacked_packets.begin();
- it != unacked_packets.end() && it->first <= largest_observed; ++it) {
+ it != unacked_packets.end() && it->first <= largest_observed;
+ ++it) {
if (!it->second.pending) {
continue;
}

Powered by Google App Engine
This is Rietveld 408576698