Home
last modified time | relevance | path

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

/system/update_engine/
Dmetrics_utils_unittest.cc79 FakeClock fake_clock; in TEST() local
84 fake_system_state.set_clock(&fake_clock); in TEST()
88 fake_clock.SetWallclockTime(base::Time::FromInternalValue(1000000)); in TEST()
110 fake_clock.SetWallclockTime(base::Time::FromInternalValue(2000000)); in TEST()
119 fake_clock.SetWallclockTime(base::Time::FromInternalValue(4000000)); in TEST()
130 fake_clock.SetWallclockTime(base::Time::FromInternalValue(3000000)); in TEST()
133 fake_clock.SetWallclockTime(base::Time::FromInternalValue(4000000)); in TEST()
142 FakeClock fake_clock; in TEST() local
145 fake_system_state.set_clock(&fake_clock); in TEST()
148 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.cc1060 FakeClock fake_clock; in TEST() local
1065 fake_clock.SetWallclockTime(Time::FromInternalValue(1000000)); in TEST()
1066 fake_clock.SetMonotonicTime(Time::FromInternalValue(2000000)); in TEST()
1068 fake_system_state.set_clock(&fake_clock); in TEST()
1077 fake_clock.SetWallclockTime(Time::FromInternalValue(8000000)); in TEST()
1078 fake_clock.SetMonotonicTime(Time::FromInternalValue(6000000)); in TEST()
1091 fake_clock.SetWallclockTime(Time::FromInternalValue(18000000)); in TEST()
1092 fake_clock.SetMonotonicTime(Time::FromInternalValue(16000000)); in TEST()
1100 fake_clock.SetMonotonicTime(Time::FromInternalValue(5000)); in TEST()
1110 fake_clock.SetWallclockTime(Time::FromInternalValue(25000000)); in TEST()
[all …]
Dupdate_attempter_unittest.cc1375 FakeClock fake_clock; in TEST_F() local
1378 fake_system_state_.set_clock(&fake_clock); in TEST_F()
1382 fake_clock.SetWallclockTime(epoch); in TEST_F()
1391 fake_clock.SetWallclockTime(epoch + TimeDelta::FromHours(10)); in TEST_F()
1395 fake_clock.SetWallclockTime(epoch + TimeDelta::FromHours(24) - in TEST_F()
1400 fake_clock.SetWallclockTime(epoch + TimeDelta::FromHours(24)); in TEST_F()
1407 fake_clock.SetWallclockTime(epoch + TimeDelta::FromHours(47)); in TEST_F()
1409 fake_clock.SetWallclockTime(epoch + TimeDelta::FromHours(48)); in TEST_F()
1414 fake_clock.SetWallclockTime(epoch + TimeDelta::FromHours(71)); in TEST_F()
1416 fake_clock.SetWallclockTime(epoch + TimeDelta::FromHours(72)); in TEST_F()
[all …]
Domaha_request_action_unittest.cc1095 fake_system_state_.fake_clock()->SetWallclockTime(Time::Now()); in TEST_F()
1111 fake_system_state_.fake_clock()->SetWallclockTime(Time::Now()); in TEST_F()
1153 fake_system_state_.fake_clock()->SetWallclockTime(Time::Now()); in TEST_F()
1170 fake_system_state_.fake_clock()->SetWallclockTime(Time::Now()); in TEST_F()
1191 fake_system_state_.fake_clock()->SetWallclockTime(Time::Now()); in TEST_F()
1206 fake_system_state_.fake_clock()->SetWallclockTime(Time::Now()); in TEST_F()
1230 fake_system_state_.fake_clock()->SetWallclockTime(Time::Now()); in TEST_F()
1246 fake_system_state_.fake_clock()->SetWallclockTime(Time::Now()); in TEST_F()
2101 fake_system_state_.fake_clock()->SetWallclockTime(arbitrary_date); in TEST_F()
2133 fake_system_state_.fake_clock()->SetWallclockTime(t2); in TEST_F()
[all …]
Dfake_system_state.h184 inline FakeClock* fake_clock() { in fake_clock() function
Domaha_response_handler_action_unittest.cc824 FakeClock fake_clock; in TEST_F() local
825 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()