Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/test/label.c

    rf93e4e3 r7470d97  
    11/*
    2  * Copyright (c) 2020 Jiri Svoboda
     2 * Copyright (c) 2021 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    4141PCUT_TEST_SUITE(label);
    4242
     43static errno_t testgc_set_clip_rect(void *, gfx_rect_t *);
    4344static errno_t testgc_set_color(void *, gfx_color_t *);
    4445static errno_t testgc_fill_rect(void *, gfx_rect_t *);
     46static errno_t testgc_update(void *);
    4547static errno_t testgc_bitmap_create(void *, gfx_bitmap_params_t *,
    4648    gfx_bitmap_alloc_t *, void **);
     
    5052
    5153static gfx_context_ops_t ops = {
     54        .set_clip_rect = testgc_set_clip_rect,
    5255        .set_color = testgc_set_color,
    5356        .fill_rect = testgc_fill_rect,
     57        .update = testgc_update,
    5458        .bitmap_create = testgc_bitmap_create,
    5559        .bitmap_destroy = testgc_bitmap_destroy,
     
    192196        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    193197
    194         rc = ui_resource_create(gc, &resource);
     198        rc = ui_resource_create(gc, false, &resource);
    195199        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    196200        PCUT_ASSERT_NOT_NULL(resource);
     
    207211        rc = gfx_context_delete(gc);
    208212        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     213}
     214
     215static errno_t testgc_set_clip_rect(void *arg, gfx_rect_t *rect)
     216{
     217        (void) arg;
     218        (void) rect;
     219        return EOK;
    209220}
    210221
     
    220231        (void) arg;
    221232        (void) rect;
     233        return EOK;
     234}
     235
     236static errno_t testgc_update(void *arg)
     237{
     238        (void) arg;
    222239        return EOK;
    223240}
Note: See TracChangeset for help on using the changeset viewer.