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

Unified Diff: webrtc/modules/remote_bitrate_estimator/test/estimators/min_rtt_filter_unittest.cc

Issue 2990163002: Almost full implementation of BBR's core. (Closed)
Patch Set: fixed patch failure 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
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/test/estimators/min_rtt_filter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/remote_bitrate_estimator/test/estimators/min_rtt_filter_unittest.cc
diff --git a/webrtc/modules/remote_bitrate_estimator/test/estimators/min_rtt_filter_unittest.cc b/webrtc/modules/remote_bitrate_estimator/test/estimators/min_rtt_filter_unittest.cc
index 2b7d5b59b89fe8a5b75e75024ae7124e6c07d59d..a8e76e127e31645b24fb10ad699478b937148ee5 100644
--- a/webrtc/modules/remote_bitrate_estimator/test/estimators/min_rtt_filter_unittest.cc
+++ b/webrtc/modules/remote_bitrate_estimator/test/estimators/min_rtt_filter_unittest.cc
@@ -23,20 +23,23 @@ TEST(MinRttFilterTest, InitializationCheck) {
TEST(MinRttFilterTest, AddRttSample) {
MinRttFilter min_rtt_filter;
- min_rtt_filter.add_rtt_sample(120, 5);
+ min_rtt_filter.AddRttSample(120, 5);
EXPECT_EQ(min_rtt_filter.min_rtt_ms(), 120);
EXPECT_EQ(min_rtt_filter.discovery_time(), 5);
- min_rtt_filter.add_rtt_sample(121, 6);
+ min_rtt_filter.AddRttSample(121, 6);
EXPECT_EQ(min_rtt_filter.discovery_time(), 5);
- min_rtt_filter.add_rtt_sample(119, 7);
+ min_rtt_filter.AddRttSample(119, 7);
EXPECT_EQ(min_rtt_filter.discovery_time(), 7);
+ min_rtt_filter.AddRttSample(140, 10007);
+ EXPECT_EQ(min_rtt_filter.discovery_time(), 10007);
+ EXPECT_EQ(min_rtt_filter.min_rtt_ms(), 140);
}
TEST(MinRttFilterTest, MinRttExpired) {
MinRttFilter min_rtt_filter;
- min_rtt_filter.add_rtt_sample(120, 5);
- EXPECT_EQ(min_rtt_filter.min_rtt_expired(10, 5), true);
- EXPECT_EQ(min_rtt_filter.min_rtt_expired(9, 5), false);
+ min_rtt_filter.AddRttSample(120, 5);
+ EXPECT_EQ(min_rtt_filter.MinRttExpired(10006), true);
+ EXPECT_EQ(min_rtt_filter.MinRttExpired(10), false);
}
} // namespace bwe
} // namespace testing
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/test/estimators/min_rtt_filter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698