diff options
Diffstat (limited to 'tests/test_common.h')
| -rw-r--r-- | tests/test_common.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/test_common.h b/tests/test_common.h new file mode 100644 index 0000000..ea35ecd --- /dev/null +++ b/tests/test_common.h | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | #ifndef TEST_COMMON_H | ||
| 2 | #define TEST_COMMON_H | ||
| 3 | |||
| 4 | typedef void (*VoidMethod)(void); | ||
| 5 | typedef bool (*TestMethod)(void *); | ||
| 6 | |||
| 7 | typedef struct { | ||
| 8 | char * name; | ||
| 9 | TestMethod t; | ||
| 10 | void ** cases; | ||
| 11 | } Test; | ||
| 12 | |||
| 13 | typedef struct { | ||
| 14 | VoidMethod setup; | ||
| 15 | Test ** tests; | ||
| 16 | VoidMethod teardown; | ||
| 17 | } TestSuite; | ||
| 18 | |||
| 19 | #endif | ||
