Home
last modified time | relevance | path

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

/system/update_engine/
Dmetrics_utils_unittest.cc85 FakeClock fake_clock; in TEST() local
90 fake_system_state.set_clock(&fake_clock); in TEST()
94 fake_clock.SetWallclockTime(base::Time::FromInternalValue(1000000)); in TEST()
116 fake_clock.SetWallclockTime(base::Time::FromInternalValue(2000000)); in TEST()
125 fake_clock.SetWallclockTime(base::Time::FromInternalValue(4000000)); in TEST()
136 fake_clock.SetWallclockTime(base::Time::FromInternalValue(3000000)); in TEST()
139 fake_clock.SetWallclockTime(base::Time::FromInternalValue(4000000)); in TEST()
148 FakeClock fake_clock; in TEST() local
151 fake_system_state.set_clock(&fake_clock); in TEST()
154 fake_clock.SetMonotonicTime(base::Time::FromInternalValue(1000000)); in TEST()
[all …]
Dmetrics_reporter_omaha_unittest.cc62 FakeClock fake_clock; in TEST_F() local
66 fake_system_state.set_clock(&fake_clock); in TEST_F()
68 fake_clock.SetWallclockTime(base::Time::FromInternalValue(1000000)); in TEST_F()
69 fake_clock.SetMonotonicTime(base::Time::FromInternalValue(1000000)); in TEST_F()
111 fake_clock.SetWallclockTime(base::Time::FromInternalValue(61000000)); in TEST_F()
112 fake_clock.SetMonotonicTime(base::Time::FromInternalValue(61000000)); in TEST_F()
187 FakeClock fake_clock; in TEST_F() local
190 fake_system_state.set_clock(&fake_clock); in TEST_F()
192 fake_clock.SetWallclockTime(base::Time::FromInternalValue(1000000)); in TEST_F()
193 fake_clock.SetMonotonicTime(base::Time::FromInternalValue(1000000)); in TEST_F()
[all …]
Dpayload_state_unittest.cc1056 FakeClock fake_clock; in TEST() local
1061 fake_clock.SetWallclockTime(Time::FromInternalValue(1000000)); in TEST()
1062 fake_clock.SetMonotonicTime(Time::FromInternalValue(2000000)); in TEST()
1064 fake_system_state.set_clock(&fake_clock); in TEST()
1073 fake_clock.SetWallclockTime(Time::FromInternalValue(8000000)); in TEST()
1074 fake_clock.SetMonotonicTime(Time::FromInternalValue(6000000)); in TEST()
1087 fake_clock.SetWallclockTime(Time::FromInternalValue(18000000)); in TEST()
1088 fake_clock.SetMonotonicTime(Time::FromInternalValue(16000000)); in TEST()
1096 fake_clock.SetMonotonicTime(Time::FromInternalValue(5000)); in TEST()
1106 fake_clock.SetWallclockTime(Time::FromInternalValue(25000000)); in TEST()
[all …]
Dupdate_attempter_unittest.cc1079 FakeClock fake_clock; in TEST_F() local
1082 fake_system_state_.set_clock(&fake_clock); in TEST_F()
1086 fake_clock.SetWallclockTime(epoch); in TEST_F()
1095 fake_clock.SetWallclockTime(epoch + TimeDelta::FromHours(10)); in TEST_F()
1099 fake_clock.SetWallclockTime(epoch + TimeDelta::FromHours(24) - in TEST_F()
1104 fake_clock.SetWallclockTime(epoch + TimeDelta::FromHours(24)); in TEST_F()
1111 fake_clock.SetWallclockTime(epoch + TimeDelta::FromHours(47)); in TEST_F()
1113 fake_clock.SetWallclockTime(epoch + TimeDelta::FromHours(48)); in TEST_F()
1118 fake_clock.SetWallclockTime(epoch + TimeDelta::FromHours(71)); in TEST_F()
1120 fake_clock.SetWallclockTime(epoch + TimeDelta::FromHours(72)); in TEST_F()
[all …]
Domaha_request_action_unittest.cc1200 fake_system_state_.fake_clock()->SetWallclockTime(Time::Now()); in TEST_F()
1276 fake_system_state_.fake_clock()->SetWallclockTime(Time::Now()); in TEST_F()
1302 fake_system_state_.fake_clock()->SetWallclockTime(Time::Now()); in TEST_F()
1341 fake_system_state_.fake_clock()->SetWallclockTime(Time::Now()); in TEST_F()
1384 fake_system_state_.fake_clock()->SetWallclockTime(Time::Now()); in TEST_F()
2421 fake_system_state_.fake_clock()->SetWallclockTime(arbitrary_date); in TEST_F()
2462 fake_system_state_.fake_clock()->SetWallclockTime(t2); in TEST_F()
3045 FakeClock fake_clock; in TEST_F() local
3047 fake_clock.SetWallclockTime(now); in TEST_F()
3048 fake_system_state_.set_clock(&fake_clock); in TEST_F()
[all …]
Dfake_system_state.h184 inline FakeClock* fake_clock() { in fake_clock() function
Domaha_response_handler_action_unittest.cc665 FakeClock fake_clock; in TEST_F() local
666 MockPolicy* mock_policy = new MockPolicy(&fake_clock); in TEST_F()
/system/update_engine/update_manager/
Dreal_updater_provider_unittest.cc103 fake_clock_ = fake_sys_state_.fake_clock(); in SetUp()
/system/update_engine/payload_consumer/
Ddownload_action_unittest.cc517 : start_at_offset_(0), fake_um_(fake_system_state_.fake_clock()) {} in P2PDownloadActionTest()