diff options
Diffstat (limited to 'dbus/dbus-gmain.c')
-rw-r--r-- | dbus/dbus-gmain.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/dbus/dbus-gmain.c b/dbus/dbus-gmain.c index 6cf5af5..e6ce52b 100644 --- a/dbus/dbus-gmain.c +++ b/dbus/dbus-gmain.c @@ -786,45 +786,3 @@ dbus_g_bus_get_private (DBusBusType type, return DBUS_G_CONNECTION_FROM_CONNECTION (connection); } - -#ifdef DBUS_BUILD_TESTS - -/* - * Unit test for GLib main loop integration - * Returns: %TRUE on success. - */ -gboolean -_dbus_gmain_test (const char *test_data_dir) -{ - GType type; - GType rectype; - - g_type_init (); - _dbus_g_value_types_init (); - - rectype = dbus_g_type_get_collection ("GArray", G_TYPE_UINT); - g_assert (rectype != G_TYPE_INVALID); - g_assert (!strcmp (g_type_name (rectype), "GArray_guint_")); - - type = _dbus_gtype_from_signature ("au", TRUE); - g_assert (type == rectype); - - rectype = dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_STRING); - g_assert (rectype != G_TYPE_INVALID); - g_assert (!strcmp (g_type_name (rectype), "GHashTable_gchararray+gchararray_")); - - type = _dbus_gtype_from_signature ("a{ss}", TRUE); - g_assert (type == rectype); - - type = _dbus_gtype_from_signature ("o", FALSE); - g_assert (type == DBUS_TYPE_G_OBJECT_PATH); - type = _dbus_gtype_from_signature ("o", TRUE); - g_assert (type == DBUS_TYPE_G_OBJECT_PATH); - - type = _dbus_gtype_from_signature ("g", TRUE); - g_assert (type == DBUS_TYPE_G_SIGNATURE); - - return TRUE; -} - -#endif /* DBUS_BUILD_TESTS */ |