Improve test coverage for GSocketConnection

This commit is contained in:
Matthias Clasen 2012-08-19 02:26:42 -04:00
parent cc5d7ccdba
commit efd822bb07

View File

@ -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