Searched refs:totalSum (Results 1 – 2 of 2) sorted by relevance
/system/bpf/libbpf_android/ |
D | BpfMapTest.cpp | 169 int totalSum = 0; in TEST_F() local 170 const auto iterateWithDeletion = [&totalCount, &totalSum](const uint32_t& key, in TEST_F() 174 totalSum += key; in TEST_F() 179 EXPECT_EQ(((1 + TEST_MAP_SIZE - 1) * (TEST_MAP_SIZE - 1)) / 2, (uint32_t)totalSum); in TEST_F() 187 int totalSum = 0; in TEST_F() local 188 const auto iterateWithDeletion = [&totalCount, &totalSum](const uint32_t& key, in TEST_F() 194 totalSum += value; in TEST_F() 199 EXPECT_EQ(((1 + TEST_MAP_SIZE - 1) * (TEST_MAP_SIZE - 1)) * 5, (uint32_t)totalSum); in TEST_F()
|
/system/netd/libnetdbpf/ |
D | BpfNetworkStatsTest.cpp | 177 int totalSum = 0; in TEST_F() local 179 [&totalCount, &totalSum](const uint64_t& key, const BpfMap<uint64_t, UidTagValue>&) { in TEST_F() 182 totalSum += key; in TEST_F() 187 EXPECT_EQ(1 + 2 + 3 + 4 + 5, totalSum); in TEST_F()
|