/system/update_engine/update_manager/ |
D | next_update_check_policy_impl_unittest.cc | 55 new Time(fake_clock_.GetWallclockTime() - TimeDelta::FromMinutes(10))); in TEST_F() 61 EXPECT_LE(fake_clock_.GetWallclockTime(), next_update_check); in TEST_F() 62 EXPECT_GE(fake_clock_.GetWallclockTime() + in TEST_F() 78 EXPECT_LE(fake_clock_.GetWallclockTime() + in TEST_F() 83 EXPECT_GE(fake_clock_.GetWallclockTime() + in TEST_F() 106 fake_clock_.GetWallclockTime() + in TEST_F() 110 fake_clock_.GetWallclockTime() + in TEST_F() 132 EXPECT_LE(fake_clock_.GetWallclockTime() + in TEST_F() 135 EXPECT_GE(fake_clock_.GetWallclockTime() + in TEST_F() 151 EXPECT_LE(fake_clock_.GetWallclockTime() + in TEST_F() [all …]
|
D | policy_test_utils.cc | 38 new EvaluationContext(&fake_clock_, TimeDelta::FromSeconds(5))); in SetUp() 48 fake_clock_.SetMonotonicTime(Time::FromInternalValue(12345678L)); in SetUpDefaultClock() 49 fake_clock_.SetWallclockTime(Time::FromInternalValue(12345678901234L)); in SetUpDefaultClock() 53 Time current_time = fake_clock_.GetWallclockTime(); in SetUpDefaultTimeProvider() 65 new Time(fake_clock_.GetWallclockTime())); in SetUpDefaultState() 67 new Time(fake_clock_.GetWallclockTime())); in SetUpDefaultState() 82 Time first_seen_time = fake_clock_.GetWallclockTime() - first_seen_period; in GetDefaultUpdateState()
|
D | evaluation_context_unittest.cc | 93 fake_clock_.SetMonotonicTime(Time::FromTimeT(1240428300)); in SetUp() 95 fake_clock_.SetWallclockTime(Time::FromTimeT(1141262625)); in SetUp() 97 &fake_clock_, in SetUp() 129 FakeClock fake_clock_; member in chromeos_update_manager::UmEvaluationContextTest 368 fake_clock_.SetMonotonicTime(fake_clock_.GetMonotonicTime() + in TEST_F() 378 Time cur_time = fake_clock_.GetWallclockTime(); in TEST_F() 380 fake_clock_.SetWallclockTime(cur_time + TimeDelta::FromSeconds(4)); in TEST_F() 390 cur_time = fake_clock_.GetWallclockTime(); in TEST_F() 399 Time cur_time = fake_clock_.GetMonotonicTime(); in TEST_F() 401 fake_clock_.SetMonotonicTime(cur_time + TimeDelta::FromSeconds(4)); in TEST_F() [all …]
|
D | real_time_provider_unittest.cc | 38 provider_.reset(new RealTimeProvider(&fake_clock_)); in SetUp() 59 FakeClock fake_clock_; member in chromeos_update_manager::UmRealTimeProviderTest 74 fake_clock_.SetWallclockTime(now); in TEST_F() 82 fake_clock_.SetWallclockTime(now); in TEST_F() 91 fake_clock_.SetWallclockTime(now); in TEST_F()
|
D | update_manager_unittest.cc | 84 umut_.reset(new UpdateManager(&fake_clock_, in SetUp() 95 FakeClock fake_clock_; member in chromeos_update_manager::UmUpdateManagerTest 300 fake_clock_.GetWallclockTime() + TimeDelta::FromSeconds(3), in TEST_F() 317 fake_clock_.SetWallclockTime(fake_clock_.GetWallclockTime() + in TEST_F() 325 fake_clock_.SetWallclockTime(fake_clock_.GetWallclockTime() + in TEST_F()
|
D | android_things_policy_unittest.cc | 61 fake_clock_.SetWallclockTime(curr_time); in SetUpdateCheckAllowed() 71 fake_clock_.GetWallclockTime() + TimeDelta::FromMinutes(1234); in TEST_F() 86 fake_clock_.SetWallclockTime(next_update_check - TimeDelta::FromSeconds(1)); in TEST_F() 96 fake_clock_.SetWallclockTime(next_update_check + TimeDelta::FromSeconds(1)); in TEST_F()
|
D | chromeos_policy_unittest.cc | 112 fake_clock_.SetWallclockTime(curr_time); in SetUpdateCheckAllowed() 183 fake_clock_.GetWallclockTime() + TimeDelta::FromMinutes(1234); in TEST_F() 198 fake_clock_.SetWallclockTime(next_update_check - TimeDelta::FromSeconds(1)); in TEST_F() 206 fake_clock_.SetWallclockTime(next_update_check + TimeDelta::FromSeconds(1)); in TEST_F() 219 fake_clock_.GetWallclockTime() + TimeDelta::FromMinutes(1234); in TEST_F() 231 fake_clock_.SetWallclockTime(next_update_check + TimeDelta::FromSeconds(1)); in TEST_F() 243 fake_clock_.SetWallclockTime(next_update_check + TimeDelta::FromSeconds(1)); in TEST_F() 549 const Time curr_time = fake_clock_.GetWallclockTime(); in TEST_F() 579 const Time curr_time = fake_clock_.GetWallclockTime(); in TEST_F() 612 const Time curr_time = fake_clock_.GetWallclockTime(); in TEST_F() [all …]
|
D | real_shill_provider_unittest.cc | 66 fake_clock_.SetWallclockTime(InitTime()); in SetUp() 69 provider_.reset(new RealShillProvider(fake_shill_proxy_, &fake_clock_)); in SetUp() 130 fake_clock_.SetWallclockTime(conn_change_time); in SendDefaultServiceSignal() 134 fake_clock_.SetWallclockTime(conn_change_time + TimeDelta::FromSeconds(5)); in SendDefaultServiceSignal() 205 FakeClock fake_clock_; member in chromeos_update_manager::UmRealShillProviderTest
|
D | real_updater_provider_unittest.cc | 103 fake_clock_ = fake_sys_state_.fake_clock(); in SetUp() 123 fake_clock_->SetBootTime(kCurrBootTime); in SetupUpdateCompletedTime() 124 fake_clock_->SetWallclockTime(kCurrWallclockTime); in SetupUpdateCompletedTime() 129 FakeClock* fake_clock_; // Short for fake_sys_state_.fake_clock() member in chromeos_update_manager::UmRealUpdaterProviderTest 135 fake_clock_->SetWallclockTime(Time::FromDoubleT(123.456)); in TEST_F() 136 fake_clock_->SetMonotonicTime(Time::FromDoubleT(456.123)); in TEST_F()
|
D | policy_test_utils.h | 94 chromeos_update_engine::FakeClock fake_clock_; variable
|
D | update_time_restrictions_policy_impl_unittest.cc | 63 fake_clock_.SetWallclockTime(time); in TestPolicy()
|
/system/update_engine/ |
D | fake_system_state.cc | 26 fake_update_manager_(&fake_clock_), in FakeSystemState() 27 clock_(&fake_clock_), in FakeSystemState()
|
D | fake_system_state.h | 116 clock_ = clock ? clock : &fake_clock_; in set_clock() 185 CHECK(clock_ == &fake_clock_); in fake_clock() 186 return &fake_clock_; in fake_clock() 242 FakeClock fake_clock_; variable
|
D | p2p_manager_unittest.cc | 70 P2PManagerTest() : fake_um_(&fake_clock_) {} in P2PManagerTest() 83 mock_policy_ = new chromeos_update_manager::MockPolicy(&fake_clock_); in SetUp() 88 &fake_clock_, in SetUp() 103 FakeClock fake_clock_; member in chromeos_update_engine::P2PManagerTest 142 &fake_clock_, in TEST_F() 200 fake_clock_.SetWallclockTime(cutoff_time + age_limit); in TEST_F() 207 &fake_clock_, in TEST_F()
|