Home
last modified time | relevance | path

Searched refs:heap_walker (Results 1 – 3 of 3) sorted by relevance

/system/core/libmemunreachable/tests/
DHeapWalker_test.cpp43 HeapWalker heap_walker(heap_); in TEST_F() local
44 ASSERT_TRUE(heap_walker.Allocation(3, 4)); in TEST_F()
45 ASSERT_TRUE(heap_walker.Allocation(2, 3)); in TEST_F()
46 ASSERT_TRUE(heap_walker.Allocation(4, 5)); in TEST_F()
47 ASSERT_TRUE(heap_walker.Allocation(6, 7)); in TEST_F()
48 ASSERT_TRUE(heap_walker.Allocation(0, 1)); in TEST_F()
52 HeapWalker heap_walker(heap_); in TEST_F() local
53 ASSERT_TRUE(heap_walker.Allocation(2, 3)); in TEST_F()
54 ASSERT_TRUE(heap_walker.Allocation(3, 4)); in TEST_F()
55 ASSERT_FALSE(heap_walker.Allocation(2, 3)); in TEST_F()
[all …]
DLeakFolding_test.cpp42 #define ALLOCATION(heap_walker, buffer) \ argument
43 ASSERT_EQ(true, heap_walker.Allocation(buffer_begin(buffer), buffer_end(buffer)))
48 HeapWalker heap_walker(heap_); in TEST_F() local
50 ALLOCATION(heap_walker, buffer1); in TEST_F()
52 LeakFolding folding(heap_, heap_walker); in TEST_F()
72 HeapWalker heap_walker(heap_); in TEST_F() local
74 ALLOCATION(heap_walker, buffer1); in TEST_F()
75 ALLOCATION(heap_walker, buffer2); in TEST_F()
77 LeakFolding folding(heap_, heap_walker); in TEST_F()
101 HeapWalker heap_walker(heap_); in TEST_F() local
[all …]
/system/core/libmemunreachable/
DLeakFolding.h24 LeakFolding(Allocator<void> allocator, HeapWalker& heap_walker) in LeakFolding() argument
25 : allocator_(allocator), heap_walker_(heap_walker), in LeakFolding()