Searched refs:FromSeconds (Results 1 - 25 of 51) sorted by relevance

123

/external/libbrillo/brillo/message_loops/
H A Dfake_message_loop_unittest.cc49 TimeDelta::FromSeconds(1));
51 TimeDelta::FromSeconds(4));
53 TimeDelta::FromSeconds(3));
55 TimeDelta::FromSeconds(2));
65 loop_->PostDelayedTask(Bind(&base::DoNothing), TimeDelta::FromSeconds(1));
66 loop_->PostDelayedTask(Bind(&base::DoNothing), TimeDelta::FromSeconds(2));
74 EXPECT_EQ(start + TimeDelta::FromSeconds(1), clock_.Now());
78 clock_.SetNow(start + TimeDelta::FromSeconds(3));
81 EXPECT_EQ(start + TimeDelta::FromSeconds(3), clock_.Now());
97 TimeDelta::FromSeconds(1
[all...]
/external/libchrome/base/timer/
H A Dmock_timer_unittest.cc19 base::TimeDelta delay = base::TimeDelta::FromSeconds(2);
33 base::TimeDelta delay = base::TimeDelta::FromSeconds(2);
48 base::TimeDelta delay = base::TimeDelta::FromSeconds(2);
73 base::TimeDelta delay = base::TimeDelta::FromSeconds(2);
/external/libweave/src/test/
H A Dfake_stream.cc38 base::TimeDelta::FromSeconds(0));
45 base::TimeDelta::FromSeconds(0));
56 base::TimeDelta::FromSeconds(0));
/external/libchrome/base/synchronization/
H A Dspin_wait.h34 SPIN_FOR_TIMEDELTA_OR_UNTIL_TRUE(base::TimeDelta::FromSeconds(1), \
H A Dwaitable_event_posix.cc156 bool result = TimedWait(TimeDelta::FromSeconds(-1));
/external/libweave/src/privet/
H A Dwifi_bootstrap_manager.cc62 base::TimeDelta::FromSeconds(kMonitoringWithSsidTimeoutSeconds));
64 StartMonitoring(base::TimeDelta::FromSeconds(kMonitoringTimeoutSeconds));
75 StartMonitoring(base::TimeDelta::FromSeconds(kMonitoringTimeoutSeconds));
87 base::TimeDelta::FromSeconds(kBootstrapTimeoutSeconds));
110 base::TimeDelta::FromSeconds(kConnectingTimeoutSeconds));
193 base::TimeDelta::FromSeconds(1));
228 StartMonitoring(base::TimeDelta::FromSeconds(kMonitoringTimeoutSeconds));
241 StartMonitoring(base::TimeDelta::FromSeconds(kMonitoringTimeoutSeconds));
250 ContinueMonitoring(base::TimeDelta::FromSeconds(kMonitoringTimeoutSeconds));
H A Dauth_manager_unittest.cc169 base::TimeDelta::FromSeconds(i));
177 .WillRepeatedly(Return(kStartTime + base::TimeDelta::FromSeconds(i)));
181 DelegateToUser(token, base::TimeDelta::FromSeconds(1000),
187 Return(kStartTime + base::TimeDelta::FromSeconds(i + 1)));
253 auto extended = DelegateToUser(root, base::TimeDelta::FromSeconds(1000),
281 auto extended = DelegateToUser(root, base::TimeDelta::FromSeconds(1000),
285 auto new_time = clock_.Now() + base::TimeDelta::FromSeconds(15);
294 auto extended = DelegateToUser(root, base::TimeDelta::FromSeconds(10),
299 auto new_time = clock_.Now() + base::TimeDelta::FromSeconds(15);
309 auto extended = DelegateToUser(root, base::TimeDelta::FromSeconds(100
[all...]
H A Dprivet_handler_unittest.cc409 SetArgPointee<5>(base::TimeDelta::FromSeconds(15)),
429 SetArgPointee<5>(base::TimeDelta::FromSeconds(15)),
449 SetArgPointee<5>(base::TimeDelta::FromSeconds(15)),
469 SetArgPointee<5>(base::TimeDelta::FromSeconds(1)),
1162 EXPECT_CALL(device_, PostDelayedTask(_, _, base::TimeDelta::FromSeconds(3)))
1187 EXPECT_CALL(device_, PostDelayedTask(_, _, base::TimeDelta::FromSeconds(50)))
1204 .WillOnce(Return(base::TimeDelta::FromSeconds(5)));
1226 EXPECT_CALL(device_, PostDelayedTask(_, _, base::TimeDelta::FromSeconds(10)))
1252 EXPECT_CALL(device_, PostDelayedTask(_, _, base::TimeDelta::FromSeconds(10)))
H A Dsecurity_manager.cc100 base::TimeDelta::FromSeconds(kAccessTokenExpirationSeconds);
146 base::TimeDelta::FromSeconds(kAccessTokenExpirationSeconds);
/external/libbrillo/brillo/streams/
H A Dfake_stream_unittest.cc181 stream_->AddReadPacketString(base::TimeDelta::FromSeconds(1), "baz");
196 clock_.Advance(base::TimeDelta::FromSeconds(1));
206 stream_->QueueReadErrorWithMessage(base::TimeDelta::FromSeconds(1),
224 clock_.Advance(base::TimeDelta::FromSeconds(1));
257 auto one_sec_delay = base::TimeDelta::FromSeconds(1);
271 auto one_sec_delay = base::TimeDelta::FromSeconds(1);
412 auto one_sec_delay = base::TimeDelta::FromSeconds(1);
426 auto one_sec_delay = base::TimeDelta::FromSeconds(1);
454 auto one_sec_delay = base::TimeDelta::FromSeconds(1);
455 auto two_sec_delay = base::TimeDelta::FromSeconds(
[all...]
/external/v8/test/unittests/base/platform/
H A Dtime-unittest.cc30 EXPECT_EQ(TimeDelta::FromMinutes(2), TimeDelta::FromSeconds(120));
31 EXPECT_EQ(TimeDelta::FromSeconds(2), TimeDelta::FromMilliseconds(2000));
36 EXPECT_EQ(static_cast<int64_t>(13), TimeDelta::FromSeconds(13).InSeconds());
37 EXPECT_DOUBLE_EQ(13.0, TimeDelta::FromSeconds(13).InSecondsF());
126 static const TimeDelta kExpirationTimeout = TimeDelta::FromSeconds(1);
/external/libchrome/base/threading/
H A Dthread_collision_warner_unittest.cc191 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(5));
248 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(2));
317 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(2));
H A Dworker_pool_posix.cc180 TimeDelta::FromSeconds(idle_seconds_before_exit_));
/external/libweave/third_party/chromium/base/time/
H A Dtime_unittest.cc145 EXPECT_TRUE((a - b) < TimeDelta::FromSeconds(1));
154 EXPECT_TRUE((a - b) < TimeDelta::FromSeconds(1));
478 EXPECT_TRUE(TimeDelta::FromMinutes(2) == TimeDelta::FromSeconds(120));
479 EXPECT_TRUE(TimeDelta::FromSeconds(2) == TimeDelta::FromMilliseconds(2000));
489 EXPECT_EQ(13, TimeDelta::FromSeconds(13).InSeconds());
490 EXPECT_EQ(13.0, TimeDelta::FromSeconds(13).InSecondsF());
503 struct timespec result = TimeDelta::FromSeconds(0).ToTimeSpec();
507 result = TimeDelta::FromSeconds(1).ToTimeSpec();
608 t = TimeDelta::FromSeconds(max_int / Time::kMicrosecondsPerSecond + 1);
617 t = TimeDelta::FromSeconds(
[all...]
H A Dtime.h112 static TimeDelta FromSeconds(int64_t secs);
250 // FromSeconds, FromMilliseconds, etc. instead.
576 inline TimeDelta TimeDelta::FromSeconds(int64_t secs) { function in class:base::Time::TimeDelta
/external/libweave/src/notification/
H A Dxmpp_channel.cc416 SchedulePing(base::TimeDelta::FromSeconds(kRegularPingIntervalSeconds),
417 base::TimeDelta::FromSeconds(kRegularPingTimeoutSeconds));
421 SchedulePing(base::TimeDelta::FromSeconds(kAgressivePingIntervalSeconds),
422 base::TimeDelta::FromSeconds(kAgressivePingTimeoutSeconds));
463 base::TimeDelta::FromSeconds(
H A Dxmpp_iq_stanza_handler.cc62 base::TimeDelta::FromSeconds(kTimeoutIntervalSeconds), response_callback,
/external/libchrome/base/time/
H A Dtime_unittest.cc145 EXPECT_TRUE((a - b) < TimeDelta::FromSeconds(1));
154 EXPECT_TRUE((a - b) < TimeDelta::FromSeconds(1));
728 EXPECT_TRUE(TimeDelta::FromMinutes(2) == TimeDelta::FromSeconds(120));
729 EXPECT_TRUE(TimeDelta::FromSeconds(2) == TimeDelta::FromMilliseconds(2000));
739 EXPECT_EQ(13, TimeDelta::FromSeconds(13).InSeconds());
740 EXPECT_EQ(13.0, TimeDelta::FromSeconds(13).InSecondsF());
753 struct timespec result = TimeDelta::FromSeconds(0).ToTimeSpec();
757 result = TimeDelta::FromSeconds(1).ToTimeSpec();
858 t = TimeDelta::FromSeconds(max_int / Time::kMicrosecondsPerSecond + 1);
867 t = TimeDelta::FromSeconds(
[all...]
H A Dtime.h112 static TimeDelta FromSeconds(int64_t secs);
250 // FromSeconds, FromMilliseconds, etc. instead.
602 inline TimeDelta TimeDelta::FromSeconds(int64_t secs) { function in class:base::Time::TimeDelta
/external/libchrome/base/
H A Dlazy_instance_unittest.cc33 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(1));
H A Dsync_socket_posix.cc156 base::TimeDelta::FromSeconds(1).InMicroseconds());
/external/libweave/examples/provider/
H A Devent_network.cc103 base::TimeDelta::FromSeconds(10));
/external/libchrome/base/metrics/
H A Dhistogram_macros.h95 base::TimeDelta::FromSeconds(10), 50)
163 base::TimeDelta::FromSeconds(10), 50)
/external/libweave/examples/daemon/sample/
H A Dsample.cc147 base::TimeDelta::FromSeconds(1));
/external/libweave/src/states/
H A Dstate_change_queue_unittest.cc43 auto timestamp2 = timestamp1 + base::TimeDelta::FromSeconds(1);

Completed in 2337 milliseconds

123