Home
last modified time | relevance | path

Searched refs:allocated_blocks (Results 1 – 2 of 2) sorted by relevance

/external/avb/test/
Davb_sysdeps_posix_testing.cc81 static std::map<void*, AvbAllocatedBlock> allocated_blocks; variable
88 allocated_blocks[ptr] = block; in avb_malloc_()
93 auto block_it = allocated_blocks.find(ptr); in avb_free()
94 if (block_it == allocated_blocks.end()) { in avb_free()
98 allocated_blocks.erase(block_it); in avb_free()
105 allocated_blocks.clear(); in testing_memory_reset()
109 if (allocated_blocks.size() == 0) { in testing_memory_all_freed()
114 for (const auto& block_it : allocated_blocks) { in testing_memory_all_freed()
120 allocated_blocks.size()); in testing_memory_all_freed()
122 for (const auto& block_it : allocated_blocks) { in testing_memory_all_freed()
[all …]
/external/cmockery/cmockery_0_1_2/src/
Dcmockery.c1346 int allocated_blocks = 0; in display_allocated_blocks() local
1354 if (!allocated_blocks) { in display_allocated_blocks()
1360 allocated_blocks ++; in display_allocated_blocks()
1362 return allocated_blocks; in display_allocated_blocks()
1386 const int allocated_blocks = display_allocated_blocks(check_point); in fail_if_blocks_allocated() local
1387 if (allocated_blocks) { in fail_if_blocks_allocated()
1390 allocated_blocks); in fail_if_blocks_allocated()