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

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

Issue 125403006: Various QUIC cleanups to sync with internal code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comments Created 6 years, 11 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_cubic_sender.cc
diff --git a/net/quic/congestion_control/tcp_cubic_sender.cc b/net/quic/congestion_control/tcp_cubic_sender.cc
index c1828005e583614edd541b1dace98c52898c11e1..18f965549cd9c351c49c34145d1b339d5c6932bf 100644
--- a/net/quic/congestion_control/tcp_cubic_sender.cc
+++ b/net/quic/congestion_control/tcp_cubic_sender.cc
@@ -9,6 +9,7 @@
#include "base/metrics/histogram.h"
using std::max;
+using std::min;
namespace net {
@@ -197,7 +198,7 @@ QuicByteCount TcpCubicSender::AvailableSendWindow() {
QuicByteCount TcpCubicSender::SendWindow() {
// What's the current send window in bytes.
- return std::min(receive_window_, GetCongestionWindow());
+ return min(receive_window_, GetCongestionWindow());
}
QuicBandwidth TcpCubicSender::BandwidthEstimate() const {
@@ -268,7 +269,7 @@ void TcpCubicSender::CongestionAvoidance(QuicPacketSequenceNumber ack) {
}
DVLOG(1) << "Reno; congestion window:" << congestion_window_;
} else {
- congestion_window_ = std::min(
+ congestion_window_ = min(
max_tcp_congestion_window_,
cubic_.CongestionWindowAfterAck(congestion_window_, delay_min_));
DVLOG(1) << "Cubic; congestion window:" << congestion_window_;
« no previous file with comments | « net/quic/congestion_control/send_algorithm_interface.cc ('k') | net/quic/congestion_control/tcp_cubic_sender_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698