Ignore:
Timestamp:
2019-11-05T08:00:18Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b2d1df3
Parents:
b3c185b6
git-author:
Jiri Svoboda <jiri@…> (2019-10-04 19:00:15)
git-committer:
Jiri Svoboda <jiri@…> (2019-11-05 08:00:18)
Message:

ds_client should not have reverse dependency on libdisplay's display_srv

Breaks layering and hampers testability

File:
1 edited

Legend:

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

    rb3c185b6 rbe15256  
    3939PCUT_TEST_SUITE(display);
    4040
     41static void test_ds_ev_pending(void *);
     42
     43static ds_client_cb_t test_ds_client_cb = {
     44        .ev_pending = test_ds_ev_pending
     45};
     46
     47static void test_ds_ev_pending(void *arg)
     48{
     49        printf("test_ds_ev_pending\n");
     50}
     51
     52
    4153/** Display creation and destruction. */
    4254PCUT_TEST(display_create_destroy)
     
    6274        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    6375
    64         rc = ds_client_create(disp, NULL, &client);
     76        rc = ds_client_create(disp, &test_ds_client_cb, NULL, &client);
    6577        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    6678
Note: See TracChangeset for help on using the changeset viewer.