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