diff options
author | Ucan, Emre \(ADITG/SW1\) <eucan@de.adit-jv.com> | 2016-03-04 12:50:32 +0000 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2016-03-04 10:33:34 -0800 |
commit | 18691f03108ca374babc1d74271a0af33817c6a4 (patch) | |
tree | be65aefbc098f6f51c545f0b947ba22688a37ceb /tests | |
parent | c507f67f9ea964159f74c4155f7aaa081600be7a (diff) |
ivi-shell: remove ivi_layout_layer_get_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 | 38 |
1 files changed, 5 insertions, 33 deletions
diff --git a/tests/ivi_layout-internal-test.c b/tests/ivi_layout-internal-test.c index 78ac7de4..4436c2c1 100644 --- a/tests/ivi_layout-internal-test.c +++ b/tests/ivi_layout-internal-test.c @@ -236,32 +236,21 @@ test_layer_dimension(struct test_context *ctx) const struct ivi_layout_interface *lyt = ctx->layout_interface; struct ivi_layout_layer *ivilayer; const struct ivi_layout_layer_properties *prop; - int32_t dest_width; - int32_t dest_height; ivilayer = lyt->layer_create_with_dimension(IVI_TEST_LAYER_ID(0), 200, 300); iassert(ivilayer != NULL); - iassert(lyt->layer_get_dimension( - ivilayer, &dest_width, &dest_height) == IVI_SUCCEEDED); - iassert(dest_width == 200); - iassert(dest_height == 300); + prop = lyt->get_properties_of_layer(ivilayer); + iassert(prop->dest_width == 200); + iassert(prop->dest_height == 300); iassert(lyt->layer_set_dimension(ivilayer, 400, 600) == IVI_SUCCEEDED); - iassert(lyt->layer_get_dimension( - ivilayer, &dest_width, &dest_height) == IVI_SUCCEEDED); - iassert(dest_width == 200); - iassert(dest_height == 300); + iassert(prop->dest_width == 200); + iassert(prop->dest_height == 300); lyt->commit_changes(); - iassert(IVI_SUCCEEDED == lyt->layer_get_dimension( - ivilayer, &dest_width, &dest_height)); - iassert(dest_width == 400); - iassert(dest_height == 600); - - prop = lyt->get_properties_of_layer(ivilayer); iassert(prop->dest_width == 400); iassert(prop->dest_height == 600); @@ -302,8 +291,6 @@ test_layer_destination_rectangle(struct test_context *ctx) const struct ivi_layout_interface *lyt = ctx->layout_interface; struct ivi_layout_layer *ivilayer; const struct ivi_layout_layer_properties *prop; - int32_t dest_width; - int32_t dest_height; ivilayer = lyt->layer_create_with_dimension(IVI_TEST_LAYER_ID(0), 200, 300); iassert(ivilayer != NULL); @@ -325,12 +312,6 @@ test_layer_destination_rectangle(struct test_context *ctx) lyt->commit_changes(); - iassert(lyt->layer_get_dimension( - ivilayer, &dest_width, &dest_height) == IVI_SUCCEEDED); - iassert(dest_width == 400); - iassert(dest_height == 600); - - prop = lyt->get_properties_of_layer(ivilayer); iassert(prop->dest_width == 400); iassert(prop->dest_height == 600); iassert(prop->dest_x == 20); @@ -458,8 +439,6 @@ test_layer_bad_dimension(struct test_context *ctx) { const struct ivi_layout_interface *lyt = ctx->layout_interface; struct ivi_layout_layer *ivilayer; - int32_t dest_width; - int32_t dest_height; ivilayer = lyt->layer_create_with_dimension(IVI_TEST_LAYER_ID(0), 200, 300); iassert(ivilayer != NULL); @@ -468,13 +447,6 @@ test_layer_bad_dimension(struct test_context *ctx) lyt->commit_changes(); - iassert(lyt->layer_get_dimension( - NULL, &dest_width, &dest_height) == IVI_FAILED); - iassert(lyt->layer_get_dimension( - ivilayer, NULL, &dest_height) == IVI_FAILED); - iassert(lyt->layer_get_dimension( - ivilayer, &dest_width, NULL) == IVI_FAILED); - lyt->layer_destroy(ivilayer); } |