Mercurial > pidgin
view libgaim/tests/tests.h @ 15043:603960420450
[gaim-migrate @ 17827]
Added tests for MD4, MD5, and SHA-1.
Started the basics of making check_libgaim a libgaim "ui"
Other assorted things.
committer: Tailor Script <tailor@pidgin.im>
author | Gary Kramlich <grim@reaperworld.com> |
---|---|
date | Mon, 27 Nov 2006 02:59:33 +0000 |
parents | edd78a0c6698 |
children | d7fccb8cb8a8 |
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_libgaim.c */ Suite * util_suite(void); Suite * cipher_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 *a = actual; \ assert_string_equal(expected, a); \ g_free(a); \ } #endif /* ifndef TESTS_H */