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