Changeset c37c24c in mainline for uspace/lib/ui/test/wdecor.c


Ignore:
Timestamp:
2024-04-07T09:52:47Z (14 months ago)
Author:
Nataliia Korop <n.corop08@…>
Children:
e55d2c1
Parents:
6c1e7c0 (diff), 34aad53d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'topic/packet-capture' into topic/packet-capture-choose-nic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/test/wdecor.c

    r6c1e7c0 rc37c24c  
    11/*
    2  * Copyright (c) 2023 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    3434#include <ui/pbutton.h>
    3535#include <ui/resource.h>
     36#include <ui/ui.h>
    3637#include <ui/wdecor.h>
    3738#include "../private/wdecor.h"
     
    13221323PCUT_TEST(rect_from_app)
    13231324{
     1325        errno_t rc;
     1326        ui_t *ui = NULL;
    13241327        gfx_rect_t arect;
    13251328        gfx_rect_t rect;
     1329
     1330        rc = ui_create_disp(NULL, &ui);
     1331        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    13261332
    13271333        arect.p0.x = 14;
     
    13301336        arect.p1.y = 196;
    13311337
    1332         ui_wdecor_rect_from_app(ui_wds_none, &arect, &rect);
     1338        ui_wdecor_rect_from_app(ui, ui_wds_none, &arect, &rect);
    13331339
    13341340        PCUT_ASSERT_INT_EQUALS(14, rect.p0.x);
     
    13371343        PCUT_ASSERT_INT_EQUALS(196, rect.p1.y);
    13381344
    1339         ui_wdecor_rect_from_app(ui_wds_frame, &arect, &rect);
     1345        ui_wdecor_rect_from_app(ui, ui_wds_frame, &arect, &rect);
    13401346
    13411347        PCUT_ASSERT_INT_EQUALS(10, rect.p0.x);
     
    13441350        PCUT_ASSERT_INT_EQUALS(200, rect.p1.y);
    13451351
    1346         ui_wdecor_rect_from_app(ui_wds_decorated, &arect, &rect);
     1352        ui_wdecor_rect_from_app(ui, ui_wds_decorated, &arect, &rect);
    13471353
    13481354        PCUT_ASSERT_INT_EQUALS(10, rect.p0.x);
     
    13511357        PCUT_ASSERT_INT_EQUALS(200, rect.p1.y);
    13521358
     1359        ui_destroy(ui);
    13531360}
    13541361
Note: See TracChangeset for help on using the changeset viewer.