Changeset 46a47c0 in mainline for uspace/lib/ui/test/fixed.c
- Timestamp:
- 2023-01-16T20:34:01Z (2 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b0ae23f
- Parents:
- b3eeae5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/test/fixed.c
rb3eeae5 r46a47c0 1 1 /* 2 * Copyright (c) 202 0Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 41 41 static errno_t test_ctl_paint(void *); 42 42 static ui_evclaim_t test_ctl_pos_event(void *, pos_event_t *); 43 static void test_ctl_unfocus(void * );43 static void test_ctl_unfocus(void *, unsigned); 44 44 45 45 static ui_control_ops_t test_ctl_ops = { … … 66 66 /** @c true iff unfocus was called */ 67 67 bool unfocus; 68 /** Number of remaining foci */ 69 unsigned unfocus_nfocus; 68 70 } test_resp_t; 69 71 … … 253 255 resp.unfocus = false; 254 256 255 ui_fixed_unfocus(fixed );257 ui_fixed_unfocus(fixed, 42); 256 258 PCUT_ASSERT_TRUE(resp.unfocus); 259 PCUT_ASSERT_INT_EQUALS(42, resp.unfocus_nfocus); 257 260 258 261 ui_fixed_destroy(fixed); … … 284 287 } 285 288 286 static void test_ctl_unfocus(void *arg )289 static void test_ctl_unfocus(void *arg, unsigned nfocus) 287 290 { 288 291 test_resp_t *resp = (test_resp_t *) arg; 289 292 290 293 resp->unfocus = true; 294 resp->unfocus_nfocus = nfocus; 291 295 } 292 296
Note:
See TracChangeset
for help on using the changeset viewer.