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

Unified Diff: webrtc/common_video/bitrate_adjuster_unittest.cc

Issue 2029593002: Update RateStatistics to handle too-little-data case. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Addressed comment Created 4 years, 6 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 | « webrtc/common_video/bitrate_adjuster.cc ('k') | webrtc/common_video/include/bitrate_adjuster.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_video/bitrate_adjuster_unittest.cc
diff --git a/webrtc/common_video/bitrate_adjuster_unittest.cc b/webrtc/common_video/bitrate_adjuster_unittest.cc
index 23b278731ef4665ce793d333d8dd23d434fab558..d0517e4fcb368c487d1c4179d1b2e785c3254c6c 100644
--- a/webrtc/common_video/bitrate_adjuster_unittest.cc
+++ b/webrtc/common_video/bitrate_adjuster_unittest.cc
@@ -48,7 +48,8 @@ class BitrateAdjusterTest : public ::testing::Test {
// target bitrate within clamp.
uint32_t target_bitrate_bps = adjuster_.GetTargetBitrateBps();
uint32_t adjusted_bitrate_bps = adjuster_.GetAdjustedBitrateBps();
- uint32_t estimated_bitrate_bps = adjuster_.GetEstimatedBitrateBps();
+ uint32_t estimated_bitrate_bps =
+ adjuster_.GetEstimatedBitrateBps().value_or(target_bitrate_bps);
uint32_t adjusted_lower_bound_bps =
GetTargetBitrateBpsPct(kMinAdjustedBitratePct);
uint32_t adjusted_upper_bound_bps =
« no previous file with comments | « webrtc/common_video/bitrate_adjuster.cc ('k') | webrtc/common_video/include/bitrate_adjuster.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698