Changeset bef51cf in mainline
- Timestamp:
- 2019-10-05T09:19:15Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 159776f
- Parents:
- 6af4b4f
- Location:
- uspace/srv/hid/display
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/meson.build
r6af4b4f rbef51cf 38 38 'display.c', 39 39 'window.c', 40 'test/display.c', 40 41 'test/main.c', 41 'test/ display.c',42 'test/window.c', 42 43 ) -
uspace/srv/hid/display/test/display.c
r6af4b4f rbef51cf 33 33 34 34 #include "../display.h" 35 #include "../window.h" 35 36 36 37 PCUT_INIT; … … 39 40 40 41 /** Display creation and destruction. */ 41 PCUT_TEST(display_ basic)42 PCUT_TEST(display_create_destroy) 42 43 { 43 44 ds_display_t *disp; … … 50 51 } 51 52 53 /** Basic window operation. */ 54 PCUT_TEST(display_window) 55 { 56 ds_display_t *disp; 57 ds_window_t *wnd; 58 ds_window_t *w0, *w1, *w2; 59 errno_t rc; 60 61 rc = ds_display_create(&disp); 62 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 63 64 rc = ds_window_create(disp, &wnd); 65 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 66 67 w0 = ds_display_first_window(disp); 68 PCUT_ASSERT_EQUALS(w0, wnd); 69 70 w1 = ds_display_next_window(w0); 71 PCUT_ASSERT_NULL(w1); 72 73 w2 = ds_display_find_window(disp, wnd->id); 74 PCUT_ASSERT_EQUALS(w2, wnd); 75 76 ds_window_delete(wnd); 77 ds_display_destroy(disp); 78 } 79 52 80 PCUT_EXPORT(display); -
uspace/srv/hid/display/test/main.c
r6af4b4f rbef51cf 32 32 33 33 PCUT_IMPORT(display); 34 PCUT_IMPORT(window); 34 35 35 36 PCUT_MAIN(); -
uspace/srv/hid/display/window.c
r6af4b4f rbef51cf 131 131 errno_t rc; 132 132 133 ds_display_remove_window(wnd); 134 133 135 rc = gfx_context_delete(wnd->gc); 134 136 if (rc != EOK)
Note:
See TracChangeset
for help on using the changeset viewer.