view libpurple/tests/tests.h @ 22275:bd25f8c9d94e

Pidgin attention GUI from nok. Adds "Send Attention" to conversation menu, which sends a generic attention command -- that could be a nudge, buzz, zap, etc. depending on the prpl. Only sends attention command type #0 for now (multiple types tracked by #4810) and the send-attention.png is missing (tracked by #4809). Closes #2788.
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Sat, 09 Feb 2008 07:26:12 +0000
parents fb73a6ed8197
children 42359a734696
line wrap: on
line source

#ifndef TESTS_H
#  define TESTS_H

#include "../purple.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 */