Home
last modified time | relevance | path

Searched refs:FromMilliseconds (Results 1 – 25 of 64) sorted by relevance

123

/external/libbrillo/brillo/
Dbackoff_entry_unittest.cc46 EXPECT_EQ(TimeDelta::FromMilliseconds(1000), entry.GetTimeUntilRelease()); in TEST()
69 entry.GetReleaseTime() + TimeDelta::FromMilliseconds(1)); in TEST()
71 entry.set_now(entry.GetReleaseTime() + TimeDelta::FromMilliseconds( in TEST()
76 entry.set_now(entry.GetReleaseTime() + TimeDelta::FromMilliseconds( in TEST()
80 entry.set_now(entry.GetReleaseTime() + TimeDelta::FromMilliseconds( in TEST()
93 entry.set_now(entry.GetReleaseTime() + TimeDelta::FromMilliseconds(2000)); in TEST()
101 entry.set_now(entry.GetReleaseTime() + TimeDelta::FromMilliseconds(1000)); in TEST()
138 EXPECT_EQ(entry.ImplGetTimeNow() + TimeDelta::FromMilliseconds(1000), result); in TEST()
139 EXPECT_EQ(TimeDelta::FromMilliseconds(1000), entry.GetTimeUntilRelease()); in TEST()
144 EXPECT_EQ(entry.ImplGetTimeNow() + TimeDelta::FromMilliseconds(2000), result); in TEST()
[all …]
/external/libchrome/base/task/sequence_manager/
Dsequence_manager_impl_unittest.cc98 test_task_runner_->AdvanceMockTickClock(TimeDelta::FromMilliseconds(1)); in SetUp()
169 mock_clock_.Advance(TimeDelta::FromMilliseconds(1)); in SetUpWithMessageLoop()
177 mock_clock_.Advance(TimeDelta::FromMilliseconds(1)); in SetUpWithMessagePump()
439 TimeDelta delay(TimeDelta::FromMilliseconds(10)); in TEST_P()
461 TimeDelta delay(TimeDelta::FromMilliseconds(10)); in TEST_P()
464 EXPECT_EQ(TimeDelta::FromMilliseconds(10), in TEST_P()
470 test_task_runner_->FastForwardBy(TimeDelta::FromMilliseconds(9)); in TEST_P()
474 test_task_runner_->FastForwardBy(TimeDelta::FromMilliseconds(1)); in TEST_P()
483 TimeDelta::FromMilliseconds(10)); in TEST_P()
495 TimeDelta::FromMilliseconds(10)); in TEST_P()
[all …]
Dtime_domain_unittest.cc94 TimeDelta delay = TimeDelta::FromMilliseconds(10); in TEST_F()
112 TimeDelta delay1 = TimeDelta::FromMilliseconds(10); in TEST_F()
113 TimeDelta delay2 = TimeDelta::FromMilliseconds(100); in TEST_F()
152 TimeDelta delay1 = TimeDelta::FromMilliseconds(10); in TEST_F()
153 TimeDelta delay2 = TimeDelta::FromMilliseconds(20); in TEST_F()
154 TimeDelta delay3 = TimeDelta::FromMilliseconds(30); in TEST_F()
155 TimeDelta delay4 = TimeDelta::FromMilliseconds(1); in TEST_F()
195 TimeTicks wake_up1 = now + TimeDelta::FromMilliseconds(10); in TEST_F()
199 TimeTicks wake_up2 = now + TimeDelta::FromMilliseconds(100); in TEST_F()
223 TimeDelta delay = TimeDelta::FromMilliseconds(50); in TEST_F()
[all …]
/external/libchrome/base/time/
Dtime_unittest.cc540 t = Time::UnixEpoch() - TimeDelta::FromMilliseconds(1000); in TEST_F()
552 t = Time::UnixEpoch() - TimeDelta::FromMilliseconds(1001); in TEST_F()
601 t = Time::UnixEpoch() + TimeDelta::FromMilliseconds(1000); in TEST_F()
613 t = Time::UnixEpoch() + TimeDelta::FromMilliseconds(1001); in TEST_F()
824 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(10)); in TEST()
1000 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(10)); in TEST()
1082 TimeTicks::Now() - TimeDelta::FromMilliseconds(1); in TEST()
1098 static_assert(TimeDelta::FromSeconds(2) == TimeDelta::FromMilliseconds(2000), in TEST()
1101 TimeDelta::FromMilliseconds(2) == TimeDelta::FromMicroseconds(2000), ""); in TEST()
1103 TimeDelta::FromSecondsD(2.3) == TimeDelta::FromMilliseconds(2300), ""); in TEST()
[all …]
/external/libchrome/base/timer/
Dtimer_unittest.cc64 const TimeDelta& delay = TimeDelta::FromMilliseconds(10)) in OneShotTimerTesterBase()
104 const TimeDelta& delay = TimeDelta::FromMilliseconds(10)) in OneShotTimerTester()
298 DelayTimer timer(FROM_HERE, TimeDelta::FromMilliseconds(1), &target, in RunTest_DelayTimer_NoCall()
312 DelayTimer timer(FROM_HERE, TimeDelta::FromMilliseconds(1), &target, in RunTest_DelayTimer_OneCall()
316 OneShotTimerTester tester(nullptr, TimeDelta::FromMilliseconds(100)); in RunTest_DelayTimer_OneCall()
342 DelayTimer timer(FROM_HERE, TimeDelta::FromMilliseconds(50), &target, in RunTest_DelayTimer_Reset()
350 timers[i].Start(FROM_HERE, TimeDelta::FromMilliseconds(i * 10), in RunTest_DelayTimer_Reset()
354 OneShotTimerTester tester(nullptr, TimeDelta::FromMilliseconds(300)); in RunTest_DelayTimer_Reset()
374 DelayTimer timer(FROM_HERE, TimeDelta::FromMilliseconds(50), &target, in RunTest_DelayTimer_Deleted()
381 PlatformThread::Sleep(TimeDelta::FromMilliseconds(100)); in RunTest_DelayTimer_Deleted()
[all …]
/external/libchrome/base/test/
Dtest_timeouts.h25 return base::TimeDelta::FromMilliseconds(tiny_timeout_ms_); in tiny_timeout()
32 return base::TimeDelta::FromMilliseconds(action_timeout_ms_); in action_timeout()
40 return base::TimeDelta::FromMilliseconds(action_max_timeout_ms_); in action_max_timeout()
47 return base::TimeDelta::FromMilliseconds(test_launcher_timeout_ms_); in test_launcher_timeout()
/external/libchrome/base/synchronization/
Dwaitable_event_unittest.cc31 EXPECT_FALSE(event.TimedWait(TimeDelta::FromMilliseconds(10))); in TEST()
35 EXPECT_TRUE(event.TimedWait(TimeDelta::FromMilliseconds(10))); in TEST()
69 EXPECT_FALSE(event.TimedWait(TimeDelta::FromMilliseconds(10))); in TEST()
73 EXPECT_FALSE(event.TimedWait(TimeDelta::FromMilliseconds(10))); in TEST()
76 EXPECT_TRUE(event.TimedWait(TimeDelta::FromMilliseconds(10))); in TEST()
175 WaitableEventSignaler signaler(TimeDelta::FromMilliseconds(10), ev); in TEST()
194 WaitableEventSignaler signaler(TimeDelta::FromMilliseconds(10), ev[2]); in TEST()
214 TimeDelta thread_delay = TimeDelta::FromMilliseconds(10); in TEST()
245 TimeDelta delay = TimeDelta::FromMilliseconds(10); in TEST()
Dcondition_variable_unittest.cc46 : kZeroMs(TimeDelta::FromMilliseconds(0)), in ConditionVariableTest()
47 kTenMs(TimeDelta::FromMilliseconds(10)), in ConditionVariableTest()
48 kThirtyMs(TimeDelta::FromMilliseconds(30)), in ConditionVariableTest()
49 kFortyFiveMs(TimeDelta::FromMilliseconds(45)), in ConditionVariableTest()
50 kSixtyMs(TimeDelta::FromMilliseconds(60)), in ConditionVariableTest()
51 kOneHundredMs(TimeDelta::FromMilliseconds(100)) { in ConditionVariableTest()
184 const TimeDelta WAIT_TIME = TimeDelta::FromMilliseconds(300); in TEST_F()
186 const TimeDelta FUDGE_TIME = TimeDelta::FromMilliseconds(50); in TEST_F()
231 const TimeDelta kWaitTime = TimeDelta::FromMilliseconds(300); in TEST_F()
233 const TimeDelta kFudgeTime = TimeDelta::FromMilliseconds(50); in TEST_F()
[all …]
Dlock_unittest.cc32 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in ThreadMain()
38 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in ThreadMain()
69 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in TEST()
75 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in TEST()
82 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in TEST()
202 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 10)); in DoStuff()
Datomic_flag_unittest.cc78 PlatformThread::Sleep(TimeDelta::FromMilliseconds(20)); in TEST()
88 PlatformThread::Sleep(TimeDelta::FromMilliseconds(20)); in TEST()
107 PlatformThread::Sleep(TimeDelta::FromMilliseconds(20)); in TEST()
Dspin_wait.h46 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(50)); \
/external/libchrome/base/metrics/
Dhistogram_macros.h207 name, sample, base::TimeDelta::FromMilliseconds(1), \
213 name, sample, base::TimeDelta::FromMilliseconds(10), \
218 name, sample, base::TimeDelta::FromMilliseconds(1), \
223 name, sample, base::TimeDelta::FromMilliseconds(1), \
Dhistogram_functions.cc78 UmaHistogramCustomTimes(name, sample, TimeDelta::FromMilliseconds(1), in UmaHistogramTimes()
83 UmaHistogramCustomTimes(name, sample, TimeDelta::FromMilliseconds(1), in UmaHistogramMediumTimes()
88 UmaHistogramCustomTimes(name, sample, TimeDelta::FromMilliseconds(1), in UmaHistogramLongTimes()
/external/libchrome/base/message_loop/
Dmessage_pump_glib_unittest.cc111 Time future = last_time + TimeDelta::FromMilliseconds(delay_ms); in AddEventHelper()
263 TimeDelta::FromMilliseconds(10 * i)); in TEST_F()
275 TimeDelta::FromMilliseconds(150)); in TEST_F()
474 TimeDelta::FromMilliseconds(30)); in TestGLibLoopInternal()
477 TimeDelta::FromMilliseconds(40)); in TestGLibLoopInternal()
507 TimeDelta::FromMilliseconds(30)); in TestGtkLoopInternal()
510 TimeDelta::FromMilliseconds(40)); in TestGtkLoopInternal()
Dmessage_loop_unittest.cc118 SlowFunc(TimeDelta::FromMilliseconds(10), quit_counter); in RecordRunTimeFunc()
341 FROM_HERE, std::move(target), TimeDelta::FromMilliseconds(10)); in RunTest_AbortDontRunMoreTasks()
434 TimeDelta::FromMilliseconds(10)); in RunTest_PostDelayedTask_SharedTimer_SubPump()
448 PlatformThread::Sleep(TimeDelta::FromMilliseconds(100)); in RunTest_PostDelayedTask_SharedTimer_SubPump()
692 PlatformThread::Sleep(TimeDelta::FromMilliseconds(100)); in RunTest_IOHandler()
732 TimeDelta delay = TimeDelta::FromMilliseconds(100); in RunTest_WaitForIO()
883 const TimeDelta kDelay = TimeDelta::FromMilliseconds(100); in TEST_P()
907 TimeDelta::FromMilliseconds(200)); in TEST_P()
912 TimeDelta::FromMilliseconds(10)); in TEST_P()
931 const TimeDelta kDelay = TimeDelta::FromMilliseconds(100); in TEST_P()
[all …]
/external/libchrome/mojo/public/cpp/system/tests/
Dwait_unittest.cc131 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(200)); in TEST_F()
151 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(200)); in TEST_F()
169 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(200)); in TEST_F()
239 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(200)); in TEST_F()
257 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(200)); in TEST_F()
284 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(200)); in TEST_F()
/external/libchrome/base/
Dlazy_instance_helpers.cc39 if (elapsed < TimeDelta::FromMilliseconds(1)) in NeedsLazyInstance()
42 PlatformThread::Sleep(TimeDelta::FromMilliseconds(1)); in NeedsLazyInstance()
/external/libchrome/base/threading/
Dthread_unittest.cc52 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(500)); in Init()
203 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(20)); in TEST_F()
223 base::TimeDelta::FromMilliseconds(20))); in TEST_F()
249 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(20)); in TEST_F()
377 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(20)); in TEST_F()
504 base::TimeDelta::FromMilliseconds(50); in TEST_F()
/external/libchrome/base/task_scheduler/
Dservice_thread_unittest.cc67 ServiceThread::SetHeartbeatIntervalForTesting(TimeDelta::FromMilliseconds(1)); in TEST()
91 constexpr TimeDelta kBusyWaitTime = TimeDelta::FromMilliseconds(100); in TEST()
Dscheduler_lock_unittest.cc43 PlatformThread::Sleep(TimeDelta::FromMilliseconds(base::RandInt(0, 19))); in Run()
103 PlatformThread::Sleep(TimeDelta::FromMilliseconds(base::RandInt(0, 19))); in TEST()
109 PlatformThread::Sleep(TimeDelta::FromMilliseconds(base::RandInt(0, 19))); in TEST()
/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/
DDurationTest.cs45 … Assert.AreEqual(TimeSpan.FromMilliseconds(1), new Duration { Nanos = 1000000 }.ToTimeSpan()); in ToTimeSpan()
46 … Assert.AreEqual(TimeSpan.FromMilliseconds(-1), new Duration { Nanos = -1000000 }.ToTimeSpan()); in ToTimeSpan()
/external/libchrome/base/debug/
Ddebugger.cc28 PlatformThread::Sleep(TimeDelta::FromMilliseconds(100)); in WaitForDebugger()
/external/protobuf/python/google/protobuf/internal/
Dwell_known_types_test.py158 message.FromMilliseconds(1)
163 message.FromMilliseconds(-1)
209 message.FromMilliseconds(1)
214 message.FromMilliseconds(-1)
242 message.FromMilliseconds(1999)
/external/perf_data_converter/src/quipper/compat/cros/detail/
Dthread.h39 return event_.TimedWait(base::TimeDelta::FromMilliseconds(timeout_ms)); in WaitWithTimeout()
/external/libchrome/mojo/public/java/system/javatests/
Dmojo_test_rule.cc65 base::TimeDelta::FromMilliseconds(timeout_ms)); in JNI_MojoTestRule_RunLoop()

123