Lines Matching refs:uidRanges

570     std::vector<UidRangeParcel> uidRanges = {makeUidRangeParcel(BASE_UID + 8005, BASE_UID + 8012),  in TEST_F()  local
575 EXPECT_TRUE(mNetd->networkAddUidRanges(TEST_NETID1, uidRanges).isOk()); in TEST_F()
577 EXPECT_TRUE(ipRuleExistsForRange(RULE_PRIORITY_SECURE_VPN, uidRanges[0], suffix)); in TEST_F()
579 EXPECT_TRUE(mNetd->networkRemoveUidRanges(TEST_NETID1, uidRanges).isOk()); in TEST_F()
580 EXPECT_FALSE(ipRuleExistsForRange(RULE_PRIORITY_SECURE_VPN, uidRanges[0], suffix)); in TEST_F()
582 EXPECT_TRUE(mNetd->networkAddUidRanges(TEST_NETID1, uidRanges).isOk()); in TEST_F()
583 EXPECT_TRUE(ipRuleExistsForRange(RULE_PRIORITY_SECURE_VPN, uidRanges[1], suffix)); in TEST_F()
585 EXPECT_FALSE(ipRuleExistsForRange(RULE_PRIORITY_SECURE_VPN, uidRanges[1], suffix)); in TEST_F()
593 std::vector<UidRangeParcel> uidRanges = {makeUidRangeParcel(BASE_UID + 150, BASE_UID + 224), in TEST_F() local
596 for (auto const& range : uidRanges) { in TEST_F()
600 ASSERT_TRUE(mNetd->networkRejectNonSecureVpn(true, uidRanges).isOk()); in TEST_F()
601 for (auto const& range : uidRanges) { in TEST_F()
606 ASSERT_TRUE(mNetd->networkRejectNonSecureVpn(false, uidRanges).isOk()); in TEST_F()
607 for (auto const& range : uidRanges) { in TEST_F()
612 binder::Status status = mNetd->networkRejectNonSecureVpn(false, uidRanges); in TEST_F()
673 std::vector<UidRangeParcel> uidRanges = { in TEST_F() local
683 EXPECT_TRUE(mNetd->socketDestroy(uidRanges, skipUids).isOk()); in TEST_F()
687 uidRanges = { in TEST_F()
696 EXPECT_TRUE(mNetd->socketDestroy(uidRanges, skipUids).isOk()); in TEST_F()
701 EXPECT_TRUE(mNetd->socketDestroy(uidRanges, skipUids).isOk()); in TEST_F()