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

/external/libbrillo/brillo/
H A Dvariant_dictionary_unittest.cc12 using brillo::GetVariantValueOrDefault;
14 TEST(VariantDictionary, GetVariantValueOrDefault) {
20 EXPECT_EQ(1, GetVariantValueOrDefault<int>(dictionary, "a"));
21 EXPECT_EQ("string", GetVariantValueOrDefault<const char*>(dictionary, "b"));
24 EXPECT_EQ("", GetVariantValueOrDefault<std::string>(dictionary, "missing"));
25 EXPECT_EQ(0, GetVariantValueOrDefault<int>(dictionary, "missing"));
H A Dvariant_dictionary.h18 // GetVariantValueOrDefault tries to retrieve the named key from the dictionary
22 const T GetVariantValueOrDefault(const VariantDictionary& dictionary, function in namespace:brillo

Completed in 202 milliseconds