Home
last modified time | relevance | path

Searched refs:FromMilliseconds (Results 1 – 25 of 60) 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/time/
Dtime_unittest.cc462 t = Time::UnixEpoch() - TimeDelta::FromMilliseconds(1000); in TEST_F()
474 t = Time::UnixEpoch() - TimeDelta::FromMilliseconds(1001); in TEST_F()
523 t = Time::UnixEpoch() + TimeDelta::FromMilliseconds(1000); in TEST_F()
535 t = Time::UnixEpoch() + TimeDelta::FromMilliseconds(1001); in TEST_F()
637 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(10)); in TEST()
717 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(10)); in TEST()
793 static_assert(TimeDelta::FromSeconds(2) == TimeDelta::FromMilliseconds(2000), in TEST()
796 TimeDelta::FromMilliseconds(2) == TimeDelta::FromMicroseconds(2000), ""); in TEST()
798 TimeDelta::FromSecondsD(2.3) == TimeDelta::FromMilliseconds(2300), ""); in TEST()
807 EXPECT_EQ(13, TimeDelta::FromMilliseconds(13).InMilliseconds()); in TEST()
[all …]
/external/libchrome/base/timer/
Dtimer_unittest.cc65 const TimeDelta& delay = TimeDelta::FromMilliseconds(10)) in OneShotTimerTesterBase()
105 const TimeDelta& delay = TimeDelta::FromMilliseconds(10)) in OneShotTimerTester()
299 DelayTimer timer(FROM_HERE, TimeDelta::FromMilliseconds(1), &target, in RunTest_DelayTimer_NoCall()
313 DelayTimer timer(FROM_HERE, TimeDelta::FromMilliseconds(1), &target, in RunTest_DelayTimer_OneCall()
317 OneShotTimerTester tester(nullptr, TimeDelta::FromMilliseconds(100)); in RunTest_DelayTimer_OneCall()
343 DelayTimer timer(FROM_HERE, TimeDelta::FromMilliseconds(50), &target, in RunTest_DelayTimer_Reset()
351 timers[i].Start(FROM_HERE, TimeDelta::FromMilliseconds(i * 10), in RunTest_DelayTimer_Reset()
355 OneShotTimerTester tester(nullptr, TimeDelta::FromMilliseconds(300)); in RunTest_DelayTimer_Reset()
375 DelayTimer timer(FROM_HERE, TimeDelta::FromMilliseconds(50), &target, in RunTest_DelayTimer_Deleted()
382 PlatformThread::Sleep(TimeDelta::FromMilliseconds(100)); in RunTest_DelayTimer_Deleted()
[all …]
/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()
50 EXPECT_FALSE(event.TimedWait(TimeDelta::FromMilliseconds(10))); in TEST()
54 EXPECT_FALSE(event.TimedWait(TimeDelta::FromMilliseconds(10))); in TEST()
57 EXPECT_TRUE(event.TimedWait(TimeDelta::FromMilliseconds(10))); in TEST()
143 WaitableEventSignaler signaler(TimeDelta::FromMilliseconds(10), ev); in TEST()
162 WaitableEventSignaler signaler(TimeDelta::FromMilliseconds(10), ev[2]); in TEST()
182 TimeDelta thread_delay = TimeDelta::FromMilliseconds(10); in TEST()
213 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.cc31 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in ThreadMain()
37 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in ThreadMain()
68 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in TEST()
74 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in TEST()
81 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in TEST()
160 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 10)); in DoStuff()
Datomic_flag_unittest.cc79 PlatformThread::Sleep(TimeDelta::FromMilliseconds(20)); in TEST()
89 PlatformThread::Sleep(TimeDelta::FromMilliseconds(20)); in TEST()
108 PlatformThread::Sleep(TimeDelta::FromMilliseconds(20)); in TEST()
Dspin_wait.h46 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(50)); \
/external/libchrome/base/test/
Dtest_timeouts.h26 return base::TimeDelta::FromMilliseconds(tiny_timeout_ms_); in tiny_timeout()
33 return base::TimeDelta::FromMilliseconds(action_timeout_ms_); in action_timeout()
41 return base::TimeDelta::FromMilliseconds(action_max_timeout_ms_); in action_max_timeout()
48 return base::TimeDelta::FromMilliseconds(test_launcher_timeout_ms_); in test_launcher_timeout()
/external/libchrome/base/profiler/
Dtracked_time_unittest.cc23 Duration::FromMilliseconds(kSomeMilliseconds); in TEST()
29 base::TimeDelta::FromMilliseconds(kReallyBigMilliseconds); in TEST()
41 Duration first = Duration::FromMilliseconds(kFirstMilliseconds); in TEST()
42 Duration second = Duration::FromMilliseconds(kSecondMilliseconds); in TEST()
Dtracked_time.h37 static Duration FromMilliseconds(int ms);
59 static TrackedTime FromMilliseconds(int32_t ms) { return TrackedTime(ms); } in FromMilliseconds() function
/external/libchrome/base/trace_event/
Dtrace_event_synthetic_delay_unittest.cc31 AdvanceTime(base::TimeDelta::FromMilliseconds(kShortDurationMs / 10)); in Now()
39 base::TimeDelta::FromMilliseconds(kTargetDurationMs)); in ConfigureDelay()
82 base::TimeDelta::FromMilliseconds(kTargetDurationMs)); in TEST_F()
104 AdvanceTime(base::TimeDelta::FromMilliseconds(kTargetDurationMs)); in TEST_F()
/external/libchrome/base/metrics/
Dhistogram_macros.h146 name, sample, base::TimeDelta::FromMilliseconds(1), \
152 name, sample, base::TimeDelta::FromMilliseconds(10), \
157 name, sample, base::TimeDelta::FromMilliseconds(1), \
162 name, sample, base::TimeDelta::FromMilliseconds(1), \
/external/libchrome/base/message_loop/
Dmessage_pump_glib_unittest.cc111 Time future = last_time + TimeDelta::FromMilliseconds(delay_ms); in AddEventHelper()
257 TimeDelta::FromMilliseconds(10 * i)); in TEST_F()
266 TimeDelta::FromMilliseconds(150)); in TEST_F()
460 TimeDelta::FromMilliseconds(30)); in TestGLibLoopInternal()
463 TimeDelta::FromMilliseconds(40)); in TestGLibLoopInternal()
493 TimeDelta::FromMilliseconds(30)); in TestGtkLoopInternal()
496 TimeDelta::FromMilliseconds(40)); in TestGtkLoopInternal()
Dmessage_loop_test.cc90 SlowFunc(TimeDelta::FromMilliseconds(10), quit_counter); in RecordRunTimeFunc()
130 const TimeDelta kDelay = TimeDelta::FromMilliseconds(100); in RunTest_PostDelayedTask_Basic()
156 TimeDelta::FromMilliseconds(200)); in RunTest_PostDelayedTask_InDelayOrder()
161 TimeDelta::FromMilliseconds(10)); in RunTest_PostDelayedTask_InDelayOrder()
181 const TimeDelta kDelay = TimeDelta::FromMilliseconds(100); in RunTest_PostDelayedTask_InPostOrder()
204 const TimeDelta kPause = TimeDelta::FromMilliseconds(50); in RunTest_PostDelayedTask_InPostOrder_2()
212 TimeDelta::FromMilliseconds(10)); in RunTest_PostDelayedTask_InPostOrder_2()
243 TimeDelta::FromMilliseconds(1)); in RunTest_PostDelayedTask_InPostOrder_3()
268 TimeDelta::FromMilliseconds(10)); in RunTest_PostDelayedTask_SharedTimer()
282 PlatformThread::Sleep(TimeDelta::FromMilliseconds(100)); in RunTest_PostDelayedTask_SharedTimer()
[all …]
Dmessage_loop_unittest.cc114 FROM_HERE, Bind(&AbortMessagePump), TimeDelta::FromMilliseconds(10)); in RunTest_AbortDontRunMoreTasks()
161 SlowFunc(TimeDelta::FromMilliseconds(10), quit_counter); in RecordRunTimeFunc()
194 FROM_HERE, Bind(&PostQuitMessage, 0), TimeDelta::FromMilliseconds(10)); in RunTest_PostDelayedTask_SharedTimer_SubPump()
208 PlatformThread::Sleep(TimeDelta::FromMilliseconds(100)); in RunTest_PostDelayedTask_SharedTimer_SubPump()
550 PlatformThread::Sleep(TimeDelta::FromMilliseconds(100)); in RunTest_IOHandler()
590 TimeDelta delay = TimeDelta::FromMilliseconds(100); in RunTest_WaitForIO()
706 const TimeDelta kFastTimer = TimeDelta::FromMilliseconds(5); in TEST()
707 const TimeDelta kSlowTimer = TimeDelta::FromMilliseconds(100); in TEST()
854 const TimeDelta kDelay = TimeDelta::FromMilliseconds(100); in TEST()
/external/libchrome/base/files/
Dimportant_file_writer_unittest.cc227 TimeDelta::FromMilliseconds(25)); in TEST_F()
234 TimeDelta::FromMilliseconds(100)); in TEST_F()
250 TimeDelta::FromMilliseconds(100)); in TEST_F()
260 TimeDelta::FromMilliseconds(25)); in TEST_F()
267 TimeDelta::FromMilliseconds(100)); in TEST_F()
/external/libchrome/base/threading/
Dthread_unittest.cc50 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(500)); in Init()
200 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(20)); in TEST_F()
220 base::TimeDelta::FromMilliseconds(20))); in TEST_F()
246 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(20)); in TEST_F()
374 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(20)); in TEST_F()
499 base::TimeDelta::FromMilliseconds(50); in TEST_F()
/external/libchrome/base/task_scheduler/
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/libchrome/base/
Dtracked_objects_unittest.cc212 base::TimeDelta::FromMilliseconds(start_time); in TEST_F()
597 const TrackedTime kTimePosted = TrackedTime::FromMilliseconds(1); in TEST_F()
626 const TrackedTime kTimePosted = TrackedTime::FromMilliseconds(1); in TEST_F()
646 const TrackedTime kTimePosted1 = TrackedTime::FromMilliseconds(9); in TEST_F()
876 const TrackedTime kTimePosted = TrackedTime::FromMilliseconds(1); in TEST_F()
943 const TrackedTime kTimePosted = TrackedTime::FromMilliseconds(1); in TEST_F()
1004 const TrackedTime kTimePosted = TrackedTime::FromMilliseconds(1); in TEST_F()
1039 const TrackedTime kTimePosted = TrackedTime::FromMilliseconds(1); in TEST_F()
1076 const TrackedTime kTimePosted = TrackedTime::FromMilliseconds(1); in TEST_F()
1117 const TrackedTime kTimePosted = TrackedTime::FromMilliseconds(1); in TEST_F()
[all …]
/external/libmojo/base/android/library_loader/
Dlibrary_loader_hooks.cc76 base::TimeDelta::FromMilliseconds(g_renderer_library_load_time_ms)); in RecordChromiumAndroidLinkerRendererHistogram()
133 base::TimeDelta::FromMilliseconds(library_load_time_ms)); in RecordChromiumAndroidLinkerBrowserHistogram()
/external/libchrome/base/process/
Dkill_posix.cc119 PlatformThread::Sleep(TimeDelta::FromMilliseconds(100)); in WaitForProcessesToExit()
185 PlatformThread::Sleep(TimeDelta::FromMilliseconds(500)); in WaitForChildToDie()
/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)

123