1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/ofdbus/dbus/tsrc/testapps/dbus_test_cases/test-utils.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,30 @@
1.4 +/* Portion Copyright © 2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.*/
1.5 +#ifndef TEST_UTILS_H
1.6 +#define TEST_UTILS_H
1.7 +#ifndef __SYMBIAN32__
1.8 +#include <config.h>
1.9 +#else
1.10 +#include "config.h"
1.11 +#endif //__SYMBIAN32__
1.12 +#define DBUS_COMPILATION /* Cheat and use private stuff */
1.13 +#include <dbus/dbus.h>
1.14 +#include <stdio.h>
1.15 +#include <stdlib.h>
1.16 +#ifndef __SYMBIAN32__
1.17 +#include <dbus/dbus-mainloop.h>
1.18 +#include <dbus/dbus-internals.h>
1.19 +#else
1.20 +#include "dbus-mainloop.h"
1.21 +#include "dbus-internals.h"
1.22 +#endif //__SYMBIAN32__
1.23 +#undef DBUS_COMPILATION
1.24 +
1.25 +dbus_bool_t test_connection_setup (DBusLoop *loop,
1.26 + DBusConnection *connection);
1.27 +void test_connection_shutdown (DBusLoop *loop,
1.28 + DBusConnection *connection);
1.29 +void test_connection_dispatch_all_messages (DBusConnection *connection);
1.30 +dbus_bool_t test_connection_dispatch_one_message (DBusConnection *connection);
1.31 +
1.32 +
1.33 +#endif