Changeset 46a47c0 in mainline for uspace/lib/ui/test/control.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/control.c
rb3eeae5 r46a47c0 1 1 /* 2 * Copyright (c) 202 1Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 44 44 static ui_evclaim_t test_ctl_kbd_event(void *, kbd_event_t *); 45 45 static ui_evclaim_t test_ctl_pos_event(void *, pos_event_t *); 46 static void test_ctl_unfocus(void * );46 static void test_ctl_unfocus(void *, unsigned); 47 47 48 48 static ui_control_ops_t test_ctl_ops = { … … 79 79 /** @c true iff unfocus was called */ 80 80 bool unfocus; 81 /** Number of remaining foci that was sent */ 82 unsigned unfocus_nfocus; 81 83 } test_resp_t; 82 84 … … 223 225 resp.unfocus = false; 224 226 225 ui_control_unfocus(control );227 ui_control_unfocus(control, 42); 226 228 PCUT_ASSERT_TRUE(resp.unfocus); 229 PCUT_ASSERT_INT_EQUALS(42, resp.unfocus_nfocus); 227 230 228 231 ui_control_delete(control); … … 264 267 } 265 268 266 static void test_ctl_unfocus(void *arg )269 static void test_ctl_unfocus(void *arg, unsigned nfocus) 267 270 { 268 271 test_resp_t *resp = (test_resp_t *) arg; 269 272 270 273 resp->unfocus = true; 274 resp->unfocus_nfocus = nfocus; 271 275 } 272 276
Note:
See TracChangeset
for help on using the changeset viewer.