Changeset b3c185b6 in mainline for uspace/srv/hid/display/test/display.c
- Timestamp:
- 2019-11-04T14:05:35Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- be15256
- Parents:
- 22faaf2
- git-author:
- Jiri Svoboda <jiri@…> (2019-10-03 18:05:09)
- git-committer:
- Jiri Svoboda <jiri@…> (2019-11-04 14:05:35)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/test/display.c
r22faaf2 rb3c185b6 32 32 #include <str.h> 33 33 34 #include "../client.h" 34 35 #include "../display.h" 35 #include "../window.h"36 36 37 37 PCUT_INIT; … … 51 51 } 52 52 53 /** Basic windowoperation. */54 PCUT_TEST(display_ window)53 /** Basic client operation. */ 54 PCUT_TEST(display_client) 55 55 { 56 56 ds_display_t *disp; 57 ds_ window_t *wnd;58 ds_ window_t *w0, *w1, *w2;57 ds_client_t *client; 58 ds_client_t *c0, *c1; 59 59 errno_t rc; 60 60 … … 62 62 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 63 63 64 rc = ds_ window_create(disp, &wnd);64 rc = ds_client_create(disp, NULL, &client); 65 65 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 66 66 67 w0 = ds_display_first_window(disp);68 PCUT_ASSERT_EQUALS( w0, wnd);67 c0 = ds_display_first_client(disp); 68 PCUT_ASSERT_EQUALS(c0, client); 69 69 70 w1 = ds_display_next_window(w0);71 PCUT_ASSERT_NULL( w1);70 c1 = ds_display_next_client(c0); 71 PCUT_ASSERT_NULL(c1); 72 72 73 w2 = ds_display_find_window(disp, wnd->id); 74 PCUT_ASSERT_EQUALS(w2, wnd); 75 76 ds_window_delete(wnd); 73 ds_client_destroy(client); 77 74 ds_display_destroy(disp); 78 75 }
Note:
See TracChangeset
for help on using the changeset viewer.