From d1c7eefb66483c3ea4d9e7fb6dca23dcfac8cad5 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Mon, 5 May 2003 03:13:35 +0000 Subject: 2003-05-04 Havoc Pennington * dbus/dbus-message-handler.c (_dbus_message_handler_test): add unit test * dbus/dbus-marshal.c (_dbus_demarshal_string_array): fix this function, which assumed length was in # of strings, not bytes * dbus/dbus-message.c (_dbus_message_test): add tests for some missing coverage * dbus/dbus-connection.c (_dbus_connection_queue_received_message): disable function for now, we are only using it in test mode * dbus/dbus-message.c (_dbus_message_loader_queue_messages): remove a mistaken FIXME --- dbus/dbus-hash.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'dbus/dbus-hash.c') diff --git a/dbus/dbus-hash.c b/dbus/dbus-hash.c index 8d2747b4..2c410010 100644 --- a/dbus/dbus-hash.c +++ b/dbus/dbus-hash.c @@ -1094,6 +1094,8 @@ _dbus_hash_table_lookup_int (DBusHashTable *table, return NULL; } +#ifdef DBUS_BUILD_TESTS +/* disabled since it's only used for testing */ /** * Looks up the value for a given integer in a hash table * of type #DBUS_HASH_POINTER. Returns %NULL if the value @@ -1118,6 +1120,7 @@ _dbus_hash_table_lookup_pointer (DBusHashTable *table, else return NULL; } +#endif /* DBUS_BUILD_TESTS */ /** * Looks up the value for a given integer in a hash table @@ -1200,6 +1203,8 @@ _dbus_hash_table_remove_int (DBusHashTable *table, return FALSE; } +#ifdef DBUS_BUILD_TESTS +/* disabled since it's only used for testing */ /** * Removes the hash entry for the given key. If no hash entry * for the key exists, does nothing. @@ -1227,7 +1232,7 @@ _dbus_hash_table_remove_pointer (DBusHashTable *table, else return FALSE; } - +#endif /* DBUS_BUILD_TESTS */ /** * Removes the hash entry for the given key. If no hash entry @@ -1332,6 +1337,8 @@ _dbus_hash_table_insert_int (DBusHashTable *table, return TRUE; } +#ifdef DBUS_BUILD_TESTS +/* disabled since it's only used for testing */ /** * Creates a hash entry with the given key and value. * The key and value are not copied; they are stored @@ -1372,7 +1379,7 @@ _dbus_hash_table_insert_pointer (DBusHashTable *table, return TRUE; } - +#endif /* DBUS_BUILD_TESTS */ /** * Creates a hash entry with the given key and value. -- cgit