mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-31 12:53:07 +02:00
Improve test coverage for GSocketConnection
This commit is contained in:
parent
cc5d7ccdba
commit
efd822bb07
@ -826,6 +826,11 @@ assert_direct (GSocketConnection *conn)
|
|||||||
addr = g_socket_connection_get_remote_address (conn, &error);
|
addr = g_socket_connection_get_remote_address (conn, &error);
|
||||||
g_assert_no_error (error);
|
g_assert_no_error (error);
|
||||||
g_assert (!G_IS_PROXY_ADDRESS (addr));
|
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
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user