Home
last modified time | relevance | path

Searched refs:fake_system_state_ (Results 1 – 9 of 9) 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 …]
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 …]
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
112 EXPECT_CALL(*(fake_system_state_.mock_prefs()), in DoTest()
116 int slot = 1 - fake_system_state_.fake_boot_control()->GetCurrentSlot(); in DoTest()
118 EXPECT_CALL(*(fake_system_state_.mock_prefs()), SetString(key, testing::_)) in DoTest()
123 EXPECT_CALL(*(fake_system_state_.mock_payload_state()), GetCurrentUrl()) in DoTest()
127 &fake_system_state_, in DoTest()
189 fake_system_state_.fake_boot_control()->SetCurrentSlot(1); in TEST_F()
209 fake_system_state_.fake_boot_control()->SetCurrentSlot(0); in TEST_F()
261 EXPECT_CALL(*(fake_system_state_.mock_request_params()), in TEST_F()
[all …]
Dupdate_attempter_unittest.cc119 : certificate_checker_(fake_system_state_.mock_prefs(), in UpdateAttempterTest()
122 fake_system_state_.set_connection_manager(&mock_connection_manager); in UpdateAttempterTest()
123 fake_system_state_.set_update_attempter(&attempter_); in UpdateAttempterTest()
142 prefs_ = fake_system_state_.mock_prefs(); in SetUp()
146 EXPECT_CALL(*fake_system_state_.mock_payload_state(), in SetUp()
149 EXPECT_CALL(*fake_system_state_.mock_payload_state(), in SetUp()
153 EXPECT_CALL(*fake_system_state_.mock_payload_state(), in SetUp()
156 EXPECT_CALL(*fake_system_state_.mock_payload_state(), in SetUp()
189 FakeSystemState fake_system_state_; member in chromeos_update_engine::UpdateAttempterTest
192 UpdateAttempterUnderTest attempter_{&fake_system_state_,
[all …]
Dimage_properties_android_unittest.cc48 FakeSystemState fake_system_state_; member in chromeos_update_engine::ImagePropertiesTest
59 ImageProperties props = LoadImageProperties(&fake_system_state_); in TEST_F()
71 ImageProperties props = LoadImageProperties(&fake_system_state_); in TEST_F()
79 ImageProperties props = LoadImageProperties(&fake_system_state_); in TEST_F()
85 props = LoadImageProperties(&fake_system_state_); in TEST_F()
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.cc212 fake_system_state_.set_request_params(&request_params_); in SetUp()
213 fake_system_state_.set_prefs(&fake_prefs_); in SetUp()
263 FakeSystemState fake_system_state_; member in chromeos_update_engine::OmahaRequestActionTest
269 &fake_system_state_,
372 fake_system_state_.set_request_params(request_params); in TestUpdateCheck()
373 OmahaRequestAction action(&fake_system_state_, in TestUpdateCheck()
388 EXPECT_CALL(*fake_system_state_.mock_metrics_lib(), SendEnumToUMA(_, _, _)) in TestUpdateCheck()
390 EXPECT_CALL(*fake_system_state_.mock_metrics_lib(), in TestUpdateCheck()
395 EXPECT_CALL(*fake_system_state_.mock_metrics_lib(), in TestUpdateCheck()
400 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.cc277 FakeSystemState fake_system_state_; in TestTerminateEarly() local
281 fake_system_state_.boot_control(), in TestTerminateEarly()
282 fake_system_state_.hardware(), in TestTerminateEarly()
283 &fake_system_state_, in TestTerminateEarly()
380 FakeSystemState fake_system_state_; in TEST() local
382 fake_system_state_.boot_control(), in TEST()
383 fake_system_state_.hardware(), in TEST()
384 &fake_system_state_, in TEST()
416 fake_um_(fake_system_state_.fake_clock()) {} in P2PDownloadActionTest()
444 fake_system_state_.set_p2p_manager(p2p_manager_.get()); in SetupDownload()
[all …]