Searched defs:fake_clock_ (Results 1 - 8 of 8) sorted by relevance

/system/update_engine/update_manager/
H A Dreal_time_provider_unittest.cc38 provider_.reset(new RealTimeProvider(&fake_clock_));
59 FakeClock fake_clock_; member in class:chromeos_update_manager::UmRealTimeProviderTest
74 fake_clock_.SetWallclockTime(now);
82 fake_clock_.SetWallclockTime(now);
H A Dpolicy_test_utils.h91 chromeos_update_engine::FakeClock fake_clock_; member in class:chromeos_update_manager::UmPolicyTestBase
H A Dreal_updater_provider_unittest.cc103 fake_clock_ = fake_sys_state_.fake_clock();
124 fake_clock_->SetBootTime(kCurrBootTime);
125 fake_clock_->SetWallclockTime(kCurrWallclockTime);
130 FakeClock* fake_clock_; // Short for fake_sys_state_.fake_clock() member in class:chromeos_update_manager::UmRealUpdaterProviderTest
136 fake_clock_->SetWallclockTime(Time::FromDoubleT(123.456));
137 fake_clock_->SetMonotonicTime(Time::FromDoubleT(456.123));
H A Dupdate_manager_unittest.cc84 umut_.reset(new UpdateManager(&fake_clock_, TimeDelta::FromSeconds(5),
95 FakeClock fake_clock_; member in class:chromeos_update_manager::UmUpdateManagerTest
294 0, fake_clock_.GetWallclockTime() + TimeDelta::FromSeconds(3),
311 fake_clock_.SetWallclockTime(fake_clock_.GetWallclockTime() +
319 fake_clock_.SetWallclockTime(fake_clock_.GetWallclockTime() +
H A Devaluation_context_unittest.cc91 fake_clock_.SetMonotonicTime(Time::FromTimeT(1240428300));
93 fake_clock_.SetWallclockTime(Time::FromTimeT(1141262625));
95 &fake_clock_, default_timeout_, default_timeout_,
125 FakeClock fake_clock_; member in class:chromeos_update_manager::UmEvaluationContextTest
364 fake_clock_.SetMonotonicTime(
365 fake_clock_.GetMonotonicTime() + TimeDelta::FromSeconds(1));
375 Time cur_time = fake_clock_.GetWallclockTime();
377 fake_clock_.SetWallclockTime(cur_time + TimeDelta::FromSeconds(4));
387 cur_time = fake_clock_.GetWallclockTime();
396 Time cur_time = fake_clock_
[all...]
H A Dreal_shill_provider_unittest.cc68 fake_clock_.SetWallclockTime(InitTime());
71 provider_.reset(new RealShillProvider(fake_shill_proxy_, &fake_clock_));
134 fake_clock_.SetWallclockTime(conn_change_time);
138 fake_clock_.SetWallclockTime(conn_change_time + TimeDelta::FromSeconds(5));
209 FakeClock fake_clock_; member in class:chromeos_update_manager::UmRealShillProviderTest
/system/update_engine/
H A Dp2p_manager_unittest.cc69 P2PManagerTest() : fake_um_(&fake_clock_) {}
82 mock_policy_ = new chromeos_update_manager::MockPolicy(&fake_clock_);
86 manager_.reset(P2PManager::Construct(test_conf_, &fake_clock_, &fake_um_,
99 FakeClock fake_clock_; member in class:chromeos_update_engine::P2PManagerTest
140 test_conf_, &fake_clock_, &fake_um_, "cros_au", 3,
197 fake_clock_.SetWallclockTime(cutoff_time + age_limit);
204 test_conf_, &fake_clock_, &fake_um_, "cros_au",
H A Dfake_system_state.h114 clock_ = clock ? clock : &fake_clock_;
179 CHECK(clock_ == &fake_clock_);
180 return &fake_clock_;
236 FakeClock fake_clock_; member in class:chromeos_update_engine::FakeSystemState

Completed in 146 milliseconds