[UTC][media-content][Non-ACR][Fixed TC fail for vision.face_recognition feature not...
authorJiyong Min <jiyong.min@samsung.com>
Wed, 26 Oct 2016 06:10:27 +0000 (15:10 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Fri, 28 Oct 2016 02:21:49 +0000 (19:21 -0700)
Change-Id: I451760d0accf7ae1d3717773ce3af73ec5e5359b
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
src/utc/media-content/utc-media-info.c

index 0b2e28b..0c1c2ef 100755 (executable)
@@ -2485,7 +2485,11 @@ int utc_media_info_start_face_detection_n(void)
        int ret = MEDIA_CONTENT_ERROR_NONE;
 
        ret = media_info_start_face_detection(NULL, face_detection_cb, NULL);
-       assert_eq(ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER);
+       if (!g_isFaceRecognitionSupported) {
+               assert_eq(ret, MEDIA_CONTENT_ERROR_NOT_SUPPORTED);
+       } else {
+               assert_eq(ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER);
+       }
 
        return 0;
 }
@@ -4696,7 +4700,11 @@ int utc_media_info_cancel_face_detection_n(void)
        int ret = MEDIA_CONTENT_ERROR_NONE;
 
        ret = media_info_cancel_face_detection(NULL);
-       assert_eq(ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER);
+       if (!g_isFaceRecognitionSupported) {
+               assert_eq(ret, MEDIA_CONTENT_ERROR_NOT_SUPPORTED);
+       } else {
+               assert_eq(ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER);
+       }
 
        return 0;
 }