/external/libchrome/base/test/ |
D | test_mock_time_task_runner_unittest.cc | 43 TimeDelta::FromSeconds(3)); in TEST() 47 TimeDelta::FromSeconds(1)); in TEST() 69 mock_time_task_runner->FastForwardBy(TimeDelta::FromSeconds(1)); in TEST() 73 mock_time_task_runner->FastForwardBy(TimeDelta::FromSeconds(5)); in TEST() 106 TimeDelta::FromSeconds(3)); in TEST() 110 TimeDelta::FromSeconds(1)); in TEST() 133 FROM_HERE, run_loop.QuitClosure(), TimeDelta::FromSeconds(1)); in TEST() 138 TimeDelta::FromSeconds(1)); in TEST() 156 FROM_HERE, run_loop.QuitWhenIdleClosure(), TimeDelta::FromSeconds(5)); in TEST() 161 TimeDelta::FromSeconds(5)); in TEST() [all …]
|
/external/libbrillo/brillo/message_loops/ |
D | fake_message_loop_unittest.cc | 53 TimeDelta::FromSeconds(1)); in TEST_F() 55 TimeDelta::FromSeconds(4)); in TEST_F() 57 TimeDelta::FromSeconds(3)); in TEST_F() 59 TimeDelta::FromSeconds(2)); in TEST_F() 69 loop_->PostDelayedTask(base::DoNothing(), TimeDelta::FromSeconds(1)); in TEST_F() 70 loop_->PostDelayedTask(base::DoNothing(), TimeDelta::FromSeconds(2)); in TEST_F() 78 EXPECT_EQ(start + TimeDelta::FromSeconds(1), clock_.Now()); in TEST_F() 82 clock_.SetNow(start + TimeDelta::FromSeconds(3)); in TEST_F() 85 EXPECT_EQ(start + TimeDelta::FromSeconds(3), clock_.Now()); in TEST_F() 102 TimeDelta::FromSeconds(10))); in TEST_F() [all …]
|
/external/libchrome/base/time/ |
D | time_unittest.cc | 283 EXPECT_TRUE((a - b) < TimeDelta::FromSeconds(1)); in TEST_F() 293 EXPECT_TRUE((a - b) < TimeDelta::FromSeconds(1)); in TEST_F() 757 now_time_ += TimeDelta::FromSeconds(1); in Now() 791 EXPECT_EQ(Time::UnixEpoch() + TimeDelta::FromSeconds(1), Time::Now()); in TEST_F() 792 EXPECT_EQ(Time::UnixEpoch() + TimeDelta::FromSeconds(2), Time::Now()); in TEST_F() 793 EXPECT_EQ(Time::UnixEpoch() + TimeDelta::FromSeconds(3), in TEST_F() 795 EXPECT_EQ(Time::UnixEpoch() + TimeDelta::FromSeconds(4), in TEST_F() 805 EXPECT_EQ(Time::UnixEpoch() + TimeDelta::FromSeconds(5), Time::Now()); in TEST_F() 806 EXPECT_EQ(Time::UnixEpoch() + TimeDelta::FromSeconds(6), in TEST_F() 892 now_ticks_ += TimeDelta::FromSeconds(1); in Now() [all …]
|
/external/libchrome/base/timer/ |
D | mock_timer_unittest.cc | 19 base::TimeDelta delay = base::TimeDelta::FromSeconds(2); in TEST() 33 base::TimeDelta delay = base::TimeDelta::FromSeconds(2); in TEST() 48 base::TimeDelta delay = base::TimeDelta::FromSeconds(2); in TEST() 70 base::TimeDelta delay = base::TimeDelta::FromSeconds(2); in TEST()
|
D | timer_unittest.cc | 442 timer.Start(FROM_HERE, TimeDelta::FromSeconds(1), in TEST() 444 task_runner->FastForwardBy(TimeDelta::FromSeconds(1)); in TEST() 484 timer.Start(FROM_HERE, TimeDelta::FromSeconds(1), in TEST() 486 task_runner->FastForwardBy(TimeDelta::FromSeconds(expected_times_called)); in TEST() 522 DelayTimer timer(FROM_HERE, TimeDelta::FromSeconds(1), &receiver, in TEST() 530 task_runner->FastForwardBy(TimeDelta::FromSeconds(1)); in TEST()
|
/external/libbrillo/brillo/streams/ |
D | fake_stream_unittest.cc | 181 stream_->AddReadPacketString(base::TimeDelta::FromSeconds(1), "baz"); in TEST_F() 196 clock_.Advance(base::TimeDelta::FromSeconds(1)); in TEST_F() 206 stream_->QueueReadErrorWithMessage(base::TimeDelta::FromSeconds(1), in TEST_F() 224 clock_.Advance(base::TimeDelta::FromSeconds(1)); in TEST_F() 257 auto one_sec_delay = base::TimeDelta::FromSeconds(1); in TEST_F() 271 auto one_sec_delay = base::TimeDelta::FromSeconds(1); in TEST_F() 416 auto one_sec_delay = base::TimeDelta::FromSeconds(1); in TEST_F() 430 auto one_sec_delay = base::TimeDelta::FromSeconds(1); in TEST_F() 462 auto one_sec_delay = base::TimeDelta::FromSeconds(1); in TEST_F() 463 auto two_sec_delay = base::TimeDelta::FromSeconds(2); in TEST_F()
|
/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/ |
D | DurationTest.cs | 43 Assert.AreEqual(TimeSpan.FromSeconds(1), new Duration { Seconds = 1 }.ToTimeSpan()); in ToTimeSpan() 44 Assert.AreEqual(TimeSpan.FromSeconds(-1), new Duration { Seconds = -1 }.ToTimeSpan()); in ToTimeSpan() 95 … Assert.AreEqual(new Duration { Seconds = 1 }, Duration.FromTimeSpan(TimeSpan.FromSeconds(1))); in FromTimeSpan()
|
/external/libchrome/base/task/sequence_manager/ |
D | sequence_manager_impl_unittest.cc | 234 return TimeTicks() + TimeDelta::FromSeconds(1); in NowTicks() 1839 TimeDelta delay10s(TimeDelta::FromSeconds(10)); in TEST_P() 1840 TimeDelta delay100s(TimeDelta::FromSeconds(100)); in TEST_P() 1841 TimeDelta delay1s(TimeDelta::FromSeconds(1)); in TEST_P() 1888 TimeDelta delay1s(TimeDelta::FromSeconds(1)); in TEST_P() 1889 TimeDelta delay10s(TimeDelta::FromSeconds(10)); in TEST_P() 1944 TimeDelta delay1s(TimeDelta::FromSeconds(1)); in TEST_P() 1945 TimeDelta delay10s(TimeDelta::FromSeconds(10)); in TEST_P() 1990 TimeDelta delay1(TimeDelta::FromSeconds(5)); in TEST_P() 1991 TimeDelta delay2(TimeDelta::FromSeconds(10)); in TEST_P() [all …]
|
D | sequence_manager_perftest.cc | 186 } while (now - start < TimeDelta::FromSeconds(5)); in Benchmark()
|
/external/libchrome/base/threading/ |
D | thread_collision_warner_unittest.cc | 193 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(5)); in TEST() 250 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(2)); in TEST() 319 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(2)); in TEST()
|
D | platform_thread_posix.cc | 184 duration -= TimeDelta::FromSeconds(sleep_time.tv_sec); in Sleep()
|
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/ |
D | TimeoutsTest.cs | 112 ….CreateUnaryCall(new CallOptions(deadline: DateTime.UtcNow.Add(TimeSpan.FromSeconds(5)))), "abc")); in DeadlineExceededStatusOnTimeout() 132 ….CreateUnaryCall(new CallOptions(deadline: DateTime.UtcNow.Add(TimeSpan.FromSeconds(5)))), "abc")); in ServerReceivesCancellationOnTimeout()
|
/external/libchrome/base/synchronization/ |
D | spin_wait.h | 34 SPIN_FOR_TIMEDELTA_OR_UNTIL_TRUE(base::TimeDelta::FromSeconds(1), \
|
D | waitable_event_perftest.cc | 161 TimeTicks end_time = TimeTicks::Now() + TimeDelta::FromSeconds(1); in TEST()
|
/external/libchrome/base/ |
D | lazy_instance_unittest.cc | 45 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(1)); in SlowConstructor() 321 base::TimeDelta::FromSeconds(5)); in TEST()
|
/external/libchrome/base/process/ |
D | kill.cc | 57 TimeDelta::FromSeconds(2)); in EnsureProcessTerminated()
|
D | kill_posix.cc | 167 0, new BackgroundReaper(std::move(process), TimeDelta::FromSeconds(2))); in EnsureProcessTerminated()
|
/external/libchrome/base/metrics/ |
D | histogram_macros_local.h | 65 base::TimeDelta::FromSeconds(10), 50)
|
D | histogram_functions.cc | 79 TimeDelta::FromSeconds(10), 50); in UmaHistogramTimes()
|
D | histogram_macros.h | 208 base::TimeDelta::FromSeconds(10), 50)
|
/external/libchrome/base/task_scheduler/ |
D | service_thread_unittest.cc | 90 constexpr TimeDelta kReasonableTimeout = TimeDelta::FromSeconds(1); in TEST()
|
/external/protobuf/python/google/protobuf/internal/ |
D | well_known_types_test.py | 168 message.FromSeconds(1) 173 message.FromSeconds(-1) 219 message.FromSeconds(1) 223 message.FromSeconds(-1)
|
/external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/ |
D | InterarrivalTimers.cs | 105 … this.lastEventTime = origLastEventTime + TimeSpan.FromSeconds(exponentialDistribution.Next()); in GetNextWaitDuration()
|
/external/libchrome/base/message_loop/ |
D | message_loop_task_runner_perftest.cc | 32 base::TimeDelta::FromSeconds(30);
|
D | message_loop_perftest.cc | 237 RunTest<ContinuouslyPostTasks>(GetParam(), TimeDelta::FromSeconds(3)); in TEST_P()
|