Define DBUS_COMPILATION externally for all tests that use internal stuff
[platform/upstream/dbus.git] / test / test-utils.h
1 #ifndef TEST_UTILS_H
2 #define TEST_UTILS_H
3 #include <dbus/dbus.h>
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include <dbus/dbus-mainloop.h>
7 #include <dbus/dbus-internals.h>
8
9 dbus_bool_t test_connection_setup                 (DBusLoop       *loop,
10                                                    DBusConnection *connection);
11 void        test_connection_shutdown              (DBusLoop       *loop,
12                                                    DBusConnection *connection);
13 void        test_connection_dispatch_all_messages (DBusConnection *connection);
14 dbus_bool_t test_connection_dispatch_one_message  (DBusConnection *connection);
15
16 dbus_bool_t test_server_setup                     (DBusLoop      *loop,
17                                                    DBusServer    *server);
18 void        test_server_shutdown                  (DBusLoop      *loop,
19                                                    DBusServer    *server);
20
21 #endif