diff options
Diffstat (limited to 'tests/common/test_contracts.c')
| -rw-r--r-- | tests/common/test_contracts.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/common/test_contracts.c b/tests/common/test_contracts.c index 8580dd6..ac0065c 100644 --- a/tests/common/test_contracts.c +++ b/tests/common/test_contracts.c @@ -114,7 +114,7 @@ static void copy(struct yasl_display *d, enum yasl_selection sel, const char *te { (void)d; (void)sel; (void)text; copies++; } static void paste(struct yasl_display *d, enum yasl_selection sel, struct yasl_surface *s) { (void)d; (void)sel; (void)s; pastes++; } -static struct yasl_surface *create(struct yasl_display *d, const struct yasl_surface_spec *spec, void *graphics_device) +static struct yasl_surface *create(struct yasl_display *d, const struct yasl_window_spec *spec, void *graphics_device) { (void)d; (void)spec; (void)graphics_device; creates++; return NULL; } static void *native_device; @@ -123,7 +123,7 @@ static struct yasl_surface native_surface; static uint32_t native_caps(const struct yasl_display *d) { (void)d; return YASL_CAP_NATIVE_GRAPHICS; } static struct yasl_surface *native_create(struct yasl_display *d, - const struct yasl_surface_spec *spec, void *device) + const struct yasl_window_spec *spec, void *device) { (void)spec; native_device = device; @@ -144,7 +144,7 @@ static void test_native(void) const struct yasl_backend_ops ops = {.display_caps = native_caps, .surface_create_toplevel = native_create, .surface_get_native_frame = native_frame}; struct yasl_display d = {.ops = &ops}; - struct yasl_surface_spec spec = {.size = {100, 80}}; + struct yasl_window_spec spec = {.size = {100, 80}}; assert(yasl_surface_create_toplevel(&d, &spec) == &native_surface); assert(!native_device); assert(yasl_surface_create_native(&d, &spec, &d) == &native_surface); @@ -209,7 +209,7 @@ static void test_validation(void) yasl_display_copy(&d, YASL_CLIPBOARD, "yes"); yasl_display_paste(&d, YASL_CLIPBOARD, &s); assert(copies == 1 && pastes == 1); - struct yasl_surface_spec spec = {.size = {100, 80}}; + struct yasl_window_spec spec = {.size = {100, 80}}; assert(!yasl_surface_create_native(&d, &spec, &d) && errno == ENOTSUP); assert(!yasl_surface_create_native(&d, &spec, NULL) && errno == EINVAL); spec.size.x = 0; @@ -257,7 +257,7 @@ static int dispatch_failure(struct yasl_display *d, int timeout) { (void)d; (void)timeout; return -1; } static struct yasl_surface *create_failure(struct yasl_display *d, - const struct yasl_surface_spec *spec, void *device) + const struct yasl_window_spec *spec, void *device) { (void)d; (void)spec; (void)device; return NULL; } static int drag_starts; @@ -310,7 +310,7 @@ static void test_errors(void) d.ops = &ops; errno = ERANGE; assert(yasl_display_dispatch(&d, 0) == -1 && errno == EIO); - struct yasl_surface_spec toplevel = {.size = {120, 80}}; + struct yasl_window_spec toplevel = {.size = {120, 80}}; errno = ERANGE; assert(!yasl_surface_create_toplevel(&d, &toplevel) && errno == ENODEV); assert(yasl_display_drag_start(&d, &s, NULL, NULL, NULL)); |
