Standardize MemoryPoolAllocator::Realloc() also, and improve coverage

This commit is contained in:
miloyip
2015-05-03 21:23:13 +08:00
parent ae61b7973c
commit 1c98609ada
2 changed files with 6 additions and 0 deletions

View File

@@ -42,6 +42,9 @@ void TestAllocator(Allocator& a) {
EXPECT_EQ(i, r[i]);
Allocator::Free(r);
// Realloc to zero size
EXPECT_TRUE(a.Realloc(a.Malloc(1), 1, 0) == 0);
}
TEST(Allocator, CrtAllocator) {