HomeSort by relevance Sort by last modified time
    Searched refs:leaky_bucket_ (Results 1 - 3 of 3) sorted by null

  /external/chromium_org/net/quic/congestion_control/
leaky_bucket_test.cc 17 leaky_bucket_.reset(new LeakyBucket(QuicBandwidth::Zero()));
20 scoped_ptr<LeakyBucket> leaky_bucket_; member in class:net::test::LeakyBucketTest
25 leaky_bucket_->SetDrainingRate(clock_.Now(), draining_rate);
26 leaky_bucket_->Add(clock_.Now(), 2000);
27 EXPECT_EQ(2000u, leaky_bucket_->BytesPending(clock_.Now()));
29 leaky_bucket_->TimeRemaining(clock_.Now()));
31 EXPECT_EQ(1000u, leaky_bucket_->BytesPending(clock_.Now()));
33 leaky_bucket_->TimeRemaining(clock_.Now()));
35 EXPECT_EQ(0u, leaky_bucket_->BytesPending(clock_.Now()));
36 EXPECT_TRUE(leaky_bucket_->TimeRemaining(clock_.Now()).IsZero())
    [all...]
  /external/chromium_org/remoting/test/
fake_socket_factory.cc 186 leaky_bucket_.reset();
188 leaky_bucket_.reset(new LeakyBucket(max_buffer, bandwidth));
274 if (leaky_bucket_) {
275 delay = leaky_bucket_->AddPacket(data_size);
fake_socket_factory.h 106 scoped_ptr<LeakyBucket> leaky_bucket_; member in class:remoting::FakePacketSocketFactory

Completed in 230 milliseconds