summary refs log tree commit diff
path: root/clients/common/tests/test-general.c
diff options
context:
space:
mode:
Diffstat (limited to 'clients/common/tests/test-general.c')
-rw-r--r--clients/common/tests/test-general.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/clients/common/tests/test-general.c b/clients/common/tests/test-general.c
index 8f96eb26..64efd14d 100644
--- a/clients/common/tests/test-general.c
+++ b/clients/common/tests/test-general.c
@@ -19,6 +19,10 @@
 
 #include "nm-default.h"
 
+#include "NetworkManager.h"
+
+#include "nm-utils/nm-hash-utils.h"
+
 #include "nm-meta-setting-access.h"
 
 #include "nm-utils/nm-test-utils.h"
@@ -86,7 +90,7 @@ test_client_meta_check (void)
 				g_assert (pi->setting_info == info);
 				g_assert (pi->property_name);
 
-				g_assert (g_hash_table_add (property_names, (gpointer) pi->property_name));
+				g_assert (nm_g_hash_table_add (property_names, (gpointer) pi->property_name));
 
 				g_assert_cmpstr (pi->property_name, ==, pi->meta_type->get_name ((const NMMetaAbstractInfo *) pi, FALSE));
 				g_assert_cmpstr (pi->property_name, ==, pi->meta_type->get_name ((const NMMetaAbstractInfo *) pi, TRUE));
@@ -100,14 +104,14 @@ test_client_meta_check (void)
 
 		if (info->valid_parts) {
 			gsize i, l;
-			gs_unref_hashtable GHashTable *dup = g_hash_table_new (nm_direct_hash, NULL);
+			gs_unref_hashtable GHashTable *dup = g_hash_table_new (NULL, NULL);
 
 			l = NM_PTRARRAY_LEN (info->valid_parts);
 			g_assert (l >= 2);
 
 			for (i = 0; info->valid_parts[i]; i++) {
 				g_assert (info->valid_parts[i]->setting_info);
-				g_assert (g_hash_table_add (dup, (gpointer) info->valid_parts[i]->setting_info));
+				g_assert (nm_g_hash_table_add (dup, (gpointer) info->valid_parts[i]->setting_info));
 
 				if (i == 0) {
 					g_assert (info->valid_parts[i]->setting_info == &nm_meta_setting_infos_editor[NM_META_SETTING_TYPE_CONNECTION]);