libpurple/tests/tests.h

Sat, 18 Aug 2007 05:54:49 +0000

author
William Ehlhardt <williamehlhardt@gmail.com>
date
Sat, 18 Aug 2007 05:54:49 +0000
branch
soc.2007.certmgr
changeset 19489
772b691e901b
parent 15950
0f01bb61c5d3
child 18068
b6554e3c8224
child 21919
9be7eb0e891c
permissions
-rw-r--r--

- Add purple_certificate_display_x509

#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 */

mercurial