Home
last modified time | relevance | path

Searched refs:GetVariantValueOrDefault (Results 1 – 2 of 2) sorted by relevance

/external/libbrillo/brillo/
Dvariant_dictionary_test.cc12 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()
Dvariant_dictionary.h22 const T GetVariantValueOrDefault(const VariantDictionary& dictionary, in GetVariantValueOrDefault() function