Mercurial > pidgin.yaz
annotate libgaim/tests/tests.h @ 15076:2c93b0620065
[gaim-migrate @ 17859]
Fix win32 build for buddy icon changes.
Also a couple leak fixes.
There really isn't that much actually changed, but also I did some whitespace cleanup at the same time.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 30 Nov 2006 17:45:28 +0000 |
parents | d7fccb8cb8a8 |
children | 4ba77924fc08 |
rev | line source |
---|---|
15043 | 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); | |
15044
603960420450
[gaim-migrate @ 17827]
Gary Kramlich <grim@reaperworld.com>
parents:
15043
diff
changeset
|
10 Suite * cipher_suite(void); |
15043 | 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) { \ | |
15046 | 19 gchar *b = actual; \ |
20 assert_string_equal(expected, b); \ | |
21 g_free(b); \ | |
15043 | 22 } |
23 | |
24 | |
25 #endif /* ifndef TESTS_H */ | |
26 |