Lines Matching refs:estimator
41 BandwidthEstimator* estimator() { return &estimator_; } in estimator() function in openscreen::cast::__anone6f7ffcb0111::BandwidthEstimatorTest
61 EXPECT_EQ(0, estimator()->ComputeNetworkBandwidth()); in TEST_F()
69 const Clock::time_point end = now + estimator()->history_window(); in TEST_F()
71 estimator()->OnBurstComplete(i, now); in TEST_F()
72 EXPECT_EQ(0, estimator()->ComputeNetworkBandwidth()); in TEST_F()
86 const Clock::time_point end = now + estimator()->history_window(); in TEST_F()
88 estimator()->OnBurstComplete(i, now); in TEST_F()
89 estimator()->OnRtcpReceived(now + kRoundTripTime, kRoundTripTime); in TEST_F()
90 EXPECT_EQ(0, estimator()->ComputeNetworkBandwidth()); in TEST_F()
115 ASSERT_EQ(0, estimator()->ComputeNetworkBandwidth()); in TEST_F()
125 const Clock::time_point end = now + estimator()->history_window(); in TEST_F()
127 estimator()->OnBurstComplete(kMaxPacketsPerTimeslice / divisor, now); in TEST_F()
129 estimator()->OnPayloadReceived(kReceivedBytesPerTimeslice, in TEST_F()
131 estimator()->OnRtcpReceived(rtcp_arrival_time, kRoundTripTime); in TEST_F()
135 const int estimate = estimator()->ComputeNetworkBandwidth(); in TEST_F()
165 const Clock::time_point end = now + estimator()->history_window(); in TEST_F()
167 estimator()->OnBurstComplete(kPacketsPerBurst, now); in TEST_F()
170 estimator()->OnPayloadReceived(kReceivedBytesPerTimeslice, in TEST_F()
172 estimator()->OnRtcpReceived(rtcp_arrival_time, round_trip_time); in TEST_F()
179 EXPECT_NEAR(kExpectedEstimate, estimator()->ComputeNetworkBandwidth(), in TEST_F()
193 int last_estimate = estimator()->ComputeNetworkBandwidth(); in TEST_F()
210 const Clock::time_point end = now + estimator()->history_window() / 4; in TEST_F()
212 estimator()->OnBurstComplete(kPacketsPerBurst, now); in TEST_F()
214 estimator()->OnPayloadReceived(int_bytes, rtcp_arrival_time, in TEST_F()
216 estimator()->OnRtcpReceived(rtcp_arrival_time, kRoundTripTime); in TEST_F()
220 const int estimate = estimator()->ComputeNetworkBandwidth(); in TEST_F()