Home
last modified time | relevance | path

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

/system/chre/apps/chqts/src/general_test/
Dheap_alloc_stress_test.cc75 void **ptrs = reinterpret_cast<void**>( in setUp() local
77 if (ptrs == NULL) { in setUp()
99 ptrs[index] = ptr; in setUp()
108 chreHeapFree(ptrs[index]); in setUp()
109 ptrs[index] = chreHeapAlloc(last_alloc_size); in setUp()
110 if (ptrs[index] == NULL) { in setUp()
118 chreHeapFree(ptrs[i]); in setUp()
120 chreHeapFree(ptrs); in setUp()
/system/chre/apps/chqts/src/shared/
Ddumb_allocator_test.cc40 void *ptrs[kSlotCount]; in TEST() local
42 ptrs[i] = da.alloc(kAllocSize); in TEST()
43 ExpectGoodAlloc(da, ptrs[i]); in TEST()
46 EXPECT_NE(ptrs[j], ptrs[i]); in TEST()
53 EXPECT_TRUE(da.free(ptrs[kFreeIndex])); in TEST()
54 ptrs[kFreeIndex] = nullptr; in TEST()
60 EXPECT_NE(newPtr, ptrs[i]); in TEST()