OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
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
...]
paced_sender.cc
20
:
leaky_bucket_
(estimate),
31
leaky_bucket_
.SetDrainingRate(now, estimate);
36
leaky_bucket_
.Add(now, bytes);
50
if (pacing_window >
leaky_bucket_
.BytesPending(now)) {
54
return
leaky_bucket_
.TimeRemaining(now);
paced_sender.h
35
LeakyBucket
leaky_bucket_
;
member in class:net::PacedSender
Completed in 29 milliseconds