[glib] Improve test coverage for GSocketConnection



commit efd822bb07c50e68d3cbe4c7f7a3d816a0ab7808
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Aug 19 02:26:42 2012 -0400

    Improve test coverage for GSocketConnection

 gio/tests/proxy-test.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gio/tests/proxy-test.c b/gio/tests/proxy-test.c
index 24c27e0..ff65e2a 100644
--- a/gio/tests/proxy-test.c
+++ b/gio/tests/proxy-test.c
@@ -826,6 +826,11 @@ assert_direct (GSocketConnection *conn)
   addr = g_socket_connection_get_remote_address (conn, &error);
   g_assert_no_error (error);
   g_assert (!G_IS_PROXY_ADDRESS (addr));
+
+  addr = g_socket_connection_get_local_address (conn, &error);
+  g_assert_no_error (error);
+
+  g_assert (g_socket_connection_is_connected (conn));
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]