Lines Matching full:allocation
23 void *allocation = poolAllocator.allocate(numBytes); in TEST() local
25 EXPECT_NE(nullptr, allocation); in TEST()
26 // Write to allocation to check later in TEST()
27 uint32_t *writePtr = static_cast<uint32_t *>(allocation); in TEST()
29 // Test push and creating a new allocation in TEST()
31 allocation = poolAllocator.allocate(numBytes); in TEST()
32 EXPECT_NE(nullptr, allocation); in TEST()
33 // Make an allocation that spans multiple pages in TEST()
34 allocation = poolAllocator.allocate(10 * 1024); in TEST()
37 // Verify first allocation still has data in TEST()
43 allocation = poolAllocator.allocate(numBytes); in TEST()
44 EXPECT_NE(nullptr, allocation); in TEST()
45 // Write data into full allocation. In debug case if we in TEST()
46 // overwrite any other allocation we get error. in TEST()
47 memset(allocation, 0xb8, numBytes); in TEST()
63 // Test a number of allocation sizes for each alignment in TEST_P()
66 // Vary the allocation size around 4k to hit some multi-page allocations in TEST_P()
67 void *allocation = poolAllocator.allocate((rand() % (1024 * 4)) + 1); in TEST_P() local
68 // Verify alignment of allocation matches expected default in TEST_P()
69 EXPECT_EQ(0u, (reinterpret_cast<std::uintptr_t>(allocation) % alignment)); in TEST_P()