D | chunk_allocator_test.cc | 26 static void ExpectGoodAlloc(const DA &da, const void *ptr) { in ExpectGoodAlloc() argument 28 EXPECT_TRUE(da.contains(ptr)); in ExpectGoodAlloc() 32 DA da; in TEST() local 33 void *ptr = da.alloc(kAllocSize); in TEST() 34 ExpectGoodAlloc(da, ptr); in TEST() 35 EXPECT_TRUE(da.free(ptr)); in TEST() 39 DA da; in TEST() local 42 ptrs[i] = da.alloc(kAllocSize); in TEST() 43 ExpectGoodAlloc(da, ptrs[i]); in TEST() 50 EXPECT_EQ(nullptr, da.alloc(kAllocSize)); in TEST() [all …]
|