コード例 #1
0
void setCurrentNewAllocatorToDefault()
{
    currentNewAllocator = defaultNewAllocator();
}
コード例 #2
0
TEST(TestMemoryAllocatorTest, NewNames)
{
    STRCMP_EQUAL("Standard New Allocator", defaultNewAllocator()->name());
    STRCMP_EQUAL("new", defaultNewAllocator()->alloc_name());
    STRCMP_EQUAL("delete", defaultNewAllocator()->free_name());
}
コード例 #3
0
bool CodeMemoryReportFormatter::isNewAllocator(TestMemoryAllocator* allocator)
{
    return PlatformSpecificStrCmp(allocator->alloc_name(), defaultNewAllocator()->alloc_name()) == 0 || PlatformSpecificStrCmp(allocator->alloc_name(), defaultNewArrayAllocator()->alloc_name()) == 0;
}