From c83e7243e1e204a1b953164ebef81a61b96d2dd5 Mon Sep 17 00:00:00 2001 From: hujianwei Date: Tue, 22 Nov 2022 11:10:40 +0000 Subject: [PATCH] Fix the tests * tests/damage_test.c (handle_test_surface_committed) (test_surface_listener): * tests/dmabuf_test.c (handle_test_surface_committed) (test_surface_listener): * tests/scale_test.c (handle_test_surface_committed) (test_surface_listener): * tests/seat_test.c (handle_test_surface_committed) (test_surface_listener): * tests/simple_test.c (handle_test_surface_committed) (test_surface_listener): * tests/single_pixel_buffer_test.c (handle_test_surface_committed) (test_surface_listener): * tests/subsurface_test.c (handle_test_surface_committed) (test_surface_listener): * tests/transform_test.c (handle_test_surface_committed) (test_surface_listener): * tests/viewporter_test.c (handle_test_surface_committed) (test_surface_listener): * tests/xdg_activation_test.c (handle_test_surface_committed) (test_surface_listener): Add new committed listeners. --- tests/damage_test.c | 9 +++++++++ tests/dmabuf_test.c | 9 +++++++++ tests/scale_test.c | 9 +++++++++ tests/seat_test.c | 9 +++++++++ tests/simple_test.c | 9 +++++++++ tests/single_pixel_buffer_test.c | 9 +++++++++ tests/subsurface_test.c | 9 +++++++++ tests/transform_test.c | 9 +++++++++ tests/viewporter_test.c | 9 +++++++++ tests/xdg_activation_test.c | 8 ++++++++ 10 files changed, 89 insertions(+) diff --git a/tests/damage_test.c b/tests/damage_test.c index 40f15a9..d40787c 100644 --- a/tests/damage_test.c +++ b/tests/damage_test.c @@ -164,9 +164,18 @@ handle_test_surface_mapped (void *data, struct test_surface *surface, test_single_step (BASIC_TEST_CARD_IMAGE_KIND); } +static void +handle_test_surface_committed (void *data, struct test_surface *surface, + uint32_t presentation_hint) +{ + +} + static const struct test_surface_listener test_surface_listener = { handle_test_surface_mapped, + NULL, + handle_test_surface_committed, }; diff --git a/tests/dmabuf_test.c b/tests/dmabuf_test.c index 65f0bac..292ca19 100644 --- a/tests/dmabuf_test.c +++ b/tests/dmabuf_test.c @@ -282,9 +282,18 @@ handle_test_surface_mapped (void *data, struct test_surface *surface, test_surface_window = xid; } +static void +handle_test_surface_committed (void *data, struct test_surface *surface, + uint32_t presentation_hint) +{ + +} + static const struct test_surface_listener test_surface_listener = { handle_test_surface_mapped, + NULL, + handle_test_surface_committed, }; diff --git a/tests/scale_test.c b/tests/scale_test.c index 11ebece..2b3dfd3 100644 --- a/tests/scale_test.c +++ b/tests/scale_test.c @@ -225,9 +225,18 @@ handle_test_surface_mapped (void *data, struct test_surface *surface, test_single_step (BUFFER_SCALE_1_KIND); } +static void +handle_test_surface_committed (void *data, struct test_surface *surface, + uint32_t presentation_hint) +{ + +} + static const struct test_surface_listener test_surface_listener = { handle_test_surface_mapped, + NULL, + handle_test_surface_committed, }; diff --git a/tests/seat_test.c b/tests/seat_test.c index 8a64023..9fbc0b1 100644 --- a/tests/seat_test.c +++ b/tests/seat_test.c @@ -1324,9 +1324,18 @@ handle_test_surface_mapped (void *data, struct test_surface *surface, test_single_step (TEST_ENTRY_KIND); } +static void +handle_test_surface_committed (void *data, struct test_surface *surface, + uint32_t presentation_hint) +{ + +} + static const struct test_surface_listener test_surface_listener = { handle_test_surface_mapped, + NULL, + handle_test_surface_committed, }; diff --git a/tests/simple_test.c b/tests/simple_test.c index d43b9a3..542b1f9 100644 --- a/tests/simple_test.c +++ b/tests/simple_test.c @@ -140,9 +140,18 @@ handle_test_surface_mapped (void *data, struct test_surface *surface, test_single_step (BASIC_TEST_CARD_IMAGE_KIND); } +static void +handle_test_surface_committed (void *data, struct test_surface *surface, + uint32_t presentation_hint) +{ + +} + static const struct test_surface_listener test_surface_listener = { handle_test_surface_mapped, + NULL, + handle_test_surface_committed, }; diff --git a/tests/single_pixel_buffer_test.c b/tests/single_pixel_buffer_test.c index 1cf4424..010befe 100644 --- a/tests/single_pixel_buffer_test.c +++ b/tests/single_pixel_buffer_test.c @@ -132,9 +132,18 @@ handle_test_surface_mapped (void *data, struct test_surface *surface, test_single_step (SINGLE_PIXEL_BUFFER_KIND); } +static void +handle_test_surface_committed (void *data, struct test_surface *surface, + uint32_t presentation_hint) +{ + +} + static const struct test_surface_listener test_surface_listener = { handle_test_surface_mapped, + NULL, + handle_test_surface_committed, }; diff --git a/tests/subsurface_test.c b/tests/subsurface_test.c index 3efca35..35bf13a 100644 --- a/tests/subsurface_test.c +++ b/tests/subsurface_test.c @@ -962,9 +962,18 @@ handle_test_surface_mapped (void *data, struct test_surface *surface, test_single_step (SUBSURFACE_UNDER_KIND); } +static void +handle_test_surface_committed (void *data, struct test_surface *surface, + uint32_t presentation_hint) +{ + +} + static const struct test_surface_listener test_surface_listener = { handle_test_surface_mapped, + NULL, + handle_test_surface_committed, }; diff --git a/tests/transform_test.c b/tests/transform_test.c index 917dbcc..d7c3813 100644 --- a/tests/transform_test.c +++ b/tests/transform_test.c @@ -253,9 +253,18 @@ handle_test_surface_mapped (void *data, struct test_surface *surface, test_single_step (BUFFER_TRANSFORM_90_KIND); } +static void +handle_test_surface_committed (void *data, struct test_surface *surface, + uint32_t presentation_hint) +{ + +} + static const struct test_surface_listener test_surface_listener = { handle_test_surface_mapped, + NULL, + handle_test_surface_committed, }; diff --git a/tests/viewporter_test.c b/tests/viewporter_test.c index efc9a40..0e67f0b 100644 --- a/tests/viewporter_test.c +++ b/tests/viewporter_test.c @@ -228,9 +228,18 @@ handle_test_surface_mapped (void *data, struct test_surface *surface, test_single_step (VIEWPORT_DEST_200_150_KIND); } +static void +handle_test_surface_committed (void *data, struct test_surface *surface, + uint32_t presentation_hint) +{ + +} + static const struct test_surface_listener test_surface_listener = { handle_test_surface_mapped, + NULL, + handle_test_surface_committed, }; diff --git a/tests/xdg_activation_test.c b/tests/xdg_activation_test.c index 9204341..ccf7ffc 100644 --- a/tests/xdg_activation_test.c +++ b/tests/xdg_activation_test.c @@ -305,10 +305,18 @@ handle_test_surface_activated (void *data, struct test_surface *test_surface, last_activation_surface = activator_surface; } +static void +handle_test_surface_committed (void *data, struct test_surface *surface, + uint32_t presentation_hint) +{ + +} + static const struct test_surface_listener test_surface_listener = { handle_test_surface_mapped, handle_test_surface_activated, + handle_test_surface_committed, };