Searched refs:GetTimeNow (Results 1 – 6 of 6) sorted by relevance
/external/chromium/net/base/ |
D | backoff_entry.cc | 54 GetTimeNow(), exponential_backoff_release_time_); in InformOfRequest() 59 return exponential_backoff_release_time_ > GetTimeNow(); in ShouldRejectRequest() 74 base::TimeTicks now = GetTimeNow(); in CanDiscard() 95 base::TimeTicks BackoffEntry::GetTimeNow() const { in GetTimeNow() function in net::BackoffEntry 105 return std::max(GetTimeNow(), exponential_backoff_release_time_); in CalculateReleaseTime() 122 return std::max(GetTimeNow() + base::TimeDelta::FromMilliseconds(delay_int), in CalculateReleaseTime()
|
D | backoff_entry_unittest.cc | 28 virtual TimeTicks GetTimeNow() const { in GetTimeNow() function in __anon524d993a0111::TestBackoffEntry 111 EXPECT_EQ(entry.GetTimeNow(), result); in TEST() 116 EXPECT_EQ(entry.GetTimeNow() + TimeDelta::FromMilliseconds(1000), result); in TEST() 121 EXPECT_EQ(entry.GetTimeNow() + TimeDelta::FromMilliseconds(2000), result); in TEST() 126 EXPECT_EQ(entry.GetTimeNow() + TimeDelta::FromMilliseconds(4000), result); in TEST() 133 EXPECT_EQ(entry.GetTimeNow() + TimeDelta::FromMilliseconds(20000), result); in TEST() 147 EXPECT_LE(entry.GetTimeNow() + TimeDelta::FromMilliseconds(3200), result); in TEST() 148 EXPECT_GE(entry.GetTimeNow() + TimeDelta::FromMilliseconds(4000), result); in TEST()
|
D | backoff_entry.h | 74 virtual base::TimeTicks GetTimeNow() const;
|
/external/chromium/net/url_request/ |
D | url_request_throttler_entry.cc | 109 send_log_.back() + sliding_window_period_ > GetTimeNow()) { in IsEntryOutdated() 133 base::TimeTicks now = GetTimeNow(); in ReserveSendingTimeForNextRequest() 174 return GetTimeNow(); in GetExponentialBackoffReleaseTime() 222 base::TimeTicks URLRequestThrottlerEntry::GetTimeNow() const { in GetTimeNow() function in net::URLRequestThrottlerEntry 245 GetTimeNow() + base::TimeDelta::FromMilliseconds(value_ms)); in HandleCustomRetryAfter()
|
D | url_request_throttler_entry.h | 110 virtual base::TimeTicks GetTimeNow() const;
|
D | url_request_throttler_unittest.cc | 32 TimeTicks GetTimeNow() const { in GetTimeNow() function in net::__anond81d1a9f0111::MockBackoffEntry 95 virtual TimeTicks GetTimeNow() const { return fake_time_now_; } in GetTimeNow() function in net::__anond81d1a9f0111::MockURLRequestThrottlerEntry
|