/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 …]
|
D | scoped_mock_time_message_loop_task_runner_unittest.cc | 85 constexpr TimeDelta task_1_delay = TimeDelta::FromSeconds(1); in TEST_F() 86 constexpr TimeDelta task_2_delay = TimeDelta::FromSeconds(2); in TEST_F() 87 constexpr TimeDelta task_10_delay = TimeDelta::FromSeconds(10); in TEST_F() 88 constexpr TimeDelta task_11_delay = TimeDelta::FromSeconds(11); in TEST_F() 90 constexpr TimeDelta step_time_by = TimeDelta::FromSeconds(5); in TEST_F()
|
D | sequenced_task_runner_test_template.h | 140 Bind(&PlatformThread::Sleep, TimeDelta::FromSeconds(1))); in TYPED_TEST_P() 164 Bind(&PlatformThread::Sleep, TimeDelta::FromSeconds(1))); in TYPED_TEST_P()
|
/external/libbrillo/brillo/message_loops/ |
D | fake_message_loop_test.cc | 50 TimeDelta::FromSeconds(1)); in TEST_F() 53 TimeDelta::FromSeconds(4)); in TEST_F() 56 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() 89 loop_->PostDelayedTask(base::DoNothing(), TimeDelta::FromSeconds(1)); in TEST_F()
|
/external/libchrome/base/metrics/ |
D | histogram_functions_unittest.cc | 96 UmaHistogramTimes(histogram, TimeDelta::FromSeconds(1)); in TEST() 97 tester.ExpectTimeBucketCount(histogram, TimeDelta::FromSeconds(1), 1); in TEST() 99 UmaHistogramTimes(histogram, TimeDelta::FromSeconds(9)); in TEST() 100 tester.ExpectTimeBucketCount(histogram, TimeDelta::FromSeconds(9), 1); in TEST() 102 UmaHistogramTimes(histogram, TimeDelta::FromSeconds(10)); // Overflows in TEST() 103 tester.ExpectTimeBucketCount(histogram, TimeDelta::FromSeconds(10), 1); in TEST() 104 UmaHistogramTimes(histogram, TimeDelta::FromSeconds(20)); // Overflows. in TEST() 106 tester.ExpectTimeBucketCount(histogram, TimeDelta::FromSeconds(11), 2); in TEST()
|
D | histogram_macros_local.h | 65 base::TimeDelta::FromSeconds(10), 50)
|
/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/libchrome/base/threading/ |
D | watchdog_unittest.cc | 89 watchdog.ArmSomeTimeDeltaAgo(TimeDelta::FromSeconds(2)); in TEST_F() 108 WatchdogCounter watchdog(TimeDelta::FromSeconds(1), "Enabled3", true); in TEST_F() 128 PlatformThread::Sleep(TimeDelta::FromSeconds(1)); in TEST_F() 133 watchdog.ArmSomeTimeDeltaAgo(TimeDelta::FromSeconds(10)); in TEST_F()
|
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()
|
/external/libchrome/base/task_scheduler/ |
D | task_unittest.cc | 23 TimeDelta::FromSeconds(1)); in TEST() 29 TimeDelta::FromSeconds(1)); in TEST() 35 TimeDelta::FromSeconds(1)); in TEST()
|
D | task_scheduler.cc | 62 constexpr TimeDelta kSuggestedReclaimTime = TimeDelta::FromSeconds(30); in StartWithDefaultParams()
|
D | service_thread_unittest.cc | 90 constexpr TimeDelta kReasonableTimeout = TimeDelta::FromSeconds(1); in TEST()
|
/external/libbrillo/brillo/streams/ |
D | fake_stream_test.cc | 182 stream_->AddReadPacketString(base::TimeDelta::FromSeconds(1), "baz"); in TEST_F() 197 clock_.Advance(base::TimeDelta::FromSeconds(1)); in TEST_F() 207 stream_->QueueReadErrorWithMessage(base::TimeDelta::FromSeconds(1), in TEST_F() 225 clock_.Advance(base::TimeDelta::FromSeconds(1)); in TEST_F() 258 auto one_sec_delay = base::TimeDelta::FromSeconds(1); in TEST_F() 272 auto one_sec_delay = base::TimeDelta::FromSeconds(1); in TEST_F() 417 auto one_sec_delay = base::TimeDelta::FromSeconds(1); in TEST_F() 431 auto one_sec_delay = base::TimeDelta::FromSeconds(1); in TEST_F() 463 auto one_sec_delay = base::TimeDelta::FromSeconds(1); in TEST_F() 464 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/protobuf/csharp/compatibility_tests/v3.0.0/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 …]
|
/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/i18n/ |
D | time_formatting_unittest.cc | 350 TimeDelta delta = TimeDelta::FromSeconds(15 * 3600 + 42 * 60 + 30); in TEST() 361 delta = TimeDelta::FromSeconds(125 * 3600 + 42 * 60 + 30); in TEST() 370 delta = TimeDelta::FromSeconds(15 * 3600 + 0 * 60 + 30); in TEST() 381 delta = TimeDelta::FromSeconds(15 * 3600 + 42 * 60 + 0); in TEST()
|
/external/libchrome/base/synchronization/ |
D | spin_wait.h | 34 SPIN_FOR_TIMEDELTA_OR_UNTIL_TRUE(base::TimeDelta::FromSeconds(1), \
|
/external/libchrome/base/process/ |
D | kill.cc | 57 TimeDelta::FromSeconds(2)); in EnsureProcessTerminated()
|
/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/grpc-grpc/src/csharp/Grpc.IntegrationTesting/ |
D | InterarrivalTimers.cs | 105 … this.lastEventTime = origLastEventTime + TimeSpan.FromSeconds(exponentialDistribution.Next()); in GetNextWaitDuration()
|
/external/libchrome/libchrome_tools/patches/ |
D | Fix-TimeDelta.patch | 143 + TimeDelta a = TimeDelta::FromSeconds(1); 154 + constexpr TimeDelta a = TimeDelta::FromSeconds(1);
|