Ignore:
Timestamp:
2019-11-04T14:05:35Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
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)
Message:

Window event delivery mechanism

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/display/test/display.c

    r22faaf2 rb3c185b6  
    3232#include <str.h>
    3333
     34#include "../client.h"
    3435#include "../display.h"
    35 #include "../window.h"
    3636
    3737PCUT_INIT;
     
    5151}
    5252
    53 /** Basic window operation. */
    54 PCUT_TEST(display_window)
     53/** Basic client operation. */
     54PCUT_TEST(display_client)
    5555{
    5656        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;
    5959        errno_t rc;
    6060
     
    6262        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    6363
    64         rc = ds_window_create(disp, &wnd);
     64        rc = ds_client_create(disp, NULL, &client);
    6565        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    6666
    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);
    6969
    70         w1 = ds_display_next_window(w0);
    71         PCUT_ASSERT_NULL(w1);
     70        c1 = ds_display_next_client(c0);
     71        PCUT_ASSERT_NULL(c1);
    7272
    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);
    7774        ds_display_destroy(disp);
    7875}
Note: See TracChangeset for help on using the changeset viewer.