Changes in uspace/lib/ui/test/fixed.c [46a47c0:62223ec] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/test/fixed.c
r46a47c0 r62223ec 1 1 /* 2 * Copyright (c) 202 3Jiri Svoboda2 * Copyright (c) 2020 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 * , unsigned);43 static void test_ctl_unfocus(void *); 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;70 68 } test_resp_t; 71 69 … … 255 253 resp.unfocus = false; 256 254 257 ui_fixed_unfocus(fixed , 42);255 ui_fixed_unfocus(fixed); 258 256 PCUT_ASSERT_TRUE(resp.unfocus); 259 PCUT_ASSERT_INT_EQUALS(42, resp.unfocus_nfocus);260 257 261 258 ui_fixed_destroy(fixed); … … 287 284 } 288 285 289 static void test_ctl_unfocus(void *arg , unsigned nfocus)286 static void test_ctl_unfocus(void *arg) 290 287 { 291 288 test_resp_t *resp = (test_resp_t *) arg; 292 289 293 290 resp->unfocus = true; 294 resp->unfocus_nfocus = nfocus;295 291 } 296 292
Note:
See TracChangeset
for help on using the changeset viewer.