Home
last modified time | relevance | path

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

/system/update_engine/
Domaha_response_handler_action_unittest.cc83 FakeBootControl* fake_boot_control = fake_system_state_.fake_boot_control(); in SetUp()
103 FakeSystemState fake_system_state_; member in chromeos_update_engine::OmahaResponseHandlerActionTest
136 EXPECT_CALL(*(fake_system_state_.mock_prefs()), in DoTest()
141 fake_system_state_.request_params()->is_install() in DoTest()
142 ? fake_system_state_.fake_boot_control()->GetCurrentSlot() in DoTest()
143 : 1 - fake_system_state_.fake_boot_control()->GetCurrentSlot(); in DoTest()
145 EXPECT_CALL(*(fake_system_state_.mock_prefs()), SetString(key, testing::_)) in DoTest()
150 EXPECT_CALL(*(fake_system_state_.mock_payload_state()), GetCurrentUrl()) in DoTest()
154 std::make_unique<OmahaResponseHandlerAction>(&fake_system_state_); in DoTest()
219 fake_system_state_.fake_boot_control()->SetCurrentSlot(1); in TEST_F()
[all …]
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
64 ImageProperties props = LoadImageProperties(&fake_system_state_); in TEST_F()
76 ImageProperties props = LoadImageProperties(&fake_system_state_); in TEST_F()
85 ImageProperties props = LoadImageProperties(&fake_system_state_); in TEST_F()
90 ImageProperties props = LoadImageProperties(&fake_system_state_); in TEST_F()
106 ImageProperties props = LoadImageProperties(&fake_system_state_); in TEST_F()
111 LoadMutableImageProperties(&fake_system_state_); in TEST_F()
128 ImageProperties props = LoadImageProperties(&fake_system_state_); in TEST_F()
[all …]
Domaha_request_builder_xml_unittest.cc61 FakeSystemState fake_system_state_; member in chromeos_update_engine::OmahaRequestBuilderXmlTest
91 OmahaRequestParams omaha_request_params{&fake_system_state_}; in TEST_F()
100 fake_system_state_.prefs(), in TEST_F()
117 OmahaRequestParams omaha_request_params{&fake_system_state_}; in TEST_F()
126 fake_system_state_.prefs(), in TEST_F()
141 OmahaRequestParams omaha_request_params{&fake_system_state_}; in TEST_F()
149 fake_system_state_.prefs(), in TEST_F()
162 OmahaRequestParams omaha_request_params{&fake_system_state_}; in TEST_F()
170 fake_system_state_.prefs(), in TEST_F()
184 OmahaRequestParams omaha_request_params{&fake_system_state_}; in TEST_F()
[all …]
Dimage_properties_android_unittest.cc57 FakeSystemState fake_system_state_; member in chromeos_update_engine::ImagePropertiesTest
68 ImageProperties props = LoadImageProperties(&fake_system_state_); in TEST_F()
80 ImageProperties props = LoadImageProperties(&fake_system_state_); in TEST_F()
88 ImageProperties props = LoadImageProperties(&fake_system_state_); in TEST_F()
94 props = LoadImageProperties(&fake_system_state_); in TEST_F()
101 ImageProperties props = LoadImageProperties(&fake_system_state_); in TEST_F()
107 ImageProperties props = LoadImageProperties(&fake_system_state_); in TEST_F()
113 fake_system_state_.set_prefs(&prefs); in TEST_F()
117 EXPECT_TRUE(StoreMutableImageProperties(&fake_system_state_, props)); in TEST_F()
119 LoadMutableImageProperties(&fake_system_state_); in TEST_F()
Dcommon_service_unittest.cc43 : mock_update_attempter_(fake_system_state_.mock_update_attempter()), in UpdateEngineServiceTest()
44 common_service_(&fake_system_state_) {} in UpdateEngineServiceTest()
46 void SetUp() override { fake_system_state_.set_device_policy(nullptr); } in SetUp()
49 FakeSystemState fake_system_state_; member in chromeos_update_engine::UpdateEngineServiceTest
122 EXPECT_CALL(*fake_system_state_.mock_request_params(), in TEST_F()
132 fake_system_state_.set_device_policy(&mock_device_policy); in TEST_F()
135 EXPECT_CALL(*fake_system_state_.mock_request_params(), in TEST_F()
147 EXPECT_CALL(*fake_system_state_.mock_request_params(), in TEST_F()
158 fake_system_state_.mock_request_params()->set_current_channel("current"); in TEST_F()
159 fake_system_state_.mock_request_params()->set_target_channel("target"); in TEST_F()
Dupdate_attempter_unittest.cc242 : certificate_checker_(fake_system_state_.mock_prefs(), in UpdateAttempterTest()
245 fake_system_state_.set_connection_manager(&mock_connection_manager); in UpdateAttempterTest()
246 fake_system_state_.set_update_attempter(&attempter_); in UpdateAttempterTest()
247 fake_system_state_.set_dlcservice(&mock_dlcservice_); in UpdateAttempterTest()
248 fake_system_state_.set_update_manager(&mock_update_manager_); in UpdateAttempterTest()
270 prefs_ = fake_system_state_.mock_prefs(); in SetUp()
274 EXPECT_CALL(*fake_system_state_.mock_payload_state(), in SetUp()
277 EXPECT_CALL(*fake_system_state_.mock_payload_state(), in SetUp()
281 EXPECT_CALL(*fake_system_state_.mock_payload_state(), in SetUp()
284 EXPECT_CALL(*fake_system_state_.mock_payload_state(), in SetUp()
[all …]
Domaha_request_params_unittest.cc41 OmahaRequestParamsTest() : params_(&fake_system_state_) {} in OmahaRequestParamsTest()
49 fake_system_state_.set_prefs(&fake_prefs_); in SetUp()
53 fake_system_state_.fake_hardware()->SetIsOfficialBuild(locked_down); in SetLockDown()
54 fake_system_state_.fake_hardware()->SetIsNormalBootMode(locked_down); in SetLockDown()
57 FakeSystemState fake_system_state_; member in chromeos_update_engine::OmahaRequestParamsTest
58 OmahaRequestParams params_{&fake_system_state_};
113 OmahaRequestParams params(&fake_system_state_); in TEST_F()
127 OmahaRequestParams params(&fake_system_state_); in TEST_F()
141 OmahaRequestParams params(&fake_system_state_); in TEST_F()
Dupdate_boot_flags_action_unittest.cc31 FakeSystemState fake_system_state_; member in chromeos_update_engine::UpdateBootFlagsActionTest
35 auto boot_control = fake_system_state_.fake_boot_control(); in TEST_F()
52 auto boot_control = fake_system_state_.fake_boot_control(); in TEST_F()
Dconnection_manager_unittest.cc55 fake_system_state_.set_connection_manager(&cmut_); in SetUp()
84 FakeSystemState fake_system_state_; member in chromeos_update_engine::ConnectionManagerTest
88 ConnectionManager cmut_{fake_shill_proxy_, &fake_system_state_};
230 fake_system_state_.set_device_policy(&allow_3g_policy); in TEST_F()
247 fake_system_state_.set_device_policy(&allow_3g_policy); in TEST_F()
279 fake_system_state_.set_device_policy(&device_policy); in TEST_F()
288 fake_system_state_.set_device_policy(&device_policy); in TEST_F()
301 fake_system_state_.set_device_policy(&block_3g_policy); in TEST_F()
320 fake_system_state_.set_device_policy(&device_policy); in TEST_F()
334 fake_system_state_.set_device_policy(nullptr); in TEST_F()
Domaha_request_action_unittest.cc379 fake_system_state_.set_request_params(&request_params_); in SetUp()
380 fake_system_state_.set_prefs(&fake_prefs_); in SetUp()
396 ON_CALL(*fake_system_state_.mock_update_attempter(), GetExcluder()) in SetUp()
439 FakeSystemState fake_system_state_; member in chromeos_update_engine::OmahaRequestActionTest
442 OmahaRequestParams request_params_{&fake_system_state_};
499 EXPECT_EQ(&request_params_, fake_system_state_.request_params()); in TestUpdateCheck()
502 std::make_unique<OmahaRequestAction>(&fake_system_state_, in TestUpdateCheck()
540 EXPECT_CALL(*fake_system_state_.mock_metrics_reporter(), in TestUpdateCheck()
545 *fake_system_state_.mock_metrics_reporter(), in TestUpdateCheck()
572 &fake_system_state_, in TestEvent()
[all …]
/system/update_engine/payload_consumer/
Ddownload_action_unittest.cc367 FakeSystemState fake_system_state_; in TestTerminateEarly() local
371 fake_system_state_.boot_control(), in TestTerminateEarly()
372 fake_system_state_.hardware(), in TestTerminateEarly()
373 &fake_system_state_, in TestTerminateEarly()
480 FakeSystemState fake_system_state_; in TEST() local
483 fake_system_state_.boot_control(), in TEST()
484 fake_system_state_.hardware(), in TEST()
485 &fake_system_state_, in TEST()
517 : start_at_offset_(0), fake_um_(fake_system_state_.fake_clock()) {} in P2PDownloadActionTest()
544 fake_system_state_.set_p2p_manager(p2p_manager_.get()); in SetupDownload()
[all …]