Home
last modified time | relevance | path

Searched refs:TEST_TAG (Results 1 – 4 of 4) sorted by relevance

/system/netd/libnetdbpf/
DBpfNetworkStatsTest.cpp52 constexpr uint32_t TEST_TAG = 42; variable
144 UidTagValue tag = {.uid = TEST_UID1, .tag = TEST_TAG}; in TEST_F()
173 UidTagValue tag = {.uid = TEST_UID1, .tag = TEST_TAG}; in TEST_F()
294 populateFakeStats(TEST_UID1, TEST_TAG, IFACE_INDEX1, TEST_COUNTERSET0, value1, mFakeStatsMap); in TEST_F()
295 populateFakeStats(TEST_UID1, TEST_TAG, IFACE_INDEX2, TEST_COUNTERSET0, value1, mFakeStatsMap); in TEST_F()
296 populateFakeStats(TEST_UID1, TEST_TAG + 1, IFACE_INDEX1, TEST_COUNTERSET0, value1, in TEST_F()
298 populateFakeStats(TEST_UID2, TEST_TAG, IFACE_INDEX1, TEST_COUNTERSET0, value1, mFakeStatsMap); in TEST_F()
309 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TEST_TAG, TEST_UID1, in TEST_F()
314 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TEST_TAG, TEST_UID1, in TEST_F()
317 expectStatsLineEqual(value1, IFACE_NAME1, TEST_UID1, TEST_COUNTERSET0, TEST_TAG, lines.front()); in TEST_F()
[all …]
/system/netd/tests/
Dbpf_base_test.cpp49 constexpr uint32_t TEST_TAG = 42; variable
94 ASSERT_EQ(0, qtaguid_tagSocket(sock, TEST_TAG, TEST_UID)); in TEST_F()
98 ASSERT_EQ(TEST_TAG, tagResult.value().tag); in TEST_F()
112 ASSERT_EQ(0, qtaguid_tagSocket(sock, TEST_TAG, TEST_UID)); in TEST_F()
116 ASSERT_EQ(TEST_TAG, tagResult.value().tag); in TEST_F()
152 StatsKey key = {.uid = TEST_UID, .tag = TEST_TAG, .counterSet = TEST_COUNTERSET, in TEST_F()
166 key.tag = TEST_TAG; in TEST_F()
Dnetlink_listener_test.cpp46 constexpr uint32_t TEST_TAG = 0xFF0F0F0F; variable
77 if ((value.uid == TEST_UID) && (value.tag == TEST_TAG)) { in TearDown()
94 if ((TEST_UID == value.uid) && (TEST_TAG == value.tag)) { in checkNoGarbageTagsExist()
126 qtaguid_tagSocket(fds[i], TEST_TAG, TEST_UID); in checkMassiveSocketDestroy()
/system/netd/server/
DTrafficControllerTest.cpp55 constexpr uint32_t TEST_TAG = 42; variable
319 int v4socket = setUpSocketAndTag(AF_INET, &sockCookie, TEST_TAG, TEST_UID, TEST_UID); in TEST_F()
320 expectUidTag(sockCookie, TEST_UID, TEST_TAG); in TEST_F()
328 int v4socket = setUpSocketAndTag(AF_INET, &sockCookie, TEST_TAG, TEST_UID, TEST_UID); in TEST_F()
329 expectUidTag(sockCookie, TEST_UID, TEST_TAG); in TEST_F()
330 ASSERT_EQ(0, mTc.tagSocket(v4socket, TEST_TAG + 1, TEST_UID + 1, TEST_UID + 1)); in TEST_F()
331 expectUidTag(sockCookie, TEST_UID + 1, TEST_TAG + 1); in TEST_F()
337 int v4socket1 = setUpSocketAndTag(AF_INET, &sockCookie1, TEST_TAG, TEST_UID, TEST_UID); in TEST_F()
338 setUpSocketAndTag(AF_INET, &sockCookie2, TEST_TAG, TEST_UID, TEST_UID); in TEST_F()
339 expectUidTag(sockCookie1, TEST_UID, TEST_TAG); in TEST_F()
[all …]