Home
last modified time | relevance | path

Searched refs:fake_prefs (Results 1 – 9 of 9) sorted by relevance

/system/update_engine/update_manager/
Dreal_updater_provider_unittest.cc363 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() local
378 fake_prefs->SetBoolean(chromeos_update_engine::kPrefsP2PEnabled, false); in TEST_F()
380 fake_prefs->SetBoolean(chromeos_update_engine::kPrefsP2PEnabled, true); in TEST_F()
382 fake_prefs->Delete(chromeos_update_engine::kPrefsP2PEnabled); in TEST_F()
391 FakeSystemState::Get()->fake_prefs()->SetBoolean( in TEST_F()
452 auto* fake_prefs = FakeSystemState::Get()->fake_prefs(); in TEST_F() local
453 fake_prefs->SetInt64( in TEST_F()
460 fake_prefs->SetInt64( in TEST_F()
Dstaging_utils_unittest.cc59 EXPECT_TRUE(FakeSystemState::Get()->fake_prefs()->SetInt64( in SetPersistedStagingVal()
/system/update_engine/cros/
Domaha_request_builder_xml_unittest.cc392 auto* fake_prefs = FakeSystemState::Get()->fake_prefs(); in TEST_F() local
399 EXPECT_TRUE(fake_prefs->SetString(dlc_cohort_key, kDlcCohortVal)); in TEST_F()
403 EXPECT_TRUE(fake_prefs->SetString(dlc_cohort_name_key, kDlcCohortNameVal)); in TEST_F()
407 EXPECT_TRUE(fake_prefs->SetString(dlc_cohort_hint_key, kDlcCohortHintVal)); in TEST_F()
Dupdate_attempter_unittest.cc232 prefs_ = FakeSystemState::Get()->fake_prefs(); in SetUp()
616 FakeSystemState::Get()->fake_prefs()->SetString(kPrefsUpdateCompletedOnBootId, in TEST_F()
1100 auto* fake_prefs = FakeSystemState::Get()->fake_prefs(); in DecrementUpdateCheckCountTestStart() local
1103 EXPECT_TRUE(fake_prefs->SetInt64(kPrefsUpdateCheckCount, initial_value)); in DecrementUpdateCheckCountTestStart()
1122 EXPECT_TRUE(fake_prefs->Exists(kPrefsUpdateCheckCount)); in DecrementUpdateCheckCountTestStart()
1125 EXPECT_TRUE(fake_prefs->GetInt64(kPrefsUpdateCheckCount, &new_value)); in DecrementUpdateCheckCountTestStart()
1133 EXPECT_TRUE(fake_prefs->SetInt64(kPrefsUpdateCheckCount, initial_value)); in DecrementUpdateCheckCountTestStart()
1135 EXPECT_TRUE(fake_prefs->Exists(kPrefsUpdateCheckCount)); in DecrementUpdateCheckCountTestStart()
1136 EXPECT_TRUE(fake_prefs->GetInt64(kPrefsUpdateCheckCount, &new_value)); in DecrementUpdateCheckCountTestStart()
1155 auto* fake_prefs = FakeSystemState::Get()->fake_prefs(); in NoScatteringDoneDuringManualUpdateTestStart() local
[all …]
Dpayload_state_unittest.cc1122 auto* fake_prefs = FakeSystemState::Get()->fake_prefs(); in TEST_F() local
1124 EXPECT_TRUE(fake_prefs->Exists(kPrefsSystemUpdatedMarker)); in TEST_F()
1143 EXPECT_FALSE(fake_prefs->Exists(kPrefsSystemUpdatedMarker)); in TEST_F()
1185 auto* fake_prefs = FakeSystemState::Get()->fake_prefs(); in TEST_F() local
1186 fake_prefs->SetBoolean(kPrefsAttemptInProgress, true); in TEST_F()
1196 EXPECT_FALSE(fake_prefs->Exists(kPrefsAttemptInProgress)); in TEST_F()
1213 auto* fake_prefs = FakeSystemState::Get()->fake_prefs(); in TEST_F() local
1215 EXPECT_FALSE(fake_prefs->Exists(kPrefsAttemptInProgress)); in TEST_F()
1220 EXPECT_TRUE(fake_prefs->Exists(kPrefsAttemptInProgress)); in TEST_F()
1225 EXPECT_FALSE(fake_prefs->Exists(kPrefsAttemptInProgress)); in TEST_F()
Dfake_system_state.h210 inline FakePrefs* fake_prefs() { in fake_prefs() function
Domaha_request_action_unittest.cc401 fake_prefs_ = FakeSystemState::Get()->fake_prefs(); in SetUp()
/system/update_engine/
DBUILD.gn390 "common/fake_prefs.cc",
DAndroid.bp778 "common/fake_prefs.cc",