Searched refs:TEST_UID2 (Results 1 – 3 of 3) sorted by relevance
/system/netd/server/ |
D | TrafficControllerTest.cpp | 53 constexpr uid_t TEST_UID2 = 54321; variable 173 uid = TEST_UID2; in checkUidOwnerRuleForChain() 365 ASSERT_EQ(-EPERM, mTc.tagSocket(sock, TEST_TAG, TEST_UID, TEST_UID2)); in TEST_F() 371 std::vector<uid_t> callingUid = {TEST_UID2}; in TEST_F() 376 int v6socket = setUpSocketAndTag(AF_INET6, &sockCookie, TEST_TAG, TEST_UID, TEST_UID2); in TEST_F() 418 uid_t callingUid = TEST_UID2; in TEST_F() 431 ASSERT_EQ(-EPERM, mTc.setCounterSet(TEST_COUNTERSET, TEST_UID, TEST_UID2)); in TEST_F() 438 uid_t callingUid = TEST_UID2; in TEST_F() 452 ASSERT_EQ(-EPERM, mTc.deleteTagData(0, TEST_UID, TEST_UID2)); in TEST_F() 458 uid_t callingUid = TEST_UID2; in TEST_F() [all …]
|
/system/netd/libnetdbpf/ |
D | BpfNetworkStatsTest.cpp | 51 constexpr uid_t TEST_UID2 = 12345; variable 219 ASSERT_RESULT_OK(mFakeAppUidStatsMap.writeValue(TEST_UID2, value2, BPF_ANY)); in TEST_F() 225 ASSERT_EQ(0, bpfGetUidStatsInternal(TEST_UID2, &result2, mFakeAppUidStatsMap)); in TEST_F() 231 populateFakeStats(TEST_UID2, 0, IFACE_INDEX3, TEST_COUNTERSET1, value1, mFakeStatsMap); in TEST_F() 236 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TAG_ALL, TEST_UID2, in TEST_F() 239 expectStatsLineEqual(value1, IFACE_NAME3, TEST_UID2, TEST_COUNTERSET1, 0, lines.front()); in TEST_F() 298 populateFakeStats(TEST_UID2, TEST_TAG, IFACE_INDEX1, TEST_COUNTERSET0, value1, mFakeStatsMap); in TEST_F() 333 populateFakeStats(TEST_UID2, 0, IFACE_INDEX1, TEST_COUNTERSET0, value1, mFakeStatsMap); in TEST_F() 344 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TAG_ALL, TEST_UID2, in TEST_F() 347 expectStatsLineEqual(value1, IFACE_NAME1, TEST_UID2, TEST_COUNTERSET0, 0, lines.front()); in TEST_F() [all …]
|
/system/netd/tests/ |
D | binder_test.cpp | 147 static const int TEST_UID2 = 99998; variable 3011 std::vector<int32_t> appUids = {TEST_UID1, TEST_UID2}; in TEST_F() 4333 {makeUidRangeParcel(TEST_UID2, TEST_UID1)} /* app range */, in TEST_P() 4334 {makeUidRangeParcel(TEST_UID3, TEST_UID2)} /* VPN range */); in TEST_P() 4348 expectPacketSentOnNetId(TEST_UID2, (isSecureVPN ? APP_DEFAULT_NETID : VPN_NETID), vpnFd, in TEST_P() 4393 {makeUidRangeParcel(TEST_UID2, TEST_UID1)} /* app range */, in TEST_P() 4394 {makeUidRangeParcel(TEST_UID3, TEST_UID2)} /* VPN range */); in TEST_P() 4441 ScopedUidChange scopedUidChange(TEST_UID2); in TEST_P() 4447 expectPacketSentOnNetId(TEST_UID2, selectedNetId, expectedFd, EXPLICITLY_SELECT); in TEST_P() 4456 {makeUidRangeParcel(TEST_UID2, TEST_UID1)} /* app range */, in TEST_P() [all …]
|