/aosp12/system/update_engine/update_manager/ |
H A D | real_updater_provider_unittest.cc | 34 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 D | real_time_provider_unittest.cc | 29 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 D | policy_test_utils.cc | 29 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 D | real_system_provider_unittest.cc | 32 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 D | update_time_restrictions_monitor_unittest.cc | 34 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 D | staging_utils_unittest.cc | 30 using chromeos_update_engine::FakeSystemState; 47 FakeSystemState::CreateInstance(); in SetUp() 59 EXPECT_TRUE(FakeSystemState::Get()->fake_prefs()->SetInt64( in SetPersistedStagingVal()
|
H A D | real_shill_provider_unittest.cc | 40 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 D | update_manager_unittest.cc | 51 using chromeos_update_engine::FakeSystemState; 84 FakeSystemState::CreateInstance(); in SetUp() 293 auto* fake_clock = FakeSystemState::Get()->fake_clock(); in TEST_F()
|
H A D | evaluation_context_unittest.cc | 43 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 D | omaha_response_handler_action_unittest.cc | 83 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(¶ms); in TEST_F() 507 FakeSystemState::Get()->set_request_params(¶ms); in TEST_F() 535 FakeSystemState::Get()->set_request_params(¶ms); in TEST_F() 563 FakeSystemState::Get()->set_request_params(¶ms); in TEST_F() 591 FakeSystemState::Get()->set_request_params(¶ms); in TEST_F() [all …]
|
H A D | update_attempter_unittest.cc | 225 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 D | payload_state_unittest.cc | 109 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 D | common_service_unittest.cc | 44 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 D | download_action_chromeos_unittest.cc | 132 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 D | connection_manager_unittest.cc | 55 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 D | omaha_request_action_unittest.cc | 381 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 D | fake_system_state.h | 46 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 D | fake_system_state.cc | 23 FakeSystemState::FakeSystemState() in FakeSystemState() function in chromeos_update_engine::FakeSystemState
|
H A D | image_properties_chromeos_unittest.cc | 43 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 D | omaha_request_params_unittest.cc | 47 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 D | omaha_request_builder_xml_unittest.cc | 64 FakeSystemState::CreateInstance(); in SetUp() 65 FakeSystemState::Get()->set_request_params(¶ms_); in SetUp() 392 auto* fake_prefs = FakeSystemState::Get()->fake_prefs(); in TEST_F()
|
H A D | metrics_reporter_omaha_unittest.cc | 42 FakeSystemState::CreateInstance(); in SetUp() 43 fake_clock_ = FakeSystemState::Get()->fake_clock(); in SetUp() 117 FakeSystemState::Get()->set_request_params(¶ms); in TEST_F() 141 FakeSystemState::Get()->set_request_params(¶ms); in TEST_F()
|
H A D | excluder_chromeos_unittest.cc | 32 void SetUp() override { FakeSystemState::CreateInstance(); } in SetUp()
|
H A D | omaha_request_action_fuzzer.cc | 34 chromeos_update_engine::FakeSystemState::CreateInstance(); in LLVMFuzzerTestOneInput()
|
H A D | p2p_manager_unittest.cc | 81 FakeSystemState::CreateInstance(); in SetUp() 208 FakeSystemState::Get()->fake_clock()->SetWallclockTime(cutoff_time + in TEST_F()
|