Mercurial > pidgin.yaz
view libpurple/tests/tests.h @ 20405:2f123c4b36a2
propagate from branch 'im.pidgin.pidgin' (head 5e61fe349507736c585798abea83ef3d8383d8b4)
to branch 'im.pidgin.cpw.khc.msnp14' (head 6c517a3c81b05795b3029a1e36d7683dba59ab41)
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 15 Apr 2007 05:42:29 +0000 |
parents | 6577b292e7b4 |
children | fb73a6ed8197 |
line wrap: on
line source
#ifndef TESTS_H # define TESTS_H #include <glib.h> #include <check.h> /* define the test suites here */ /* remember to add the suite to the runner in check_libpurple.c */ Suite * master_suite(void); Suite * cipher_suite(void); Suite * jabber_jutil_suite(void); Suite * util_suite(void); /* helper macros */ #define assert_string_equal(expected, actual) { \ const gchar *a = actual; \ fail_unless(strcmp(expected, a) == 0, "Expecting '%s' but got '%s'", expected, a); \ } #define assert_string_equal_free(expected, actual) { \ gchar *b = actual; \ assert_string_equal(expected, b); \ g_free(b); \ } #endif /* ifndef TESTS_H */