Add noinst convenience test library, add a test-shutdown
[platform/upstream/dbus.git] / test / test-utils.h
1 #ifndef TEST_UTILS_H
2 #define TEST_UTILS_H
3 #include <config.h>
4 #ifndef DBUS_COMPILATION
5 #define DBUS_COMPILATION /* Cheat and use private stuff */
6 #endif
7 #include <dbus/dbus.h>
8 #include <stdio.h>
9 #include <stdlib.h>
10 #include <dbus/dbus-mainloop.h>
11 #include <dbus/dbus-internals.h>
12 #undef DBUS_COMPILATION
13
14 dbus_bool_t test_connection_setup                 (DBusLoop       *loop,
15                                                    DBusConnection *connection);
16 void        test_connection_shutdown              (DBusLoop       *loop,
17                                                    DBusConnection *connection);
18 void        test_connection_dispatch_all_messages (DBusConnection *connection);
19 dbus_bool_t test_connection_dispatch_one_message  (DBusConnection *connection);
20
21 dbus_bool_t test_server_setup                     (DBusLoop      *loop,
22                                                    DBusServer    *server);
23 void        test_server_shutdown                  (DBusLoop      *loop,
24                                                    DBusServer    *server);
25
26 #endif