Home
last modified time | relevance | path

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

12

/external/libbrillo/brillo/message_loops/
Dfake_message_loop_unittest.cc52 TimeDelta::FromSeconds(1)); in TEST_F()
54 TimeDelta::FromSeconds(4)); in TEST_F()
56 TimeDelta::FromSeconds(3)); in TEST_F()
58 TimeDelta::FromSeconds(2)); in TEST_F()
68 loop_->PostDelayedTask(Bind(&base::DoNothing), TimeDelta::FromSeconds(1)); in TEST_F()
69 loop_->PostDelayedTask(Bind(&base::DoNothing), TimeDelta::FromSeconds(2)); in TEST_F()
77 EXPECT_EQ(start + TimeDelta::FromSeconds(1), clock_.Now()); in TEST_F()
81 clock_.SetNow(start + TimeDelta::FromSeconds(3)); in TEST_F()
84 EXPECT_EQ(start + TimeDelta::FromSeconds(3), clock_.Now()); in TEST_F()
102 TimeDelta::FromSeconds(10))); in TEST_F()
[all …]
Dmessage_loop_unittest.cc104 TimeDelta::FromSeconds(10), in TYPED_TEST()
/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()
73 base::TimeDelta delay = base::TimeDelta::FromSeconds(2); 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()
261 auto one_sec_delay = base::TimeDelta::FromSeconds(1); in TEST_F()
277 auto one_sec_delay = base::TimeDelta::FromSeconds(1); in TEST_F()
426 auto one_sec_delay = base::TimeDelta::FromSeconds(1); in TEST_F()
442 auto one_sec_delay = base::TimeDelta::FromSeconds(1); in TEST_F()
474 auto one_sec_delay = base::TimeDelta::FromSeconds(1); in TEST_F()
475 auto two_sec_delay = base::TimeDelta::FromSeconds(2); in TEST_F()
Dtls_stream.cc213 const base::TimeDelta kTimeout = base::TimeDelta::FromSeconds(2); in Close()
/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/time/
Dtime_unittest.cc194 EXPECT_TRUE((a - b) < TimeDelta::FromSeconds(1)); in TEST_F()
204 EXPECT_TRUE((a - b) < TimeDelta::FromSeconds(1)); in TEST_F()
782 static_assert(TimeDelta::FromMinutes(2) == TimeDelta::FromSeconds(120), ""); in TEST()
783 static_assert(TimeDelta::FromSeconds(2) == TimeDelta::FromMilliseconds(2000), in TEST()
795 EXPECT_EQ(13, TimeDelta::FromSeconds(13).InSeconds()); in TEST()
796 EXPECT_EQ(13.0, TimeDelta::FromSeconds(13).InSecondsF()); in TEST()
809 struct timespec result = TimeDelta::FromSeconds(0).ToTimeSpec(); in TEST()
813 result = TimeDelta::FromSeconds(1).ToTimeSpec(); in TEST()
915 t = TimeDelta::FromSeconds(max_int / Time::kMicrosecondsPerSecond + 1); in TEST()
924 t = TimeDelta::FromSeconds(-max_int / Time::kMicrosecondsPerSecond - 1); in TEST()
[all …]
Dtime.h113 static constexpr TimeDelta FromSeconds(int64_t secs);
632 constexpr TimeDelta TimeDelta::FromSeconds(int64_t secs) { in FromSeconds() function
Dtime.cc144 return Time(kTimeTToMicrosecondsOffset) + TimeDelta::FromSeconds(tt); in FromTimeT()
/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()
Dworker_pool_posix.cc177 TimeDelta::FromSeconds(idle_seconds_before_exit_)); in WaitForTask()
Dplatform_thread_posix.cc174 duration -= TimeDelta::FromSeconds(sleep_time.tv_sec); in Sleep()
/external/libchrome/base/synchronization/
Dspin_wait.h34 SPIN_FOR_TIMEDELTA_OR_UNTIL_TRUE(base::TimeDelta::FromSeconds(1), \
Dwaitable_event_posix.cc155 bool result = TimedWait(TimeDelta::FromSeconds(-1)); in Wait()
Dcondition_variable_unittest.cc242 EXPECT_TRUE(duration <= TimeDelta::FromSeconds(kDiscontinuitySeconds)); in TEST_F()
/external/libchrome/base/metrics/
Dhistogram_macros.h124 base::TimeDelta::FromSeconds(10), 50)
192 base::TimeDelta::FromSeconds(10), 50)
/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)
Dwell_known_types.py221 def FromSeconds(self, seconds): member in Timestamp
336 def FromSeconds(self, seconds): member in Duration
/external/libchrome/base/
Dlazy_instance_unittest.cc33 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(1)); in SlowConstructor()
Dsync_socket_posix.cc155 base::TimeDelta::FromSeconds(1).InMicroseconds()); in ReceiveWithTimeout()
/external/libmojo/mojo/message_pump/
Dmessage_pump_mojo_unittest.cc157 base::TimeTicks::Now() - base::TimeDelta::FromSeconds(1)); in TEST()
/external/libchrome/base/files/
Dfile_unittest.cc338 base::Time now = base::Time::Now() + base::TimeDelta::FromSeconds(2);
358 info.last_accessed + base::TimeDelta::FromSeconds(234);
/external/v8/src/base/platform/
Dtime.h54 static TimeDelta FromSeconds(int64_t seconds);
/external/libchrome/base/process/
Dprocess_metrics_unittest.cc482 PlatformThread::Sleep(TimeDelta::FromSeconds(1)); in MULTIPROCESS_TEST_MAIN()
/external/libbrillo/brillo/http/
Dhttp_transport_curl_unittest.cc281 FROM_HERE, run_loop.QuitClosure(), base::TimeDelta::FromSeconds(1)); in TEST_F()

12