Home
last modified time | relevance | path

Searched refs:FromSeconds (Results 1 – 25 of 53) sorted by relevance

123

/external/libchrome/base/test/
Dtest_mock_time_task_runner_unittest.cc43 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/
Dfake_message_loop_unittest.cc53 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/
Dtime_unittest.cc283 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/
Dmock_timer_unittest.cc19 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()
Dtimer_unittest.cc442 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/
Dfake_stream_unittest.cc181 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/
DDurationTest.cs43 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/
Dsequence_manager_impl_unittest.cc234 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 …]
Dsequence_manager_perftest.cc186 } while (now - start < TimeDelta::FromSeconds(5)); in Benchmark()
/external/libchrome/base/threading/
Dthread_collision_warner_unittest.cc193 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()
Dplatform_thread_posix.cc184 duration -= TimeDelta::FromSeconds(sleep_time.tv_sec); in Sleep()
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/
DTimeoutsTest.cs112 ….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/
Dspin_wait.h34 SPIN_FOR_TIMEDELTA_OR_UNTIL_TRUE(base::TimeDelta::FromSeconds(1), \
Dwaitable_event_perftest.cc161 TimeTicks end_time = TimeTicks::Now() + TimeDelta::FromSeconds(1); in TEST()
/external/libchrome/base/
Dlazy_instance_unittest.cc45 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(1)); in SlowConstructor()
321 base::TimeDelta::FromSeconds(5)); in TEST()
/external/libchrome/base/process/
Dkill.cc57 TimeDelta::FromSeconds(2)); in EnsureProcessTerminated()
Dkill_posix.cc167 0, new BackgroundReaper(std::move(process), TimeDelta::FromSeconds(2))); in EnsureProcessTerminated()
/external/libchrome/base/metrics/
Dhistogram_macros_local.h65 base::TimeDelta::FromSeconds(10), 50)
Dhistogram_functions.cc79 TimeDelta::FromSeconds(10), 50); in UmaHistogramTimes()
Dhistogram_macros.h208 base::TimeDelta::FromSeconds(10), 50)
/external/libchrome/base/task_scheduler/
Dservice_thread_unittest.cc90 constexpr TimeDelta kReasonableTimeout = TimeDelta::FromSeconds(1); in TEST()
/external/protobuf/python/google/protobuf/internal/
Dwell_known_types_test.py168 message.FromSeconds(1)
173 message.FromSeconds(-1)
219 message.FromSeconds(1)
223 message.FromSeconds(-1)
/external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/
DInterarrivalTimers.cs105 … this.lastEventTime = origLastEventTime + TimeSpan.FromSeconds(exponentialDistribution.Next()); in GetNextWaitDuration()
/external/libchrome/base/message_loop/
Dmessage_loop_task_runner_perftest.cc32 base::TimeDelta::FromSeconds(30);
Dmessage_loop_perftest.cc237 RunTest<ContinuouslyPostTasks>(GetParam(), TimeDelta::FromSeconds(3)); in TEST_P()

123