Searched refs:TryUseRate (Results 1 – 4 of 4) sorted by relevance
42 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 …]
36 bool TryUseRate(size_t packet_size_bytes);
33 bool RateLimiter::TryUseRate(size_t packet_size_bytes) { in TryUseRate() function in webrtc::RateLimiter
322 !retransmission_rate_limiter_->TryUseRate(packet_size)) { in ReSendPacket()