Changeset 3434233 in mainline for uspace/srv/hid/display/test/display.c
- Timestamp:
- 2019-12-16T10:14:12Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 65160d7
- Parents:
- fdc8e40
- git-author:
- Jiri Svoboda <jiri@…> (2019-12-15 10:13:47)
- git-committer:
- Jiri Svoboda <jiri@…> (2019-12-16 10:14:12)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/test/display.c
rfdc8e40 r3434233 27 27 */ 28 28 29 #include <disp_srv.h> 29 30 #include <errno.h> 30 31 #include <pcut/pcut.h> … … 99 100 ds_window_t *w1; 100 101 ds_window_t *wnd; 102 display_wnd_params_t params; 101 103 errno_t rc; 102 104 … … 107 109 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 108 110 109 rc = ds_window_create(client, &w1); 110 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 111 112 rc = ds_window_create(client, &w0); 111 display_wnd_params_init(¶ms); 112 params.rect.p0.x = params.rect.p0.y = 0; 113 params.rect.p1.x = params.rect.p1.y = 1; 114 115 rc = ds_window_create(client, ¶ms, &w1); 116 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 117 118 rc = ds_window_create(client, ¶ms, &w0); 113 119 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 114 120 … … 148 154 ds_window_t *w1; 149 155 ds_window_t *wnd; 156 display_wnd_params_t params; 150 157 gfx_coord2_t pos; 151 158 errno_t rc; … … 157 164 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 158 165 159 rc = ds_window_create(client, &w0); 160 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 161 162 rc = ds_window_create(client, &w1); 166 display_wnd_params_init(¶ms); 167 params.rect.p0.x = params.rect.p0.y = 0; 168 params.rect.p1.x = params.rect.p1.y = 100; 169 170 rc = ds_window_create(client, ¶ms, &w0); 171 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 172 173 rc = ds_window_create(client, ¶ms, &w1); 163 174 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 164 175 … … 217 228 ds_client_t *client; 218 229 ds_window_t *wnd; 230 display_wnd_params_t params; 219 231 kbd_event_t event; 220 232 bool called_cb = false; … … 230 242 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 231 243 232 rc = ds_window_create(client, &wnd); 244 display_wnd_params_init(¶ms); 245 params.rect.p0.x = params.rect.p0.y = 0; 246 params.rect.p1.x = params.rect.p1.y = 1; 247 248 rc = ds_window_create(client, ¶ms, &wnd); 233 249 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 234 250 … … 260 276 ds_client_t *client; 261 277 ds_window_t *w0, *w1; 278 display_wnd_params_t params; 262 279 kbd_event_t event; 263 280 bool called_cb = false; … … 273 290 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 274 291 275 rc = ds_window_create(client, &w0); 276 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 277 278 rc = ds_window_create(client, &w1); 292 display_wnd_params_init(¶ms); 293 params.rect.p0.x = params.rect.p0.y = 0; 294 params.rect.p1.x = params.rect.p1.y = 1; 295 296 rc = ds_window_create(client, ¶ms, &w0); 297 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 298 299 rc = ds_window_create(client, ¶ms, &w1); 279 300 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 280 301 … … 317 338 ds_client_t *client; 318 339 ds_window_t *w0, *w1; 340 display_wnd_params_t params; 319 341 ptd_event_t event; 320 342 bool called_cb = false; … … 330 352 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 331 353 332 rc = ds_window_create(client, &w0); 333 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 334 335 rc = ds_window_create(client, &w1); 354 display_wnd_params_init(¶ms); 355 params.rect.p0.x = params.rect.p0.y = 0; 356 params.rect.p1.x = params.rect.p1.y = 1; 357 358 rc = ds_window_create(client, ¶ms, &w0); 359 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 360 361 rc = ds_window_create(client, ¶ms, &w1); 336 362 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 337 363
Note:
See TracChangeset
for help on using the changeset viewer.