summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorUcan, Emre (ADITG/SW1) <eucan@de.adit-jv.com>2016-03-17 15:30:35 +0000
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2016-03-24 11:10:07 +0200
commitff6a9f8474dbfdef79c87084f435d9b02c7a33b1 (patch)
tree32f4d5ff093d94f56730b3d8ff106ba878036fd0 /tests
parentd56b90d948f0f9c151ec43b444f52010005601d5 (diff)
downloadweston-ff6a9f8474dbfdef79c87084f435d9b02c7a33b1.tar.gz
ivi-shell: remove ivi_layout_get_screen_resolution API
The controller plugins can get the screen resolution directly from weston output. Therefore, this API is not required. 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.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/tests/ivi_layout-internal-test.c b/tests/ivi_layout-internal-test.c
index 80492d8d..6b7ca20d 100644
--- a/tests/ivi_layout-internal-test.c
+++ b/tests/ivi_layout-internal-test.c
@@ -565,33 +565,6 @@ test_screen_id(struct test_context *ctx)
}
static void
-test_screen_resolution(struct test_context *ctx)
-{
- const struct ivi_layout_interface *lyt = ctx->layout_interface;
- struct ivi_layout_screen **iviscrns;
- int32_t screen_length = 0;
- struct weston_output *output;
- int32_t width;
- int32_t height;
- int32_t i;
-
- iassert(lyt->get_screens(&screen_length, &iviscrns) == IVI_SUCCEEDED);
- iassert(screen_length > 0);
-
- for (i = 0; i < screen_length; ++i) {
- output = lyt->screen_get_output(iviscrns[i]);
- iassert(output != NULL);
- iassert(lyt->get_screen_resolution(
- iviscrns[i], &width, &height) == IVI_SUCCEEDED);
- iassert(width == output->current_mode->width);
- iassert(height == output->current_mode->height);
- }
-
- if (screen_length > 0)
- free(iviscrns);
-}
-
-static void
test_screen_render_order(struct test_context *ctx)
{
#define LAYER_NUM (3)
@@ -644,29 +617,6 @@ test_screen_render_order(struct test_context *ctx)
}
static void
-test_screen_bad_resolution(struct test_context *ctx)
-{
- const struct ivi_layout_interface *lyt = ctx->layout_interface;
- struct ivi_layout_screen **iviscrns;
- int32_t screen_length = 0;
- struct ivi_layout_screen *iviscrn;
- int32_t width;
- int32_t height;
-
- iassert(lyt->get_screens(&screen_length, &iviscrns) == IVI_SUCCEEDED);
- iassert(screen_length > 0);
-
- if (screen_length <= 0)
- return;
-
- iviscrn = iviscrns[0];
- iassert(lyt->get_screen_resolution(NULL, &width, &height) == IVI_FAILED);
- iassert(lyt->get_screen_resolution(iviscrn, NULL, &height) == IVI_FAILED);
- iassert(lyt->get_screen_resolution(iviscrn, &width, NULL) == IVI_FAILED);
- free(iviscrns);
-}
-
-static void
test_screen_bad_render_order(struct test_context *ctx)
{
#define LAYER_NUM (3)
@@ -989,9 +939,7 @@ run_internal_tests(void *data)
test_get_layer_after_destory_layer(ctx);
test_screen_id(ctx);
- test_screen_resolution(ctx);
test_screen_render_order(ctx);
- test_screen_bad_resolution(ctx);
test_screen_bad_render_order(ctx);
test_commit_changes_after_render_order_set_layer_destroy(ctx);