Lines Matching refs:TEST_UID1

146 static const int TEST_UID1 = 99999;  variable
2126 binder::Status status = mNetd->networkSetProtectAllow(TEST_UID1); in TEST_F()
2129 status = mNetd->networkCanProtect(TEST_UID1, &ret); in TEST_F()
2132 status = mNetd->networkSetProtectDeny(TEST_UID1); in TEST_F()
2137 EXPECT_TRUE(mNetd->networkClearPermissionForUser({TEST_UID1}).isOk()); in TEST_F()
2139 status = mNetd->networkCanProtect(TEST_UID1, &ret); in TEST_F()
3011 std::vector<int32_t> appUids = {TEST_UID1, TEST_UID2}; in TEST_F()
3485 createVpnNetworkWithUid(true /* secure */, TEST_UID1); in TEST_F()
3488 expectVpnFallthroughWorks(mNetd.get(), false /* bypassable */, TEST_UID1, sTun, sTun2); in TEST_F()
3492 createVpnNetworkWithUid(false /* secure */, TEST_UID1); in TEST_F()
3495 expectVpnFallthroughWorks(mNetd.get(), true /* bypassable */, TEST_UID1, sTun, sTun2); in TEST_F()
4189 expectPacketSentOnNetId(TEST_UID1, SYSTEM_DEFAULT_NETID, systemDefaultFd, IMPLICITLY_SELECT); in TEST_F()
4193 {makeUidRangeParcel(TEST_UID1, TEST_UID1)}) in TEST_F()
4196 expectPacketSentOnNetId(TEST_UID1, APP_DEFAULT_NETID, appDefaultFd, IMPLICITLY_SELECT); in TEST_F()
4200 {makeUidRangeParcel(TEST_UID1, TEST_UID1)}) in TEST_F()
4203 expectPacketSentOnNetId(TEST_UID1, SYSTEM_DEFAULT_NETID, systemDefaultFd, IMPLICITLY_SELECT); in TEST_F()
4207 {makeUidRangeParcel(TEST_UID1, TEST_UID1)}) in TEST_F()
4210 expectUnreachableError(TEST_UID1, INetd::UNREACHABLE_NET_ID, IMPLICITLY_SELECT); in TEST_F()
4214 {makeUidRangeParcel(TEST_UID1, TEST_UID1)}) in TEST_F()
4229 expectPacketSentOnNetId(TEST_UID1, SYSTEM_DEFAULT_NETID, systemDefaultFd, EXPLICITLY_SELECT); in TEST_F()
4234 {makeUidRangeParcel(TEST_UID1, TEST_UID1)}) in TEST_F()
4237 expectPacketSentOnNetId(TEST_UID1, SYSTEM_DEFAULT_NETID, systemDefaultFd, EXPLICITLY_SELECT); in TEST_F()
4241 {makeUidRangeParcel(TEST_UID1, TEST_UID1)}) in TEST_F()
4246 {makeUidRangeParcel(TEST_UID1, TEST_UID1)}) in TEST_F()
4249 expectPacketSentOnNetId(TEST_UID1, SYSTEM_DEFAULT_NETID, systemDefaultFd, EXPLICITLY_SELECT); in TEST_F()
4255 expectPacketSentOnNetId(TEST_UID1, APP_DEFAULT_NETID, appDefaultFd, EXPLICITLY_SELECT); in TEST_F()
4268 expectPacketSentOnNetId(TEST_UID1, NETID_UNSET, systemDefaultFd, UNCONNECTED_SOCKET); in TEST_F()
4273 {makeUidRangeParcel(TEST_UID1, TEST_UID1)}) in TEST_F()
4276 expectPacketSentOnNetId(TEST_UID1, NETID_UNSET, appDefaultFd, UNCONNECTED_SOCKET); in TEST_F()
4283 {makeUidRangeParcel(TEST_UID1, TEST_UID1)}) in TEST_F()
4286 expectPacketSentOnNetId(TEST_UID1, NETID_UNSET, appDefaultFd, UNCONNECTED_SOCKET); in TEST_F()
4291 {makeUidRangeParcel(TEST_UID1, TEST_UID1)}) in TEST_F()
4294 expectUnreachableError(TEST_UID1, NETID_UNSET, UNCONNECTED_SOCKET); in TEST_F()
4298 {makeUidRangeParcel(TEST_UID1, TEST_UID1)}) in TEST_F()
4306 ScopedUidChange scopedUidChange(TEST_UID1); in TEST_F()
4311 {makeUidRangeParcel(TEST_UID1, TEST_UID1)}) in TEST_F()
4315 ScopedUidChange scopedUidChange(TEST_UID1); in TEST_F()
4333 {makeUidRangeParcel(TEST_UID2, TEST_UID1)} /* app range */, in TEST_P()
4346 expectPacketSentOnNetId(TEST_UID1, APP_DEFAULT_NETID, appDefaultFd, IMPLICITLY_SELECT); in TEST_P()
4393 {makeUidRangeParcel(TEST_UID2, TEST_UID1)} /* app range */, in TEST_P()
4431 ScopedUidChange scopedUidChange(TEST_UID1); in TEST_P()
4437 expectPacketSentOnNetId(TEST_UID1, selectedNetId, expectedFd, EXPLICITLY_SELECT); in TEST_P()
4456 {makeUidRangeParcel(TEST_UID2, TEST_UID1)} /* app range */, in TEST_P()
4468 expectPacketSentOnNetId(TEST_UID1, NETID_UNSET, appDefaultFd, UNCONNECTED_SOCKET); in TEST_P()
4662 VPN_NETID, {makeUidRangeParcel(TEST_UID1, TEST_UID1)}, UidRanges::DEFAULT_SUB_PRIORITY); in TEST_F()
4668 {makeUidRangeParcel(TEST_UID1, TEST_UID1), makeUidRangeParcel(TEST_UID2, TEST_UID2)}, in TEST_F()
4692 expectPacketSentOnNetId(TEST_UID1, VPN_NETID, vpnFd, IMPLICITLY_SELECT); in TEST_F()