Home
last modified time | relevance | path

Searched refs:TEST_UID2 (Results 1 – 3 of 3) sorted by relevance

/system/netd/server/
DTrafficControllerTest.cpp53 constexpr uid_t TEST_UID2 = 54321; variable
174 uid = TEST_UID2; in checkUidOwnerRuleForChain()
378 ASSERT_EQ(-EPERM, mTc.tagSocket(sock, TEST_TAG, TEST_UID, TEST_UID2)); in TEST_F()
386 std::vector<uid_t> callingUid = {TEST_UID2}; in TEST_F()
391 int v6socket = setUpSocketAndTag(AF_INET6, &sockCookie, TEST_TAG, TEST_UID, TEST_UID2); in TEST_F()
441 uid_t callingUid = TEST_UID2; in TEST_F()
456 ASSERT_EQ(-EPERM, mTc.setCounterSet(TEST_COUNTERSET, TEST_UID, TEST_UID2)); in TEST_F()
465 uid_t callingUid = TEST_UID2; in TEST_F()
481 ASSERT_EQ(-EPERM, mTc.deleteTagData(0, TEST_UID, TEST_UID2)); in TEST_F()
489 uid_t callingUid = TEST_UID2; in TEST_F()
[all …]
/system/netd/libnetdbpf/
DBpfNetworkStatsTest.cpp50 constexpr uid_t TEST_UID2 = 12345; variable
231 ASSERT_TRUE(isOk(mFakeAppUidStatsMap.writeValue(TEST_UID2, value2, BPF_ANY))); in TEST_F()
237 ASSERT_EQ(0, bpfGetUidStatsInternal(TEST_UID2, &result2, mFakeAppUidStatsMap)); in TEST_F()
243 populateFakeStats(TEST_UID2, 0, IFACE_INDEX3, TEST_COUNTERSET1, value1, mFakeStatsMap); in TEST_F()
248 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TAG_ALL, TEST_UID2, in TEST_F()
251 expectStatsLineEqual(value1, IFACE_NAME3, TEST_UID2, TEST_COUNTERSET1, 0, lines.front()); in TEST_F()
312 populateFakeStats(TEST_UID2, TEST_TAG, IFACE_INDEX1, TEST_COUNTERSET0, value1, mFakeStatsMap); in TEST_F()
347 populateFakeStats(TEST_UID2, 0, IFACE_INDEX1, TEST_COUNTERSET0, value1, mFakeStatsMap); in TEST_F()
358 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TAG_ALL, TEST_UID2, in TEST_F()
361 expectStatsLineEqual(value1, IFACE_NAME1, TEST_UID2, TEST_COUNTERSET0, 0, lines.front()); in TEST_F()
[all …]
/system/netd/tests/
Dbinder_test.cpp107 static const int TEST_UID2 = 99998; variable
2902 std::vector<int32_t> appUids = {TEST_UID1, TEST_UID2}; in TEST_F()