Back to index

lightning-sunbird  0.9+nobinonly
Defines
TestCommon.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define ASSERT_TRUE_RET(cond, ret)
#define ASSERT_TRUE(cond)
#define ASSERT_SUCCESS(res)   ASSERT_TRUE(NS_SUCCEEDED(res))
#define ASSERT_FALSE(cond)   ASSERT_TRUE(! cond)

Define Documentation

#define ASSERT_FALSE (   cond)    ASSERT_TRUE(! cond)

Definition at line 54 of file TestCommon.h.

Definition at line 53 of file TestCommon.h.

#define ASSERT_TRUE (   cond)
Value:
if (!cond) { \
    fprintf(stderr, "FAILED: %s at %s:%d\n", #cond, __FILE__, __LINE__); \
    return ; \
  }

Definition at line 47 of file TestCommon.h.

#define ASSERT_TRUE_RET (   cond,
  ret 
)
Value:
if (!cond) { \
    fprintf(stderr, "FAILED: %s at %s:%d\n", #cond, __FILE__, __LINE__); \
    return ret; \
  }

Definition at line 41 of file TestCommon.h.