[UTC][capi-media-image-util][Non-ACR][Add missed parameters of testcases]
authorjiyong.min <jiyong.min@samsung.com>
Fri, 2 Nov 2018 03:45:35 +0000 (12:45 +0900)
committerjiyong.min <jiyong.min@samsung.com>
Fri, 2 Nov 2018 03:46:30 +0000 (12:46 +0900)
Change-Id: I8ec7de525d0966f3f560b64afd9e5bd94aaba928

src/utc/image-util/utc-image-util-decode-encode.c

index 5e9e64d02364ea70e94a5df976b02999bf414667..a144e430e8f369ddb6826430513206456591d281 100755 (executable)
@@ -1242,7 +1242,7 @@ int utc_image_util_decode_run_p3(void)
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
        ret = image_util_decode_set_output_buffer(jpeg_decode_h, &data);
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
-       ret = image_util_decode_run(jpeg_decode_h, NULL, NULL, NULL);
+       ret = image_util_decode_run(jpeg_decode_h, &image_width, &image_height, &image_size);
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
        if (data) {
                free(data);
@@ -1253,7 +1253,7 @@ int utc_image_util_decode_run_p3(void)
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
        ret = image_util_decode_set_output_buffer(png_decode_h, &data);
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
-       ret = image_util_decode_run(png_decode_h, NULL, NULL, NULL);
+       ret = image_util_decode_run(png_decode_h, &image_width, &image_height, &image_size);
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
        if (data) {
                free(data);
@@ -1264,7 +1264,7 @@ int utc_image_util_decode_run_p3(void)
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
        ret = image_util_decode_set_output_buffer(gif_decode_h, &data);
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
-       ret = image_util_decode_run(gif_decode_h, NULL, NULL, NULL);
+       ret = image_util_decode_run(gif_decode_h, &image_width, &image_height, &image_size);
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
        if (data) {
                free(data);
@@ -1275,7 +1275,7 @@ int utc_image_util_decode_run_p3(void)
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
        ret = image_util_decode_set_output_buffer(bmp_decode_h, &data);
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
-       ret = image_util_decode_run(bmp_decode_h, NULL, NULL, NULL);
+       ret = image_util_decode_run(bmp_decode_h, &image_width, &image_height, &image_size);
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
        if (data) {
                free(data);
@@ -2736,6 +2736,7 @@ int utc_image_util_encode_run_p2(void)
 int utc_image_util_encode_run_p3(void)
 {
        int ret;
+       unsigned long long size = 0;
 
        ret = fill_jpeg_decoded_encoded_buffer();
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
@@ -2745,7 +2746,7 @@ int utc_image_util_encode_run_p3(void)
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
        ret = image_util_encode_set_output_path(jpeg_encode_h, jpeg_path2);
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
-       ret = image_util_encode_run(jpeg_encode_h, NULL);
+       ret = image_util_encode_run(jpeg_encode_h, &size);
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
 
        ret = fill_png_decoded_encoded_buffer();
@@ -2756,7 +2757,7 @@ int utc_image_util_encode_run_p3(void)
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
        ret = image_util_encode_set_output_path(png_encode_h, png_path2);
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
-       ret = image_util_encode_run(png_encode_h, NULL);
+       ret = image_util_encode_run(png_encode_h, &size);
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
 
        ret = fill_gif_decoded_encoded_buffer();
@@ -2767,7 +2768,7 @@ int utc_image_util_encode_run_p3(void)
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
        ret = image_util_encode_set_output_path(gif_encode_h, gif_path2);
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
-       ret = image_util_encode_run(gif_encode_h, NULL);
+       ret = image_util_encode_run(gif_encode_h, &size);
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
 
        ret = fill_bmp_decoded_encoded_buffer();
@@ -2778,7 +2779,7 @@ int utc_image_util_encode_run_p3(void)
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
        ret = image_util_encode_set_output_path(bmp_encode_h, bmp_path2);
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
-       ret = image_util_encode_run(bmp_encode_h, NULL);
+       ret = image_util_encode_run(bmp_encode_h, &size);
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
 
        return 0;
@@ -2792,6 +2793,7 @@ int utc_image_util_encode_run_p3(void)
 int utc_image_util_encode_run_p4(void)
 {
        int ret;
+       unsigned long long size = 0;
 
        ret = fill_gif_decoded_encoded_buffer();
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
@@ -2809,7 +2811,7 @@ int utc_image_util_encode_run_p4(void)
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
        ret = image_util_encode_set_output_path(gif_encode_h, gif_path2);
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
-       ret = image_util_encode_run(gif_encode_h, NULL);
+       ret = image_util_encode_run(gif_encode_h, &size);
        assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
 
        return 0;