Home
last modified time | relevance | path

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

/system/update_engine/update_manager/
Denterprise_device_policy_impl_unittest.cc34 fake_state_.device_policy_provider()->var_device_policy_is_loaded()->reset( in SetUpDefaultState()
40 fake_state_.device_policy_provider()->var_update_disabled()->reset( in TEST_F()
42 fake_state_.device_policy_provider() in TEST_F()
46 fake_state_.system_provider()->var_kiosk_required_platform_version()->reset( in TEST_F()
56 fake_state_.device_policy_provider()->var_update_disabled()->reset( in TEST_F()
58 fake_state_.device_policy_provider() in TEST_F()
62 fake_state_.system_provider()->var_kiosk_required_platform_version()->reset( in TEST_F()
71 fake_state_.device_policy_provider()->var_update_disabled()->reset( in TEST_F()
73 fake_state_.device_policy_provider() in TEST_F()
79 fake_state_.system_provider()->var_kiosk_required_platform_version()->reset( in TEST_F()
[all …]
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.cc59 fake_state_.time_provider()->var_curr_hour()->reset(new int(exploded.hour)); in SetUpDefaultTimeProvider()
60 fake_state_.time_provider()->var_curr_minute()->reset( in SetUpDefaultTimeProvider()
62 fake_state_.time_provider()->var_curr_date()->reset( in SetUpDefaultTimeProvider()
67 fake_state_.updater_provider()->var_updater_started_time()->reset( in SetUpDefaultState()
69 fake_state_.updater_provider()->var_last_checked_time()->reset( in SetUpDefaultState()
71 fake_state_.updater_provider()->var_consecutive_failed_update_checks()->reset( in SetUpDefaultState()
73 fake_state_.updater_provider()->var_server_dictated_poll_interval()->reset( in SetUpDefaultState()
75 fake_state_.updater_provider()->var_forced_update_requested()->reset( in SetUpDefaultState()
79 fake_state_.random_provider()->var_seed()->reset(new uint64_t(4)); in SetUpDefaultState()
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_monitor_unittest.cc110 fake_state_.device_policy_provider()->var_disallowed_time_intervals(); in UpdateRestrictedIntervals()
127 fake_state_.device_policy_provider() in BuildMonitorAndVerify()
132 monitor_.emplace(fake_state_.device_policy_provider(), &mock_delegate_); in BuildMonitorAndVerify()
145 FakeState fake_state_; member in chromeos_update_manager::UmUpdateTimeRestrictionsMonitorTest
Dminimum_version_policy_impl_unittest.cc42 fake_state_.system_provider()->var_chromeos_version()->reset( in SetCurrentVersion()
47 fake_state_.device_policy_provider()->var_device_minimum_version()->reset( in SetMinimumVersion()
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.cc85 fake_state_ = new FakeState(); in SetUp()
87 TimeDelta::FromSeconds(5), TimeDelta::FromSeconds(1), fake_state_)); in SetUp()
94 FakeState* fake_state_; // Owned by the umut_. member in chromeos_update_manager::UmUpdateManagerTest