Lines Matching refs:dict
626 brillo::VariantDictionary dict; in TEST_F() local
627 KeyValueStore::ConvertToVariantDictionary(store, &dict); in TEST_F()
628 EXPECT_EQ(13, dict.size()); in TEST_F()
629 EXPECT_EQ(kStringValue, dict[kStringKey].Get<string>()); in TEST_F()
631 dict[kStringmapKey].Get<map<string, string>>(); in TEST_F()
633 EXPECT_EQ(kStringsValue, dict[kStringsKey].Get<vector<string>>()); in TEST_F()
634 EXPECT_EQ(kBoolValue, dict[kBoolKey].Get<bool>()); in TEST_F()
635 EXPECT_EQ(kInt32Value, dict[kInt32Key].Get<int32_t>()); in TEST_F()
636 EXPECT_EQ(kUint32Value, dict[kUint32Key].Get<uint32_t>()); in TEST_F()
638 dict[kByteArraysKey].Get<vector<vector<uint8_t>>>()); in TEST_F()
639 EXPECT_EQ(kInt16Value, dict[kInt16Key].Get<int16_t>()); in TEST_F()
641 dict[kRpcIdentifierKey].Get<dbus::ObjectPath>().value()); in TEST_F()
642 EXPECT_EQ(kUint16Value, dict[kUint16Key].Get<uint16_t>()); in TEST_F()
643 EXPECT_EQ(kUint8sValue, dict[kUint8sKey].Get<vector<uint8_t>>()); in TEST_F()
644 EXPECT_EQ(kUint32sValue, dict[kUint32sKey].Get<vector<uint32_t>>()); in TEST_F()
646 dict[kKeyValueStoreKey].Get<brillo::VariantDictionary>(); in TEST_F()
679 brillo::VariantDictionary dict; in TEST_F() local
680 dict[kStringKey] = brillo::Any(string(kStringValue)); in TEST_F()
681 dict[kStringmapKey] = brillo::Any(kStringmapValue); in TEST_F()
682 dict[kStringsKey] = brillo::Any(kStringsValue); in TEST_F()
683 dict[kBoolKey] = brillo::Any(kBoolValue); in TEST_F()
684 dict[kInt32Key] = brillo::Any(kInt32Value); in TEST_F()
685 dict[kUint32Key] = brillo::Any(kUint32Value); in TEST_F()
686 dict[kByteArraysKey] = brillo::Any(kByteArraysValue); in TEST_F()
687 dict[kInt16Key] = brillo::Any(kInt16Value); in TEST_F()
688 dict[kRpcIdentifierKey] = in TEST_F()
690 dict[kUint16Key] = brillo::Any(kUint16Value); in TEST_F()
691 dict[kUint8sKey] = brillo::Any(kUint8sValue); in TEST_F()
692 dict[kUint32sKey] = brillo::Any(kUint32sValue); in TEST_F()
695 dict[kKeyValueStoreKey] = brillo::Any(nested_dict); in TEST_F()
698 KeyValueStore::ConvertFromVariantDictionary(dict, &store); in TEST_F()