tests/wayland-unit-tests: Make some function names less generic
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2167>
This commit is contained in:
parent
546b94545e
commit
cb424b68e6
@ -298,7 +298,7 @@ typedef struct _ApplyLimitData
|
|||||||
} ApplyLimitData;
|
} ApplyLimitData;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
on_sync_point (MetaWaylandTestDriver *test_driver,
|
on_apply_limits_sync_point (MetaWaylandTestDriver *test_driver,
|
||||||
unsigned int sequence,
|
unsigned int sequence,
|
||||||
struct wl_resource *surface_resource,
|
struct wl_resource *surface_resource,
|
||||||
struct wl_client *wl_client,
|
struct wl_client *wl_client,
|
||||||
@ -344,7 +344,8 @@ toplevel_apply_limits (void)
|
|||||||
data.loop = g_main_loop_new (NULL, FALSE);
|
data.loop = g_main_loop_new (NULL, FALSE);
|
||||||
data.wayland_test_client = meta_wayland_test_client_new ("xdg-apply-limits");
|
data.wayland_test_client = meta_wayland_test_client_new ("xdg-apply-limits");
|
||||||
handler_id = g_signal_connect (test_driver, "sync-point",
|
handler_id = g_signal_connect (test_driver, "sync-point",
|
||||||
G_CALLBACK (on_sync_point), &data);
|
G_CALLBACK (on_apply_limits_sync_point),
|
||||||
|
&data);
|
||||||
g_main_loop_run (data.loop);
|
g_main_loop_run (data.loop);
|
||||||
g_assert_cmpint (data.state, ==, APPLY_LIMIT_STATE_FINISH);
|
g_assert_cmpint (data.state, ==, APPLY_LIMIT_STATE_FINISH);
|
||||||
meta_wayland_test_client_finish (data.wayland_test_client);
|
meta_wayland_test_client_finish (data.wayland_test_client);
|
||||||
|
Loading…
Reference in New Issue
Block a user