summaryrefslogtreecommitdiff
path: root/tests/gnio-util.c
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2009-07-22 11:34:35 +0800
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2010-02-23 09:53:35 +1100
commit4308133999ae411ee4d178d938db344f131007ed (patch)
tree92d1960289866d7c03647efc142c743b903234bd /tests/gnio-util.c
parent40de1451bc17409db01797830a93f7cacbab4c75 (diff)
downloadtelepathy-glib-4308133999ae411ee4d178d938db344f131007ed.tar.gz
Use the correct types for address variants
Diffstat (limited to 'tests/gnio-util.c')
-rw-r--r--tests/gnio-util.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/gnio-util.c b/tests/gnio-util.c
index 59da7bbc9..85ca66641 100644
--- a/tests/gnio-util.c
+++ b/tests/gnio-util.c
@@ -14,6 +14,7 @@
#include <telepathy-glib/gnio-util.h>
#include <telepathy-glib/util.h>
+#include <telepathy-glib/gtypes.h>
#define IPV4_ADDR "127.0.1.1"
#define IPV6_ADDR "::1"
@@ -44,7 +45,7 @@ test_variant_to_sockaddr_ipv4 (void)
g_value_array_append (array, &value);
g_value_unset (&value);
- g_value_init (&value, G_TYPE_VALUE_ARRAY);
+ g_value_init (&value, TP_STRUCT_TYPE_SOCKET_ADDRESS_IPV4);
g_value_take_boxed (&value, array);
/* convert to a GSocketAddress */
@@ -91,7 +92,7 @@ test_variant_to_sockaddr_ipv6 (void)
g_value_array_append (array, &value);
g_value_unset (&value);
- g_value_init (&value, G_TYPE_VALUE_ARRAY);
+ g_value_init (&value, TP_STRUCT_TYPE_SOCKET_ADDRESS_IPV6);
g_value_take_boxed (&value, array);
/* convert to a GSocketAddress */
@@ -131,7 +132,7 @@ test_sockaddr_to_variant_ipv4 (void)
g_object_unref (sockaddr);
g_assert (type == TP_SOCKET_ADDRESS_TYPE_IPV4);
- g_assert (G_VALUE_HOLDS (variant, G_TYPE_VALUE_ARRAY));
+ g_assert (G_VALUE_HOLDS (variant, TP_STRUCT_TYPE_SOCKET_ADDRESS_IPV4));
array = g_value_get_boxed (variant);
value = g_value_array_get_nth (array, 0);
@@ -162,7 +163,7 @@ test_sockaddr_to_variant_ipv6 (void)
g_object_unref (sockaddr);
g_assert (type == TP_SOCKET_ADDRESS_TYPE_IPV6);
- g_assert (G_VALUE_HOLDS (variant, G_TYPE_VALUE_ARRAY));
+ g_assert (G_VALUE_HOLDS (variant, TP_STRUCT_TYPE_SOCKET_ADDRESS_IPV6));
array = g_value_get_boxed (variant);
value = g_value_array_get_nth (array, 0);