From 9a50155ec3e27aa6cedf3f118196f1947c769a29 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Mon, 3 May 2010 09:25:43 -0300 Subject: Use CMake instead of ToscoConf. --- hardinfo2/includes/test-utils.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 hardinfo2/includes/test-utils.h (limited to 'hardinfo2/includes/test-utils.h') diff --git a/hardinfo2/includes/test-utils.h b/hardinfo2/includes/test-utils.h new file mode 100644 index 00000000..21cac6b5 --- /dev/null +++ b/hardinfo2/includes/test-utils.h @@ -0,0 +1,24 @@ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "libsoup/soup-types.h" + +void test_init (int argc, char **argv, GOptionEntry *entries); +void test_cleanup (void); + +extern int debug_level, errors; +extern gboolean expect_warning; +void debug_printf (int level, const char *format, ...) G_GNUC_PRINTF (2, 3); + +#ifdef HAVE_APACHE +void apache_init (void); +void apache_cleanup (void); +#endif + +SoupSession *soup_test_session_new (GType type, ...); +void soup_test_session_abort_unref (SoupSession *session); + +SoupServer *soup_test_server_new (gboolean in_own_thread); +SoupServer *soup_test_server_new_ssl (gboolean in_own_thread); + -- cgit v1.2.3