Searched refs:mFakeCookieTagMap (Results 1 – 2 of 2) sorted by relevance
/system/netd/libnetdbpf/ |
D | BpfNetworkStatsTest.cpp | 73 BpfMap<uint64_t, UidTag> mFakeCookieTagMap; member in android::bpf::BpfNetworkStatsHelperTest 83 mFakeCookieTagMap = BpfMap<uint64_t, UidTag>(createMap( in SetUp() 85 ASSERT_LE(0, mFakeCookieTagMap.getMap()); in SetUp() 106 auto tagResult = mFakeCookieTagMap.readValue(cookie); in expectUidTag() 153 EXPECT_TRUE(isOk(mFakeCookieTagMap.writeValue(cookie, tag, BPF_ANY))); in TEST_F() 156 auto nextCookie = mFakeCookieTagMap.getNextKey(curCookie); in TEST_F() 161 nextCookie = mFakeCookieTagMap.getNextKey(curCookie); in TEST_F() 163 EXPECT_TRUE(isOk(mFakeCookieTagMap.deleteValue((nextCookie.value())))); in TEST_F() 165 nextCookie = mFakeCookieTagMap.getNextKey(curCookie); in TEST_F() 167 EXPECT_TRUE(isOk(mFakeCookieTagMap.deleteValue((nextCookie.value())))); in TEST_F() [all …]
|
/system/netd/server/ |
D | TrafficControllerTest.cpp | 68 BpfMap<uint64_t, UidTag> mFakeCookieTagMap; member in android::net::TrafficControllerTest 81 mFakeCookieTagMap.reset(createMap(BPF_MAP_TYPE_HASH, sizeof(uint64_t), in SetUp() 83 ASSERT_VALID(mFakeCookieTagMap); in SetUp() 108 mTc.mCookieTagMap.reset(dupFd(mFakeCookieTagMap.getMap())); in SetUp() 144 StatusOr<UidTag> tagResult = mFakeCookieTagMap.readValue(cookie); in expectUidTag() 150 void expectNoTag(uint64_t cookie) { EXPECT_FALSE(isOk(mFakeCookieTagMap.readValue(cookie))); } in expectNoTag() 154 EXPECT_TRUE(isOk(mFakeCookieTagMap.writeValue(cookie, cookieMapkey, BPF_ANY))); in populateFakeStats() 280 StatusOr<UidTag> cookieMapResult = mFakeCookieTagMap.readValue(cookie); in expectFakeStatsUnchanged() 326 expectMapEmpty(mFakeCookieTagMap); in TEST_F() 351 ASSERT_FALSE(isOk(mFakeCookieTagMap.getNextKey(sockCookie2))); in TEST_F() [all …]
|