Home
last modified time | relevance | path

Searched refs:FakeSystemState (Results 1 – 25 of 25) sorted by relevance

/aosp12/system/update_engine/update_manager/
H A Dreal_updater_provider_unittest.cc34 using chromeos_update_engine::FakeSystemState;
100 FakeSystemState::CreateInstance(); in SetUp()
127 FakeSystemState::Get()->fake_clock()->SetWallclockTime( in TEST_F()
129 FakeSystemState::Get()->fake_clock()->SetMonotonicTime( in TEST_F()
327 FakeSystemState::Get()->set_request_params(&request_params); in TEST_F()
336 FakeSystemState::Get()->set_request_params(&request_params); in TEST_F()
363 FakeSystemState::Get()->fake_prefs()->SetBoolean( in TEST_F()
369 FakeSystemState::Get()->fake_prefs()->SetBoolean( in TEST_F()
377 auto* fake_prefs = FakeSystemState::Get()->fake_prefs(); in TEST_F()
391 FakeSystemState::Get()->fake_prefs()->SetBoolean( in TEST_F()
[all …]
H A Dreal_time_provider_unittest.cc29 using chromeos_update_engine::FakeSystemState;
37 FakeSystemState::CreateInstance(); in SetUp()
74 FakeSystemState::Get()->fake_clock()->SetWallclockTime(now); in TEST_F()
82 FakeSystemState::Get()->fake_clock()->SetWallclockTime(now); in TEST_F()
91 FakeSystemState::Get()->fake_clock()->SetWallclockTime(now); in TEST_F()
H A Dpolicy_test_utils.cc29 using chromeos_update_engine::FakeSystemState;
38 FakeSystemState::CreateInstance(); in SetUp()
39 fake_clock_ = FakeSystemState::Get()->fake_clock(); in SetUp()
56 Time current_time = FakeSystemState::Get()->clock()->GetWallclockTime(); in SetUpDefaultTimeProvider()
86 FakeSystemState::Get()->clock()->GetWallclockTime() - first_seen_period; in GetDefaultUpdateState()
H A Dreal_system_provider_unittest.cc32 using chromeos_update_engine::FakeSystemState;
49 FakeSystemState::CreateInstance(); in SetUp()
73 FakeSystemState::Get()->fake_hardware()->SetIsOOBEComplete(base::Time()); in TEST_F()
78 FakeSystemState::Get()->fake_hardware()->UnsetIsOOBEComplete(); in TEST_F()
83 FakeSystemState::Get()->request_params()->set_app_version("1.2.3"); in TEST_F()
H A Dupdate_time_restrictions_monitor_unittest.cc34 using chromeos_update_engine::FakeSystemState;
81 FakeSystemState::CreateInstance(); in UmUpdateTimeRestrictionsMonitorTest()
92 FakeSystemState::Get()->fake_clock()->SetWallclockTime(now); in SetNow()
101 FakeSystemState::Get()->fake_clock()->SetWallclockTime(test_clock_.Now()); in AdvanceAfterTimestamp()
H A Dstaging_utils_unittest.cc30 using chromeos_update_engine::FakeSystemState;
47 FakeSystemState::CreateInstance(); in SetUp()
59 EXPECT_TRUE(FakeSystemState::Get()->fake_prefs()->SetInt64( in SetPersistedStagingVal()
H A Dreal_shill_provider_unittest.cc40 using chromeos_update_engine::FakeSystemState;
66 FakeSystemState::Get()->fake_clock()->SetWallclockTime(InitTime()); in SetUp()
130 FakeSystemState::Get()->fake_clock()->SetWallclockTime(conn_change_time); in SendDefaultServiceSignal()
134 FakeSystemState::Get()->fake_clock()->SetWallclockTime( in SendDefaultServiceSignal()
H A Dupdate_manager_unittest.cc51 using chromeos_update_engine::FakeSystemState;
84 FakeSystemState::CreateInstance(); in SetUp()
293 auto* fake_clock = FakeSystemState::Get()->fake_clock(); in TEST_F()
H A Devaluation_context_unittest.cc43 using chromeos_update_engine::FakeSystemState;
93 FakeSystemState::CreateInstance(); in SetUp()
94 fake_clock_ = FakeSystemState::Get()->fake_clock(); in SetUp()
/aosp12/system/update_engine/cros/
H A Domaha_response_handler_action_unittest.cc83 FakeSystemState::CreateInstance(); in SetUp()
85 FakeSystemState::Get()->set_prefs(nullptr); in SetUp()
87 FakeSystemState::Get()->fake_boot_control(); in SetUp()
142 EXPECT_CALL(*(FakeSystemState::Get()->mock_prefs()), in DoTest()
151 EXPECT_CALL(*(FakeSystemState::Get()->mock_prefs()), in DoTest()
324 FakeSystemState::Get()->set_request_params(&params); in TEST_F()
507 FakeSystemState::Get()->set_request_params(&params); in TEST_F()
535 FakeSystemState::Get()->set_request_params(&params); in TEST_F()
563 FakeSystemState::Get()->set_request_params(&params); in TEST_F()
591 FakeSystemState::Get()->set_request_params(&params); in TEST_F()
[all …]
H A Dupdate_attempter_unittest.cc225 FakeSystemState::CreateInstance(); in SetUp()
232 prefs_ = FakeSystemState::Get()->fake_prefs(); in SetUp()
639 FakeSystemState::Get()->fake_boot_control(), in TEST_F()
640 FakeSystemState::Get()->fake_hardware()); in TEST_F()
1100 auto* fake_prefs = FakeSystemState::Get()->fake_prefs(); in DecrementUpdateCheckCountTestStart()
1626 EXPECT_TRUE(FakeSystemState::Get() in TEST_F()
1931 FakeSystemState::Get()->fake_prefs()->SetInt64( in TEST_F()
1956 FakeSystemState::Get()->fake_prefs()->SetInt64( in TEST_F()
2323 FakeSystemState::Get()->set_prefs(&prefs); in TEST_F()
2430 FakeSystemState::Get()->prefs()->SetInt64(key, 1); in TEST_F()
[all …]
H A Dpayload_state_unittest.cc109 void SetUp() { FakeSystemState::CreateInstance(); } in SetUp()
117 FakeSystemState::Get()->set_prefs(nullptr); in TEST_F()
160 FakeSystemState::Get()->set_prefs(nullptr); in TEST_F()
212 FakeSystemState::Get()->set_prefs(nullptr); in TEST_F()
256 FakeSystemState::Get()->set_prefs(nullptr); in TEST_F()
359 FakeSystemState::Get()->set_prefs(nullptr); in TEST_F()
505 FakeSystemState::Get()->set_prefs(nullptr); in TEST_F()
545 FakeSystemState::Get()->set_prefs(nullptr); in TEST_F()
600 FakeSystemState::Get()->set_prefs(nullptr); in TEST_F()
949 FakeSystemState::Get()->set_prefs(nullptr); in TEST_F()
[all …]
H A Dcommon_service_unittest.cc44 FakeSystemState::CreateInstance(); in SetUp()
45 FakeSystemState::Get()->set_device_policy(nullptr); in SetUp()
46 mock_update_attempter_ = FakeSystemState::Get()->mock_update_attempter(); in SetUp()
118 EXPECT_CALL(*FakeSystemState::Get()->mock_request_params(), in TEST_F()
128 FakeSystemState::Get()->set_device_policy(&mock_device_policy); in TEST_F()
131 EXPECT_CALL(*FakeSystemState::Get()->mock_request_params(), in TEST_F()
143 EXPECT_CALL(*FakeSystemState::Get()->mock_request_params(), in TEST_F()
154 FakeSystemState::Get()->mock_request_params()->set_current_channel("current"); in TEST_F()
155 FakeSystemState::Get()->mock_request_params()->set_target_channel("target"); in TEST_F()
H A Ddownload_action_chromeos_unittest.cc132 FakeSystemState::CreateInstance(); in TestWithData()
165 FakeSystemState::Get()->boot_control(), in TestWithData()
166 FakeSystemState::Get()->hardware(), in TestWithData()
279 FakeSystemState::Get()->boot_control(), in TEST()
280 FakeSystemState::Get()->hardware(), in TEST()
347 FakeSystemState::CreateInstance(); in TestTerminateEarly()
368 FakeSystemState::Get()->boot_control(), in TestTerminateEarly()
369 FakeSystemState::Get()->hardware(), in TestTerminateEarly()
462 FakeSystemState::CreateInstance(); in TEST()
518 FakeSystemState::CreateInstance(); in SetUp()
[all …]
H A Dconnection_manager_unittest.cc55 FakeSystemState::CreateInstance(); in SetUp()
56 FakeSystemState::Get()->set_connection_manager(&cmut_); in SetUp()
230 FakeSystemState::Get()->set_device_policy(&allow_3g_policy); in TEST_F()
247 FakeSystemState::Get()->set_device_policy(&allow_3g_policy); in TEST_F()
279 FakeSystemState::Get()->set_device_policy(&device_policy); in TEST_F()
288 FakeSystemState::Get()->set_device_policy(&device_policy); in TEST_F()
301 FakeSystemState::Get()->set_device_policy(&block_3g_policy); in TEST_F()
320 FakeSystemState::Get()->set_device_policy(&device_policy); in TEST_F()
334 FakeSystemState::Get()->set_device_policy(nullptr); in TEST_F()
H A Domaha_request_action_unittest.cc381 FakeSystemState::CreateInstance(); in SetUp()
1692 FakeSystemState::Get()->set_prefs(&prefs); in TEST_F()
1921 FakeSystemState::Get()->set_prefs(&prefs); in PingTest()
1965 FakeSystemState::Get()->set_prefs(&prefs); in TEST_F()
1990 FakeSystemState::Get()->set_prefs(&prefs); in TEST_F()
2016 FakeSystemState::Get()->set_prefs(&prefs); in TEST_F()
2047 FakeSystemState::Get()->set_prefs(&prefs); in TEST_F()
2067 FakeSystemState::Get()->set_prefs(&prefs); in TEST_F()
2106 FakeSystemState::Get()->set_prefs(&prefs); in TEST_F()
2131 FakeSystemState::Get()->set_prefs(&prefs); in TEST_F()
[all …]
H A Dfake_system_state.h46 class FakeSystemState : public SystemState {
49 static std::unique_ptr<FakeSystemState> system_state; in CreateInstance()
50 system_state.reset(new FakeSystemState()); in CreateInstance()
54 static FakeSystemState* Get() { in Get()
55 return reinterpret_cast<FakeSystemState*>(g_pointer_); in Get()
262 FakeSystemState();
H A Dfake_system_state.cc23 FakeSystemState::FakeSystemState() in FakeSystemState() function in chromeos_update_engine::FakeSystemState
H A Dimage_properties_chromeos_unittest.cc43 FakeSystemState::CreateInstance(); in SetUp()
48 FakeSystemState::Get()->fake_hardware()->SetIsOfficialBuild(locked_down); in SetLockDown()
49 FakeSystemState::Get()->fake_hardware()->SetIsNormalBootMode(locked_down); in SetLockDown()
H A Domaha_request_params_unittest.cc47 FakeSystemState::CreateInstance(); in SetUp()
52 FakeSystemState::Get()->fake_hardware()->SetIsOfficialBuild(locked_down); in SetLockDown()
53 FakeSystemState::Get()->fake_hardware()->SetIsNormalBootMode(locked_down); in SetLockDown()
H A Domaha_request_builder_xml_unittest.cc64 FakeSystemState::CreateInstance(); in SetUp()
65 FakeSystemState::Get()->set_request_params(&params_); in SetUp()
392 auto* fake_prefs = FakeSystemState::Get()->fake_prefs(); in TEST_F()
H A Dmetrics_reporter_omaha_unittest.cc42 FakeSystemState::CreateInstance(); in SetUp()
43 fake_clock_ = FakeSystemState::Get()->fake_clock(); in SetUp()
117 FakeSystemState::Get()->set_request_params(&params); in TEST_F()
141 FakeSystemState::Get()->set_request_params(&params); in TEST_F()
H A Dexcluder_chromeos_unittest.cc32 void SetUp() override { FakeSystemState::CreateInstance(); } in SetUp()
H A Domaha_request_action_fuzzer.cc34 chromeos_update_engine::FakeSystemState::CreateInstance(); in LLVMFuzzerTestOneInput()
H A Dp2p_manager_unittest.cc81 FakeSystemState::CreateInstance(); in SetUp()
208 FakeSystemState::Get()->fake_clock()->SetWallclockTime(cutoff_time + in TEST_F()