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.cc452 t = Time::UnixEpoch() - TimeDelta::FromMilliseconds(1000); in TEST_F()
464 t = Time::UnixEpoch() - TimeDelta::FromMilliseconds(1001); in TEST_F()
513 t = Time::UnixEpoch() + TimeDelta::FromMilliseconds(1000); in TEST_F()
525 t = Time::UnixEpoch() + TimeDelta::FromMilliseconds(1001); in TEST_F()
627 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(10)); in TEST()
707 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(10)); in TEST()
783 static_assert(TimeDelta::FromSeconds(2) == TimeDelta::FromMilliseconds(2000), in TEST()
786 TimeDelta::FromMilliseconds(2) == TimeDelta::FromMicroseconds(2000), ""); in TEST()
788 TimeDelta::FromSecondsD(2.3) == TimeDelta::FromMilliseconds(2300), ""); in TEST()
797 EXPECT_EQ(13, TimeDelta::FromMilliseconds(13).InMilliseconds()); in TEST()
[all …]
/external/libchrome/base/synchronization/
Dwaitable_event_unittest.cc29 EXPECT_FALSE(event.TimedWait(TimeDelta::FromMilliseconds(10))); in TEST()
33 EXPECT_TRUE(event.TimedWait(TimeDelta::FromMilliseconds(10))); in TEST()
48 EXPECT_FALSE(event.TimedWait(TimeDelta::FromMilliseconds(10))); in TEST()
52 EXPECT_FALSE(event.TimedWait(TimeDelta::FromMilliseconds(10))); in TEST()
55 EXPECT_TRUE(event.TimedWait(TimeDelta::FromMilliseconds(10))); in TEST()
105 WaitableEventSignaler signaler(TimeDelta::FromMilliseconds(10), ev); in TEST()
124 WaitableEventSignaler signaler(TimeDelta::FromMilliseconds(10), ev[2]); in TEST()
150 TimeDelta thread_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()
Dspin_wait.h46 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(50)); \
/external/libchrome/base/timer/
Dtimer_unittest.cc44 timer_.Start(FROM_HERE, TimeDelta::FromMilliseconds(delay_ms_), this, in Start()
73 timer_->Start(FROM_HERE, TimeDelta::FromMilliseconds(10), this, in Start()
214 base::DelayTimer timer(FROM_HERE, TimeDelta::FromMilliseconds(1), &target, in RunTest_DelayTimer_NoCall()
229 base::DelayTimer timer(FROM_HERE, TimeDelta::FromMilliseconds(1), &target, in RunTest_DelayTimer_OneCall()
260 base::DelayTimer timer(FROM_HERE, TimeDelta::FromMilliseconds(50), &target, in RunTest_DelayTimer_Reset()
268 timers[i].Start(FROM_HERE, TimeDelta::FromMilliseconds(i * 10), in RunTest_DelayTimer_Reset()
294 base::DelayTimer timer(FROM_HERE, TimeDelta::FromMilliseconds(50), &target, in RunTest_DelayTimer_Deleted()
301 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(100)); in RunTest_DelayTimer_Deleted()
347 TimeDelta::FromMilliseconds(10)); in TEST()
354 TimeDelta::FromMilliseconds(10)); in TEST()
[all …]
/external/libchrome/base/test/
Dtest_timeouts.h23 return base::TimeDelta::FromMilliseconds(tiny_timeout_ms_); in tiny_timeout()
30 return base::TimeDelta::FromMilliseconds(action_timeout_ms_); in action_timeout()
38 return base::TimeDelta::FromMilliseconds(action_max_timeout_ms_); in action_max_timeout()
45 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/files/
Dimportant_file_writer_unittest.cc152 TimeDelta::FromMilliseconds(25)); in TEST_F()
159 TimeDelta::FromMilliseconds(100)); in TEST_F()
175 TimeDelta::FromMilliseconds(100)); in TEST_F()
185 TimeDelta::FromMilliseconds(25)); in TEST_F()
192 TimeDelta::FromMilliseconds(100)); in TEST_F()
/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.h123 name, sample, base::TimeDelta::FromMilliseconds(1), \
191 name, sample, base::TimeDelta::FromMilliseconds(1), \
195 name, sample, base::TimeDelta::FromMilliseconds(10), \
200 name, sample, base::TimeDelta::FromMilliseconds(1), \
206 name, sample, base::TimeDelta::FromMilliseconds(1), \
/external/libchrome/base/message_loop/
Dmessage_pump_glib_unittest.cc108 Time future = last_time + TimeDelta::FromMilliseconds(delay_ms); in AddEventHelper()
255 TimeDelta::FromMilliseconds(10*i)); in TEST_F()
265 TimeDelta::FromMilliseconds(150)); in TEST_F()
461 TimeDelta::FromMilliseconds(30)); in TestGLibLoopInternal()
465 TimeDelta::FromMilliseconds(40)); in TestGLibLoopInternal()
496 TimeDelta::FromMilliseconds(30)); in TestGtkLoopInternal()
500 TimeDelta::FromMilliseconds(40)); in TestGtkLoopInternal()
Dmessage_loop_test.cc89 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.cc96 SlowFunc(TimeDelta::FromMilliseconds(10), quit_counter); in RecordRunTimeFunc()
132 TimeDelta::FromMilliseconds(10)); in RunTest_PostDelayedTask_SharedTimer_SubPump()
146 PlatformThread::Sleep(TimeDelta::FromMilliseconds(100)); in RunTest_PostDelayedTask_SharedTimer_SubPump()
501 PlatformThread::Sleep(TimeDelta::FromMilliseconds(100)); in RunTest_IOHandler()
544 TimeDelta delay = TimeDelta::FromMilliseconds(100); in RunTest_WaitForIO()
663 const TimeDelta kFastTimer = TimeDelta::FromMilliseconds(5); in TEST()
664 const TimeDelta kSlowTimer = TimeDelta::FromMilliseconds(100); in TEST()
811 const TimeDelta kDelay = TimeDelta::FromMilliseconds(100); in TEST()
/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/libmojo/base/android/library_loader/
Dlibrary_loader_hooks.cc75 base::TimeDelta::FromMilliseconds(g_renderer_library_load_time_ms)); in RecordChromiumAndroidLinkerRendererHistogram()
132 base::TimeDelta::FromMilliseconds(library_load_time_ms)); in RecordChromiumAndroidLinkerBrowserHistogram()
/external/libchrome/base/
Dtracked_objects_unittest.cc190 base::TimeDelta::FromMilliseconds(start_time); in TEST_F()
452 const TrackedTime kTimePosted = TrackedTime::FromMilliseconds(1); in TEST_F()
481 const TrackedTime kTimePosted = TrackedTime::FromMilliseconds(1); in TEST_F()
501 const TrackedTime kTimePosted1 = TrackedTime::FromMilliseconds(9); in TEST_F()
721 const TrackedTime kTimePosted = TrackedTime::FromMilliseconds(1); in TEST_F()
786 const TrackedTime kTimePosted = TrackedTime::FromMilliseconds(1); in TEST_F()
845 const TrackedTime kTimePosted = TrackedTime::FromMilliseconds(1); in TEST_F()
880 const TrackedTime kTimePosted = TrackedTime::FromMilliseconds(1); in TEST_F()
917 const TrackedTime kTimePosted = TrackedTime::FromMilliseconds(1); in TEST_F()
958 const TrackedTime kTimePosted = TrackedTime::FromMilliseconds(1); in TEST_F()
[all …]
/external/libchrome/base/threading/
Dthread_unittest.cc37 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(500)); in Init()
162 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(10)); in TEST_F()
180 base::TimeDelta::FromMilliseconds(20))); in TEST_F()
/external/libchrome/base/process/
Dkill_posix.cc117 PlatformThread::Sleep(TimeDelta::FromMilliseconds(100)); in WaitForProcessesToExit()
183 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/libmojo/base/android/
Danimation_frame_time_histogram.cc23 base::TimeDelta::FromMilliseconds(frame_times_ms[i])); in SaveHistogram()
/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