Lines Matching refs:appStrUids
222 void expectUidOwnerMapValues(const std::vector<std::string>& appStrUids, uint8_t expectedRule, in expectUidOwnerMapValues() argument
224 for (const std::string& strUid : appStrUids) { in expectUidOwnerMapValues()
663 std::vector<std::string> appStrUids = {"1000", "1001", "10012"}; in TEST_F() local
664 ASSERT_TRUE(isOk(mTc.updateUidOwnerMap(appStrUids, BandwidthController::IptJumpReject, in TEST_F()
666 expectUidOwnerMapValues(appStrUids, PENALTY_BOX_MATCH, 0); in TEST_F()
667 ASSERT_TRUE(isOk(mTc.updateUidOwnerMap(appStrUids, BandwidthController::IptJumpReject, in TEST_F()
675 std::vector<std::string> appStrUids = {"1000", "1001", "10012"}; in TEST_F() local
676 ASSERT_TRUE(isOk(mTc.updateUidOwnerMap(appStrUids, BandwidthController::IptJumpReturn, in TEST_F()
678 expectUidOwnerMapValues(appStrUids, HAPPY_BOX_MATCH, 0); in TEST_F()
679 ASSERT_TRUE(isOk(mTc.updateUidOwnerMap(appStrUids, BandwidthController::IptJumpReturn, in TEST_F()
687 std::vector<std::string> appStrUids = {"1000", "1001", "10012"}; in TEST_F() local
689 ASSERT_TRUE(isOk(mTc.updateUidOwnerMap(appStrUids, BandwidthController::IptJumpReject, in TEST_F()
691 expectUidOwnerMapValues(appStrUids, PENALTY_BOX_MATCH, 0); in TEST_F()
695 ASSERT_TRUE(isOk(mTc.updateUidOwnerMap(appStrUids, BandwidthController::IptJumpReturn, in TEST_F()
697 expectUidOwnerMapValues(appStrUids, HAPPY_BOX_MATCH | PENALTY_BOX_MATCH, 0); in TEST_F()
700 ASSERT_TRUE(isOk(mTc.updateUidOwnerMap(appStrUids, BandwidthController::IptJumpReturn, in TEST_F()
702 expectUidOwnerMapValues(appStrUids, PENALTY_BOX_MATCH, 0); in TEST_F()
705 ASSERT_TRUE(isOk(mTc.updateUidOwnerMap(appStrUids, BandwidthController::IptJumpReject, in TEST_F()
713 std::vector<std::string> appStrUids = {"1000", "1001", "10012"}; in TEST_F() local
715 ASSERT_FALSE(isOk(mTc.updateUidOwnerMap(appStrUids, BandwidthController::IptJumpReturn, in TEST_F()
720 ASSERT_TRUE(isOk(mTc.updateUidOwnerMap(appStrUids, BandwidthController::IptJumpReturn, in TEST_F()
722 expectUidOwnerMapValues(appStrUids, HAPPY_BOX_MATCH, 0); in TEST_F()
728 ASSERT_TRUE(isOk(mTc.updateUidOwnerMap(appStrUids, BandwidthController::IptJumpReject, in TEST_F()
730 expectUidOwnerMapValues(appStrUids, HAPPY_BOX_MATCH, 0); in TEST_F()