Home
last modified time | relevance | path

Searched refs:FromSeconds (Results 1 – 25 of 69) 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 …]
Dscoped_mock_time_message_loop_task_runner_unittest.cc85 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()
Dsequenced_task_runner_test_template.h140 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/
Dfake_message_loop_test.cc50 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/
Dhistogram_functions_unittest.cc96 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()
Dhistogram_macros_local.h65 base::TimeDelta::FromSeconds(10), 50)
/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/libchrome/base/threading/
Dwatchdog_unittest.cc89 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()
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()
/external/libchrome/base/task_scheduler/
Dtask_unittest.cc23 TimeDelta::FromSeconds(1)); in TEST()
29 TimeDelta::FromSeconds(1)); in TEST()
35 TimeDelta::FromSeconds(1)); in TEST()
Dtask_scheduler.cc62 constexpr TimeDelta kSuggestedReclaimTime = TimeDelta::FromSeconds(30); in StartWithDefaultParams()
Dservice_thread_unittest.cc90 constexpr TimeDelta kReasonableTimeout = TimeDelta::FromSeconds(1); in TEST()
/external/libbrillo/brillo/streams/
Dfake_stream_test.cc182 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/
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/protobuf/csharp/compatibility_tests/v3.0.0/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 …]
/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/i18n/
Dtime_formatting_unittest.cc350 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/
Dspin_wait.h34 SPIN_FOR_TIMEDELTA_OR_UNTIL_TRUE(base::TimeDelta::FromSeconds(1), \
/external/libchrome/base/process/
Dkill.cc57 TimeDelta::FromSeconds(2)); in EnsureProcessTerminated()
/external/libchrome/base/
Dlazy_instance_unittest.cc45 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(1)); in SlowConstructor()
321 base::TimeDelta::FromSeconds(5)); in TEST()
/external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/
DInterarrivalTimers.cs105 … this.lastEventTime = origLastEventTime + TimeSpan.FromSeconds(exponentialDistribution.Next()); in GetNextWaitDuration()
/external/libchrome/libchrome_tools/patches/
DFix-TimeDelta.patch143 + TimeDelta a = TimeDelta::FromSeconds(1);
154 + constexpr TimeDelta a = TimeDelta::FromSeconds(1);

123