/system/update_engine/update_manager/ |
D | evaluation_context_unittest.cc | 91 fake_clock_.SetMonotonicTime(Time::FromTimeT(1240428300)); in SetUp() 93 fake_clock_.SetWallclockTime(Time::FromTimeT(1141262625)); in SetUp() 95 &fake_clock_, default_timeout_, default_timeout_, in SetUp() 125 FakeClock fake_clock_; member in chromeos_update_manager::UmEvaluationContextTest 364 fake_clock_.SetMonotonicTime( in TEST_F() 365 fake_clock_.GetMonotonicTime() + TimeDelta::FromSeconds(1)); in TEST_F() 375 Time cur_time = fake_clock_.GetWallclockTime(); in TEST_F() 377 fake_clock_.SetWallclockTime(cur_time + TimeDelta::FromSeconds(4)); in TEST_F() 387 cur_time = fake_clock_.GetWallclockTime(); in TEST_F() 396 Time cur_time = fake_clock_.GetMonotonicTime(); in TEST_F() [all …]
|
D | real_time_provider_unittest.cc | 38 provider_.reset(new RealTimeProvider(&fake_clock_)); in SetUp() 57 FakeClock fake_clock_; member in chromeos_update_manager::UmRealTimeProviderTest 71 fake_clock_.SetWallclockTime(now); in TEST_F() 79 fake_clock_.SetWallclockTime(now); in TEST_F()
|
D | chromeos_policy_unittest.cc | 51 eval_ctx_ = new EvaluationContext(&fake_clock_, TimeDelta::FromSeconds(5)); in SetUp() 62 fake_clock_.SetMonotonicTime(Time::FromInternalValue(12345678L)); in SetUpDefaultClock() 63 fake_clock_.SetWallclockTime(Time::FromInternalValue(12345678901234L)); in SetUpDefaultClock() 68 new Time(fake_clock_.GetWallclockTime())); in SetUpDefaultState() 70 new Time(fake_clock_.GetWallclockTime())); in SetUpDefaultState() 139 fake_clock_.SetWallclockTime(curr_time); in SetUpdateCheckAllowed() 144 Time first_seen_time = fake_clock_.GetWallclockTime() - first_seen_period; in GetDefaultUpdateState() 201 FakeClock fake_clock_; member in chromeos_update_manager::UmChromeOSPolicyTest 213 new Time(fake_clock_.GetWallclockTime() - TimeDelta::FromMinutes(10))); in TEST_F() 218 EXPECT_LE(fake_clock_.GetWallclockTime(), next_update_check); in TEST_F() [all …]
|
D | update_manager_unittest.cc | 82 umut_.reset(new UpdateManager(&fake_clock_, TimeDelta::FromSeconds(5), in SetUp() 93 FakeClock fake_clock_; member in chromeos_update_manager::UmUpdateManagerTest 292 0, fake_clock_.GetWallclockTime() + TimeDelta::FromSeconds(3), in TEST_F() 309 fake_clock_.SetWallclockTime(fake_clock_.GetWallclockTime() + in TEST_F() 317 fake_clock_.SetWallclockTime(fake_clock_.GetWallclockTime() + in TEST_F()
|
D | real_shill_provider_unittest.cc | 68 fake_clock_.SetWallclockTime(InitTime()); in SetUp() 71 provider_.reset(new RealShillProvider(fake_shill_proxy_, &fake_clock_)); in SetUp() 132 fake_clock_.SetWallclockTime(conn_change_time); in SendDefaultServiceSignal() 136 fake_clock_.SetWallclockTime(conn_change_time + TimeDelta::FromSeconds(5)); in SendDefaultServiceSignal() 207 FakeClock fake_clock_; member in chromeos_update_manager::UmRealShillProviderTest
|
D | real_updater_provider_unittest.cc | 77 fake_clock_ = fake_sys_state_.fake_clock(); in SetUp() 98 fake_clock_->SetBootTime(kCurrBootTime); in SetupUpdateCompletedTime() 99 fake_clock_->SetWallclockTime(kCurrWallclockTime); in SetupUpdateCompletedTime() 104 FakeClock* fake_clock_; // Short for fake_sys_state_.fake_clock() member in chromeos_update_manager::UmRealUpdaterProviderTest 110 fake_clock_->SetWallclockTime(Time::FromDoubleT(123.456)); in TEST_F() 111 fake_clock_->SetMonotonicTime(Time::FromDoubleT(456.123)); in TEST_F()
|
/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 | 112 clock_ = clock ? clock : &fake_clock_; in set_clock() 176 CHECK(clock_ == &fake_clock_); in fake_clock() 177 return &fake_clock_; in fake_clock() 233 FakeClock fake_clock_; variable
|
D | p2p_manager_unittest.cc | 69 P2PManagerTest() : fake_um_(&fake_clock_) {} in P2PManagerTest() 82 mock_policy_ = new chromeos_update_manager::MockPolicy(&fake_clock_); in SetUp() 86 manager_.reset(P2PManager::Construct(test_conf_, &fake_clock_, &fake_um_, in SetUp() 99 FakeClock fake_clock_; member in chromeos_update_engine::P2PManagerTest 140 test_conf_, &fake_clock_, &fake_um_, "cros_au", 3, in TEST_F() 197 fake_clock_.SetWallclockTime(cutoff_time + age_limit); in TEST_F() 204 test_conf_, &fake_clock_, &fake_um_, "cros_au", in TEST_F()
|