Changeset 3434233 in mainline for uspace/srv/hid/display/test/client.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/client.c
rfdc8e40 r3434233 27 27 */ 28 28 29 #include <disp_srv.h> 29 30 #include <errno.h> 30 31 #include <pcut/pcut.h> … … 83 84 ds_window_t *w1; 84 85 ds_window_t *wnd; 86 display_wnd_params_t params; 85 87 errno_t rc; 86 88 … … 91 93 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 92 94 93 rc = ds_window_create(client, &w0); 94 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 95 96 rc = ds_window_create(client, &w1); 95 display_wnd_params_init(¶ms); 96 params.rect.p0.x = params.rect.p0.y = 0; 97 params.rect.p1.x = params.rect.p1.y = 1; 98 99 rc = ds_window_create(client, ¶ms, &w0); 100 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 101 102 rc = ds_window_create(client, ¶ms, &w1); 97 103 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 98 104 … … 123 129 ds_window_t *w1; 124 130 ds_window_t *wnd; 131 display_wnd_params_t params; 125 132 errno_t rc; 126 133 … … 131 138 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 132 139 133 rc = ds_window_create(client, &w0); 134 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 135 136 rc = ds_window_create(client, &w1); 140 display_wnd_params_init(¶ms); 141 params.rect.p0.x = params.rect.p0.y = 0; 142 params.rect.p1.x = params.rect.p1.y = 1; 143 144 rc = ds_window_create(client, ¶ms, &w0); 145 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 146 147 rc = ds_window_create(client, ¶ms, &w1); 137 148 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 138 149 … … 158 169 ds_client_t *client; 159 170 ds_window_t *wnd; 171 display_wnd_params_t params; 160 172 kbd_event_t event; 161 173 ds_window_t *rwindow; … … 170 182 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 171 183 172 rc = ds_window_create(client, &wnd); 184 display_wnd_params_init(¶ms); 185 params.rect.p0.x = params.rect.p0.y = 0; 186 params.rect.p1.x = params.rect.p1.y = 1; 187 188 rc = ds_window_create(client, ¶ms, &wnd); 173 189 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 174 190 … … 213 229 ds_client_t *client; 214 230 ds_window_t *wnd; 231 display_wnd_params_t params; 215 232 errno_t rc; 216 233 … … 221 238 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 222 239 223 rc = ds_window_create(client, &wnd); 240 display_wnd_params_init(¶ms); 241 params.rect.p0.x = params.rect.p0.y = 0; 242 params.rect.p1.x = params.rect.p1.y = 1; 243 244 rc = ds_window_create(client, ¶ms, &wnd); 224 245 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 225 246
Note:
See TracChangeset
for help on using the changeset viewer.