From cd4b6146399e46bec65a40d093f761a965af7fb1 Mon Sep 17 00:00:00 2001 From: Jiyong Min Date: Wed, 26 Oct 2016 15:10:27 +0900 Subject: [PATCH] [UTC][media-content][Non-ACR][Fixed TC fail for vision.face_recognition feature not supported] Change-Id: I451760d0accf7ae1d3717773ce3af73ec5e5359b Signed-off-by: Jiyong Min --- src/utc/media-content/utc-media-info.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/utc/media-content/utc-media-info.c b/src/utc/media-content/utc-media-info.c index 0b2e28b..0c1c2ef 100755 --- a/src/utc/media-content/utc-media-info.c +++ b/src/utc/media-content/utc-media-info.c @@ -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; } -- 2.7.4