Tizen 2.1 base
[platform/upstream/gcd.git] / dispatch-1.0 / testing / dispatch_test.h
1 #include <errno.h>
2
3 __BEGIN_DECLS
4
5 void test_start(const char* desc);
6 void test_stop(void);
7 void test_stop_after_delay(void *delay);
8
9 void _test_ptr_null(const char* file, long line, const char* desc, const void* ptr);
10 #define test_ptr_null(a,b) _test_ptr_null(__FILE__, __LINE__, a, b)
11
12 void _test_ptr_notnull(const char* file, long line, const char* desc, const void* ptr);
13 #define test_ptr_notnull(a,b) _test_ptr_notnull(__FILE__, __LINE__, a, b)
14
15 void _test_ptr(const char* file, long line, const char* desc, const void* actual, const void* expected);
16 #define test_ptr(a,b,c) _test_ptr(__FILE__, __LINE__, a, b, c)
17
18 void _test_long(const char* file, long line, const char* desc, long actual, long expected);
19 #define test_long(a,b,c) _test_long(__FILE__, __LINE__, a, b, c)
20
21 void _test_long_less_than(const char* file, long line, const char* desc, long actual, long max_expected);
22 #define test_long_less_than(a,b,c) _test_long_less_than(__FILE__, __LINE__, a, b, c)
23
24 void _test_double_less_than_or_equal(const char* file, long line, const char* desc, double val, double max_expected);
25 #define test_double_less_than_or_equal(d, v, m) _test_double_less_than(__FILE__, __LINE__, d, v, m)
26
27 void _test_double_less_than(const char* file, long line, const char* desc, double val, double max_expected);
28 #define test_double_less_than(d, v, m) _test_double_less_than(__FILE__, __LINE__, d, v, m)
29
30 void _test_errno(const char* file, long line, const char* desc, long actual, long expected);
31 #define test_errno(a,b,c) _test_errno(__FILE__, __LINE__, a, b, c)
32
33 __END_DECLS