Changes in uspace/lib/ui/test/fixed.c [62223ec:46a47c0] in mainline
- File:
- 
      - 1 edited
 
 - 
          
  uspace/lib/ui/test/fixed.c (modified) (5 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      uspace/lib/ui/test/fixed.cr62223ec 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.
  
