Searched refs:testMap (Results 1 – 1 of 1) sorted by relevance
/system/bpf/libbpf_android/ |
D | BpfMapTest.cpp | 122 BpfMap<uint32_t, uint32_t> testMap(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC); in TEST_F() local 125 writeToMapAndCheck(testMap, key, value_write); in TEST_F() 126 Result<uint32_t> value_read = testMap.readValue(key); in TEST_F() 128 Result<uint32_t> key_read = testMap.getFirstKey(); in TEST_F() 130 ASSERT_RESULT_OK(testMap.deleteValue(key)); in TEST_F() 131 ASSERT_GT(0, findMapEntry(testMap.getMap(), &key, &value_read)); in TEST_F() 138 BpfMap<uint32_t, uint32_t> testMap(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC); in TEST_F() local 141 writeToMapAndCheck(testMap, key, value_write); in TEST_F() 143 testMap.reset(-1); in TEST_F() 144 checkMapInvalid(testMap); in TEST_F() [all …]
|