Home
last modified time | relevance | path

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

12

/system/update_engine/common/
Dprefs_unittest.cc97 TEST_F(PrefsTest, SetString) { in TEST_F() argument
99 EXPECT_TRUE(prefs_.SetString(kKey, kValue)); in TEST_F()
107 EXPECT_FALSE(prefs_.SetString(kKeyWithDots, "some value")); in TEST_F()
115 EXPECT_TRUE(prefs_.SetString(kKey, kValue)); in TEST_F()
123 EXPECT_FALSE(prefs_.SetString(kKey, "test value")); in TEST_F()
128 EXPECT_FALSE(prefs_.SetString(kKey, "test value")); in TEST_F()
291 prefs_.SetString(kKey, "value"); in TEST_F()
309 prefs_.SetString(kKey, "value"); in TEST_F()
321 EXPECT_TRUE(prefs_.SetString(kKey, "value")); in TEST_F()
323 EXPECT_TRUE(prefs_.SetString(kKey, "other value")); in TEST_F()
[all …]
Dprefs.cc36 bool PrefsBase::SetString(const string& key, const string& value) { in SetString() function in chromeos_update_engine::PrefsBase
57 return SetString(key, base::Int64ToString(value)); in SetInt64()
77 return SetString(key, value ? "true" : "false"); in SetBoolean()
Dmock_prefs.h33 MOCK_METHOD2(SetString, bool(const std::string& key,
Dprefs_interface.h54 virtual bool SetString(const std::string& key, const std::string& value) = 0;
Dfake_prefs.h43 bool SetString(const std::string& key, const std::string& value) override;
Dprefs.h64 bool SetString(const std::string& key, const std::string& value) override;
Dfake_prefs.cc68 bool FakePrefs::SetString(const string& key, const string& value) { in SetString() function in chromeos_update_engine::FakePrefs
/system/update_engine/
Dweave_service.cc102 state.SetString("_updater.currentChannel", current_channel); in UpdateWeaveState()
103 state.SetString("_updater.trackingChannel", tracking_channel); in UpdateWeaveState()
104 state.SetString("_updater.status", UpdateStatusToWeaveStatus(update_status)); in UpdateWeaveState()
Dcertificate_checker_unittest.cc86 EXPECT_CALL(prefs_, SetString(cert_key_, digest_hex_)).WillOnce(Return(true)); in TEST_F()
104 EXPECT_CALL(prefs_, SetString(_, _)).Times(0); in TEST_F()
125 EXPECT_CALL(prefs_, SetString(cert_key_, digest_hex_)).WillOnce(Return(true)); in TEST_F()
Dcertificate_checker.cc170 if (!prefs_->SetString(storage_key, digest_string)) { in CheckCertificateChange()
181 if (!prefs_->SetString(storage_key, digest_string)) { in CheckCertificateChange()
Domaha_response_handler_action.cc103 LOG_IF(WARNING, !system_state_->prefs()->SetString( in PerformAction()
120 system_state_->prefs()->SetString(current_channel_key, in PerformAction()
Domaha_response_handler_action_unittest.cc107 SetString(kPrefsUpdateCheckResponseHash, in.hash)) in DoTest()
112 EXPECT_CALL(*(fake_system_state_.mock_prefs()), SetString(key, testing::_)) in DoTest()
341 EXPECT_CALL(*fake_system_state_.mock_prefs(), SetString(_, "stable-channel")) in TEST_F()
376 EXPECT_CALL(*fake_system_state_.mock_prefs(), SetString(_, "canary-channel")) in TEST_F()
Dimage_properties_android.cc121 prefs->SetString(kPrefsImgPropChannelName, properties.target_channel) && in StoreMutableImageProperties()
Dimage_properties_chromeos.cc141 lsb_release.SetString(kLsbReleaseUpdateChannelKey, properties.target_channel); in StoreMutableImageProperties()
Dcommon_service_unittest.cc145 fake_prefs.SetString(kPrefsOmahaEolStatus, "security-only"); in TEST_F()
Dreal_system_state.cc113 prefs_->SetString(kPrefsBootId, boot_id); in Initialize()
Domaha_request_action_unittest.cc833 EXPECT_TRUE(fake_prefs_.SetString(kPrefsOmahaCohort, "old_value")); in TEST_F()
834 EXPECT_TRUE(fake_prefs_.SetString(kPrefsOmahaCohortHint, "old_hint")); in TEST_F()
835 EXPECT_TRUE(fake_prefs_.SetString(kPrefsOmahaCohortName, "old_name")); in TEST_F()
865 EXPECT_TRUE(fake_prefs_.SetString(kPrefsOmahaCohort, "old_value")); in TEST_F()
1153 fake_prefs_.SetString(kPrefsOmahaCohort, "evil\nstring"); in TEST_F()
1154 fake_prefs_.SetString(kPrefsOmahaCohortHint, "evil&string\\"); in TEST_F()
1155 fake_prefs_.SetString(kPrefsOmahaCohortName, in TEST_F()
1238 EXPECT_CALL(prefs, SetString(kPrefsPreviousVersion, _)).Times(0); in TEST_F()
1947 fake_prefs_.SetString(kPrefsPreviousVersion, ""); in TEST_F()
1972 fake_prefs_.SetString(kPrefsPreviousVersion, "1.2.3.4"); in TEST_F()
Dupdate_attempter_android.cc170 if (!prefs_->SetString(kPrefsUpdateCheckResponseHash, payload_id)) { in ApplyPayload()
530 prefs_->SetString(kPrefsUpdateCompletedOnBootId, boot_id); in WriteUpdateCompletedMarker()
Dcommon_service.cc197 if (!prefs->SetString(kPrefsOmahaCohortHint, in_cohort_hint)) { in SetCohortHint()
/system/update_engine/update_manager/
Devaluation_context.cc232 variables->SetString(it.first->GetName(), it.second.ToString()); in DumpContext()
237 value.SetString( in DumpContext()
240 value.SetString( in DumpContext()
/system/update_engine/payload_generator/
Dfake_filesystem.cc56 store->SetString("PAYLOAD_MINOR_VERSION", std::to_string(minor_version_)); in LoadSettings()
Dpayload_signer.cc536 properties->SetString(kPayloadPropertyFileSize, std::to_string(file_size)); in ExtractPayloadProperties()
537 properties->SetString(kPayloadPropertyMetadataSize, in ExtractPayloadProperties()
547 properties->SetString(kPayloadPropertyFileHash, in ExtractPayloadProperties()
549 properties->SetString(kPayloadPropertyMetadataHash, in ExtractPayloadProperties()
/system/media/brillo/audio/audioservice/test/
Daudio_volume_handler_test.cpp84 handler_.kv_store_->SetString(handler_.kCurrentIndexKey_ + ".1.2", "100"); in TEST_F()
111 kv_store.SetString("foo", "100"); in TEST_F()
/system/update_engine/payload_consumer/
Ddelta_performer.cc1347 LOG_IF(WARNING, !prefs_->SetString(kPrefsUpdateStateSignatureBlob, in ExtractSignatureMessage()
1727 prefs->SetString(kPrefsUpdateCheckResponseHash, ""); in ResetUpdateProgress()
1730 prefs->SetString(kPrefsUpdateStateSHA256Context, ""); in ResetUpdateProgress()
1731 prefs->SetString(kPrefsUpdateStateSignedSHA256Context, ""); in ResetUpdateProgress()
1732 prefs->SetString(kPrefsUpdateStateSignatureBlob, ""); in ResetUpdateProgress()
1746 prefs_->SetString(kPrefsUpdateStateSHA256Context, in CheckpointUpdateProgress()
1749 prefs_->SetString(kPrefsUpdateStateSignedSHA256Context, in CheckpointUpdateProgress()
/system/media/brillo/audio/audioservice/
Daudio_volume_handler.cpp136 kv_store_->SetString(key, string_utils::ToString(index)); in PersistVolumeConfiguration()

12