Ignore:
File:
1 edited

Legend:

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

    r46a47c0 r62223ec  
    11/*
    2  * Copyright (c) 2023 Jiri Svoboda
     2 * Copyright (c) 2020 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    4141static errno_t test_ctl_paint(void *);
    4242static ui_evclaim_t test_ctl_pos_event(void *, pos_event_t *);
    43 static void test_ctl_unfocus(void *, unsigned);
     43static void test_ctl_unfocus(void *);
    4444
    4545static ui_control_ops_t test_ctl_ops = {
     
    6666        /** @c true iff unfocus was called */
    6767        bool unfocus;
    68         /** Number of remaining foci */
    69         unsigned unfocus_nfocus;
    7068} test_resp_t;
    7169
     
    255253        resp.unfocus = false;
    256254
    257         ui_fixed_unfocus(fixed, 42);
     255        ui_fixed_unfocus(fixed);
    258256        PCUT_ASSERT_TRUE(resp.unfocus);
    259         PCUT_ASSERT_INT_EQUALS(42, resp.unfocus_nfocus);
    260257
    261258        ui_fixed_destroy(fixed);
     
    287284}
    288285
    289 static void test_ctl_unfocus(void *arg, unsigned nfocus)
     286static void test_ctl_unfocus(void *arg)
    290287{
    291288        test_resp_t *resp = (test_resp_t *) arg;
    292289
    293290        resp->unfocus = true;
    294         resp->unfocus_nfocus = nfocus;
    295291}
    296292
Note: See TracChangeset for help on using the changeset viewer.