Mon, 27 Nov 2006 02:59:33 +0000
[gaim-migrate @ 17827]
Added tests for MD4, MD5, and SHA-1.
Started the basics of making check_libgaim a libgaim "ui"
Other assorted things.
| 15104 | 1 | #ifndef TESTS_H |
| 2 | # define TESTS_H | |
| 3 | ||
| 4 | #include <glib.h> | |
| 5 | #include <check.h> | |
| 6 | ||
| 7 | /* define the test suites here */ | |
| 8 | /* remember to add the suite to the runner in check_libgaim.c */ | |
| 9 | Suite * util_suite(void); | |
|
15105
d90c07dc4d2b
[gaim-migrate @ 17827]
Gary Kramlich <grim@reaperworld.com>
parents:
15104
diff
changeset
|
10 | Suite * cipher_suite(void); |
| 15104 | 11 | |
| 12 | /* helper macros */ | |
| 13 | #define assert_string_equal(expected, actual) { \ | |
| 14 | const gchar *a = actual; \ | |
| 15 | fail_unless(strcmp(expected, a) == 0, "Expecting '%s' but got '%s'", expected, a); \ | |
| 16 | } | |
| 17 | ||
| 18 | #define assert_string_equal_free(expected, actual) { \ | |
| 19 | gchar *a = actual; \ | |
| 20 | assert_string_equal(expected, a); \ | |
| 21 | g_free(a); \ | |
| 22 | } | |
| 23 | ||
| 24 | ||
| 25 | #endif /* ifndef TESTS_H */ | |
| 26 |