summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-hash.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-05-05 03:13:35 +0000
committerHavoc Pennington <hp@redhat.com>2003-05-05 03:13:35 +0000
commitd1c7eefb66483c3ea4d9e7fb6dca23dcfac8cad5 (patch)
treed012f30757e2319ff1862f51d406291506be5b55 /dbus/dbus-hash.c
parent3d0dcbf536601e39d3d5125ed29f5afa217c9bf6 (diff)
2003-05-04 Havoc Pennington <hp@pobox.com>
* 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
Diffstat (limited to 'dbus/dbus-hash.c')
-rw-r--r--dbus/dbus-hash.c11
1 files changed, 9 insertions, 2 deletions
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.