/external/chromium/chrome/browser/extensions/ |
D | extensions_quota_service_unittest.cc | 121 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 …]
|
D | extension_updater.cc | 516 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/ |
D | load_timing_observer_unittest.cc | 239 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/ |
D | time_unittest.cc | 85 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()
|
D | spin_wait.h | 35 SPIN_FOR_TIMEDELTA_OR_UNTIL_TRUE(base::TimeDelta::FromSeconds(1), \
|
/external/chromium/net/base/ |
D | host_cache_unittest.cc | 19 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 …]
|
D | transport_security_state_unittest.cc | 147 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/ |
D | power_library.cc | 62 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()
|
D | cros_library_loader.cc | 22 static const base::TimeDelta max_time = base::TimeDelta::FromSeconds(1); in addLibcrosTimeHistogram()
|
/external/chromium/chrome/browser/history/ |
D | visit_database_unittest.cc | 77 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/ |
D | watchdog_unittest.cc | 89 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/ |
D | url_request_http_job.cc | 70 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/ |
D | thread_watcher.cc | 176 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/ |
D | socks_client_socket_pool.cc | 153 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()
|
D | tcp_client_socket_pool.cc | 241 return base::TimeDelta::FromSeconds(kTCPConnectJobTimeoutInSeconds); in ConnectionTimeout() 252 base::TimeDelta::FromSeconds( in TCPClientSocketPool() 254 base::TimeDelta::FromSeconds(kUsedIdleSocketTimeout), in TCPClientSocketPool()
|
D | ssl_client_socket_pool.cc | 329 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/ |
D | syncer_thread.cc | 72 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()
|
D | syncer_thread2_unittest.cc | 87 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 …]
|
D | syncer_thread2_whitebox_unittest.cc | 57 SyncerThread::WaitInterval::THROTTLED, TimeDelta::FromSeconds(1))); in SetWaitIntervalToThrottled() 64 TimeDelta::FromSeconds(1))); in SetWaitIntervalToExponentialBackoff()
|
/external/chromium/chrome/common/ |
D | time_format_unittest.cc | 54 const TimeDelta one_sec = TimeDelta::FromSeconds(1); in TEST() 55 const TimeDelta five_secs = TimeDelta::FromSeconds(5); in TEST()
|
/external/chromium/net/http/ |
D | http_proxy_client_socket_pool.cc | 204 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/ |
D | chrome_system_resources_unittest.cc | 63 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/ |
D | web_page_screen.cc | 39 timeout_timer_.Start(TimeDelta::FromSeconds(kNetworkTimeoutSec), in StartTimeoutTimer()
|
/external/chromium/chrome/browser/net/websocket_experiment/ |
D | websocket_experiment_task.cc | 246 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/ |
D | prerender_manager.cc | 115 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()
|