Searched refs:kKey (Results 1 - 6 of 6) sorted by relevance

/system/update_engine/common/
H A Dprefs_unittest.cc36 const char kKey[] = "test-key"; member in namespace:__anon1988
81 ASSERT_TRUE(SetValue(kKey, test_data));
83 EXPECT_TRUE(prefs_.GetString(kKey, &value));
99 EXPECT_TRUE(prefs_.SetString(kKey, kValue));
101 EXPECT_TRUE(base::ReadFileToString(prefs_dir_.Append(kKey), &value));
115 EXPECT_TRUE(prefs_.SetString(kKey, kValue));
117 EXPECT_TRUE(base::ReadFileToString(subdir.Append(kKey), &value));
123 EXPECT_FALSE(prefs_.SetString(kKey, "test value"));
127 base::CreateDirectory(prefs_dir_.Append(kKey));
128 EXPECT_FALSE(prefs_.SetString(kKey, "tes
210 const char kKey[] = "test-key"; local
218 const char kKey[] = "test-key"; local
225 const char kKey[] = "test-key"; local
237 const char kKey[] = "test-bool"; local
245 const char kKey[] = "test-bool"; local
253 const char kKey[] = "s p a c e s"; local
[all...]
/system/connectivity/shill/
H A Dkey_value_store_unittest.cc37 const string kKey("foo");
39 EXPECT_FALSE(store_.Contains(kKey));
40 store_.Set(kKey, brillo::Any(kValue));
41 EXPECT_TRUE(store_.Contains(kKey));
42 EXPECT_EQ(kValue, store_.Get(kKey).Get<string>());
43 store_.Remove(kKey);
44 EXPECT_FALSE(store_.Contains(kKey));
48 const string kKey("foo");
51 EXPECT_FALSE(store_.ContainsBool(kKey));
52 EXPECT_EQ(kDefaultValue, store_.LookupBool(kKey, kDefaultValu
[all...]
H A Dkey_file_store_unittest.cc327 static const char kKey[] = "foo"; local
331 kGroup, kKey, kValue));
334 EXPECT_TRUE(store_->GetString(kGroup, kKey, &value));
336 EXPECT_FALSE(store_->GetString("something-else", kKey, &value));
338 EXPECT_TRUE(store_->GetString(kGroup, kKey, nullptr));
493 static const char kKey[] = "test-int"; local
496 ASSERT_TRUE(store_->SetUint64(kGroup, kKey, kValue));
500 kGroup, kKey,
623 static const char kKey[] = "secret"; local
626 kGroup, kKey, kROT47Tex
639 static const char kKey[] = "test-string"; local
[all...]
H A Dproperty_accessor_unittest.cc595 const string kKey = "entry_key"; local
602 &StringMapWrapper::Set, kKey);
603 wrapper.value_[kKey] = kValue;
613 &StringMapWrapper::Set, kKey);
617 EXPECT_EQ(kValue, wrapper.value_[kKey]);
629 &StringMapWrapper::Set, kKey);
630 wrapper.value_[kKey] = kValue;
634 EXPECT_FALSE(ContainsKey(wrapper.value_, kKey));
H A Dproperty_store_unittest.cc317 const char kKey[] = "key"; local
321 kKey,
329 EXPECT_TRUE(store.SetAnyProperty(kKey, kKeyValueStoreV, &error));
H A Dservice_unittest.cc621 static const char kKey[] = "test-key"; local
623 EXPECT_CALL(storage, SetString(storage_id_, kKey, kData))
625 service_->SaveString(&storage, storage_id_, kKey, kData, false, true);
630 static const char kKey[] = "test-key"; local
632 EXPECT_CALL(storage, SetCryptedString(storage_id_, kKey, kData))
634 service_->SaveString(&storage, storage_id_, kKey, kData, true, true);
639 static const char kKey[] = "test-key"; local
640 EXPECT_CALL(storage, DeleteKey(storage_id_, kKey))
642 service_->SaveString(&storage, storage_id_, kKey, "data", false, false);
647 static const char kKey[] local
[all...]

Completed in 186 milliseconds