mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-29 17:10:11 +01:00
* test/Makefile.am: New convenience library libdbus_testutils_la. Reorder build so that test/ gets built before test/name-test so name-test files can depend on it. * test/name-test/test-shutdown.c: New file, exercises dbus_shutdown () a bit. * test/name-test/run-test.sh Run test-shutdown. * test/test-utils.h: In some cases we already have DBUS_COMPILATION defined, avoid double definition warning.
26 lines
1 KiB
C
26 lines
1 KiB
C
#ifndef TEST_UTILS_H
|
|
#define TEST_UTILS_H
|
|
#include <config.h>
|
|
#ifndef DBUS_COMPILATION
|
|
#define DBUS_COMPILATION /* Cheat and use private stuff */
|
|
#endif
|
|
#include <dbus/dbus.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <dbus/dbus-mainloop.h>
|
|
#include <dbus/dbus-internals.h>
|
|
#undef DBUS_COMPILATION
|
|
|
|
dbus_bool_t test_connection_setup (DBusLoop *loop,
|
|
DBusConnection *connection);
|
|
void test_connection_shutdown (DBusLoop *loop,
|
|
DBusConnection *connection);
|
|
void test_connection_dispatch_all_messages (DBusConnection *connection);
|
|
dbus_bool_t test_connection_dispatch_one_message (DBusConnection *connection);
|
|
|
|
dbus_bool_t test_server_setup (DBusLoop *loop,
|
|
DBusServer *server);
|
|
void test_server_shutdown (DBusLoop *loop,
|
|
DBusServer *server);
|
|
|
|
#endif
|