From c6e802cee9a728a0139b65bae1a9a2bf1d649f40 Mon Sep 17 00:00:00 2001 From: Nibha Sharma Date: Tue, 21 Jun 2016 14:57:09 +0900 Subject: [PATCH] [CTC][Platform-Permission][Non-ACR][TSAM-4888][Added new tc and Fixed media-streamer fail issues] Change-Id: Ic87e4a8c06bb84bc827612137b0cfc192230ddf4 Signed-off-by: Nibha Sharma --- .../CTs-platform-permission-media-streamer.c | 81 +++++++++++++++++++--- .../tct-platform-permission-native_mobile.h | 4 +- 2 files changed, 73 insertions(+), 12 deletions(-) diff --git a/src/ctc/platform-permission/CTs-platform-permission-media-streamer.c b/src/ctc/platform-permission/CTs-platform-permission-media-streamer.c index 911f1ab..5405b77 100755 --- a/src/ctc/platform-permission/CTs-platform-permission-media-streamer.c +++ b/src/ctc/platform-permission/CTs-platform-permission-media-streamer.c @@ -123,7 +123,7 @@ void CTs_platform_permission_media_streamer_cleanup(void) return; } -//& purpose: Checking tizen.org/privilege/mediastorage privilege +//& purpose: Checking tizen.org/privilege/internet privileges /** * @testcase CTc_MediaStreamer_PrivilegeMediaStorage_node_create_src * @since_tizen 3.0 @@ -141,14 +141,31 @@ void CTs_platform_permission_media_streamer_cleanup(void) int CTc_MediaStreamer_PrivilegeMediaStorage_node_create_src(void) { START_TEST; - media_streamer_node_h src =NULL; + + media_streamer_node_h hSrc =NULL; int ret = MEDIA_STREAMER_ERROR_NONE; - ret = media_streamer_node_create_src(MEDIA_STREAMER_NODE_SRC_TYPE_VIDEO_TEST, &src); - PRINT_RESULT(TIZEN_ERROR_PERMISSION_DENIED, ret, "media_streamer_node_create_src", MediaStreamerGetError(ret)); - return 0; + + media_streamer_node_src_type_e eSetSrcType[] = + { + MEDIA_STREAMER_NODE_SRC_TYPE_HTTP, /**< Http src type, Network internet feature is required */ + MEDIA_STREAMER_NODE_SRC_TYPE_RTSP, /**< Rtsp src type, Network internet feature is required */ +}; + int nEnumSize = sizeof(eSetSrcType) / sizeof(eSetSrcType[0]); + int nEnumCounter = 0; + for ( nEnumCounter=0; nEnumCounter