| 108 | }; |
| 109 | |
| 110 | class CrashOnAllocationAllocator : public TestMemoryAllocator |
| 111 | { |
| 112 | unsigned allocationToCrashOn_; |
| 113 | public: |
| 114 | CrashOnAllocationAllocator(); |
| 115 | virtual ~CrashOnAllocationAllocator() _destructor_override; |
| 116 | |
| 117 | virtual void setNumberToCrashOn(unsigned allocationToCrashOn); |
| 118 | |
| 119 | virtual char* alloc_memory(size_t size, const char* file, size_t line) _override; |
| 120 | }; |
| 121 | |
| 122 | |
| 123 | class NullUnknownAllocator: public TestMemoryAllocator |
nothing calls this directly
no outgoing calls
no test coverage detected