Home
last modified time | relevance | path

Searched refs:TEST_UID1 (Results 1 – 2 of 2) sorted by relevance

/system/netd/libnetdbpf/
DBpfNetworkStatsTest.cpp50 constexpr uid_t TEST_UID1 = 10086; 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()
198 ASSERT_EQ(0, bpfGetUidStatsInternal(TEST_UID1, &result1, mFakeAppUidStatsMap)); in TEST_F()
218 ASSERT_RESULT_OK(mFakeAppUidStatsMap.writeValue(TEST_UID1, value1, BPF_ANY)); in TEST_F()
221 ASSERT_EQ(0, bpfGetUidStatsInternal(TEST_UID1, &result1, mFakeAppUidStatsMap)); in TEST_F()
229 populateFakeStats(TEST_UID1, 0, IFACE_INDEX1, TEST_COUNTERSET0, value1, mFakeStatsMap); in TEST_F()
230 populateFakeStats(TEST_UID1, 0, IFACE_INDEX2, TEST_COUNTERSET1, value1, mFakeStatsMap); in TEST_F()
232 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TAG_ALL, TEST_UID1, in TEST_F()
294 populateFakeStats(TEST_UID1, TEST_TAG, IFACE_INDEX1, TEST_COUNTERSET0, value1, mFakeStatsMap); in TEST_F()
[all …]
/system/netd/tests/
Dbinder_test.cpp146 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()
[all …]