Home
last modified time | relevance | path

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

/bionic/tests/
Dmalloc_iterate_test.cpp51 static void AllocPtr(TestDataType* test_data, size_t size) { in AllocPtr() argument
52 test_data->allocs.resize(test_data->allocs.size() + 1); in AllocPtr()
53 AllocDataType* alloc = &test_data->allocs.back(); in AllocPtr()
62 static void FreePtrs(TestDataType* test_data) { in FreePtrs() argument
63 for (size_t i = 0; i < test_data->allocs.size(); i++) { in FreePtrs()
64 free(test_data->allocs[i].ptr); in FreePtrs()
69 TestDataType* test_data = reinterpret_cast<TestDataType*>(data); in SavePointers() local
71 test_data->total_allocated_bytes += size; in SavePointers()
79 for (size_t i = 0; i < test_data->allocs.size(); i++) { in SavePointers()
80 uintptr_t ptr = reinterpret_cast<uintptr_t>(test_data->allocs[i].ptr); in SavePointers()
[all …]