/system/update_engine/common/ |
D | prefs_unittest.cc | 36 const char kKey[] = "test-key"; variable 81 ASSERT_TRUE(SetValue(kKey, test_data)); in TEST_F() 83 EXPECT_TRUE(prefs_.GetString(kKey, &value)); in TEST_F() 99 EXPECT_TRUE(prefs_.SetString(kKey, kValue)); in TEST_F() 101 EXPECT_TRUE(base::ReadFileToString(prefs_dir_.Append(kKey), &value)); in TEST_F() 115 EXPECT_TRUE(prefs_.SetString(kKey, kValue)); in TEST_F() 117 EXPECT_TRUE(base::ReadFileToString(subdir.Append(kKey), &value)); in TEST_F() 123 EXPECT_FALSE(prefs_.SetString(kKey, "test value")); in TEST_F() 127 base::CreateDirectory(prefs_dir_.Append(kKey)); in TEST_F() 128 EXPECT_FALSE(prefs_.SetString(kKey, "test value")); in TEST_F() [all …]
|
/system/connectivity/shill/ |
D | key_value_store_unittest.cc | 37 const string kKey("foo"); in TEST_F() local 39 EXPECT_FALSE(store_.Contains(kKey)); in TEST_F() 40 store_.Set(kKey, brillo::Any(kValue)); in TEST_F() 41 EXPECT_TRUE(store_.Contains(kKey)); in TEST_F() 42 EXPECT_EQ(kValue, store_.Get(kKey).Get<string>()); in TEST_F() 43 store_.Remove(kKey); in TEST_F() 44 EXPECT_FALSE(store_.Contains(kKey)); in TEST_F() 48 const string kKey("foo"); in TEST_F() local 51 EXPECT_FALSE(store_.ContainsBool(kKey)); in TEST_F() 52 EXPECT_EQ(kDefaultValue, store_.LookupBool(kKey, kDefaultValue)); in TEST_F() [all …]
|
D | key_file_store_unittest.cc | 327 static const char kKey[] = "foo"; in TEST_F() local 331 kGroup, kKey, kValue)); in TEST_F() 334 EXPECT_TRUE(store_->GetString(kGroup, kKey, &value)); in TEST_F() 336 EXPECT_FALSE(store_->GetString("something-else", kKey, &value)); in TEST_F() 338 EXPECT_TRUE(store_->GetString(kGroup, kKey, nullptr)); in TEST_F() 493 static const char kKey[] = "test-int"; in TEST_F() local 496 ASSERT_TRUE(store_->SetUint64(kGroup, kKey, kValue)); in TEST_F() 500 kGroup, kKey, in TEST_F() 623 static const char kKey[] = "secret"; in TEST_F() local 626 kGroup, kKey, kROT47Text)); in TEST_F() [all …]
|
D | property_accessor_unittest.cc | 595 const string kKey = "entry_key"; in TEST() local 602 &StringMapWrapper::Set, kKey); in TEST() 603 wrapper.value_[kKey] = kValue; in TEST() 613 &StringMapWrapper::Set, kKey); in TEST() 617 EXPECT_EQ(kValue, wrapper.value_[kKey]); in TEST() 629 &StringMapWrapper::Set, kKey); in TEST() 630 wrapper.value_[kKey] = kValue; in TEST() 634 EXPECT_FALSE(ContainsKey(wrapper.value_, kKey)); in TEST()
|
D | service_unittest.cc | 621 static const char kKey[] = "test-key"; in TEST_F() local 623 EXPECT_CALL(storage, SetString(storage_id_, kKey, kData)) in TEST_F() 625 service_->SaveString(&storage, storage_id_, kKey, kData, false, true); in TEST_F() 630 static const char kKey[] = "test-key"; in TEST_F() local 632 EXPECT_CALL(storage, SetCryptedString(storage_id_, kKey, kData)) in TEST_F() 634 service_->SaveString(&storage, storage_id_, kKey, kData, true, true); in TEST_F() 639 static const char kKey[] = "test-key"; in TEST_F() local 640 EXPECT_CALL(storage, DeleteKey(storage_id_, kKey)) in TEST_F() 642 service_->SaveString(&storage, storage_id_, kKey, "data", false, false); in TEST_F() 647 static const char kKey[] = "test-key"; in TEST_F() local [all …]
|
D | property_store_unittest.cc | 317 const char kKey[] = "key"; in TEST_F() local 321 kKey, in TEST_F() 329 EXPECT_TRUE(store.SetAnyProperty(kKey, kKeyValueStoreV, &error)); in TEST_F()
|