Home
last modified time | relevance | path

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

/system/netd/libnetdbpf/
DBpfNetworkStatsTest.cpp75 BpfMap<uint32_t, StatsValue> mFakeAppUidStatsMap; member in android::bpf::BpfNetworkStatsHelperTest
86 mFakeAppUidStatsMap = BpfMap<uint32_t, StatsValue>(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, 0); in SetUp()
87 ASSERT_LE(0, mFakeAppUidStatsMap.getMap()); in SetUp()
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()
219 ASSERT_RESULT_OK(mFakeAppUidStatsMap.writeValue(TEST_UID2, value2, BPF_ANY)); in TEST_F()
221 ASSERT_EQ(0, bpfGetUidStatsInternal(TEST_UID1, &result1, mFakeAppUidStatsMap)); in TEST_F()
225 ASSERT_EQ(0, bpfGetUidStatsInternal(TEST_UID2, &result2, mFakeAppUidStatsMap)); in TEST_F()
/system/netd/server/
DTrafficControllerTest.cpp70 BpfMap<uint32_t, StatsValue> mFakeAppUidStatsMap; member in android::net::TrafficControllerTest
88 mFakeAppUidStatsMap.reset(createMap(BPF_MAP_TYPE_HASH, sizeof(uint32_t), sizeof(StatsValue), in SetUp()
90 ASSERT_VALID(mFakeAppUidStatsMap); in SetUp()
111 mTc.mAppUidStatsMap.reset(dupFd(mFakeAppUidStatsMap.getMap())); in SetUp()
161 EXPECT_RESULT_OK(mFakeAppUidStatsMap.writeValue(uid, statsMapValue, BPF_ANY)); in populateFakeStats()
295 auto appStatsResult = mFakeAppUidStatsMap.readValue(uid); in expectFakeStatsUnchanged()
476 auto appStatsResult = mFakeAppUidStatsMap.readValue(TEST_UID); in TEST_F()
496 ASSERT_FALSE(mFakeAppUidStatsMap.readValue(TEST_UID).ok()); in TEST_F()
551 ASSERT_FALSE(mFakeAppUidStatsMap.readValue(uid2).ok()); in TEST_F()
557 auto appStatsResult = mFakeAppUidStatsMap.readValue(uid1); in TEST_F()
[all …]