Searched refs:mFakeAppUidStatsMap (Results 1 – 2 of 2) sorted by relevance
/system/netd/libnetdbpf/ |
D | BpfNetworkStatsTest.cpp | 75 BpfMap<uint32_t, StatsValue> mFakeAppUidStatsMap; member in android::bpf::BpfNetworkStatsHelperTest 87 mFakeAppUidStatsMap = BpfMap<uint32_t, StatsValue>(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, 0); in SetUp() 88 ASSERT_LE(0, mFakeAppUidStatsMap.getMap()); in SetUp() 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() 228 ASSERT_RESULT_OK(mFakeAppUidStatsMap.writeValue(TEST_UID2, value2, BPF_ANY)); in TEST_F() 230 ASSERT_EQ(0, bpfGetUidStatsInternal(TEST_UID1, &result1, mFakeAppUidStatsMap)); in TEST_F() 234 ASSERT_EQ(0, bpfGetUidStatsInternal(TEST_UID2, &result2, mFakeAppUidStatsMap)); in TEST_F()
|
/system/netd/server/ |
D | TrafficControllerTest.cpp | 69 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() 506 auto appStatsResult = mFakeAppUidStatsMap.readValue(TEST_UID); in TEST_F() 528 ASSERT_FALSE(mFakeAppUidStatsMap.readValue(TEST_UID).ok()); in TEST_F() 587 ASSERT_FALSE(mFakeAppUidStatsMap.readValue(uid2).ok()); in TEST_F() 593 auto appStatsResult = mFakeAppUidStatsMap.readValue(uid1); in TEST_F() [all …]
|