Home
last modified time | relevance | path

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

/system/chre/util/tests/
Dsynchronized_expandable_memory_pool_test.cc52 testMemoryPool(staticBlockCount); in TEST() local
54 ASSERT_EQ(testMemoryPool.getFreeSpaceCount(), blockSize * maxBlockCount); in TEST()
55 ASSERT_EQ(testMemoryPool.getBlockCount(), staticBlockCount); in TEST()
63 testMemoryPool; in TEST() local
64 ASSERT_EQ(testMemoryPool.getBlockCount(), 1); in TEST()
66 ConstructorCount *temp = testMemoryPool.allocate(10); in TEST()
69 ASSERT_EQ(testMemoryPool.getFreeSpaceCount(), blockSize * maxBlockCount - 1); in TEST()
70 testMemoryPool.deallocate(temp); in TEST()
72 ASSERT_EQ(testMemoryPool.getFreeSpaceCount(), blockSize * maxBlockCount); in TEST()
81 testMemoryPool(staticBlockCount); in TEST() local
[all …]
Dsynchronized_memory_pool_test.cc51 SynchronizedMemoryPool<int, maxSize> testMemoryPool; in TEST() local
55 tempDataPtrs[i] = testMemoryPool.allocate(i); in TEST()
58 EXPECT_EQ(testMemoryPool.getFreeBlockCount(), blankSpace); in TEST()
61 testMemoryPool.deallocate(tempDataPtrs[i]); in TEST()