Lines Matching refs:memoryPool
11 MemoryPool<int, 3> memoryPool; in TEST() local
12 EXPECT_EQ(memoryPool.getFreeBlockCount(), 3); in TEST()
13 EXPECT_NE(memoryPool.allocate(), nullptr); in TEST()
14 EXPECT_EQ(memoryPool.getFreeBlockCount(), 2); in TEST()
15 EXPECT_NE(memoryPool.allocate(), nullptr); in TEST()
16 EXPECT_EQ(memoryPool.getFreeBlockCount(), 1); in TEST()
17 EXPECT_NE(memoryPool.allocate(), nullptr); in TEST()
18 EXPECT_EQ(memoryPool.getFreeBlockCount(), 0); in TEST()
19 EXPECT_EQ(memoryPool.allocate(), nullptr); in TEST()
20 EXPECT_EQ(memoryPool.getFreeBlockCount(), 0); in TEST()
24 MemoryPool<int, 3> memoryPool; in TEST() local
27 int *element1 = memoryPool.allocate(); in TEST()
28 int *element2 = memoryPool.allocate(); in TEST()
29 int *element3 = memoryPool.allocate(); in TEST()
38 memoryPool.deallocate(element1); in TEST()
39 EXPECT_EQ(memoryPool.getFreeBlockCount(), 1); in TEST()
40 element1 = memoryPool.allocate(); in TEST()
44 EXPECT_EQ(memoryPool.allocate(), nullptr); in TEST()
72 MemoryPool<size_t, kMemoryPoolSize> memoryPool; in TEST() local
79 .allocation = memoryPool.allocate(), in TEST()
100 memoryPool.deallocate(allocations[deallocateIndex].allocation); in TEST()