Home
last modified time | relevance | path

Searched refs:FromSeconds (Results 1 – 25 of 97) sorted by relevance

1234

/external/chromium/chrome/browser/extensions/
Dextensions_quota_service_unittest.cc121 EXPECT_TRUE(lim->Apply(b, start_time + TimeDelta::FromSeconds(10 + m))); in DoMoreThan2PerMinuteFor5Minutes()
127 EXPECT_TRUE(lim->Apply(b, start_time + TimeDelta::FromSeconds(15 + m))); in DoMoreThan2PerMinuteFor5Minutes()
131 EXPECT_TRUE(lim->Apply(b, start_time + TimeDelta::FromSeconds(20 + m))); in DoMoreThan2PerMinuteFor5Minutes()
133 EXPECT_TRUE(lim->Apply(b, start_time + TimeDelta::FromSeconds(50 + m))); in DoMoreThan2PerMinuteFor5Minutes()
146 EXPECT_TRUE(lim.Apply(&b, kStartTime + TimeDelta::FromSeconds(30))); in TEST_F()
151 EXPECT_TRUE(lim.Apply(&b, k1MinuteAfterStart - TimeDelta::FromSeconds(1))); in TEST_F()
153 EXPECT_TRUE(lim.Apply(&b, k1MinuteAfterStart + TimeDelta::FromSeconds(1))); in TEST_F()
154 EXPECT_TRUE(lim.Apply(&b, k1MinuteAfterStart + TimeDelta::FromSeconds(2))); in TEST_F()
155 EXPECT_FALSE(lim.Apply(&b, k1MinuteAfterStart + TimeDelta::FromSeconds(3))); in TEST_F()
201 kStartTime + TimeDelta::FromSeconds(10))); in TEST_F()
[all …]
Dextension_updater.cc516 return TimeDelta::FromSeconds(frequency_seconds_); in DetermineFirstCheckDelay()
520 return TimeDelta::FromSeconds(frequency_seconds_); in DetermineFirstCheckDelay()
530 return TimeDelta::FromSeconds(RandInt(kStartupWaitSeconds, in DetermineFirstCheckDelay()
534 return TimeDelta::FromSeconds(RandInt(kStartupWaitSeconds * 2, in DetermineFirstCheckDelay()
538 return TimeDelta::FromSeconds(RandInt(kStartupWaitSeconds * 4, in DetermineFirstCheckDelay()
546 Time earliest = now + TimeDelta::FromSeconds(kStartupWaitSeconds); in DetermineFirstCheckDelay()
550 return TimeDelta::FromSeconds(RandInt(kStartupWaitSeconds, in DetermineFirstCheckDelay()
766 Time::Now() - TimeDelta::FromSeconds(results->daystart_elapsed_seconds); in HandleManifestResults()
872 DCHECK(target_delay >= TimeDelta::FromSeconds(1)); in ScheduleNextCheck()
902 base::TimeDelta::FromSeconds(kStartupWaitSeconds).InMinutes(), in TimerFired()
[all …]
/external/chromium/chrome/browser/net/
Dload_timing_observer_unittest.cc239 current_time += TimeDelta::FromSeconds(1); in TEST_F()
250 current_time += TimeDelta::FromSeconds(1); in TEST_F()
255 current_time += TimeDelta::FromSeconds(2); in TEST_F()
257 current_time += TimeDelta::FromSeconds(3); in TEST_F()
269 current_time += TimeDelta::FromSeconds(1); in TEST_F()
277 current_time += TimeDelta::FromSeconds(2); in TEST_F()
280 current_time += TimeDelta::FromSeconds(3); in TEST_F()
298 current_time += TimeDelta::FromSeconds(1); in TEST_F()
307 current_time += TimeDelta::FromSeconds(2); in TEST_F()
331 current_time += TimeDelta::FromSeconds(2); in TEST_F()
[all …]
/external/chromium/base/
Dtime_unittest.cc85 EXPECT_TRUE((a - b) < TimeDelta::FromSeconds(1)); in TEST()
94 EXPECT_TRUE((a - b) < TimeDelta::FromSeconds(1)); in TEST()
175 EXPECT_TRUE(TimeDelta::FromMinutes(2) == TimeDelta::FromSeconds(120)); in TEST()
176 EXPECT_TRUE(TimeDelta::FromSeconds(2) == TimeDelta::FromMilliseconds(2000)); in TEST()
182 EXPECT_EQ(13, TimeDelta::FromSeconds(13).InSeconds()); in TEST()
183 EXPECT_EQ(13.0, TimeDelta::FromSeconds(13).InSecondsF()); in TEST()
191 struct timespec result = TimeDelta::FromSeconds(0).ToTimeSpec(); in TEST()
195 result = TimeDelta::FromSeconds(1).ToTimeSpec(); in TEST()
Dspin_wait.h35 SPIN_FOR_TIMEDELTA_OR_UNTIL_TRUE(base::TimeDelta::FromSeconds(1), \
/external/chromium/net/base/
Dhost_cache_unittest.cc19 const base::TimeDelta kSuccessEntryTTL = base::TimeDelta::FromSeconds(10);
20 const base::TimeDelta kFailureEntryTTL = base::TimeDelta::FromSeconds(0);
48 now += base::TimeDelta::FromSeconds(5); in TEST()
58 now += base::TimeDelta::FromSeconds(4); in TEST()
65 now += base::TimeDelta::FromSeconds(1); in TEST()
81 now += base::TimeDelta::FromSeconds(10); in TEST()
113 base::TimeDelta::FromSeconds(0), // success entry TTL. in TEST()
114 base::TimeDelta::FromSeconds(10)); // failure entry TTL. in TEST()
132 now += base::TimeDelta::FromSeconds(5); in TEST()
142 now += base::TimeDelta::FromSeconds(4); in TEST()
[all …]
Dtransport_security_state_unittest.cc147 const base::Time expiry = current_time + base::TimeDelta::FromSeconds(1000); in TEST_F()
160 const base::Time expiry = current_time + base::TimeDelta::FromSeconds(1000); in TEST_F()
173 const base::Time expiry = current_time + base::TimeDelta::FromSeconds(1000); in TEST_F()
186 const base::Time expiry = current_time + base::TimeDelta::FromSeconds(1000); in TEST_F()
219 const base::Time expiry = current_time + base::TimeDelta::FromSeconds(1000); in TEST_F()
253 const base::Time expiry = current_time + base::TimeDelta::FromSeconds(1000); in TEST_F()
276 const base::Time expiry = current_time + base::TimeDelta::FromSeconds(1000); in TEST_F()
277 const base::Time older = current_time - base::TimeDelta::FromSeconds(1000); in TEST_F()
296 const base::Time expiry = current_time + base::TimeDelta::FromSeconds(1000); in TEST_F()
551 const base::Time expiry = current_time + base::TimeDelta::FromSeconds(1000); in TEST_F()
/external/chromium/chrome/browser/chromeos/cros/
Dpower_library.cc62 return base::TimeDelta::FromSeconds(status_.battery_time_to_empty); in battery_time_to_empty()
66 return base::TimeDelta::FromSeconds(status_.battery_time_to_full); in battery_time_to_full()
173 return base::TimeDelta::FromSeconds(10 * 60); in battery_time_to_empty()
176 return base::TimeDelta::FromSeconds(0); in battery_time_to_full()
Dcros_library_loader.cc22 static const base::TimeDelta max_time = base::TimeDelta::FromSeconds(1); in addLibcrosTimeHistogram()
/external/chromium/chrome/browser/history/
Dvisit_database_unittest.cc77 visit_info1.visit_time + TimeDelta::FromSeconds(1), 1, in TEST_F()
83 visit_info1.visit_time + TimeDelta::FromSeconds(2), 0, in TEST_F()
171 visit_info1.visit_time + TimeDelta::FromSeconds(1), 1, in TEST_F()
181 visit_info1.visit_time + TimeDelta::FromSeconds(2), 0, in TEST_F()
190 visit_info1.visit_time + TimeDelta::FromSeconds(3), visit_info3.visit_id, in TEST_F()
199 visit_info1.visit_time + TimeDelta::FromSeconds(4), visit_info4.visit_id, in TEST_F()
/external/chromium/base/threading/
Dwatchdog_unittest.cc89 watchdog.ArmSomeTimeDeltaAgo(TimeDelta::FromSeconds(2)); in TEST_F()
108 WatchdogCounter watchdog(TimeDelta::FromSeconds(1), "Enabled3", true); in TEST_F()
132 watchdog.ArmSomeTimeDeltaAgo(TimeDelta::FromSeconds(10)); in TEST_F()
/external/chromium/net/url_request/
Durl_request_http_job.cc70 base::TimeDelta max_age_delta = base::TimeDelta::FromSeconds(max_age_); in ProbeComplete()
515 base::TimeDelta max_age_delta = base::TimeDelta::FromSeconds(max_age); in ProcessStrictTransportSecurityHeader()
539 base::TimeDelta max_age_delta = base::TimeDelta::FromSeconds(max_age); in ProcessStrictTransportSecurityHeader()
1208 base::TimeDelta::FromSeconds(10), 100); in RecordPacketStats()
1212 base::TimeDelta::FromSeconds(10), 100); in RecordPacketStats()
1216 base::TimeDelta::FromSeconds(10), 100); in RecordPacketStats()
1220 base::TimeDelta::FromSeconds(10), 100); in RecordPacketStats()
1244 base::TimeDelta::FromSeconds(10), 100); in RecordPacketStats()
1248 base::TimeDelta::FromSeconds(10), 100); in RecordPacketStats()
1252 base::TimeDelta::FromSeconds(10), 100); in RecordPacketStats()
[all …]
/external/chromium/chrome/browser/metrics/
Dthread_watcher.cc176 base::TimeDelta::FromSeconds(100), 50, in Initialize()
230 base::TimeDelta::FromSeconds(5).InMilliseconds()); in StartWatchingAll()
234 const base::TimeDelta kSleepTime = base::TimeDelta::FromSeconds(5); in StartWatchingAll()
235 const base::TimeDelta kUnresponsiveTime = base::TimeDelta::FromSeconds(10); in StartWatchingAll()
305 if (now - last_wakeup_time_ > base::TimeDelta::FromSeconds(2)) { in Observe()
/external/chromium/net/socket/
Dsocks_client_socket_pool.cc153 ResetTimer(base::TimeDelta::FromSeconds(kSOCKSConnectJobTimeoutInSeconds)); in DoTransportConnectComplete()
216 base::TimeDelta::FromSeconds(kSOCKSConnectJobTimeoutInSeconds); in ConnectionTimeout()
228 base::TimeDelta::FromSeconds( in SOCKSClientSocketPool()
230 base::TimeDelta::FromSeconds(kUsedIdleSocketTimeout), in SOCKSClientSocketPool()
Dtcp_client_socket_pool.cc241 return base::TimeDelta::FromSeconds(kTCPConnectJobTimeoutInSeconds); in ConnectionTimeout()
252 base::TimeDelta::FromSeconds( in TCPClientSocketPool()
254 base::TimeDelta::FromSeconds(kUsedIdleSocketTimeout), in TCPClientSocketPool()
Dssl_client_socket_pool.cc329 ResetTimer(base::TimeDelta::FromSeconds(kSSLHandshakeTimeoutInSeconds)); in DoSSLConnect()
491 base::TimeDelta::FromSeconds(kSSLHandshakeTimeoutInSeconds); in SSLConnectJobFactory()
513 base::TimeDelta::FromSeconds( in SSLClientSocketPool()
515 base::TimeDelta::FromSeconds(kUsedIdleSocketTimeout), in SSLClientSocketPool()
/external/chromium/chrome/browser/sync/engine/
Dsyncer_thread.cc72 TimeDelta::FromSeconds(kDefaultShortPollIntervalSeconds)), in SyncerThread()
74 TimeDelta::FromSeconds(kDefaultLongPollIntervalSeconds)), in SyncerThread()
351 ScheduleSyncSessionJob(TimeDelta::FromSeconds(0), in ScheduleClearUserDataImpl()
377 if (IsBackingOff() && delay > TimeDelta::FromSeconds(1)) { in ScheduleNudgeImpl()
479 ScheduleSyncSessionJob(TimeDelta::FromSeconds(0), in ScheduleConfigImpl()
661 ScheduleNudgeImpl(TimeDelta::FromSeconds(0), in ScheduleNextSync()
700 IsBackingOff() ? wait_interval_->length : TimeDelta::FromSeconds(1)); in HandleConsecutiveContinuationError()
730 return TimeDelta::FromSeconds(kMaxBackoffSeconds); in GetRecommendedDelay()
748 return TimeDelta::FromSeconds(backoff_s); in GetRecommendedDelay()
814 ScheduleSyncSessionJob(TimeDelta::FromSeconds(0), SyncSessionJob::POLL, s, in PollTimerCallback()
Dsyncer_thread2_unittest.cc87 TimeDelta zero() { return TimeDelta::FromSeconds(0); } in zero()
763 const TimeDelta first = TimeDelta::FromSeconds(1); in TEST_F()
826 EXPECT_LE(TimeDelta::FromSeconds(0), in TEST_F()
827 SyncerThread::GetRecommendedDelay(TimeDelta::FromSeconds(0))); in TEST_F()
828 EXPECT_LE(TimeDelta::FromSeconds(1), in TEST_F()
829 SyncerThread::GetRecommendedDelay(TimeDelta::FromSeconds(1))); in TEST_F()
830 EXPECT_LE(TimeDelta::FromSeconds(50), in TEST_F()
831 SyncerThread::GetRecommendedDelay(TimeDelta::FromSeconds(50))); in TEST_F()
832 EXPECT_LE(TimeDelta::FromSeconds(10), in TEST_F()
833 SyncerThread::GetRecommendedDelay(TimeDelta::FromSeconds(10))); in TEST_F()
[all …]
Dsyncer_thread2_whitebox_unittest.cc57 SyncerThread::WaitInterval::THROTTLED, TimeDelta::FromSeconds(1))); in SetWaitIntervalToThrottled()
64 TimeDelta::FromSeconds(1))); in SetWaitIntervalToExponentialBackoff()
/external/chromium/chrome/common/
Dtime_format_unittest.cc54 const TimeDelta one_sec = TimeDelta::FromSeconds(1); in TEST()
55 const TimeDelta five_secs = TimeDelta::FromSeconds(5); in TEST()
/external/chromium/net/http/
Dhttp_proxy_client_socket_pool.cc204 ResetTimer(base::TimeDelta::FromSeconds( in DoTransportConnectComplete()
256 ResetTimer(base::TimeDelta::FromSeconds( in DoSSLConnectComplete()
402 base::TimeDelta::FromSeconds(kHttpProxyConnectJobTimeoutInSeconds); in HttpProxyConnectJobFactory()
432 base::TimeDelta::FromSeconds( in HttpProxyClientSocketPool()
434 base::TimeDelta::FromSeconds(kUsedIdleSocketTimeout), in HttpProxyClientSocketPool()
/external/chromium/chrome/browser/sync/notifier/
Dchrome_system_resources_unittest.cc63 invalidation::TimeDelta::FromSeconds(0), should_not_run); in ScheduleShouldNotRun()
137 invalidation::TimeDelta::FromSeconds(0), mock_closure); in TEST_F()
/external/chromium/chrome/browser/chromeos/login/
Dweb_page_screen.cc39 timeout_timer_.Start(TimeDelta::FromSeconds(kNetworkTimeoutSec), in StartTimeoutTimer()
/external/chromium/chrome/browser/net/websocket_experiment/
Dwebsocket_experiment_task.cc246 base::TimeDelta::FromSeconds(kUrlFetchDeadlineSec), in SaveResult()
254 base::TimeDelta::FromSeconds( in SaveResult()
263 base::TimeDelta::FromSeconds( in SaveResult()
272 base::TimeDelta::FromSeconds( in SaveResult()
281 base::TimeDelta::FromSeconds(kWebSocketTimeSec), in SaveResult()
/external/chromium/chrome/browser/prerender/
Dprerender_manager.cc115 max_prerender_age_(base::TimeDelta::FromSeconds( in PrerenderManager()
394 base::TimeDelta::FromSeconds(60), \
429 base::TimeDelta::FromSeconds(kDefaultMaxPrerenderAgeSeconds), in RecordTimeUntilUsed()
519 return elapsed_time <= base::TimeDelta::FromSeconds(kWindowDurationSeconds); in WithinWindow()

1234