Home
last modified time | relevance | path

Searched refs:ComputeRateForInterval (Results 1 – 3 of 3) sorted by relevance

/external/webrtc/webrtc/base/
Dratetracker_unittest.cc36 EXPECT_DOUBLE_EQ(30.0, tracker.ComputeRateForInterval(50000u)); in TEST()
49 EXPECT_DOUBLE_EQ(60.0, tracker.ComputeRateForInterval(1000u)); in TEST()
54 EXPECT_DOUBLE_EQ(0.0, tracker.ComputeRateForInterval(1000u)); in TEST()
60 EXPECT_DOUBLE_EQ(12340.0, tracker.ComputeRateForInterval(1000u)); in TEST()
68 EXPECT_DOUBLE_EQ(12340.0, tracker.ComputeRateForInterval(1000u)); in TEST()
76 EXPECT_DOUBLE_EQ(1234.0 * 2.0, tracker.ComputeRateForInterval(1000u)); in TEST()
82 EXPECT_DOUBLE_EQ(1234.0 * 2.0, tracker.ComputeRateForInterval(1000u)); in TEST()
89 EXPECT_DOUBLE_EQ(0.0, tracker.ComputeRateForInterval(1000u)); in TEST()
100 EXPECT_DOUBLE_EQ(9876.0 * 10.0, tracker.ComputeRateForInterval(1000u)); in TEST()
109 EXPECT_DOUBLE_EQ(9876.0 * 5.0, tracker.ComputeRateForInterval(1000u)); in TEST()
[all …]
Dratetracker.h30 double ComputeRateForInterval(uint32_t interval_milliseconds) const;
35 return ComputeRateForInterval(bucket_milliseconds_ * in ComputeRate()
Dratetracker.cc36 double RateTracker::ComputeRateForInterval( in ComputeRateForInterval() function in rtc::RateTracker