From 16d1fa156abd296a69afed0df8588b7d33d6cb0d Mon Sep 17 00:00:00 2001 From: "Ucan, Emre \\(ADITG/SW1\\)" Date: Fri, 4 Mar 2016 12:50:52 +0000 Subject: ivi-shell: remove ivi_layout_layer_set_dimension API Signed-off-by: Emre Ucan Acked-by: wataru_natsume Reviewed-by: Bryce Harrington --- tests/ivi_layout-internal-test.c | 35 ++--------------------------------- 1 file changed, 2 insertions(+), 33 deletions(-) (limited to 'tests') 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); @@ -409,22 +410,6 @@ test_layer_bad_orientation(struct test_context *ctx) lyt->commit_changes(); } -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) { @@ -486,20 +471,6 @@ test_commit_changes_after_orientation_set_layer_destroy(struct test_context *ctx lyt->commit_changes(); } -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) { @@ -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); -- cgit v1.2.3