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
147 UidTagValue tag = {.uid = TEST_UID1, .tag = TEST_TAG}; in TEST_F()
178 UidTagValue tag = {.uid = TEST_UID1, .tag = TEST_TAG}; in TEST_F()
205 ASSERT_EQ(0, bpfGetUidStatsInternal(TEST_UID1, &result1, mFakeAppUidStatsMap)); in TEST_F()
227 ASSERT_RESULT_OK(mFakeAppUidStatsMap.writeValue(TEST_UID1, value1, BPF_ANY)); in TEST_F()
230 ASSERT_EQ(0, bpfGetUidStatsInternal(TEST_UID1, &result1, mFakeAppUidStatsMap)); in TEST_F()
238 populateFakeStats(TEST_UID1, 0, IFACE_INDEX1, TEST_COUNTERSET0, value1, mFakeStatsMap); in TEST_F()
239 populateFakeStats(TEST_UID1, 0, IFACE_INDEX2, TEST_COUNTERSET1, value1, mFakeStatsMap); in TEST_F()
241 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TAG_ALL, TEST_UID1, in TEST_F()
307 populateFakeStats(TEST_UID1, TEST_TAG, IFACE_INDEX1, TEST_COUNTERSET0, value1, mFakeStatsMap); in TEST_F()
[all …]
/system/netd/tests/
Dbinder_test.cpp120 static const int TEST_UID1 = 99999; variable
1997 binder::Status status = mNetd->networkSetProtectAllow(TEST_UID1); in TEST_F()
2000 status = mNetd->networkCanProtect(TEST_UID1, &ret); in TEST_F()
2003 status = mNetd->networkSetProtectDeny(TEST_UID1); in TEST_F()
2008 EXPECT_TRUE(mNetd->networkClearPermissionForUser({TEST_UID1}).isOk()); in TEST_F()
2010 status = mNetd->networkCanProtect(TEST_UID1, &ret); in TEST_F()
3064 std::vector<int32_t> appUids = {TEST_UID1, TEST_UID2}; in TEST_F()
3440 createVpnNetworkWithUid(true /* secure */, TEST_UID1); in TEST_F()
3443 expectVpnFallthroughWorks(mNetd.get(), false /* bypassable */, TEST_UID1, sTun, sTun2); in TEST_F()
3447 createVpnNetworkWithUid(false /* secure */, TEST_UID1); in TEST_F()
[all …]