ReactOS 0.4.16-dev-112-g52265ae
cppunit_mini.h File Reference
#include <string.h>
Include dependency graph for cppunit_mini.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Reporter
 
class  TestFixture
 
class  TestCase
 

Macros

#define CPPUNIT_NS
 
#define CPPUNIT_MINI_HIDE_UNUSED_VARIABLE(v)
 
#define CPPUNIT_TEST_SUITE(X)
 
#define CPPUNIT_TEST_BASE(X, Y)
 
#define CPPUNIT_TEST(X)   CPPUNIT_TEST_BASE(X, false)
 
#define CPPUNIT_EXPLICIT_TEST(X)   CPPUNIT_TEST_BASE(X, true)
 
#define CPPUNIT_IGNORE    ignoring = true
 
#define CPPUNIT_STOP_IGNORE    ignoring = false
 
#define CPPUNIT_TEST_SUITE_END()   }
 
#define CPPUNIT_TEST_SUITE_REGISTRATION(X)   static X local
 
#define CPPUNIT_CHECK(X)
 
#define CPPUNIT_ASSERT(X)
 
#define CPPUNIT_FAIL
 
#define CPPUNIT_ASSERT_EQUAL(X, Y)
 
#define CPPUNIT_ASSERT_DOUBLES_EQUAL(X, Y, Z)
 
#define CPPUNIT_MESSAGE(m)   CPPUNIT_NS::TestCase::message(m)
 

Macro Definition Documentation

◆ CPPUNIT_ASSERT

#define CPPUNIT_ASSERT (   X)
Value:
if (!(X)) { \
Base::error("CPPUNIT_ASSERT", #X, __FILE__, __LINE__); \
return; \
}

Definition at line 200 of file cppunit_mini.h.

◆ CPPUNIT_ASSERT_DOUBLES_EQUAL

#define CPPUNIT_ASSERT_DOUBLES_EQUAL (   X,
  Y,
  Z 
)
Value:
if (!equalDoubles((X), (Y), (Z))) { \
Base::error("CPPUNIT_ASSERT_DOUBLES_EQUAL", #X","#Y","#Z, __FILE__, __LINE__); \
return; \
}
#define Z(I)
#define Y(I)

Definition at line 217 of file cppunit_mini.h.

◆ CPPUNIT_ASSERT_EQUAL

#define CPPUNIT_ASSERT_EQUAL (   X,
  Y 
)
Value:
if ((X) != (Y)) { \
Base::error("CPPUNIT_ASSERT_EQUAL", #X","#Y, __FILE__, __LINE__); \
return; \
}

Definition at line 211 of file cppunit_mini.h.

◆ CPPUNIT_CHECK

#define CPPUNIT_CHECK (   X)
Value:
if (!(X)) { \
Base::error("CPPUNIT_CHECK", #X, __FILE__, __LINE__); \
}

Definition at line 195 of file cppunit_mini.h.

◆ CPPUNIT_EXPLICIT_TEST

#define CPPUNIT_EXPLICIT_TEST (   X)    CPPUNIT_TEST_BASE(X, true)

Definition at line 183 of file cppunit_mini.h.

◆ CPPUNIT_FAIL

#define CPPUNIT_FAIL
Value:
{ \
Base::error("CPPUNIT_FAIL", "", __FILE__, __LINE__); \
return; \
}

Definition at line 206 of file cppunit_mini.h.

◆ CPPUNIT_IGNORE

#define CPPUNIT_IGNORE    ignoring = true

Definition at line 185 of file cppunit_mini.h.

◆ CPPUNIT_MESSAGE

#define CPPUNIT_MESSAGE (   m)    CPPUNIT_NS::TestCase::message(m)

Definition at line 223 of file cppunit_mini.h.

◆ CPPUNIT_MINI_HIDE_UNUSED_VARIABLE

#define CPPUNIT_MINI_HIDE_UNUSED_VARIABLE (   v)

Definition at line 138 of file cppunit_mini.h.

◆ CPPUNIT_NS

#define CPPUNIT_NS

Definition at line 24 of file cppunit_mini.h.

◆ CPPUNIT_STOP_IGNORE

#define CPPUNIT_STOP_IGNORE    ignoring = false

Definition at line 188 of file cppunit_mini.h.

◆ CPPUNIT_TEST

#define CPPUNIT_TEST (   X)    CPPUNIT_TEST_BASE(X, false)

Definition at line 182 of file cppunit_mini.h.

◆ CPPUNIT_TEST_BASE

#define CPPUNIT_TEST_BASE (   X,
  Y 
)
Value:
{ \
bool do_progress; \
bool shouldRun = shouldRunThis(in_name, className, #X, invert, Y, do_progress); \
if (shouldRun || do_progress) { \
setUp(); \
progress(className, #X, ignoring || !shouldRun, !ignoring && Y); \
if (shouldRun && !ignoring) \
X(); \
tearDown(); \
} \
}
GLboolean invert
Definition: gl.h:1949

Definition at line 168 of file cppunit_mini.h.

◆ CPPUNIT_TEST_SUITE

#define CPPUNIT_TEST_SUITE (   X)
Value:
typedef CPPUNIT_NS::TestCase Base; \
virtual void myRun(const char *in_name, bool invert = false) { \
const char *className = #X; CPPUNIT_MINI_HIDE_UNUSED_VARIABLE(className) \
bool ignoring = false; CPPUNIT_MINI_HIDE_UNUSED_VARIABLE(ignoring)
#define CPPUNIT_MINI_HIDE_UNUSED_VARIABLE(v)
Definition: cppunit_mini.h:138
#define X(b, s)
_In_opt_ ULONG Base
Definition: rtlfuncs.h:2451

Definition at line 142 of file cppunit_mini.h.

◆ CPPUNIT_TEST_SUITE_END

#define CPPUNIT_TEST_SUITE_END ( )    }

Definition at line 191 of file cppunit_mini.h.

◆ CPPUNIT_TEST_SUITE_REGISTRATION

#define CPPUNIT_TEST_SUITE_REGISTRATION (   X)    static X local

Definition at line 193 of file cppunit_mini.h.