1#ifndef Cpl_Memory_x_testsupport_New_TS_h_ 
    2#define Cpl_Memory_x_testsupport_New_TS_h_ 
   58        unsigned long m_numNewCalls;
 
   60        unsigned long m_numNewCallsFailed;  
 
   62        unsigned long m_numDeleteCalls;
 
   64        unsigned long m_numDeleteCalls_withNullPtr;
 
   66        size_t        m_bytesAllocated;
 
This class provides methods to access the unit testing support for overriding the global new/delete o...
Definition New_TS.h:33
static void disable(void)
This method will cause the next call(s) to 'new' to return a null pointer.
static void enable(void)
This method 'undos' the disable() call, i.e.
static void clearStats()
This method unconditionally clears the stats.
static void setNewDelete_delta(long delta, bool ignoreDelta=false)
This method is used to set the 'expected' delta between the number of calls to new and delete.
static void getStats(Stats &stats, bool resetStats=true)
This method returns and optionally clears the metrics collected with respect to Test heap.
New/Delete metrics.
Definition New_TS.h:56
The 'Cpl' namespace is the root name space for the Colony.
Definition Api16.h:20