Home
last modified time | relevance | path

Searched refs:fake_clock (Results 1 – 7 of 7) sorted by relevance

/system/update_engine/
Dmetrics_utils_unittest.cc82 FakeClock fake_clock; in TEST() local
87 fake_system_state.set_clock(&fake_clock); in TEST()
91 fake_clock.SetWallclockTime(base::Time::FromInternalValue(1000000)); in TEST()
117 fake_clock.SetWallclockTime(base::Time::FromInternalValue(2000000)); in TEST()
128 fake_clock.SetWallclockTime(base::Time::FromInternalValue(4000000)); in TEST()
141 fake_clock.SetWallclockTime(base::Time::FromInternalValue(3000000)); in TEST()
145 fake_clock.SetWallclockTime(base::Time::FromInternalValue(4000000)); in TEST()
155 FakeClock fake_clock; in TEST() local
158 fake_system_state.set_clock(&fake_clock); in TEST()
161 fake_clock.SetMonotonicTime(base::Time::FromInternalValue(1000000)); in TEST()
[all …]
Dpayload_state_unittest.cc1052 FakeClock fake_clock; in TEST() local
1057 fake_clock.SetWallclockTime(Time::FromInternalValue(1000000)); in TEST()
1058 fake_clock.SetMonotonicTime(Time::FromInternalValue(2000000)); in TEST()
1060 fake_system_state.set_clock(&fake_clock); in TEST()
1069 fake_clock.SetWallclockTime(Time::FromInternalValue(8000000)); in TEST()
1070 fake_clock.SetMonotonicTime(Time::FromInternalValue(6000000)); in TEST()
1083 fake_clock.SetWallclockTime(Time::FromInternalValue(18000000)); in TEST()
1084 fake_clock.SetMonotonicTime(Time::FromInternalValue(16000000)); in TEST()
1092 fake_clock.SetMonotonicTime(Time::FromInternalValue(5000)); in TEST()
1102 fake_clock.SetWallclockTime(Time::FromInternalValue(25000000)); in TEST()
[all …]
Dupdate_attempter_unittest.cc862 FakeClock fake_clock; in TEST_F() local
865 fake_system_state_.set_clock(&fake_clock); in TEST_F()
869 fake_clock.SetWallclockTime(epoch); in TEST_F()
878 fake_clock.SetWallclockTime(epoch + TimeDelta::FromHours(10)); in TEST_F()
882 fake_clock.SetWallclockTime(epoch + TimeDelta::FromHours(24) - in TEST_F()
887 fake_clock.SetWallclockTime(epoch + TimeDelta::FromHours(24)); in TEST_F()
894 fake_clock.SetWallclockTime(epoch + TimeDelta::FromHours(47)); in TEST_F()
896 fake_clock.SetWallclockTime(epoch + TimeDelta::FromHours(48)); in TEST_F()
901 fake_clock.SetWallclockTime(epoch + TimeDelta::FromHours(71)); in TEST_F()
903 fake_clock.SetWallclockTime(epoch + TimeDelta::FromHours(72)); in TEST_F()
[all …]
Dfake_system_state.h175 inline FakeClock* fake_clock() { in fake_clock() function
Domaha_request_action_unittest.cc2042 fake_system_state_.fake_clock()->SetWallclockTime(arbitrary_date); in TEST_F()
2086 fake_system_state_.fake_clock()->SetWallclockTime(t2); in TEST_F()
/system/update_engine/update_manager/
Dreal_updater_provider_unittest.cc77 fake_clock_ = fake_sys_state_.fake_clock(); in SetUp()
/system/update_engine/payload_consumer/
Ddownload_action_unittest.cc416 fake_um_(fake_system_state_.fake_clock()) {} in P2PDownloadActionTest()