summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorUcan, Emre \(ADITG/SW1\) <eucan@de.adit-jv.com>2016-03-04 12:50:24 +0000
committerBryce Harrington <bryce@osg.samsung.com>2016-03-04 10:33:34 -0800
commitdfc2d76432fd0b84168903c77afa7f7f2cc68a1d (patch)
tree05e51a3c59dcd9a6f2c5a2b99e25a06bbe9bb425 /tests
parentb2ff255792a4208b7f864421f5635bc2e281f544 (diff)
ivi-shell: remove ivi_layout_layer_get_position 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.c33
1 files changed, 5 insertions, 28 deletions
diff --git a/tests/ivi_layout-internal-test.c b/tests/ivi_layout-internal-test.c
index cb34fc1f..2c52ed40 100644
--- a/tests/ivi_layout-internal-test.c
+++ b/tests/ivi_layout-internal-test.c
@@ -281,31 +281,21 @@ test_layer_position(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_x;
- int32_t dest_y;
ivilayer = lyt->layer_create_with_dimension(IVI_TEST_LAYER_ID(0), 200, 300);
iassert(ivilayer != NULL);
- iassert(lyt->layer_get_position(
- ivilayer, &dest_x, &dest_y) == IVI_SUCCEEDED);
- iassert(dest_x == 0);
- iassert(dest_y == 0);
+ prop = lyt->get_properties_of_layer(ivilayer);
+ iassert(prop->dest_x == 0);
+ iassert(prop->dest_y == 0);
iassert(lyt->layer_set_position(ivilayer, 20, 30) == IVI_SUCCEEDED);
- iassert(lyt->layer_get_position(
- ivilayer, &dest_x, &dest_y) == IVI_SUCCEEDED);
- iassert(dest_x == 0);
- iassert(dest_y == 0);
+ iassert(prop->dest_x == 0);
+ iassert(prop->dest_y == 0);
lyt->commit_changes();
- iassert(lyt->layer_get_position(
- ivilayer, &dest_x, &dest_y) == IVI_SUCCEEDED);
- iassert(dest_x == 20);
- iassert(dest_y == 30);
-
prop = lyt->get_properties_of_layer(ivilayer);
iassert(prop->dest_x == 20);
iassert(prop->dest_y == 30);
@@ -321,8 +311,6 @@ test_layer_destination_rectangle(struct test_context *ctx)
const struct ivi_layout_layer_properties *prop;
int32_t dest_width;
int32_t dest_height;
- int32_t dest_x;
- int32_t dest_y;
ivilayer = lyt->layer_create_with_dimension(IVI_TEST_LAYER_ID(0), 200, 300);
iassert(ivilayer != NULL);
@@ -349,11 +337,6 @@ test_layer_destination_rectangle(struct test_context *ctx)
iassert(dest_width == 400);
iassert(dest_height == 600);
- iassert(lyt->layer_get_position(
- ivilayer, &dest_x, &dest_y) == IVI_SUCCEEDED);
- iassert(dest_x == 20);
- iassert(dest_y == 30);
-
prop = lyt->get_properties_of_layer(ivilayer);
iassert(prop->dest_width == 400);
iassert(prop->dest_height == 600);
@@ -507,8 +490,6 @@ test_layer_bad_position(struct test_context *ctx)
{
const struct ivi_layout_interface *lyt = ctx->layout_interface;
struct ivi_layout_layer *ivilayer;
- int32_t dest_x;
- int32_t dest_y;
ivilayer = lyt->layer_create_with_dimension(IVI_TEST_LAYER_ID(0), 200, 300);
iassert(ivilayer != NULL);
@@ -517,10 +498,6 @@ test_layer_bad_position(struct test_context *ctx)
lyt->commit_changes();
- iassert(lyt->layer_get_position(NULL, &dest_x, &dest_y) == IVI_FAILED);
- iassert(lyt->layer_get_position(ivilayer, NULL, &dest_y) == IVI_FAILED);
- iassert(lyt->layer_get_position(ivilayer, &dest_x, NULL) == IVI_FAILED);
-
lyt->layer_destroy(ivilayer);
}