Lines Matching refs:kBtAddr1

28 const std::string kBtAddr1 = "11:22:33:44:55:66";  variable
72 test_btif_config_cache.SetString(kBtAddr1, "Name", "Headset_1"); in TEST()
73 EXPECT_TRUE(test_btif_config_cache.HasKey(kBtAddr1, "Name")); in TEST()
75 test_btif_config_cache.SetInt(kBtAddr1, "Property_Int", 1); in TEST()
76 EXPECT_TRUE(test_btif_config_cache.HasKey(kBtAddr1, "Property_Int")); in TEST()
91 EXPECT_FALSE(test_btif_config_cache.HasSection(kBtAddr1)); in TEST()
171 test_btif_config_cache.SetString(kBtAddr1, "Name", "Headset_1"); in TEST()
172 EXPECT_TRUE(test_btif_config_cache.HasKey(kBtAddr1, "Name")); in TEST()
173 EXPECT_THAT(test_btif_config_cache.GetString(kBtAddr1, "Name"), in TEST()
176 test_btif_config_cache.SetInt(kBtAddr1, "Property_Int", 65536); in TEST()
177 EXPECT_TRUE(test_btif_config_cache.HasKey(kBtAddr1, "Property_Int")); in TEST()
178 EXPECT_THAT(test_btif_config_cache.GetInt(kBtAddr1, "Property_Int"), in TEST()
181 test_btif_config_cache.SetUint64(kBtAddr1, "Property_64", 4294967296); in TEST()
182 EXPECT_TRUE(test_btif_config_cache.HasKey(kBtAddr1, "Property_64")); in TEST()
183 EXPECT_THAT(test_btif_config_cache.GetUint64(kBtAddr1, "Property_64"), in TEST()
186 test_btif_config_cache.SetBool(kBtAddr1, "Property_Bool", true); in TEST()
187 EXPECT_TRUE(test_btif_config_cache.HasKey(kBtAddr1, "Property_Bool")); in TEST()
188 EXPECT_THAT(test_btif_config_cache.GetBool(kBtAddr1, "Property_Bool"), in TEST()
192 test_btif_config_cache.SetString(kBtAddr1, "Name", ""); in TEST()
193 EXPECT_TRUE(test_btif_config_cache.HasKey(kBtAddr1, "Name")); in TEST()
194 EXPECT_THAT(test_btif_config_cache.GetString(kBtAddr1, "Name"), in TEST()
198 test_btif_config_cache.SetString(kBtAddr1, "LinkKey", "1122334455667788"); in TEST()
199 EXPECT_TRUE(test_btif_config_cache.HasKey(kBtAddr1, "LinkKey")); in TEST()
200 EXPECT_FALSE(test_btif_config_cache.HasUnpairedSection(kBtAddr1)); in TEST()
201 EXPECT_TRUE(test_btif_config_cache.HasPersistentSection(kBtAddr1)); in TEST()
204 test_btif_config_cache.SetString(kBtAddr1, "Name", "Headset_1"); in TEST()
205 EXPECT_TRUE(test_btif_config_cache.HasKey(kBtAddr1, "Name")); in TEST()
206 EXPECT_THAT(test_btif_config_cache.GetString(kBtAddr1, "Name"), in TEST()
209 test_btif_config_cache.SetInt(kBtAddr1, "Property_Int", 65536); in TEST()
210 EXPECT_TRUE(test_btif_config_cache.HasKey(kBtAddr1, "Property_Int")); in TEST()
211 EXPECT_THAT(test_btif_config_cache.GetInt(kBtAddr1, "Property_Int"), in TEST()
214 test_btif_config_cache.SetUint64(kBtAddr1, "Property_64", 4294967296); in TEST()
215 EXPECT_TRUE(test_btif_config_cache.HasKey(kBtAddr1, "Property_64")); in TEST()
216 EXPECT_THAT(test_btif_config_cache.GetUint64(kBtAddr1, "Property_64"), in TEST()
219 test_btif_config_cache.SetBool(kBtAddr1, "Property_Bool", true); in TEST()
220 EXPECT_TRUE(test_btif_config_cache.HasKey(kBtAddr1, "Property_Bool")); in TEST()
221 EXPECT_THAT(test_btif_config_cache.GetBool(kBtAddr1, "Property_Bool"), in TEST()
228 EXPECT_DEATH({ test_btif_config_cache.SetString(kBtAddr1, "", "Headset_1"); }, in TEST()
230 EXPECT_FALSE(test_btif_config_cache.HasKey(kBtAddr1, "")); in TEST()
232 test_btif_config_cache.SetString(kBtAddr1, "Name", ""); in TEST()
233 EXPECT_TRUE(test_btif_config_cache.HasKey(kBtAddr1, "Name")); in TEST()
234 EXPECT_THAT(test_btif_config_cache.GetString(kBtAddr1, "Name"), in TEST()
246 test_btif_config_cache.SetString(kBtAddr1, "Name", "Headset_1"); in TEST()
247 EXPECT_THAT(test_btif_config_cache.GetString(kBtAddr1, "Name"), in TEST()
249 EXPECT_TRUE(test_btif_config_cache.HasUnpairedSection(kBtAddr1)); in TEST()
252 test_btif_config_cache.SetString(kBtAddr1, "Name", "Headset_1A"); in TEST()
253 EXPECT_THAT(test_btif_config_cache.GetString(kBtAddr1, "Name"), in TEST()
257 test_btif_config_cache.SetString(kBtAddr1, "Name", "Headset_2A"); in TEST()
258 EXPECT_THAT(test_btif_config_cache.GetString(kBtAddr1, "Name"), in TEST()
260 EXPECT_TRUE(test_btif_config_cache.HasUnpairedSection(kBtAddr1)); in TEST()
263 test_btif_config_cache.SetInt(kBtAddr1, "Property_Int", 65536); in TEST()
264 EXPECT_THAT(test_btif_config_cache.GetInt(kBtAddr1, "Property_Int"), in TEST()
268 test_btif_config_cache.SetInt(kBtAddr1, "Property_Int", 256); in TEST()
269 EXPECT_THAT(test_btif_config_cache.GetInt(kBtAddr1, "Property_Int"), in TEST()
272 test_btif_config_cache.SetUint64(kBtAddr1, "Property_64", 4294967296); in TEST()
273 EXPECT_THAT(test_btif_config_cache.GetUint64(kBtAddr1, "Property_64"), in TEST()
277 test_btif_config_cache.SetString(kBtAddr1, "LinkKey", "1122334455667788"); in TEST()
278 EXPECT_TRUE(test_btif_config_cache.HasKey(kBtAddr1, "LinkKey")); in TEST()
279 EXPECT_FALSE(test_btif_config_cache.HasUnpairedSection(kBtAddr1)); in TEST()
280 EXPECT_TRUE(test_btif_config_cache.HasPersistentSection(kBtAddr1)); in TEST()
283 test_btif_config_cache.SetString(kBtAddr1, "Name", "Headset_1A"); in TEST()
284 EXPECT_THAT(test_btif_config_cache.GetString(kBtAddr1, "Name"), in TEST()
288 test_btif_config_cache.SetString(kBtAddr1, "Name", "Headset_2A"); in TEST()
289 EXPECT_THAT(test_btif_config_cache.GetString(kBtAddr1, "Name"), in TEST()
292 test_btif_config_cache.SetInt(kBtAddr1, "Property_Int", 64); in TEST()
293 EXPECT_THAT(test_btif_config_cache.GetInt(kBtAddr1, "Property_Int"), in TEST()
296 test_btif_config_cache.SetUint64(kBtAddr1, "Property_64", 65537); in TEST()
297 EXPECT_THAT(test_btif_config_cache.GetUint64(kBtAddr1, "Property_64"), in TEST()
300 EXPECT_TRUE(test_btif_config_cache.HasPersistentSection(kBtAddr1)); in TEST()
314 test_btif_config_cache.SetString(kBtAddr1, "Name", "Headset_1"); in TEST()
315 EXPECT_TRUE(test_btif_config_cache.HasUnpairedSection(kBtAddr1)); in TEST()
316 EXPECT_FALSE(test_btif_config_cache.HasPersistentSection(kBtAddr1)); in TEST()
321 test_btif_config_cache.SetString(kBtAddr1, "LinkKey", "1122334455667788"); in TEST()
322 EXPECT_TRUE(test_btif_config_cache.HasKey(kBtAddr1, "LinkKey")); in TEST()
323 EXPECT_FALSE(test_btif_config_cache.HasUnpairedSection(kBtAddr1)); in TEST()
324 EXPECT_TRUE(test_btif_config_cache.HasPersistentSection(kBtAddr1)); in TEST()
328 test_btif_config_cache.RemoveKey(kBtAddr1, "LinkKey"); in TEST()
329 EXPECT_FALSE(test_btif_config_cache.HasKey(kBtAddr1, "LinkKey")); in TEST()
330 EXPECT_TRUE(test_btif_config_cache.HasUnpairedSection(kBtAddr1)); in TEST()
331 EXPECT_FALSE(test_btif_config_cache.HasPersistentSection(kBtAddr1)); in TEST()
346 test_btif_config_cache.SetString(kBtAddr1, "name", "kBtAddr1"); in TEST()
347 test_btif_config_cache.SetString(kBtAddr1, "LinkKey", "1122334455667788"); in TEST()
348 EXPECT_TRUE(test_btif_config_cache.HasKey(kBtAddr1, "LinkKey")); in TEST()
368 EXPECT_TRUE(test_btif_config_cache.HasPersistentSection(kBtAddr1)); in TEST()
369 EXPECT_THAT(test_btif_config_cache.GetString(kBtAddr1, "LinkKey"), in TEST()
386 test_btif_config_cache.RemoveKey(kBtAddr1, "LinkKey"); in TEST()
387 EXPECT_FALSE(test_btif_config_cache.HasKey(kBtAddr1, "LinkKey")); in TEST()
389 EXPECT_FALSE(test_btif_config_cache.HasPersistentSection(kBtAddr1)); in TEST()
390 EXPECT_TRUE(test_btif_config_cache.HasUnpairedSection(kBtAddr1)); in TEST()
391 EXPECT_THAT(test_btif_config_cache.GetString(kBtAddr1, "name"), in TEST()
429 EXPECT_FALSE(test_btif_config_cache.HasUnpairedSection(kBtAddr1)); in TEST()
442 test_btif_config_cache.SetString(kBtAddr1, "Name", "Headset_1"); in TEST()
443 test_btif_config_cache.SetString(kBtAddr1, "Restricted", "1"); in TEST()
444 test_btif_config_cache.SetString(kBtAddr1, "LinkKey", "1122334455667788"); in TEST()
456 EXPECT_FALSE(test_btif_config_cache.HasSection(kBtAddr1)); in TEST()
466 test_btif_config_cache.SetString(kBtAddr1, "LinkKey", "1122334455667788"); in TEST()
467 EXPECT_TRUE(test_btif_config_cache.HasKey(kBtAddr1, "LinkKey")); in TEST()
468 EXPECT_TRUE(test_btif_config_cache.HasPersistentSection(kBtAddr1)); in TEST()
469 EXPECT_THAT(test_btif_config_cache.GetString(kBtAddr1, "LinkKey"), in TEST()