Home
last modified time | relevance | path

Searched refs:fake_system_state_ (Results 1 – 8 of 8) sorted by relevance

/system/update_engine/
Dimage_properties_chromeos_unittest.cc47 fake_system_state_.fake_hardware()->SetIsOfficialBuild(locked_down); in SetLockDown()
48 fake_system_state_.fake_hardware()->SetIsNormalBootMode(locked_down); in SetLockDown()
51 FakeSystemState fake_system_state_; member in chromeos_update_engine::ImagePropertiesTest
63 ImageProperties props = LoadImageProperties(&fake_system_state_); in TEST_F()
75 ImageProperties props = LoadImageProperties(&fake_system_state_); in TEST_F()
84 ImageProperties props = LoadImageProperties(&fake_system_state_); in TEST_F()
89 ImageProperties props = LoadImageProperties(&fake_system_state_); in TEST_F()
104 ImageProperties props = LoadImageProperties(&fake_system_state_); in TEST_F()
109 LoadMutableImageProperties(&fake_system_state_); in TEST_F()
125 ImageProperties props = LoadImageProperties(&fake_system_state_); in TEST_F()
[all …]
Domaha_response_handler_action_unittest.cc44 FakeBootControl* fake_boot_control = fake_system_state_.fake_boot_control(); in SetUp()
61 FakeSystemState fake_system_state_; member in chromeos_update_engine::OmahaResponseHandlerActionTest
106 EXPECT_CALL(*(fake_system_state_.mock_prefs()), in DoTest()
110 int slot = 1 - fake_system_state_.fake_boot_control()->GetCurrentSlot(); in DoTest()
112 EXPECT_CALL(*(fake_system_state_.mock_prefs()), SetString(key, testing::_)) in DoTest()
117 EXPECT_CALL(*(fake_system_state_.mock_payload_state()), GetCurrentUrl()) in DoTest()
121 &fake_system_state_, in DoTest()
181 fake_system_state_.fake_boot_control()->SetCurrentSlot(1); in TEST_F()
202 fake_system_state_.fake_boot_control()->SetCurrentSlot(0); in TEST_F()
231 EXPECT_CALL(*(fake_system_state_.mock_request_params()), in TEST_F()
[all …]
Dcommon_service_unittest.cc40 : mock_update_attempter_(fake_system_state_.mock_update_attempter()), in UpdateEngineServiceTest()
41 common_service_(&fake_system_state_) {} in UpdateEngineServiceTest()
44 fake_system_state_.set_device_policy(nullptr); in SetUp()
48 FakeSystemState fake_system_state_; member in chromeos_update_engine::UpdateEngineServiceTest
73 EXPECT_CALL(*fake_system_state_.mock_request_params(), in TEST_F()
83 fake_system_state_.set_device_policy(&mock_device_policy); in TEST_F()
86 EXPECT_CALL(*fake_system_state_.mock_request_params(), in TEST_F()
98 EXPECT_CALL(*fake_system_state_.mock_request_params(), in TEST_F()
108 fake_system_state_.mock_request_params()->set_current_channel("current"); in TEST_F()
109 fake_system_state_.mock_request_params()->set_target_channel("target"); in TEST_F()
[all …]
Dupdate_attempter_unittest.cc124 certificate_checker_(fake_system_state_.mock_prefs(), in UpdateAttempterTest()
127 fake_system_state_.set_connection_manager(&mock_connection_manager); in UpdateAttempterTest()
128 fake_system_state_.set_update_attempter(&attempter_); in UpdateAttempterTest()
147 prefs_ = fake_system_state_.mock_prefs(); in SetUp()
151 EXPECT_CALL(*fake_system_state_.mock_payload_state(), in SetUp()
154 EXPECT_CALL(*fake_system_state_.mock_payload_state(), in SetUp()
158 EXPECT_CALL(*fake_system_state_.mock_payload_state(), in SetUp()
161 EXPECT_CALL(*fake_system_state_.mock_payload_state(), in SetUp()
194 FakeSystemState fake_system_state_; member in chromeos_update_engine::UpdateAttempterTest
200 UpdateAttempterUnderTest attempter_{&fake_system_state_, &libcros_proxy_};
[all …]
Domaha_request_params_unittest.cc41 OmahaRequestParamsTest() : params_(&fake_system_state_) {} in OmahaRequestParamsTest()
49 params_ = OmahaRequestParams(&fake_system_state_); in SetUp()
52 fake_system_state_.set_prefs(&fake_prefs_); in SetUp()
56 fake_system_state_.fake_hardware()->SetIsOfficialBuild(locked_down); in SetLockDown()
57 fake_system_state_.fake_hardware()->SetIsNormalBootMode(locked_down); in SetLockDown()
61 FakeSystemState fake_system_state_; member in chromeos_update_engine::OmahaRequestParamsTest
115 OmahaRequestParams params(&fake_system_state_); in TEST_F()
129 OmahaRequestParams params(&fake_system_state_); in TEST_F()
143 OmahaRequestParams params(&fake_system_state_); in TEST_F()
Domaha_request_action_unittest.cc161 fake_system_state_.set_request_params(&request_params_); in SetUp()
162 fake_system_state_.set_prefs(&fake_prefs_); in SetUp()
212 FakeSystemState fake_system_state_; member in chromeos_update_engine::OmahaRequestActionTest
218 &fake_system_state_,
321 fake_system_state_.set_request_params(request_params); in TestUpdateCheck()
322 OmahaRequestAction action(&fake_system_state_, in TestUpdateCheck()
337 EXPECT_CALL(*fake_system_state_.mock_metrics_lib(), SendEnumToUMA(_, _, _)) in TestUpdateCheck()
339 EXPECT_CALL(*fake_system_state_.mock_metrics_lib(), in TestUpdateCheck()
344 EXPECT_CALL(*fake_system_state_.mock_metrics_lib(), in TestUpdateCheck()
349 EXPECT_CALL(*fake_system_state_.mock_metrics_lib(), in TestUpdateCheck()
[all …]
Dconnection_manager_unittest.cc54 fake_system_state_.set_connection_manager(&cmut_); in SetUp()
82 FakeSystemState fake_system_state_; member in chromeos_update_engine::ConnectionManagerTest
86 ConnectionManager cmut_{fake_shill_proxy_, &fake_system_state_};
229 fake_system_state_.set_device_policy(&allow_3g_policy); in TEST_F()
246 fake_system_state_.set_device_policy(&allow_3g_policy); in TEST_F()
297 fake_system_state_.set_device_policy(&block_3g_policy); in TEST_F()
317 fake_system_state_.set_device_policy(&allow_3g_policy); in TEST_F()
335 testing::NiceMock<MockPrefs>* prefs = fake_system_state_.mock_prefs(); in TEST_F()
337 fake_system_state_.set_device_policy(&no_policy); in TEST_F()
/system/update_engine/payload_consumer/
Ddownload_action_unittest.cc276 FakeSystemState fake_system_state_; in TestTerminateEarly() local
280 fake_system_state_.boot_control(), in TestTerminateEarly()
281 fake_system_state_.hardware(), in TestTerminateEarly()
282 &fake_system_state_, in TestTerminateEarly()
378 FakeSystemState fake_system_state_; in TEST() local
380 fake_system_state_.boot_control(), in TEST()
381 fake_system_state_.hardware(), in TEST()
382 &fake_system_state_, in TEST()
414 fake_um_(fake_system_state_.fake_clock()) {} in P2PDownloadActionTest()
442 fake_system_state_.set_p2p_manager(p2p_manager_.get()); in SetupDownload()
[all …]