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

Unified Diff: webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc

Issue 2999073002: Tweaked version of BBR for WebRTC. (Closed)
Patch Set: Updated according to comments. Created 3 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
Index: webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc
diff --git a/webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc b/webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc
index edaeffc5e8aba32e1b75b0d1de8ecfb8f427fdb8..51c1f55afe1e80d5b8cecb516fed145ed511451c 100644
--- a/webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc
+++ b/webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc
@@ -157,7 +157,7 @@ BbrBweFeedback::BbrBweFeedback(
int flow_id,
int64_t send_time_us,
int64_t latest_send_time_ms,
- const std::vector<uint64_t>& packet_feedback_vector)
+ const std::vector<uint16_t>& packet_feedback_vector)
: FeedbackPacket(flow_id, send_time_us, latest_send_time_ms),
packet_feedback_vector_(packet_feedback_vector) {}
@@ -518,12 +518,12 @@ void ChokeFilter::RunFor(int64_t /*time_ms*/, Packets* in_out) {
for (PacketsIt it = in_out->begin(); it != in_out->end(); ) {
int64_t earliest_send_time_us =
std::max(last_send_time_us_, (*it)->send_time_us());
-
int64_t new_send_time_us =
earliest_send_time_us +
((*it)->payload_size() * 8 * 1000 + capacity_kbps_ / 2) /
capacity_kbps_;
-
+ BWE_TEST_LOGGING_PLOT(0, "MaxThroughput_", new_send_time_us / 1000,
+ capacity_kbps_);
if (delay_cap_helper_->ShouldSendPacket(new_send_time_us,
(*it)->send_time_us())) {
(*it)->set_send_time_us(new_send_time_us);
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/test/bwe.cc ('k') | webrtc/modules/remote_bitrate_estimator/test/estimators/bbr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698