Lines Matching refs:AllocateId
85 ASSERT_EQ(manager.AllocateId(kthAddress(0)), MetricIdManager::kMinId); in TEST()
86 ASSERT_EQ(manager.AllocateId(kthAddress(1)), MetricIdManager::kMinId + 1); in TEST()
87 ASSERT_EQ(manager.AllocateId(kthAddress(0)), MetricIdManager::kMinId); in TEST()
88 ASSERT_EQ(manager.AllocateId(kthAddress(2)), MetricIdManager::kMinId + 2); in TEST()
107 ASSERT_EQ(manager.AllocateId(kthAddress(INT_MAX)), id); in TEST()
108 ASSERT_EQ(manager.AllocateId(kthAddress(INT_MAX - 1)), id + 1); in TEST()
109 ASSERT_EQ(manager.AllocateId(kthAddress(INT_MAX)), id); in TEST()
110 ASSERT_EQ(manager.AllocateId(kthAddress(INT_MAX - 2)), id + 2); in TEST()
129 manager.AllocateId(bluetooth::hci::Address({0, 0, 0, 0, 0, 0})), id); in TEST()
131 manager.AllocateId( in TEST()
134 manager.AllocateId(bluetooth::hci::Address({0, 0, 0, 0, 0, 0})), id); in TEST()
136 manager.AllocateId( in TEST()
161 ASSERT_EQ(manager.AllocateId(bluetooth::hci::Address({0, 0, 0, 0, 0, 0})), in TEST()
174 ASSERT_EQ(manager.AllocateId(bluetooth::hci::Address({0, 0, 0, 0, 0, 2})), in TEST()
176 ASSERT_EQ(manager.AllocateId(bluetooth::hci::Address({0, 0, 0, 0, 0, 3})), in TEST()
228 ASSERT_EQ(manager.AllocateId(kthAddress(key)), in TEST()
239 ASSERT_EQ(manager.AllocateId(kthAddress(key)), id++); in TEST()
251 ASSERT_EQ(manager.AllocateId(kthAddress(0)), id++); in TEST()
262 ASSERT_EQ(manager.AllocateId(kthAddress(key + 1)), id++); in TEST()
269 ASSERT_EQ(manager.AllocateId(kthAddress(1)), id++); in TEST()
274 ASSERT_EQ(manager.AllocateId(kthAddress(key + 2)), id++); in TEST()
275 ASSERT_EQ(manager.AllocateId(kthAddress(key + 3)), id++); in TEST()
303 ASSERT_EQ(manager.AllocateId(kthAddress(key + 2)), id++); in TEST()
304 ASSERT_EQ(manager.AllocateId(kthAddress(key + 4)), id++); in TEST()
305 ASSERT_EQ(manager.AllocateId(kthAddress(key + 5)), id++); in TEST()
370 ASSERT_EQ(manager.AllocateId(kthAddress(key)), in TEST()
380 ASSERT_EQ(manager.AllocateId(addr), id); in TEST()
385 ASSERT_EQ(manager.AllocateId(addr), id); in TEST()
392 ASSERT_EQ(manager.AllocateId(addr), id++); in TEST()
403 ASSERT_EQ(manager.AllocateId(kthAddress(key)), id++); in TEST()
435 manager.AllocateId(fake_mac_address); in TEST()
469 ASSERT_EQ(manager.AllocateId(kthAddress(max_id - 2)), max_id - 2); in TEST()
470 ASSERT_EQ(manager.AllocateId(kthAddress(max_id - 1)), max_id - 1); in TEST()
471 ASSERT_EQ(manager.AllocateId(kthAddress(max_id)), max_id); in TEST()
472 ASSERT_EQ(manager.AllocateId(kthAddress(min_id + 2)), min_id + 2); in TEST()
473 ASSERT_EQ(manager.AllocateId(kthAddress(min_id + 5)), min_id + 5); in TEST()
494 ASSERT_EQ(manager.AllocateId(kthAddress(min_id)), min_id); in TEST()
495 ASSERT_EQ(manager.AllocateId(kthAddress(min_id + 1)), min_id + 1); in TEST()