Home
last modified time | relevance | path

Searched refs:GetTimeNow (Results 1 – 6 of 6) sorted by relevance

/external/chromium/net/base/
Dbackoff_entry.cc54 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()
Dbackoff_entry_unittest.cc28 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()
Dbackoff_entry.h74 virtual base::TimeTicks GetTimeNow() const;
/external/chromium/net/url_request/
Durl_request_throttler_entry.cc109 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()
Durl_request_throttler_entry.h110 virtual base::TimeTicks GetTimeNow() const;
Durl_request_throttler_unittest.cc32 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