Home
last modified time | relevance | path

Searched refs:TryUseRate (Results 1 – 4 of 4) sorted by relevance

/external/webrtc/rtc_base/
Drate_limiter_unittest.cc42 EXPECT_TRUE(rate_limiter->TryUseRate(kRateFillingBytes / 2)); in TEST_F()
44 EXPECT_TRUE(rate_limiter->TryUseRate(kRateFillingBytes / 2)); in TEST_F()
47 EXPECT_FALSE(rate_limiter->TryUseRate(1)); in TEST_F()
51 EXPECT_TRUE(rate_limiter->TryUseRate(kRateFillingBytes)); in TEST_F()
54 EXPECT_FALSE(rate_limiter->TryUseRate(1)); in TEST_F()
59 EXPECT_TRUE(rate_limiter->TryUseRate(kRateFillingBytes / 2)); in TEST_F()
61 EXPECT_TRUE(rate_limiter->TryUseRate(kRateFillingBytes / 2)); in TEST_F()
64 EXPECT_FALSE(rate_limiter->TryUseRate(1)); in TEST_F()
71 EXPECT_FALSE(rate_limiter->TryUseRate(1)); in TEST_F()
76 EXPECT_TRUE(rate_limiter->TryUseRate(kRateFillingBytes / 2)); in TEST_F()
[all …]
Drate_limiter.h36 bool TryUseRate(size_t packet_size_bytes);
Drate_limiter.cc33 bool RateLimiter::TryUseRate(size_t packet_size_bytes) { in TryUseRate() function in webrtc::RateLimiter
/external/webrtc/modules/rtp_rtcp/source/
Drtp_sender.cc322 !retransmission_rate_limiter_->TryUseRate(packet_size)) { in ReSendPacket()