22 #ifndef INCLUDED_MOTU_LeakCheck 23 #define INCLUDED_MOTU_LeakCheck 1 37 template <
class T1,
class T2>
41 return s<<
'['<<
p.first<<
":"<<
p.second<<
']';
64 template <
class Value,
class Operation>
66 bool succeeded =
false;
69 for (
long count = 0; !succeeded && !failed &&
count < max_iters; ++
count) {
73 #ifndef EH_NO_EXCEPTIONS 79 #ifndef EH_NO_EXCEPTIONS 102 template <
class Value,
class Operation>
104 bool succeeded =
false;
107 for (
long count = 0; !succeeded && !failed &&
count < max_iters; ++
count) {
110 #ifndef EH_NO_EXCEPTIONS 116 #ifndef EH_NO_EXCEPTIONS 144 template <
class Value,
class Operation>
146 bool succeeded =
false;
149 for (
long count = 0; !succeeded && !failed &&
count < max_iters;
count++ ) {
155 #ifndef EH_NO_EXCEPTIONS 162 # ifndef EH_NO_EXCEPTIONS 166 bool unchanged = (
dup ==
v);
171 typedef typename Value::value_type value_type;
172 EH_STD::ostream_iterator<value_type> o(
EH_STD::cerr,
" ");
173 EH_STD::cerr<<
"EH test FAILED:\nStrong guaranee failed !\n";
198 #endif // INCLUDED_MOTU_LeakCheck
#define EH_BEGIN_NAMESPACE
static bool ReportLeaked()
GLuint GLuint GLsizei count
TestController gTestController
void WeakCheck(const Value &v, const Operation &op, long max_iters=2000000)
EH_END_NAMESPACE void CheckInvariant(const C &)
static void BeginLeakDetection()
basic_ostream< _CharT, _Traits > &_STLP_CALL endl(basic_ostream< _CharT, _Traits > &__os)
static void SetFailureCountdown(long n)
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
_STLP_DECLSPEC _Stl_aligned_buffer< ostream > cerr
void ConstCheck(const Value &v, const Operation &op, long max_iters=2000000)
static void SetCurrentTestCategory(const char *str)
INT copy(TCHAR source[MAX_PATH], TCHAR dest[MAX_PATH], INT append, DWORD lpdwFlags, BOOL bTouch)
EH_BEGIN_NAMESPACE ostream & operator<<(ostream &s, const pair< T1, T2 > &p)
_Check_return_ _CRTIMP int __cdecl dup(_In_ int _FileHandle)
static void ReportSuccess(int)
static void CancelFailureCountdown()
void StrongCheck(const Value &v, const Operation &op, long max_iters=2000000)