Lines Matching refs:uids
197 void checkEachUidValue(const std::vector<int32_t>& uids, UidOwnerMatchType match) { in checkEachUidValue() argument
198 for (uint32_t uid : uids) { in checkEachUidValue()
203 std::set<uint32_t> uidSet(uids.begin(), uids.end()); in checkEachUidValue()
212 void checkUidMapReplace(const std::string& name, const std::vector<int32_t>& uids, in checkUidMapReplace() argument
215 EXPECT_EQ(0, mTc.replaceUidOwnerMap(name, isAllowlist, uids)); in checkUidMapReplace()
216 checkEachUidValue(uids, match); in checkUidMapReplace()
219 EXPECT_EQ(0, mTc.replaceUidOwnerMap(name, isAllowlist, uids)); in checkUidMapReplace()
220 checkEachUidValue(uids, match); in checkUidMapReplace()
603 std::vector<int32_t> uids = {TEST_UID, TEST_UID2, TEST_UID3}; in TEST_F() local
604 checkUidMapReplace("fw_dozable", uids, DOZABLE_MATCH); in TEST_F()
605 checkUidMapReplace("fw_standby", uids, STANDBY_MATCH); in TEST_F()
606 checkUidMapReplace("fw_powersave", uids, POWERSAVE_MATCH); in TEST_F()
607 checkUidMapReplace("fw_restricted", uids, RESTRICTED_MATCH); in TEST_F()
608 ASSERT_EQ(-EINVAL, mTc.replaceUidOwnerMap("unknow", true, uids)); in TEST_F()
612 std::vector<int32_t> uids = {TEST_UID, TEST_UID2, TEST_UID3}; in TEST_F() local
613 checkUidMapReplace("fw_dozable", uids, DOZABLE_MATCH); in TEST_F()