Searched refs:mFakeCookieTagMap (Results 1 – 2 of 2) sorted by relevance
/system/netd/libnetdbpf/ |
D | BpfNetworkStatsTest.cpp | 74 BpfMap<uint64_t, UidTagValue> mFakeCookieTagMap; member in android::bpf::BpfNetworkStatsHelperTest 84 mFakeCookieTagMap = BpfMap<uint64_t, UidTagValue>(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, 0); in SetUp() 85 ASSERT_LE(0, mFakeCookieTagMap.getMap()); in SetUp() 101 auto tagResult = mFakeCookieTagMap.readValue(cookie); in expectUidTag() 148 EXPECT_RESULT_OK(mFakeCookieTagMap.writeValue(cookie, tag, BPF_ANY)); in TEST_F() 151 auto nextCookie = mFakeCookieTagMap.getNextKey(curCookie); in TEST_F() 156 nextCookie = mFakeCookieTagMap.getNextKey(curCookie); in TEST_F() 158 EXPECT_RESULT_OK(mFakeCookieTagMap.deleteValue((nextCookie.value()))); in TEST_F() 160 nextCookie = mFakeCookieTagMap.getNextKey(curCookie); in TEST_F() 162 EXPECT_RESULT_OK(mFakeCookieTagMap.deleteValue((nextCookie.value()))); in TEST_F() [all …]
|
/system/netd/server/ |
D | TrafficControllerTest.cpp | 67 BpfMap<uint64_t, UidTagValue> mFakeCookieTagMap; member in android::net::TrafficControllerTest 80 mFakeCookieTagMap.reset(createMap(BPF_MAP_TYPE_HASH, sizeof(uint64_t), sizeof(UidTagValue), in SetUp() 82 ASSERT_VALID(mFakeCookieTagMap); in SetUp() 107 mTc.mCookieTagMap.reset(dupFd(mFakeCookieTagMap.getMap())); in SetUp() 143 Result<UidTagValue> tagResult = mFakeCookieTagMap.readValue(cookie); in expectUidTag() 149 void expectNoTag(uint64_t cookie) { EXPECT_FALSE(mFakeCookieTagMap.readValue(cookie).ok()); } in expectNoTag() 153 EXPECT_RESULT_OK(mFakeCookieTagMap.writeValue(cookie, cookieMapkey, BPF_ANY)); in populateFakeStats() 279 Result<UidTagValue> cookieMapResult = mFakeCookieTagMap.readValue(cookie); in expectFakeStatsUnchanged() 325 expectMapEmpty(mFakeCookieTagMap); in TEST_F() 350 ASSERT_FALSE(mFakeCookieTagMap.getNextKey(sockCookie2).ok()); in TEST_F() [all …]
|