/external/libbrillo/brillo/ |
D | backoff_entry_unittest.cc | 46 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/ |
D | time_unittest.cc | 462 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/ |
D | timer_unittest.cc | 65 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/ |
D | waitable_event_unittest.cc | 31 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()
|
D | condition_variable_unittest.cc | 46 : 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 …]
|
D | lock_unittest.cc | 31 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()
|
D | atomic_flag_unittest.cc | 79 PlatformThread::Sleep(TimeDelta::FromMilliseconds(20)); in TEST() 89 PlatformThread::Sleep(TimeDelta::FromMilliseconds(20)); in TEST() 108 PlatformThread::Sleep(TimeDelta::FromMilliseconds(20)); in TEST()
|
D | spin_wait.h | 46 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(50)); \
|
/external/libchrome/base/test/ |
D | test_timeouts.h | 26 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/ |
D | tracked_time_unittest.cc | 23 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()
|
D | tracked_time.h | 37 static Duration FromMilliseconds(int ms); 59 static TrackedTime FromMilliseconds(int32_t ms) { return TrackedTime(ms); } in FromMilliseconds() function
|
/external/libchrome/base/trace_event/ |
D | trace_event_synthetic_delay_unittest.cc | 31 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/ |
D | histogram_macros.h | 146 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/ |
D | message_pump_glib_unittest.cc | 111 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()
|
D | message_loop_test.cc | 90 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 …]
|
D | message_loop_unittest.cc | 114 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/ |
D | important_file_writer_unittest.cc | 227 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/ |
D | thread_unittest.cc | 50 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/ |
D | scheduler_lock_unittest.cc | 43 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/ |
D | tracked_objects_unittest.cc | 212 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/ |
D | library_loader_hooks.cc | 76 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/ |
D | kill_posix.cc | 119 PlatformThread::Sleep(TimeDelta::FromMilliseconds(100)); in WaitForProcessesToExit() 185 PlatformThread::Sleep(TimeDelta::FromMilliseconds(500)); in WaitForChildToDie()
|
/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/ |
D | DurationTest.cs | 45 … 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/ |
D | debugger.cc | 28 PlatformThread::Sleep(TimeDelta::FromMilliseconds(100)); in WaitForDebugger()
|
/external/protobuf/python/google/protobuf/internal/ |
D | well_known_types_test.py | 158 message.FromMilliseconds(1) 163 message.FromMilliseconds(-1) 209 message.FromMilliseconds(1) 214 message.FromMilliseconds(-1) 242 message.FromMilliseconds(1999)
|