summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorUcan, Emre (ADITG/SW1) <eucan@de.adit-jv.com>2016-03-17 15:30:32 +0000
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2016-03-24 11:10:07 +0200
commitd56b90d948f0f9c151ec43b444f52010005601d5 (patch)
tree98bdbc4a66a46b84dad20f3d8170cb3684a23ef4 /tests
parent1e344dc2c4b510349e4f133e1bd1a9ee160806e7 (diff)
ivi-shell: remove ivi_layout_get_id_of_screen API
ivi-screen does not have an id. IVI layout implementation is using id of weston output. Therefore, this API is unnecessary. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Acked-by: Wataru Natsume <wnatsume@jp.adit-jv.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/ivi_layout-internal-test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ivi_layout-internal-test.c b/tests/ivi_layout-internal-test.c
index 06abcaa9..80492d8d 100644
--- a/tests/ivi_layout-internal-test.c
+++ b/tests/ivi_layout-internal-test.c
@@ -548,16 +548,16 @@ test_screen_id(struct test_context *ctx)
{
const struct ivi_layout_interface *lyt = ctx->layout_interface;
struct ivi_layout_screen **iviscrns;
+ struct weston_output *output;
int32_t screen_length = 0;
- uint32_t id_screen;
int32_t i;
iassert(lyt->get_screens(&screen_length, &iviscrns) == IVI_SUCCEEDED);
iassert(screen_length > 0);
for (i = 0; i < screen_length; ++i) {
- id_screen = lyt->get_id_of_screen(iviscrns[i]);
- iassert(lyt->get_screen_from_id(id_screen) == iviscrns[i]);
+ output = lyt->screen_get_output(iviscrns[i]);
+ iassert(lyt->get_screen_from_id(output->id) == iviscrns[i]);
}
if (screen_length > 0)