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

Unified Diff: webrtc/modules/congestion_controller/probing_interval_estimator_unittest.cc

Issue 2518923003: Pass time constant to bwe smoothing filter. (Closed)
Patch Set: Respond to comments. Created 4 years, 1 month 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/congestion_controller/probing_interval_estimator_unittest.cc
diff --git a/webrtc/modules/congestion_controller/probing_interval_estimator_unittest.cc b/webrtc/modules/congestion_controller/probing_interval_estimator_unittest.cc
index 051f3561d31bcc5302d29ef97d9644f00fc5a0d7..017be5e4e55f5c21c2bc38fc43c221adf3dad552 100644
--- a/webrtc/modules/congestion_controller/probing_interval_estimator_unittest.cc
+++ b/webrtc/modules/congestion_controller/probing_interval_estimator_unittest.cc
@@ -49,9 +49,9 @@ TEST(ProbingIntervalEstimatorTest, NoIntervalUntillWeHaveDrop) {
.WillOnce(Return(4000))
.WillOnce(Return(4000));
- EXPECT_EQ(rtc::Optional<int>(),
+ EXPECT_EQ(rtc::Optional<int64_t>(),
states.probing_interval_estimator->GetIntervalMs());
- EXPECT_NE(rtc::Optional<int>(),
+ EXPECT_NE(rtc::Optional<int64_t>(),
states.probing_interval_estimator->GetIntervalMs());
}
@@ -61,7 +61,7 @@ TEST(ProbingIntervalEstimatorTest, CalcInterval) {
.WillOnce(Return(rtc::Optional<int>(20000)));
EXPECT_CALL(*states.aimd_rate_control, GetNearMaxIncreaseRateBps())
.WillOnce(Return(5000));
- EXPECT_EQ(rtc::Optional<int>(4000),
+ EXPECT_EQ(rtc::Optional<int64_t>(4000),
states.probing_interval_estimator->GetIntervalMs());
}
@@ -71,7 +71,7 @@ TEST(ProbingIntervalEstimatorTest, IntervalDoesNotExceedMin) {
.WillOnce(Return(rtc::Optional<int>(1000)));
EXPECT_CALL(*states.aimd_rate_control, GetNearMaxIncreaseRateBps())
.WillOnce(Return(5000));
- EXPECT_EQ(rtc::Optional<int>(kMinIntervalMs),
+ EXPECT_EQ(rtc::Optional<int64_t>(kMinIntervalMs),
states.probing_interval_estimator->GetIntervalMs());
}
@@ -81,7 +81,7 @@ TEST(ProbingIntervalEstimatorTest, IntervalDoesNotExceedMax) {
.WillOnce(Return(rtc::Optional<int>(50000)));
EXPECT_CALL(*states.aimd_rate_control, GetNearMaxIncreaseRateBps())
.WillOnce(Return(100));
- EXPECT_EQ(rtc::Optional<int>(kMaxIntervalMs),
+ EXPECT_EQ(rtc::Optional<int64_t>(kMaxIntervalMs),
states.probing_interval_estimator->GetIntervalMs());
}
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698