Home
last modified time | relevance | path

Searched refs:fake_state_ (Results 1 – 7 of 7) sorted by relevance

/system/update_engine/update_manager/
Dchromeos_policy_unittest.cc52 fake_state_.config_provider()->var_is_oobe_enabled()->reset(new bool(true)); in SetUpDefaultState()
56 fake_state_.system_provider()->var_is_official_build()->reset( in SetUpDefaultState()
58 fake_state_.system_provider()->var_is_oobe_complete()->reset( in SetUpDefaultState()
61 fake_state_.system_provider()->var_num_slots()->reset(new unsigned int(2)); in SetUpDefaultState()
64 fake_state_.shill_provider()->var_conn_type()->reset( in SetUpDefaultState()
66 fake_state_.shill_provider()->var_conn_tethering()->reset( in SetUpDefaultState()
73 fake_state_.device_policy_provider()->var_device_policy_is_loaded()->reset( in SetUpDefaultDevicePolicy()
75 fake_state_.device_policy_provider()->var_update_disabled()->reset( in SetUpDefaultDevicePolicy()
77 fake_state_.device_policy_provider() in SetUpDefaultDevicePolicy()
80 fake_state_.device_policy_provider()->var_scatter_factor()->reset( in SetUpDefaultDevicePolicy()
[all …]
Dpolicy_test_utils.cc56 fake_state_.time_provider()->var_curr_hour()->reset(new int(exploded.hour)); in SetUpDefaultTimeProvider()
57 fake_state_.time_provider()->var_curr_minute()->reset( in SetUpDefaultTimeProvider()
59 fake_state_.time_provider()->var_curr_date()->reset( in SetUpDefaultTimeProvider()
64 fake_state_.updater_provider()->var_updater_started_time()->reset( in SetUpDefaultState()
66 fake_state_.updater_provider()->var_last_checked_time()->reset( in SetUpDefaultState()
68 fake_state_.updater_provider()->var_consecutive_failed_update_checks()->reset( in SetUpDefaultState()
70 fake_state_.updater_provider()->var_server_dictated_poll_interval()->reset( in SetUpDefaultState()
72 fake_state_.updater_provider()->var_forced_update_requested()->reset( in SetUpDefaultState()
76 fake_state_.random_provider()->var_seed()->reset(new uint64_t(4)); in SetUpDefaultState()
Dandroid_things_policy_unittest.cc41 fake_state_.system_provider()->var_is_official_build()->reset( in SetUpDefaultState()
44 fake_state_.system_provider()->var_num_slots()->reset(new unsigned int(2)); in SetUpDefaultState()
74 fake_state_.updater_provider()->var_last_checked_time()->reset( in TEST_F()
84 fake_state_.updater_provider()->var_last_checked_time()->reset( in TEST_F()
94 fake_state_.updater_provider()->var_last_checked_time()->reset( in TEST_F()
108 fake_state_.system_provider()->var_is_official_build()->reset( in TEST_F()
122 fake_state_.system_provider()->var_num_slots()->reset(new unsigned int(1)); in TEST_F()
136 fake_state_.updater_provider()->var_forced_update_requested()->reset( in TEST_F()
152 fake_state_.updater_provider()->var_forced_update_requested()->reset( in TEST_F()
177 fake_state_.updater_provider()->var_update_restrictions()->reset( in TEST_F()
Dnext_update_check_policy_impl_unittest.cc54 fake_state_.updater_provider()->var_last_checked_time()->reset( in TEST_F()
96 fake_state_.updater_provider()->var_consecutive_failed_update_checks()->reset( in TEST_F()
121 fake_state_.updater_provider()->var_server_dictated_poll_interval()->reset( in TEST_F()
124 fake_state_.updater_provider()->var_consecutive_failed_update_checks()->reset( in TEST_F()
143 fake_state_.updater_provider()->var_consecutive_failed_update_checks()->reset( in TEST_F()
Dpolicy_test_utils.h62 (*method)(eval_ctx_.get(), &fake_state_, &error, result, args...)) in ExpectStatus()
74 return (*method)(eval_ctx_.get(), &fake_state_, &error, result, args...); in CallMethodWithContext()
88 eval_ctx_.get(), &fake_state_, &error, result, args...)) in ExpectPolicyStatus()
95 FakeState fake_state_; variable
Dupdate_time_restrictions_policy_impl_unittest.cc57 fake_state_.device_policy_provider() in TestPolicy()
65 fake_state_.device_policy_provider() in TestPolicy()
Dupdate_manager_unittest.cc83 fake_state_ = new FakeState(); in SetUp()
87 fake_state_)); in SetUp()
94 FakeState* fake_state_; // Owned by the umut_. member in chromeos_update_manager::UmUpdateManagerTest