| 123 | } |
| 124 | |
| 125 | void GlobalMemoryAllocatorStash::restore() |
| 126 | { |
| 127 | if (originalMallocAllocator) setCurrentMallocAllocator(originalMallocAllocator); |
| 128 | if (originalNewAllocator) setCurrentNewAllocator(originalNewAllocator); |
| 129 | if (originalNewArrayAllocator) setCurrentNewArrayAllocator(originalNewArrayAllocator); |
| 130 | } |
| 131 | |
| 132 | TestMemoryAllocator::TestMemoryAllocator(const char* name_str, const char* alloc_name_str, const char* free_name_str) |
| 133 | : name_(name_str), alloc_name_(alloc_name_str), free_name_(free_name_str), hasBeenDestroyed_(false) |
nothing calls this directly
no test coverage detected