diff options
author | Ucan, Emre \(ADITG/SW1\) <eucan@de.adit-jv.com> | 2016-03-04 12:50:52 +0000 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2016-03-04 10:33:35 -0800 |
commit | 16d1fa156abd296a69afed0df8588b7d33d6cb0d (patch) | |
tree | dda9d11704257f22f869e56bd40d4d243afc7102 /tests | |
parent | 45d394281628a5b1c9615920b975a2e7dd7210e0 (diff) |
ivi-shell: remove ivi_layout_layer_set_dimension API
Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
Acked-by: wataru_natsume <wataru_natsume@xddp.denso.co.jp>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ivi_layout-internal-test.c | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/tests/ivi_layout-internal-test.c b/tests/ivi_layout-internal-test.c index 1e22c759..06abcaa9 100644 --- a/tests/ivi_layout-internal-test.c +++ b/tests/ivi_layout-internal-test.c @@ -220,7 +220,8 @@ test_layer_dimension(struct test_context *ctx) iassert(prop->dest_width == 200); iassert(prop->dest_height == 300); - iassert(lyt->layer_set_dimension(ivilayer, 400, 600) == IVI_SUCCEEDED); + iassert(lyt->layer_set_destination_rectangle(ivilayer, prop->dest_x, prop->dest_y, + 400, 600) == IVI_SUCCEEDED); iassert(prop->dest_width == 200); iassert(prop->dest_height == 300); @@ -410,22 +411,6 @@ test_layer_bad_orientation(struct test_context *ctx) } static void -test_layer_bad_dimension(struct test_context *ctx) -{ - const struct ivi_layout_interface *lyt = ctx->layout_interface; - struct ivi_layout_layer *ivilayer; - - ivilayer = lyt->layer_create_with_dimension(IVI_TEST_LAYER_ID(0), 200, 300); - iassert(ivilayer != NULL); - - iassert(lyt->layer_set_dimension(NULL, 200, 300) == IVI_FAILED); - - lyt->commit_changes(); - - lyt->layer_destroy(ivilayer); -} - -static void test_layer_bad_source_rectangle(struct test_context *ctx) { const struct ivi_layout_interface *lyt = ctx->layout_interface; @@ -487,20 +472,6 @@ test_commit_changes_after_orientation_set_layer_destroy(struct test_context *ctx } static void -test_commit_changes_after_dimension_set_layer_destroy(struct test_context *ctx) -{ - const struct ivi_layout_interface *lyt = ctx->layout_interface; - struct ivi_layout_layer *ivilayer; - - ivilayer = lyt->layer_create_with_dimension(IVI_TEST_LAYER_ID(0), 200, 300); - iassert(ivilayer != NULL); - - iassert(lyt->layer_set_dimension(ivilayer, 200, 300) == IVI_SUCCEEDED); - lyt->layer_destroy(ivilayer); - lyt->commit_changes(); -} - -static void test_commit_changes_after_source_rectangle_set_layer_destroy(struct test_context *ctx) { const struct ivi_layout_interface *lyt = ctx->layout_interface; @@ -1007,13 +978,11 @@ run_internal_tests(void *data) test_layer_bad_opacity(ctx); test_layer_bad_destination_rectangle(ctx); test_layer_bad_orientation(ctx); - test_layer_bad_dimension(ctx); test_layer_bad_source_rectangle(ctx); test_layer_bad_properties(ctx); test_commit_changes_after_visibility_set_layer_destroy(ctx); test_commit_changes_after_opacity_set_layer_destroy(ctx); test_commit_changes_after_orientation_set_layer_destroy(ctx); - test_commit_changes_after_dimension_set_layer_destroy(ctx); test_commit_changes_after_source_rectangle_set_layer_destroy(ctx); test_commit_changes_after_destination_rectangle_set_layer_destroy(ctx); test_layer_create_duplicate(ctx); |