Searched refs:totalSum (Results 1 – 2 of 2) sorted by relevance
/system/bpf/libbpf_android/ |
D | BpfMapTest.cpp | 185 int totalSum = 0; in TEST_F() local 186 const auto iterateWithDeletion = [&totalCount, &totalSum](const uint32_t& key, in TEST_F() 190 totalSum += key; in TEST_F() 195 EXPECT_EQ(((1 + TEST_MAP_SIZE - 1) * (TEST_MAP_SIZE - 1)) / 2, (uint32_t)totalSum); in TEST_F() 205 int totalSum = 0; in TEST_F() local 206 const auto iterateWithDeletion = [&totalCount, &totalSum](const uint32_t& key, in TEST_F() 212 totalSum += value; in TEST_F() 217 EXPECT_EQ(((1 + TEST_MAP_SIZE - 1) * (TEST_MAP_SIZE - 1)) * 5, (uint32_t)totalSum); in TEST_F()
|
/system/netd/libnetdbpf/ |
D | BpfNetworkStatsTest.cpp | 182 int totalSum = 0; in TEST_F() local 184 [&totalCount, &totalSum](const uint64_t& key, const BpfMap<uint64_t, UidTagValue>&) { in TEST_F() 187 totalSum += key; in TEST_F() 192 EXPECT_EQ(1 + 2 + 3 + 4 + 5, totalSum); in TEST_F()
|