Searched refs:mFakeAppUidStatsMap (Results 1 – 2 of 2) sorted by relevance
/system/netd/libnetdbpf/ |
D | BpfNetworkStatsTest.cpp | 74 BpfMap<uint32_t, StatsValue> mFakeAppUidStatsMap; member in android::bpf::BpfNetworkStatsHelperTest 87 mFakeAppUidStatsMap = BpfMap<uint32_t, StatsValue>(createMap( in SetUp() 89 ASSERT_LE(0, mFakeAppUidStatsMap.getMap()); in SetUp() 210 ASSERT_EQ(0, bpfGetUidStatsInternal(TEST_UID1, &result1, mFakeAppUidStatsMap)); in TEST_F() 230 ASSERT_TRUE(isOk(mFakeAppUidStatsMap.writeValue(TEST_UID1, value1, BPF_ANY))); in TEST_F() 231 ASSERT_TRUE(isOk(mFakeAppUidStatsMap.writeValue(TEST_UID2, value2, BPF_ANY))); in TEST_F() 233 ASSERT_EQ(0, bpfGetUidStatsInternal(TEST_UID1, &result1, mFakeAppUidStatsMap)); in TEST_F() 237 ASSERT_EQ(0, bpfGetUidStatsInternal(TEST_UID2, &result2, mFakeAppUidStatsMap)); in TEST_F()
|
/system/netd/server/ |
D | TrafficControllerTest.cpp | 70 BpfMap<uint32_t, StatsValue> mFakeAppUidStatsMap; member in android::net::TrafficControllerTest 89 mFakeAppUidStatsMap.reset(createMap(BPF_MAP_TYPE_HASH, sizeof(uint32_t), in SetUp() 91 ASSERT_VALID(mFakeAppUidStatsMap); in SetUp() 112 mTc.mAppUidStatsMap.reset(dupFd(mFakeAppUidStatsMap.getMap())); in SetUp() 162 EXPECT_TRUE(isOk(mFakeAppUidStatsMap.writeValue(uid, statsMapValue, BPF_ANY))); in populateFakeStats() 296 auto appStatsResult = mFakeAppUidStatsMap.readValue(uid); in expectFakeStatsUnchanged() 507 auto appStatsResult = mFakeAppUidStatsMap.readValue(TEST_UID); in TEST_F() 529 ASSERT_FALSE(isOk(mFakeAppUidStatsMap.readValue(TEST_UID))); in TEST_F() 588 ASSERT_FALSE(isOk(mFakeAppUidStatsMap.readValue(uid2))); in TEST_F() 594 auto appStatsResult = mFakeAppUidStatsMap.readValue(uid1); in TEST_F() [all …]
|