Home
last modified time | relevance | path

Searched refs:fake_clock_ (Results 1 – 14 of 14) sorted by relevance

/system/update_engine/update_manager/
Dnext_update_check_policy_impl_unittest.cc55 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 …]
Dpolicy_test_utils.cc38 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()
Devaluation_context_unittest.cc93 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 …]
Dreal_time_provider_unittest.cc38 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()
Dupdate_manager_unittest.cc84 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()
Dandroid_things_policy_unittest.cc61 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()
Dchromeos_policy_unittest.cc112 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 …]
Dreal_shill_provider_unittest.cc66 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
Dreal_updater_provider_unittest.cc103 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()
Dpolicy_test_utils.h94 chromeos_update_engine::FakeClock fake_clock_; variable
Dupdate_time_restrictions_policy_impl_unittest.cc63 fake_clock_.SetWallclockTime(time); in TestPolicy()
/system/update_engine/
Dfake_system_state.cc26 fake_update_manager_(&fake_clock_), in FakeSystemState()
27 clock_(&fake_clock_), in FakeSystemState()
Dfake_system_state.h116 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
Dp2p_manager_unittest.cc70 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()