Searched refs:GetVariantValueOrDefault (Results 1 – 2 of 2) sorted by relevance
/external/libbrillo/brillo/ |
D | variant_dictionary_test.cc | 12 using brillo::GetVariantValueOrDefault; 14 TEST(VariantDictionary, GetVariantValueOrDefault) { in TEST() argument 20 EXPECT_EQ(1, GetVariantValueOrDefault<int>(dictionary, "a")); in TEST() 21 EXPECT_EQ("string", GetVariantValueOrDefault<const char*>(dictionary, "b")); in TEST() 24 EXPECT_EQ("", GetVariantValueOrDefault<std::string>(dictionary, "missing")); in TEST() 25 EXPECT_EQ(0, GetVariantValueOrDefault<int>(dictionary, "missing")); in TEST()
|
D | variant_dictionary.h | 22 const T GetVariantValueOrDefault(const VariantDictionary& dictionary, in GetVariantValueOrDefault() function
|