summaryrefslogtreecommitdiff
path: root/tests/gnio-util.c
diff options
context:
space:
mode:
authorTravis Reitter <travis.reitter@collabora.co.uk>2011-10-25 09:27:42 -0700
committerTravis Reitter <travis.reitter@collabora.co.uk>2011-10-28 14:32:50 -0700
commit9a7d9195dab1035ffe2da0d7cd28c4a06b484881 (patch)
tree45ec80e2ae432ed5d51665d00ea263eabe4a4f59 /tests/gnio-util.c
parent2c30c3b8f7a7df8ae78aead13a84e39614471fba (diff)
downloadtelepathy-glib-9a7d9195dab1035ffe2da0d7cd28c4a06b484881.tar.gz
Replace deprecated g_unix_socket_* functions.
https://bugs.freedesktop.org/show_bug.cgi?id=42233
Diffstat (limited to 'tests/gnio-util.c')
-rw-r--r--tests/gnio-util.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/gnio-util.c b/tests/gnio-util.c
index 8abcac325..ca924367d 100644
--- a/tests/gnio-util.c
+++ b/tests/gnio-util.c
@@ -203,7 +203,8 @@ test_variant_to_sockaddr_unix (void)
unixaddr = G_UNIX_SOCKET_ADDRESS (sockaddr);
- g_assert (g_unix_socket_address_get_is_abstract (unixaddr) == FALSE);
+ g_assert (g_unix_socket_address_get_address_type (unixaddr) !=
+ G_UNIX_SOCKET_ADDRESS_ABSTRACT);
g_assert_cmpuint (g_unix_socket_address_get_path_len (unixaddr), ==, pathlen);
g_assert_cmpstr (g_unix_socket_address_get_path (unixaddr), ==, UNIX_ADDR);
@@ -235,7 +236,8 @@ test_variant_to_sockaddr_abstract_unix (void)
unixaddr = G_UNIX_SOCKET_ADDRESS (sockaddr);
- g_assert (g_unix_socket_address_get_is_abstract (unixaddr) == TRUE);
+ g_assert (g_unix_socket_address_get_address_type (unixaddr) ==
+ G_UNIX_SOCKET_ADDRESS_ABSTRACT);
g_assert_cmpuint (g_unix_socket_address_get_path_len (unixaddr), ==,
ABST_ADDR_LEN);
g_assert (memcmp (g_unix_socket_address_get_path (unixaddr), ABST_ADDR,
@@ -271,8 +273,9 @@ test_sockaddr_to_variant_unix (void)
static void
test_sockaddr_to_variant_abstract_unix (void)
{
- GSocketAddress *sockaddr = g_unix_socket_address_new_abstract (
- ABST_ADDR, ABST_ADDR_LEN);
+ GSocketAddress *sockaddr = g_unix_socket_address_new_with_type (
+ ABST_ADDR, ABST_ADDR_LEN, G_UNIX_SOCKET_ADDRESS_ABSTRACT);
+
GValue *variant;
GArray *array;
TpSocketAddressType type;