Changeset b0ae23f in mainline for uspace/lib/display/test/display.c
- Timestamp:
- 2023-01-17T15:21:13Z (15 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a0d4afe
- Parents:
- 46a47c0
- git-author:
- Jiri Svoboda <jiri@…> (2023-01-17 18:21:02)
- git-committer:
- Jiri Svoboda <jiri@…> (2023-01-17 15:21:13)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/display/test/display.c
r46a47c0 rb0ae23f 63 63 static errno_t test_window_get_max_rect(void *, sysarg_t, gfx_rect_t *); 64 64 static errno_t test_window_resize_req(void *, sysarg_t, display_wnd_rsztype_t, 65 gfx_coord2_t * );65 gfx_coord2_t *, sysarg_t); 66 66 static errno_t test_window_resize(void *, sysarg_t, gfx_coord2_t *, 67 67 gfx_rect_t *); … … 141 141 display_wnd_rsztype_t resize_req_rsztype; 142 142 gfx_coord2_t resize_req_pos; 143 sysarg_t resize_req_pos_id; 143 144 144 145 bool window_resize_called; … … 831 832 display_wnd_rsztype_t rsztype; 832 833 gfx_coord2_t pos; 834 sysarg_t pos_id; 833 835 834 836 async_set_fallback_port_handler(test_display_conn, &resp); … … 863 865 pos.x = 42; 864 866 pos.y = 43; 865 866 rc = display_window_resize_req(wnd, rsztype, &pos); 867 pos_id = 44; 868 869 rc = display_window_resize_req(wnd, rsztype, &pos, pos_id); 867 870 PCUT_ASSERT_TRUE(resp.window_resize_req_called); 868 871 PCUT_ASSERT_ERRNO_VAL(resp.rc, rc); … … 871 874 PCUT_ASSERT_INT_EQUALS(pos.x, resp.resize_req_pos.x); 872 875 PCUT_ASSERT_INT_EQUALS(pos.y, resp.resize_req_pos.y); 876 PCUT_ASSERT_INT_EQUALS(pos_id, resp.resize_req_pos_id); 873 877 874 878 display_window_destroy(wnd); … … 889 893 display_wnd_rsztype_t rsztype; 890 894 gfx_coord2_t pos; 895 sysarg_t pos_id; 891 896 892 897 async_set_fallback_port_handler(test_display_conn, &resp); … … 921 926 pos.x = 42; 922 927 pos.y = 43; 923 924 rc = display_window_resize_req(wnd, rsztype, &pos); 928 pos_id = 44; 929 930 rc = display_window_resize_req(wnd, rsztype, &pos, pos_id); 925 931 PCUT_ASSERT_TRUE(resp.window_resize_req_called); 926 932 PCUT_ASSERT_ERRNO_VAL(resp.rc, rc); … … 929 935 PCUT_ASSERT_INT_EQUALS(pos.x, resp.resize_req_pos.x); 930 936 PCUT_ASSERT_INT_EQUALS(pos.y, resp.resize_req_pos.y); 937 PCUT_ASSERT_INT_EQUALS(pos_id, resp.resize_req_pos_id); 931 938 932 939 display_window_destroy(wnd); … … 2188 2195 2189 2196 static errno_t test_window_resize_req(void *arg, sysarg_t wnd_id, 2190 display_wnd_rsztype_t rsztype, gfx_coord2_t *pos )2197 display_wnd_rsztype_t rsztype, gfx_coord2_t *pos, sysarg_t pos_id) 2191 2198 { 2192 2199 test_response_t *resp = (test_response_t *) arg; … … 2196 2203 resp->resize_req_wnd_id = wnd_id; 2197 2204 resp->resize_req_pos = *pos; 2205 resp->resize_req_pos_id = pos_id; 2198 2206 return resp->rc; 2199 2207 }
Note:
See TracChangeset
for help on using the changeset viewer.