[UTC][video-util][ACR-1501] Remove video-util utc 68/225668/2
authorGilbok Lee <gilbok.lee@samsung.com>
Mon, 24 Feb 2020 00:55:37 +0000 (09:55 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Tue, 25 Feb 2020 00:00:15 +0000 (00:00 +0000)
Change-Id: I1814f46e65872a29dedba7580f5f7ee3e59fd8c9

14 files changed:
packaging/TCT.spec
packaging/utc/core-video-util-tests.spec [deleted file]
packaging/utc/core-video-util-tests.xml [deleted file]
src/CMakeLists.txt
src/utc/video-util/CMakeLists.txt [deleted file]
src/utc/video-util/public.list [deleted file]
src/utc/video-util/res/mobile/tct-content-tizen-tests_video.mp4 [deleted file]
src/utc/video-util/res/tizeniot/tct-content-tizen-tests_video.mp4 [deleted file]
src/utc/video-util/res/tv/tct-content-tizen-tests_video.mp4 [deleted file]
src/utc/video-util/tct-video-util-core.c [deleted file]
src/utc/video-util/tct-video-util-core_mobile.h [deleted file]
src/utc/video-util/tct-video-util-core_tizeniot.h [deleted file]
src/utc/video-util/tct-video-util-core_wearable.h [deleted file]
src/utc/video-util/utc-video-util.c [deleted file]

index b97ba534108ff150789f746197e9d4b62631b9d7..8592ea7a8c5cc3d99960e05c26086d349f214b95 100755 (executable)
@@ -108,7 +108,6 @@ BuildRequires:  pkgconfig(capi-media-sound-pool)
 BuildRequires:  pkgconfig(tts)
 BuildRequires: pkgconfig(tts-engine)
 BuildRequires:  pkgconfig(capi-web-url-download)
-BuildRequires:  pkgconfig(capi-media-video-util)
 BuildRequires:  pkgconfig(capi-media-wav-player)
 BuildRequires:  pkgconfig(dbus-1)
 BuildRequires:  pkgconfig(libxml-2.0)
@@ -527,13 +526,6 @@ Group:      Development/Tools
 %description -n native-url-download-itc
 Native API Integration TC for url-download
 
-%package -n native-video-util-itc
-Summary:    Native API Integration TC for video-util
-Group:      Development/Tools
-
-%description -n native-video-util-itc
-Native API Integration TC for video-util
-
 %package -n native-wav-player-itc
 Summary:    Native API Integration TC for wav-player
 Group:      Development/Tools
@@ -985,13 +977,6 @@ Group:      Development/Tools
 %description -n core-url-download-tests
 Native API Unit TC for url-download
 
-%package -n core-video-util-tests
-Summary:    Native API Unit TC for video-util
-Group:      Development/Tools
-
-%description -n core-video-util-tests
-Native API Unit TC for video-util
-
 %package -n core-wav-player-tests
 Summary:    Native API Unit TC for wav-player
 Group:      Development/Tools
@@ -1095,12 +1080,6 @@ Summary:    Native API Compatibility TC for telephony
 %description -n native-telephony-ctc
 Native API Compatibility TC for telephony
 
-%package -n native-video-util-ctc
-Summary:    Native API Compatibility TC for video-util
-
-%description -n native-video-util-ctc
-Native API Compatibility TC for telephony
-
 %package -n native-wifi-direct-ctc
 Summary:    Native API Compatibility TC for wifi-direct
 
@@ -1575,14 +1554,6 @@ cp packaging/itc/native-url-download-itc.xml %{buildroot}/opt/share/packages/
 mkdir -p %{buildroot}/opt/usr/apps/native-url-download-itc/bin
 #cp templates/external_wrapper.sh %{buildroot}/opt/usr/apps/native-url-download-itc/bin
 
-#native-video-util-itc
-cp LICENSE %{buildroot}/opt/usr/share/license/native-video-util-itc
-cp packaging/itc/native-video-util-itc.xml %{buildroot}/opt/share/packages/
-mkdir -p %{buildroot}/opt/usr/apps/native-video-util-itc/bin
-#cp templates/external_wrapper.sh %{buildroot}/opt/usr/apps/native-video-util-itc/bin
-mkdir -p %{buildroot}/opt/usr/apps/native-video-util-itc/data/
-cp src/itc/video-util/video1.mp4 %{buildroot}/opt/usr/apps/native-video-util-itc/data/video1.mp4
-
 #native-wav-player-itc
 cp LICENSE %{buildroot}/opt/usr/share/license/native-wav-player-itc
 cp packaging/itc/native-wav-player-itc.xml %{buildroot}/opt/share/packages/
@@ -1935,12 +1906,6 @@ cp packaging/utc/core-url-download-tests.xml %{buildroot}/opt/share/packages/
 mkdir -p %{buildroot}/opt/usr/apps/core-url-download-tests/bin
 #cp templates/external_wrapper.sh %{buildroot}/opt/usr/apps/core-url-download-tests/bin
 
-#core-video-util-tests
-cp LICENSE %{buildroot}/opt/usr/share/license/core-video-util-tests
-cp packaging/utc/core-video-util-tests.xml %{buildroot}/opt/share/packages/
-mkdir -p %{buildroot}/opt/usr/apps/core-video-util-tests/bin
-#cp templates/external_wrapper.sh %{buildroot}/opt/usr/apps/core-video-util-tests/bin
-
 #core-wav-player-tests
 cp LICENSE %{buildroot}/opt/usr/share/license/core-wav-player-tests
 cp packaging/utc/core-wav-player-tests.xml %{buildroot}/opt/share/packages/
@@ -2035,14 +2000,6 @@ cp packaging/ctc/native-telephony-ctc.xml %{buildroot}/opt/share/packages/
 mkdir -p %{buildroot}/opt/usr/apps/native-telephony-ctc/bin
 #cp templates/external_wrapper.sh %{buildroot}/opt/usr/apps/native-telephony-ctc/bin
 
-#native-video-util-ctc
-cp LICENSE %{buildroot}/opt/usr/share/license/native-video-util-ctc
-cp packaging/ctc/native-video-util-ctc.xml %{buildroot}/opt/share/packages/
-mkdir -p %{buildroot}/opt/usr/apps/native-video-util-ctc/bin
-#cp templates/external_wrapper.sh %{buildroot}/opt/usr/apps/native-video-util-ctc/bin
-mkdir -p %{buildroot}/opt/usr/apps/native-video-util-ctc/data/
-cp src/ctc/video-util/video_color.mp4 %{buildroot}/opt/usr/apps/native-video-util-ctc/data/video_color.mp4
-
 #native-wifi-direct-ctc
 cp LICENSE %{buildroot}/opt/usr/share/license/native-wifi-direct-ctc
 cp packaging/ctc/native-wifi-direct-ctc.xml %{buildroot}/opt/share/packages/
@@ -2173,8 +2130,6 @@ chown -R 5000:5000 /opt/usr/apps/native-system-settings-itc/data
 chsmack -a native-system-settings-itc /opt/usr/apps/native-system-settings-itc/data
 chown -R 5000:5000 /opt/usr/apps/native-tone-player-itc/data
 chsmack -a native-tone-player-itc /opt/usr/apps/native-tone-player-itc/data
-chown -R 5000:5000 /opt/usr/apps/native-video-util-itc/data
-chsmack -a native-video-util-itc /opt/usr/apps/native-video-util-itc/data
 chown -R 5000:5000 /opt/usr/apps/native-wav-player-itc/data
 chsmack -a native-wav-player-itc /opt/usr/apps/native-wav-player-itc/data
 chown -R 5000:5000 /opt/usr/apps/native-wifi-itc/data
@@ -2182,8 +2137,6 @@ chsmack -a native-wifi-itc /opt/usr/apps/native-wifi-itc/data
 
 chown -R 5000:5000 /opt/usr/apps/native-image-util-ctc/data
 chsmack -a %{name} /opt/usr/apps/native-image-util-ctc/data
-chown -R 5000:5000 /opt/usr/apps/native-video-util-ctc/data
-chsmack -a %{name} /opt/usr/apps/native-video-util-ctc/data
 
 chown -R 5000:5000 /opt/usr/apps/native-platform-permission-ctc/data
 chsmack -a %{name} /opt/usr/apps/native-platform-permission-ctc/data
@@ -2505,11 +2458,6 @@ pkgcmd -un org.tizen.testapp &
 /opt/share/packages/native-url-download-itc.xml
 /opt/usr/share/license/native-url-download-itc
 
-%files -n native-video-util-itc
-/opt/usr/apps/native-video-util-itc/*
-/opt/share/packages/native-video-util-itc.xml
-/opt/usr/share/license/native-video-util-itc
-
 %files -n native-wav-player-itc
 /opt/usr/apps/native-wav-player-itc/*
 /opt/share/packages/native-wav-player-itc.xml
@@ -2832,11 +2780,6 @@ pkgcmd -un org.tizen.testapp &
 /opt/share/packages/core-url-download-tests.xml
 /opt/usr/share/license/core-url-download-tests
 
-%files -n core-video-util-tests
-/opt/usr/apps/core-video-util-tests/*
-/opt/share/packages/core-video-util-tests.xml
-/opt/usr/share/license/core-video-util-tests
-
 %files -n core-wav-player-tests
 /opt/usr/apps/core-wav-player-tests/*
 /opt/share/packages/core-wav-player-tests.xml
@@ -2914,11 +2857,6 @@ pkgcmd -un org.tizen.testapp &
 /opt/share/packages/native-telephony-ctc.xml
 /opt/usr/share/license/native-telephony-ctc
 
-%files -n native-video-util-ctc
-/opt/usr/apps/native-video-util-ctc/*
-/opt/share/packages/native-video-util-ctc.xml
-/opt/usr/share/license/native-video-util-ctc
-
 %files -n native-wifi-direct-ctc
 /opt/usr/apps/native-wifi-direct-ctc/*
 /opt/share/packages/native-wifi-direct-ctc.xml
diff --git a/packaging/utc/core-video-util-tests.spec b/packaging/utc/core-video-util-tests.spec
deleted file mode 100755 (executable)
index 4330285..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-%define MODULE_NAME video-util
-%define MODULE_LIBNAME capi-media-video-util
-Name:       core-%{MODULE_NAME}-tests
-Summary:    Core API unit TC (%{name})
-Version:    0.1
-Release:    0
-Group:      Development/Tools
-License:    Apache License, Version 2.0
-Source0:    %{name}-%{version}.tar.gz
-BuildRequires: pkgconfig(%{MODULE_LIBNAME})
-BuildRequires: cmake
-BuildRequires: pkgconfig(capi-appfw-application)
-BuildRequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(elementary)
-BuildRequires: pkgconfig(capi-system-info)
-BuildRequires: pkgconfig(glib-2.0)
-BuildRequires: pkgconfig(storage)
-
-%description
-Core API unit TC (%{name})
-
-%prep
-%setup -q
-
-%build
-
-%define PREFIX "%{_libdir}/%{name}"
-
-export LDFLAGS+="-Wl,--rpath=%{PREFIX} -Wl,--as-needed"
-
-%if %{?ASAN_BUILD:1}0
-       %if %{?DEVICE_BUILD_TYPE_MOBILE:1}0
-       cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="utc" -DDEVICE_BUILD_TYPE="mobile" -DASANBUILD="true" -DCMAKE_INSTALL_PREFIX=%{_prefix}
-       %endif
-       %if %{?DEVICE_BUILD_TYPE_WEARABLE:1}0
-       cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="utc" -DDEVICE_BUILD_TYPE="wearable" -DASANBUILD="true" -DCMAKE_INSTALL_PREFIX=%{_prefix}
-       %endif
-       %if %{?DEVICE_BUILD_TYPE_TV:1}0
-       cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="utc" -DDEVICE_BUILD_TYPE="tv" -DASANBUILD="true" -DCMAKE_INSTALL_PREFIX=%{_prefix}
-       %endif
-       %if %{?DEVICE_BUILD_TYPE_TIZENIOT:1}0
-       cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="utc" -DDEVICE_BUILD_TYPE="tizeniot" -DASANBUILD="true" -DCMAKE_INSTALL_PREFIX=%{_prefix}
-       %endif
-%else
-       %if %{?DEVICE_BUILD_TYPE_MOBILE:1}0
-       cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="utc" -DDEVICE_BUILD_TYPE="mobile" -DASANBUILD="false" -DCMAKE_INSTALL_PREFIX=%{_prefix}
-       %endif
-       %if %{?DEVICE_BUILD_TYPE_WEARABLE:1}0
-       cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="utc" -DDEVICE_BUILD_TYPE="wearable" -DASANBUILD="false" -DCMAKE_INSTALL_PREFIX=%{_prefix}
-       %endif
-       %if %{?DEVICE_BUILD_TYPE_TV:1}0
-       cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="utc" -DDEVICE_BUILD_TYPE="tv" -DASANBUILD="false" -DCMAKE_INSTALL_PREFIX=%{_prefix}
-       %endif
-       %if %{?DEVICE_BUILD_TYPE_TIZENIOT:1}0
-       cmake . -DMODULE="%{MODULE_NAME}" -DBUILDTCTYPE="utc" -DDEVICE_BUILD_TYPE="tizeniot" -DASANBUILD="false" -DCMAKE_INSTALL_PREFIX=%{_prefix}
-       %endif
-%endif
-
-make %{?jobs:-j%jobs}
-
-%install
-rm -rf %{buildroot}
-%make_install
-mkdir -p %{buildroot}/usr/share/license
-cp LICENSE %{buildroot}/usr/share/license/%{name}
-mkdir -p %{buildroot}/usr/share/packages/
-cp packaging/utc/%{name}.xml %{buildroot}/usr/share/packages/
-mkdir -p %{buildroot}/usr/apps/%{name}/bin
-#cp templates/external_wrapper.sh %{buildroot}/usr/apps/%{name}/bin
-
-%post
-
-%postun
-
-%files
-/usr/apps/%{name}/*
-/usr/share/packages/%{name}.xml
-/usr/share/license/%{name}
diff --git a/packaging/utc/core-video-util-tests.xml b/packaging/utc/core-video-util-tests.xml
deleted file mode 100755 (executable)
index a3769fb..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" package="core-video-util-tests" version="0.1.0" api-version="3.0">
-    <label>CoreVideoUtilTest</label>
-    <author email="test@tizen.org" href="www.tizen.org">test</author>
-    <description>Core API test Application</description>
-    <ui-application appid="core.video-util-tests" exec="/usr/apps/core-video-util-tests/bin/tct-video-util-core" nodisplay="false" multiple="false" type="capp" taskmanage="true">
-    <background-category value="background-network"/>
-       <background-category value="download"/>
-       <background-category value="iot-communication"/>
-       <background-category value="location"/>
-       <background-category value="media"/>
-       <background-category value="sensor"/>
-    </ui-application>
-     <privileges>
-        <privilege>http://tizen.org/privilege/mediastorage</privilege>
-        <privilege>http://tizen.org/privilege/externalstorage</privilege>
-    </privileges>
-</manifest>
index 329f8fb40126e23a64dd19be6b158bd52349e986..bf319b8f5398a2cc2ffbf0b7e1d86bf1e989ed50 100755 (executable)
@@ -181,8 +181,6 @@ ELSE( DEFINED MODULE )
        ADD_SUBDIRECTORY(utc/tts)
        MESSAGE(STATUS "Building: ${CMAKE_CURRENT_SOURCE_DIR}/utc/url-download")
        ADD_SUBDIRECTORY(utc/url-download)
-       MESSAGE(STATUS "Building: ${CMAKE_CURRENT_SOURCE_DIR}/utc/video-util")
-       ADD_SUBDIRECTORY(utc/video-util)
        MESSAGE(STATUS "Building: ${CMAKE_CURRENT_SOURCE_DIR}/utc/wav-player")
        ADD_SUBDIRECTORY(utc/wav-player)
        MESSAGE(STATUS "Building: ${CMAKE_CURRENT_SOURCE_DIR}/utc/webkit2")
diff --git a/src/utc/video-util/CMakeLists.txt b/src/utc/video-util/CMakeLists.txt
deleted file mode 100644 (file)
index 68958c1..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-SET(PKG_NAME "video-util")
-
-SET(EXEC_NAME "tct-${PKG_NAME}-core")
-SET(RPM_NAME "core-${PKG_NAME}-tests")
-
-SET(CAPI_LIB "capi-media-video-util storage")
-SET(TC_SOURCES
-    utc-video-util.c
-)
-
-PKG_CHECK_MODULES(${CAPI_LIB} REQUIRED
-    ${CAPI_LIB}
-       capi-appfw-application
-       capi-system-info
-    glib-2.0
-        storage
-       dlog 
-)
-
-INCLUDE_DIRECTORIES(
-    ${${CAPI_LIB}_INCLUDE_DIRS}
-)
-
-ADD_EXECUTABLE(${EXEC_NAME} ${EXEC_NAME}.c ${TC_SOURCES} ${COMMON_FILE})
-TARGET_LINK_LIBRARIES(${EXEC_NAME}
-    ${${CAPI_LIB}_LIBRARIES}
-)
-
-INSTALL(PROGRAMS ${EXEC_NAME}
-    DESTINATION ${BIN_DIR}/${RPM_NAME}/bin
-)
-
-IF( DEFINED ASAN )
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer")
-SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address")
-ELSE()
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -fPIE -Wall")
-SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -pie")
-ENDIF()
-
diff --git a/src/utc/video-util/public.list b/src/utc/video-util/public.list
deleted file mode 100755 (executable)
index a91247d..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-video_util_cancel_transcoding
-video_util_create
-video_util_destroy
-video_util_foreach_supported_audio_codec
-video_util_foreach_supported_file_format
-video_util_foreach_supported_video_codec
-video_util_get_progress_transcoding
-video_util_set_accurate_mode
-video_util_set_audio_codec
-video_util_set_file_format
-video_util_set_file_path
-video_util_set_fps
-video_util_set_resolution
-video_util_set_video_codec
-video_util_start_transcoding
-
diff --git a/src/utc/video-util/res/mobile/tct-content-tizen-tests_video.mp4 b/src/utc/video-util/res/mobile/tct-content-tizen-tests_video.mp4
deleted file mode 100755 (executable)
index e203ae2..0000000
Binary files a/src/utc/video-util/res/mobile/tct-content-tizen-tests_video.mp4 and /dev/null differ
diff --git a/src/utc/video-util/res/tizeniot/tct-content-tizen-tests_video.mp4 b/src/utc/video-util/res/tizeniot/tct-content-tizen-tests_video.mp4
deleted file mode 100755 (executable)
index e203ae2..0000000
Binary files a/src/utc/video-util/res/tizeniot/tct-content-tizen-tests_video.mp4 and /dev/null differ
diff --git a/src/utc/video-util/res/tv/tct-content-tizen-tests_video.mp4 b/src/utc/video-util/res/tv/tct-content-tizen-tests_video.mp4
deleted file mode 100755 (executable)
index e203ae2..0000000
Binary files a/src/utc/video-util/res/tv/tct-content-tizen-tests_video.mp4 and /dev/null differ
diff --git a/src/utc/video-util/tct-video-util-core.c b/src/utc/video-util/tct-video-util-core.c
deleted file mode 100644 (file)
index 7719834..0000000
+++ /dev/null
@@ -1,143 +0,0 @@
-//
-// Copyright (c) 2014 Samsung Electronics Co., Ltd.
-//
-// Licensed under the Apache License, Version 2.0 (the License);
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-//     http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-#include <stdio.h>
-#include <string.h>
-#include "tct_common.h"
-
-#ifdef MOBILE
-#include "tct-video-util-core_mobile.h"
-#endif
-
-#ifdef WEARABLE
-#include "tct-screen-mirroring-core_wearable.h"
-#endif //WEARABLE
-
-#ifdef TV
-#include "tct-video-util-core_tv.h"
-#endif
-
-#ifdef TIZENIOT
-#include "tct-video-util-core_tizeniot.h"
-#endif //TIZENIOT
-
-#include <malloc.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <sys/wait.h>
-#include <glib.h>
-#include <stdbool.h>
-#include <app.h>
-#include <dlog.h>
-
-
-
-
-       
-       
-       
-
-
-static bool app_create(void *data)
-{
-       return true;
-}
-
-static void app_control(app_control_h app_control, void *data)
-{
-       char* pszGetTCName = NULL;
-       int i=0, result=0, nRet=0;
-       nRet = app_control_get_extra_data(app_control, "testcase_name", &pszGetTCName);
-       if(nRet != APP_CONTROL_ERROR_NONE)
-       {
-               dlog_print(DLOG_ERROR, "NativeTCT", "[%s:%d] app_control_get_extra_data returns error = %d", __FUNCTION__, __LINE__, nRet);
-               PRINT_UTC_LOG("\\n[%s][Line : %d]Unable to fetch test case name: app_control_get_extra_data API call fails\\n", __FILE__, __LINE__);
-               PRINT_TC_RESULT("%d",1);
-               FREE_MEMORY_TC(pszGetTCName);
-               return;
-       }
-
-       dlog_print(DLOG_INFO, "NativeTCT", "[%s:%d] Executing TC Name = %s", __FUNCTION__, __LINE__, pszGetTCName);
-       for ( i = 0; tc_array[i].name; i++ )
-       {
-               if ( 0 == strncmp(pszGetTCName, tc_array[i].name, strlen(pszGetTCName)) )
-               {
-                       DUMP_UTC_ERRLOG();
-                       dlog_print(DLOG_INFO, "NativeTCT", "%s : Startup begin", pszGetTCName);
-                       if ( tc_array[i].startup )
-                       {
-                               tc_array[i].startup();
-                       }
-                       dlog_print(DLOG_INFO, "NativeTCT", "%s : Startup end", pszGetTCName);
-
-                       dlog_print(DLOG_INFO, "NativeTCT", "%s : Body begin", pszGetTCName);
-                       result = tc_array[i].function();
-                       dlog_print(DLOG_INFO, "NativeTCT", "%s returns value = %d", pszGetTCName, result);
-                       dlog_print(DLOG_INFO, "NativeTCT", "%s : Body end", pszGetTCName);
-
-                       dlog_print(DLOG_INFO, "NativeTCT", "%s : Cleanup begin", pszGetTCName);
-                       if ( tc_array[i].cleanup )
-                       {
-                               tc_array[i].cleanup();
-                       }
-                       dlog_print(DLOG_INFO, "NativeTCT", "%s : Cleanup end", pszGetTCName);
-
-                       CLOSE_UTC_ERRLOG();
-                       PRINT_TC_RESULT("%d",result);
-                       FREE_MEMORY_TC(pszGetTCName);
-                       return;
-               }
-       }
-
-       dlog_print(DLOG_ERROR, "NativeTCT", "[%s:%d] Unable to execute %s : Unknown Test Case Name", __FUNCTION__, __LINE__, pszGetTCName);
-       PRINT_UTC_LOG("\\n[%s][Line : %d]Unable to execute %s : Unknown Test Case Name\\n", __FILE__, __LINE__, pszGetTCName);
-       PRINT_TC_RESULT("%d",1);
-       FREE_MEMORY_TC(pszGetTCName);
-       return;
-}
-
-static void app_terminate(void *data)
-{
-       dlog_print(DLOG_INFO, "NativeTCT", "[%s:%d] Application Package is now Terminating", __FUNCTION__, __LINE__);
-}
-
-int main(int argc, char *argv[])
-{
-       int ret = 0;
-       
-
-       ui_app_lifecycle_callback_s event_callback = {0,};
-       event_callback.create = app_create;
-       event_callback.terminate = app_terminate;
-       event_callback.app_control = app_control;
-
-       //setting gcda file location for coverage
-       setenv("GCOV_PREFIX","/tmp",1);
-       dlog_print(DLOG_INFO, "NativeTCT", "[%s:%d] Coverage *.gcda File location set to /tmp/home/abuild/rpmbuild/BUILD/ ", __FUNCTION__, __LINE__);
-
-       dlog_print(DLOG_INFO, "NativeTCT", "[%s:%d] Application Main Function is Invoked", __FUNCTION__, __LINE__);
-       ret = ui_app_main(argc, argv, &event_callback, NULL);
-       if (ret != APP_ERROR_NONE)
-       {
-               dlog_print(DLOG_ERROR, "NativeTCT", "Application ui_app_main call gets failed. err = %d", ret);
-               PRINT_UTC_LOG("\\n[%s][Line : %d]Application ui_app_main call gets failed. err = %d\\n", __FILE__, __LINE__, ret);
-               PRINT_TC_RESULT("%d",1);
-               return ret;
-       }
-
-       dlog_print(DLOG_INFO, "NativeTCT", "[%s:%d] Application Package is Terminated", __FUNCTION__, __LINE__);
-       return ret;
-}
diff --git a/src/utc/video-util/tct-video-util-core_mobile.h b/src/utc/video-util/tct-video-util-core_mobile.h
deleted file mode 100755 (executable)
index bd25680..0000000
+++ /dev/null
@@ -1,116 +0,0 @@
-//
-// Copyright (c) 2014 Samsung Electronics Co., Ltd.
-//
-// Licensed under the Apache License, Version 2.0 (the License);
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-//     http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-#ifndef __TCT_VIDEO-UTIL-NATIVE_H__
-#define __TCT_VIDEO-UTIL-NATIVE_H__
-
-#include "testcase.h"
-#include "tct_common.h"
-
-extern void utc_video_util_startup(void);
-extern void utc_video_util_cleanup(void);
-
-extern int utc_video_util_create_n(void);
-extern int utc_video_util_create_p(void);
-extern int utc_video_util_set_file_path_n1(void);
-extern int utc_video_util_set_file_path_n2(void);
-extern int utc_video_util_set_file_path_p(void);
-extern int utc_video_util_set_accurate_mode_n(void);
-extern int utc_video_util_set_accurate_mode_p(void);
-extern int utc_video_util_set_video_codec_n1(void);
-extern int utc_video_util_set_video_codec_n2(void);
-extern int utc_video_util_set_video_codec_p(void);
-extern int utc_video_util_set_audio_codec_n1(void);
-extern int utc_video_util_set_audio_codec_n2(void);
-extern int utc_video_util_set_audio_codec_p(void);
-extern int utc_video_util_set_file_format_n1(void);
-extern int utc_video_util_set_file_format_n2(void);
-extern int utc_video_util_set_file_format_p(void);
-extern int utc_video_util_set_resolution_n1(void);
-extern int utc_video_util_set_resolution_n2(void);
-extern int utc_video_util_set_resolution_n3(void);
-extern int utc_video_util_set_resolution_p(void);
-extern int utc_video_util_set_fps_n1(void);
-extern int utc_video_util_set_fps_n2(void);
-extern int utc_video_util_set_fps_p(void);
-extern int utc_video_util_start_transcoding_n1(void);
-extern int utc_video_util_start_transcoding_n2(void);
-extern int utc_video_util_start_transcoding_p(void);
-extern int utc_video_util_get_progress_transcoding_n1(void);
-extern int utc_video_util_get_progress_transcoding_n2(void);
-extern int utc_video_util_get_progress_transcoding_n3(void);
-extern int utc_video_util_get_progress_transcoding_p(void);
-extern int utc_video_util_cancel_transcoding_n(void);
-extern int utc_video_util_cancel_transcoding_p(void);
-extern int utc_video_util_foreach_supported_file_format_n1(void);
-extern int utc_video_util_foreach_supported_file_format_n2(void);
-extern int utc_video_util_foreach_supported_file_format_p(void);
-extern int utc_video_util_foreach_supported_video_codec_n1(void);
-extern int utc_video_util_foreach_supported_video_codec_n2(void);
-extern int utc_video_util_foreach_supported_video_codec_p(void);
-extern int utc_video_util_foreach_supported_audio_codec_n1(void);
-extern int utc_video_util_foreach_supported_audio_codec_n2(void);
-extern int utc_video_util_foreach_supported_audio_codec_p(void);
-extern int utc_video_util_destroy_n(void);
-extern int utc_video_util_destroy_p(void);
-
-testcase tc_array[] = {
-       {"utc_video_util_create_n",utc_video_util_create_n,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_create_p",utc_video_util_create_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_file_path_n1",utc_video_util_set_file_path_n1,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_file_path_n2",utc_video_util_set_file_path_n2,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_file_path_p",utc_video_util_set_file_path_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_accurate_mode_n",utc_video_util_set_accurate_mode_n,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_accurate_mode_p",utc_video_util_set_accurate_mode_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_video_codec_n1",utc_video_util_set_video_codec_n1,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_video_codec_n2",utc_video_util_set_video_codec_n2,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_video_codec_p",utc_video_util_set_video_codec_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_audio_codec_n1",utc_video_util_set_audio_codec_n1,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_audio_codec_n2",utc_video_util_set_audio_codec_n2,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_audio_codec_p",utc_video_util_set_audio_codec_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_file_format_n1",utc_video_util_set_file_format_n1,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_file_format_n2",utc_video_util_set_file_format_n2,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_file_format_p",utc_video_util_set_file_format_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_resolution_n1",utc_video_util_set_resolution_n1,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_resolution_n2",utc_video_util_set_resolution_n2,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_resolution_n3",utc_video_util_set_resolution_n3,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_resolution_p",utc_video_util_set_resolution_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_fps_n1",utc_video_util_set_fps_n1,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_fps_n2",utc_video_util_set_fps_n2,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_fps_p",utc_video_util_set_fps_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_start_transcoding_n1",utc_video_util_start_transcoding_n1,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_start_transcoding_n2",utc_video_util_start_transcoding_n2,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_start_transcoding_p",utc_video_util_start_transcoding_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_get_progress_transcoding_n1",utc_video_util_get_progress_transcoding_n1,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_get_progress_transcoding_n2",utc_video_util_get_progress_transcoding_n2,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_get_progress_transcoding_n3",utc_video_util_get_progress_transcoding_n3,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_get_progress_transcoding_p",utc_video_util_get_progress_transcoding_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_cancel_transcoding_n",utc_video_util_cancel_transcoding_n,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_cancel_transcoding_p",utc_video_util_cancel_transcoding_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_foreach_supported_file_format_n1",utc_video_util_foreach_supported_file_format_n1,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_foreach_supported_file_format_n2",utc_video_util_foreach_supported_file_format_n2,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_foreach_supported_file_format_p",utc_video_util_foreach_supported_file_format_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_foreach_supported_video_codec_n1",utc_video_util_foreach_supported_video_codec_n1,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_foreach_supported_video_codec_n2",utc_video_util_foreach_supported_video_codec_n2,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_foreach_supported_video_codec_p",utc_video_util_foreach_supported_video_codec_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_foreach_supported_audio_codec_n1",utc_video_util_foreach_supported_audio_codec_n1,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_foreach_supported_audio_codec_n2",utc_video_util_foreach_supported_audio_codec_n2,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_foreach_supported_audio_codec_p",utc_video_util_foreach_supported_audio_codec_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_destroy_n",utc_video_util_destroy_n,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_destroy_p",utc_video_util_destroy_p,utc_video_util_startup,utc_video_util_cleanup},
-       {NULL, NULL}
-};
-
-#endif // __TCT_VIDEO-UTIL-NATIVE_H__
diff --git a/src/utc/video-util/tct-video-util-core_tizeniot.h b/src/utc/video-util/tct-video-util-core_tizeniot.h
deleted file mode 100755 (executable)
index bd25680..0000000
+++ /dev/null
@@ -1,116 +0,0 @@
-//
-// Copyright (c) 2014 Samsung Electronics Co., Ltd.
-//
-// Licensed under the Apache License, Version 2.0 (the License);
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-//     http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-#ifndef __TCT_VIDEO-UTIL-NATIVE_H__
-#define __TCT_VIDEO-UTIL-NATIVE_H__
-
-#include "testcase.h"
-#include "tct_common.h"
-
-extern void utc_video_util_startup(void);
-extern void utc_video_util_cleanup(void);
-
-extern int utc_video_util_create_n(void);
-extern int utc_video_util_create_p(void);
-extern int utc_video_util_set_file_path_n1(void);
-extern int utc_video_util_set_file_path_n2(void);
-extern int utc_video_util_set_file_path_p(void);
-extern int utc_video_util_set_accurate_mode_n(void);
-extern int utc_video_util_set_accurate_mode_p(void);
-extern int utc_video_util_set_video_codec_n1(void);
-extern int utc_video_util_set_video_codec_n2(void);
-extern int utc_video_util_set_video_codec_p(void);
-extern int utc_video_util_set_audio_codec_n1(void);
-extern int utc_video_util_set_audio_codec_n2(void);
-extern int utc_video_util_set_audio_codec_p(void);
-extern int utc_video_util_set_file_format_n1(void);
-extern int utc_video_util_set_file_format_n2(void);
-extern int utc_video_util_set_file_format_p(void);
-extern int utc_video_util_set_resolution_n1(void);
-extern int utc_video_util_set_resolution_n2(void);
-extern int utc_video_util_set_resolution_n3(void);
-extern int utc_video_util_set_resolution_p(void);
-extern int utc_video_util_set_fps_n1(void);
-extern int utc_video_util_set_fps_n2(void);
-extern int utc_video_util_set_fps_p(void);
-extern int utc_video_util_start_transcoding_n1(void);
-extern int utc_video_util_start_transcoding_n2(void);
-extern int utc_video_util_start_transcoding_p(void);
-extern int utc_video_util_get_progress_transcoding_n1(void);
-extern int utc_video_util_get_progress_transcoding_n2(void);
-extern int utc_video_util_get_progress_transcoding_n3(void);
-extern int utc_video_util_get_progress_transcoding_p(void);
-extern int utc_video_util_cancel_transcoding_n(void);
-extern int utc_video_util_cancel_transcoding_p(void);
-extern int utc_video_util_foreach_supported_file_format_n1(void);
-extern int utc_video_util_foreach_supported_file_format_n2(void);
-extern int utc_video_util_foreach_supported_file_format_p(void);
-extern int utc_video_util_foreach_supported_video_codec_n1(void);
-extern int utc_video_util_foreach_supported_video_codec_n2(void);
-extern int utc_video_util_foreach_supported_video_codec_p(void);
-extern int utc_video_util_foreach_supported_audio_codec_n1(void);
-extern int utc_video_util_foreach_supported_audio_codec_n2(void);
-extern int utc_video_util_foreach_supported_audio_codec_p(void);
-extern int utc_video_util_destroy_n(void);
-extern int utc_video_util_destroy_p(void);
-
-testcase tc_array[] = {
-       {"utc_video_util_create_n",utc_video_util_create_n,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_create_p",utc_video_util_create_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_file_path_n1",utc_video_util_set_file_path_n1,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_file_path_n2",utc_video_util_set_file_path_n2,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_file_path_p",utc_video_util_set_file_path_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_accurate_mode_n",utc_video_util_set_accurate_mode_n,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_accurate_mode_p",utc_video_util_set_accurate_mode_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_video_codec_n1",utc_video_util_set_video_codec_n1,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_video_codec_n2",utc_video_util_set_video_codec_n2,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_video_codec_p",utc_video_util_set_video_codec_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_audio_codec_n1",utc_video_util_set_audio_codec_n1,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_audio_codec_n2",utc_video_util_set_audio_codec_n2,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_audio_codec_p",utc_video_util_set_audio_codec_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_file_format_n1",utc_video_util_set_file_format_n1,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_file_format_n2",utc_video_util_set_file_format_n2,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_file_format_p",utc_video_util_set_file_format_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_resolution_n1",utc_video_util_set_resolution_n1,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_resolution_n2",utc_video_util_set_resolution_n2,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_resolution_n3",utc_video_util_set_resolution_n3,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_resolution_p",utc_video_util_set_resolution_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_fps_n1",utc_video_util_set_fps_n1,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_fps_n2",utc_video_util_set_fps_n2,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_set_fps_p",utc_video_util_set_fps_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_start_transcoding_n1",utc_video_util_start_transcoding_n1,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_start_transcoding_n2",utc_video_util_start_transcoding_n2,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_start_transcoding_p",utc_video_util_start_transcoding_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_get_progress_transcoding_n1",utc_video_util_get_progress_transcoding_n1,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_get_progress_transcoding_n2",utc_video_util_get_progress_transcoding_n2,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_get_progress_transcoding_n3",utc_video_util_get_progress_transcoding_n3,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_get_progress_transcoding_p",utc_video_util_get_progress_transcoding_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_cancel_transcoding_n",utc_video_util_cancel_transcoding_n,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_cancel_transcoding_p",utc_video_util_cancel_transcoding_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_foreach_supported_file_format_n1",utc_video_util_foreach_supported_file_format_n1,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_foreach_supported_file_format_n2",utc_video_util_foreach_supported_file_format_n2,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_foreach_supported_file_format_p",utc_video_util_foreach_supported_file_format_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_foreach_supported_video_codec_n1",utc_video_util_foreach_supported_video_codec_n1,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_foreach_supported_video_codec_n2",utc_video_util_foreach_supported_video_codec_n2,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_foreach_supported_video_codec_p",utc_video_util_foreach_supported_video_codec_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_foreach_supported_audio_codec_n1",utc_video_util_foreach_supported_audio_codec_n1,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_foreach_supported_audio_codec_n2",utc_video_util_foreach_supported_audio_codec_n2,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_foreach_supported_audio_codec_p",utc_video_util_foreach_supported_audio_codec_p,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_destroy_n",utc_video_util_destroy_n,utc_video_util_startup,utc_video_util_cleanup},
-       {"utc_video_util_destroy_p",utc_video_util_destroy_p,utc_video_util_startup,utc_video_util_cleanup},
-       {NULL, NULL}
-};
-
-#endif // __TCT_VIDEO-UTIL-NATIVE_H__
diff --git a/src/utc/video-util/tct-video-util-core_wearable.h b/src/utc/video-util/tct-video-util-core_wearable.h
deleted file mode 100755 (executable)
index a3a6670..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-//
-// Copyright (c) 2014 Samsung Electronics Co., Ltd.
-//
-// Licensed under the Apache License, Version 2.0 (the License);
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-//     http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-#ifndef __TCT_VIDEO-UTIL-NATIVE_H__
-#define __TCT_VIDEO-UTIL-NATIVE_H__
-
-#include "testcase.h"
-#include "tct_common.h"
-
-
-
-testcase tc_array[] = {
-       {NULL, NULL}
-};
-
-#endif // __TCT_VIDEO-UTIL-NATIVE_H__
diff --git a/src/utc/video-util/utc-video-util.c b/src/utc/video-util/utc-video-util.c
deleted file mode 100755 (executable)
index 2e3d6ec..0000000
+++ /dev/null
@@ -1,1086 +0,0 @@
-//
-// Copyright (c) 2014 Samsung Electronics Co., Ltd.
-//
-// Licensed under the Apache License, Version 2.0 (the License);
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-//     http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-#include "assert.h"
-#include <unistd.h>
-#include <stdlib.h>
-#include <video_util.h>
-#include <glib.h>
-#include <system_info.h>
-#include <storage.h>
-#include "tct_common.h"
-
-#define API_NAMESPACE                  "[VIDEO-UTIL]"
-
-//& set: Video-util
-static const char *MEDIA_PATH = NULL;
-static const char *MEDIA_FILE = "tct-content-tizen-tests_video.mp4";
-static const char *MEDIA_OUTPUT_PATH = NULL;
-static const char *MEDIA_OUTPUT_FILE = "tct-content-tizen-tests_video_test.mp4";
-GMainLoop *g_loop = NULL;
-video_util_h video_h = NULL;
-int is_handle_error = VIDEO_UTIL_ERROR_NONE;
-bool CANCEL = FALSE;
-bool PROGRESS = FALSE;
-static bool g_video_info_transcoder = true;
-static int duration;
-static int current_position;
-
-/**
- * @function           utc_video_util_startup
- * @description                Called before each test
- * @parameter          NA
- * @return                     NA
- */
-void utc_video_util_startup(void)
-{
-       system_info_get_platform_bool("http://tizen.org/feature/multimedia.transcoder", &g_video_info_transcoder);
-
-       char pszValue[CONFIG_VALUE_LEN_MAX] = { 0, };
-       if (true == GetValueForTCTSetting("DEVICE_SUITE_TARGET_30", pszValue, API_NAMESPACE)) {
-               PRINT_UTC_LOG("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received = %s\\n", __LINE__, API_NAMESPACE, pszValue);
-               MEDIA_PATH = (char *)malloc(strlen(pszValue) + strlen(MEDIA_FILE) + 6);
-               if (!MEDIA_PATH) {
-                       PRINT_UTC_LOG("[Line : %d][%s] Fail to malloc MEDIA_PATH\n", __LINE__, API_NAMESPACE);
-                       return;
-               }
-               snprintf(MEDIA_PATH, strlen(pszValue) + strlen(MEDIA_FILE) + 6, "%s/res/%s", pszValue, MEDIA_FILE);
-
-               MEDIA_OUTPUT_PATH = (char *)malloc(strlen(pszValue) + strlen(MEDIA_OUTPUT_FILE) + 6);
-               if (!MEDIA_OUTPUT_PATH) {
-                       PRINT_UTC_LOG("[Line : %d][%s] Fail to malloc MEDIA_PATH\n", __LINE__, API_NAMESPACE);
-                       return;
-               }
-               snprintf(MEDIA_OUTPUT_PATH, strlen(pszValue) + strlen(MEDIA_OUTPUT_FILE) + 6, "%s/res/%s", pszValue, MEDIA_OUTPUT_FILE);
-       } else {
-               PRINT_UTC_LOG("[Line : %d][%s] GetValueForTCTSetting returned error for 'DEVICE_SUITE_TARGET_30'\\n", __LINE__, API_NAMESPACE);
-       }
-
-       int ret = video_util_create(&video_h);
-
-       if (VIDEO_UTIL_ERROR_NONE != ret)
-               is_handle_error = ret;
-
-       if (MEDIA_PATH == NULL || MEDIA_OUTPUT_PATH == NULL)
-               fprintf(stderr, "Startup error at %s:%d\n", __FILE__, __LINE__);
-}
-
-/**
- * @function           utc_video_util_cleanup
- * @description                Called after each test
- * @parameter          NA
- * @return                     NA
- */
-void utc_video_util_cleanup(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       ret = video_util_destroy(video_h);
-       if (ret != VIDEO_UTIL_ERROR_NONE)
-               PRINT_UTC_LOG("[Line : %d][%s] Fail to video_util_destroy \n", __LINE__, API_NAMESPACE);
-
-       video_h = NULL;
-       is_handle_error = VIDEO_UTIL_ERROR_NONE;
-       if (MEDIA_PATH != NULL) {
-               free(MEDIA_PATH);
-               MEDIA_PATH = NULL;
-       }
-       if (MEDIA_OUTPUT_PATH != NULL) {
-               free(MEDIA_OUTPUT_PATH);
-               MEDIA_OUTPUT_PATH = NULL;
-       }
-}
-
-static bool utc_transcode_spec_cb(int value, void *user_data)
-{
-       return true;
-}
-
-static int utc_transcode_progress_cb(unsigned long current_position, unsigned long duration, void *user_data)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (CANCEL) {
-               if (current_position > 700 && current_position < 800) {
-                       ret = video_util_cancel_transcoding(video_h);
-                       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-                       CANCEL = FALSE;
-               }
-       } else if (PROGRESS) {
-               if (current_position > 700 && current_position < 800) {
-                       ret = video_util_get_progress_transcoding(video_h, &current_position, &duration);
-                       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-                       PROGRESS = FALSE;
-               }
-       }
-       return true;
-}
-
-static int utc_transcode_completed_cb(video_util_error_e error, void *user_data)
-{
-       if (error == VIDEO_UTIL_ERROR_NONE) {
-               if (g_loop)
-                       g_main_loop_quit(g_loop);
-               return true;
-       } else {
-               return false;
-       }
-}
-
-/**
- * @testcase           utc_video_util_create_n
- * @since_tizen                2.3
- * @description                Nagative test case that creates a handle to video util
- */
-int utc_video_util_create_n(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_create(NULL);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       ret = video_util_create(NULL);
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_create_p
- * @since_tizen                2.3
- * @description                Positive test case that creates a handle to video util
- */
-int utc_video_util_create_p(void)
-{
-       bool value = true;
-       if (g_video_info_transcoder == false) {
-               assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_set_file_path_n1
- * @since_tizen                2.3
- * @description                Nagative test case that sets the video util's file path
- */
-int utc_video_util_set_file_path_n1(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_set_file_path(video_h, NULL);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_file_path(video_h, NULL);
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_set_file_path_n2
- * @since_tizen                2.3
- * @description                Nagative test case that sets the video util's file path
- */
-int utc_video_util_set_file_path_n2(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_set_file_path(NULL, MEDIA_PATH);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       ret = video_util_set_file_path(NULL, MEDIA_PATH);
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_set_file_path_p
- * @since_tizen                2.3
- * @description                Positive test case that sets the video util's file path
- */
-int utc_video_util_set_file_path_p(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_set_file_path(video_h, MEDIA_PATH);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_file_path(video_h, MEDIA_PATH);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_set_accurate_mode_n
- * @since_tizen                2.3
- * @description                Nagative test case that sets the video util's accurate mode
- */
-int utc_video_util_set_accurate_mode_n(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_set_accurate_mode(NULL, 0);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       ret = video_util_set_accurate_mode(NULL, 0);
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_set_accurate_mode_p
- * @since_tizen                2.3
- * @description                Positive test case that sets the video util's accurate mode
- */
-int utc_video_util_set_accurate_mode_p(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_set_accurate_mode(video_h, 0);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_accurate_mode(video_h, 0);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_set_video_codec_n1
- * @since_tizen                2.3
- * @description                Nagative test case that sets the video codec for encoding video stream
- */
-int utc_video_util_set_video_codec_n1(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_set_video_codec(video_h, -1);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_video_codec(video_h, -1);
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_set_video_codec_n2
- * @since_tizen                2.3
- * @description                Nagative test case that sets the video codec for encoding video stream
- */
-int utc_video_util_set_video_codec_n2(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_set_video_codec(NULL, VIDEO_UTIL_VIDEO_CODEC_MPEG4);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       ret = video_util_set_video_codec(NULL, VIDEO_UTIL_VIDEO_CODEC_MPEG4);
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_set_video_codec_p
- * @since_tizen                2.3
- * @description                Positive test case that sets the video codec for encoding video stream
- */
-int utc_video_util_set_video_codec_p(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_set_video_codec(video_h, VIDEO_UTIL_VIDEO_CODEC_MPEG4);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_video_codec(video_h, VIDEO_UTIL_VIDEO_CODEC_MPEG4);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_set_audio_codec_n1
- * @since_tizen                2.3
- * @description                Nagative test case that sets the audio codec for encoding audio stream
- */
-int utc_video_util_set_audio_codec_n1(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_set_audio_codec(video_h, -1);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_audio_codec(video_h, -1);
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_set_audio_codec_n2
- * @since_tizen                2.3
- * @description                Nagative test case that sets the audio codec for encoding audio stream
- */
-int utc_video_util_set_audio_codec_n2(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_set_audio_codec(NULL, VIDEO_UTIL_AUDIO_CODEC_AAC);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       ret = video_util_set_audio_codec(NULL, VIDEO_UTIL_AUDIO_CODEC_AAC);
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_set_audio_codec_p
- * @since_tizen                2.3
- * @description                Positive test case that sets the audio codec for encoding audio stream
- */
-int utc_video_util_set_audio_codec_p(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_set_audio_codec(video_h, VIDEO_UTIL_AUDIO_CODEC_AAC);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_audio_codec(video_h, VIDEO_UTIL_AUDIO_CODEC_AAC);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_set_file_format_n1
- * @since_tizen                2.3
- * @description                Nagative test case that sets the file format for transcoding media stream
- */
-int utc_video_util_set_file_format_n1(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_set_file_format(video_h, -1);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_file_format(video_h, -1);
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_set_file_format_n2
- * @since_tizen                2.3
- * @description                Nagative test case that sets the file format for transcoding media stream
- */
-int utc_video_util_set_file_format_n2(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_set_file_format(NULL, VIDEO_UTIL_FILE_FORMAT_3GP);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       ret = video_util_set_file_format(NULL, VIDEO_UTIL_FILE_FORMAT_3GP);
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_set_file_format_p
- * @since_tizen                2.3
- * @description                Positive test case that sets the file format for transcoding media stream
- */
-int utc_video_util_set_file_format_p(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_set_file_format(video_h, VIDEO_UTIL_FILE_FORMAT_3GP);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_file_format(video_h, VIDEO_UTIL_FILE_FORMAT_3GP);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_set_resolution_n1
- * @since_tizen                2.3
- * @description                Nagative test case that sets the resolution(width and height)
- */
-int utc_video_util_set_resolution_n1(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_set_resolution(video_h, -1, 144);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_resolution(video_h, -1, 144);
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_set_resolution_n2
- * @since_tizen                2.3
- * @description                Nagative test case that sets the resolution(width and height)
- */
-int utc_video_util_set_resolution_n2(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_set_resolution(video_h, 176, -1);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_resolution(video_h, 176, -1);
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_set_resolution_n3
- * @since_tizen                2.3
- * @description                Nagative test case that sets the resolution(width and height)
- */
-int utc_video_util_set_resolution_n3(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_set_resolution(NULL, 176, 144);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       ret = video_util_set_resolution(NULL, 176, 144);
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_set_resolution_p
- * @since_tizen                2.3
- * @description                Positive test case that sets the resolution(width and height)
- */
-int utc_video_util_set_resolution_p(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_set_resolution(video_h, 176, 144);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_resolution(video_h, 176, 144);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_set_fps_n1
- * @since_tizen                2.3
- * @description                Nagative test case that sets the frame rate
- */
-int utc_video_util_set_fps_n1(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_set_fps(video_h, -1);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_fps(video_h, -1);
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_set_fps_n2
- * @since_tizen                2.3
- * @description                Nagative test case that Sets the frame rate
- */
-int utc_video_util_set_fps_n2(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_set_fps(NULL, 10);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       ret = video_util_set_fps(NULL, 10);
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_set_fps_p
- * @since_tizen                2.3
- * @description                Positive test case that sets the frame rate
- */
-int utc_video_util_set_fps_p(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_set_fps(video_h, 10);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_fps(video_h, 10);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_start_transcoding_n1
- * @since_tizen                2.3
- * @description                Nagative test case that Transcodes the video for given video util handle
- */
-int utc_video_util_start_transcoding_n1(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_start_transcoding(video_h, 0, 0, NULL, (video_util_transcoding_progress_cb) utc_transcode_progress_cb, (video_util_transcoding_completed_cb) utc_transcode_completed_cb, NULL);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_file_path(video_h, MEDIA_PATH);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_start_transcoding(video_h, 0, 0, NULL, (video_util_transcoding_progress_cb) utc_transcode_progress_cb, (video_util_transcoding_completed_cb) utc_transcode_completed_cb, NULL);
-       video_util_cancel_transcoding(video_h);
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_start_transcoding_n2
- * @since_tizen                2.3
- * @description                Nagative test case that Transcodes the video for given video util handle
- */
-int utc_video_util_start_transcoding_n2(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_start_transcoding(NULL, 0, 0, MEDIA_OUTPUT_PATH, NULL, NULL, NULL);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       ret = video_util_start_transcoding(NULL, 0, 0, MEDIA_OUTPUT_PATH, NULL, NULL, NULL);
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_start_transcoding_p
- * @since_tizen                2.3
- * @description                Positive test case that Transcodes the video for given video util handle
- */
-int utc_video_util_start_transcoding_p(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_start_transcoding(video_h, 0, 1000, MEDIA_OUTPUT_PATH, utc_transcode_progress_cb, utc_transcode_completed_cb, NULL);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_file_path(video_h, MEDIA_PATH);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_file_format(video_h, VIDEO_UTIL_FILE_FORMAT_3GP);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_video_codec(video_h, VIDEO_UTIL_VIDEO_CODEC_MPEG4);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_audio_codec(video_h, VIDEO_UTIL_AUDIO_CODEC_NONE);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_accurate_mode(video_h, 0);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_resolution(video_h, 176, 144);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_fps(video_h, 10);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_start_transcoding(video_h, 0, 1000, MEDIA_OUTPUT_PATH, utc_transcode_progress_cb, utc_transcode_completed_cb, NULL);
-       g_loop = g_main_loop_new(NULL, FALSE);
-
-       g_main_loop_run(g_loop);
-       g_main_loop_unref(g_loop);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_get_progress_transcoding_n1
- * @since_tizen                2.3
- * @description                Nagative test case that retreives the current position and duration of the video transcoding
- */
-int utc_video_util_get_progress_transcoding_n1(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_get_progress_transcoding(video_h, NULL, &duration);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       unsigned long duration = 0;
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_file_path(video_h, MEDIA_PATH);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_get_progress_transcoding(video_h, NULL, &duration);
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_get_progress_transcoding_n2
- * @since_tizen                2.3
- * @description                Nagative test case that retreives the current position and duration of the video transcoding
- */
-int utc_video_util_get_progress_transcoding_n2(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_get_progress_transcoding(video_h, &current_position, NULL);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       unsigned long current_position = 0;
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_file_path(video_h, MEDIA_PATH);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_get_progress_transcoding(video_h, &current_position, NULL);
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_get_progress_transcoding_n3
- * @since_tizen                2.3
- * @description                Nagative test case that retreives the current position and duration of the video transcoding
- */
-int utc_video_util_get_progress_transcoding_n3(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_get_progress_transcoding(NULL, &current_position, &duration);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       unsigned long current_position = 0;
-       unsigned long duration = 0;
-
-       ret = video_util_get_progress_transcoding(NULL, &current_position, &duration);
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_get_progress_transcoding_p
- * @since_tizen                2.3
- * @description                Positive test case that retreives the current position and duration of the video transcoding
- */
-int utc_video_util_get_progress_transcoding_p(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_start_transcoding(video_h, 0, 1000, MEDIA_OUTPUT_PATH, utc_transcode_progress_cb, utc_transcode_completed_cb, NULL);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       unsigned long current_position = 0;
-       unsigned long duration = 0;
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_file_path(video_h, MEDIA_PATH);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_file_format(video_h, VIDEO_UTIL_FILE_FORMAT_3GP);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_video_codec(video_h, VIDEO_UTIL_VIDEO_CODEC_MPEG4);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_audio_codec(video_h, VIDEO_UTIL_AUDIO_CODEC_NONE);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_accurate_mode(video_h, 0);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_resolution(video_h, 176, 144);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_fps(video_h, 10);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-       PROGRESS = TRUE;
-       ret = video_util_start_transcoding(video_h, 0, 1000, MEDIA_OUTPUT_PATH, utc_transcode_progress_cb, utc_transcode_completed_cb, NULL);
-       g_loop = g_main_loop_new(NULL, FALSE);
-
-       g_main_loop_run(g_loop);
-       g_main_loop_unref(g_loop);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_cancel_transcoding_n
- * @since_tizen                2.3
- * @description                Nagative test case that cancels transcoding the video for given video util handle
- */
-int utc_video_util_cancel_transcoding_n(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_cancel_transcoding(NULL);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       ret = video_util_cancel_transcoding(NULL);
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_cancel_transcoding_p
- * @since_tizen                2.3
- * @description                Positive test case that cancels transcoding the video for given video util handle
- */
-int utc_video_util_cancel_transcoding_p(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_start_transcoding(video_h, 0, 1000, MEDIA_OUTPUT_PATH, utc_transcode_progress_cb, utc_transcode_completed_cb, NULL);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_file_path(video_h, MEDIA_PATH);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_resolution(video_h, 176, 144);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_set_fps(video_h, 10);
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-       CANCEL = TRUE;
-       ret = video_util_start_transcoding(video_h, 0, 1000, MEDIA_OUTPUT_PATH, utc_transcode_progress_cb, utc_transcode_completed_cb, NULL);
-       g_loop = g_main_loop_new(NULL, FALSE);
-
-       g_main_loop_run(g_loop);
-       g_main_loop_unref(g_loop);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_foreach_supported_file_format_n1
- * @since_tizen                2.3
- * @description                Nagative test case that cetrieves all supported media formats by invoking a specific callback for each supported media format
- */
-int utc_video_util_foreach_supported_file_format_n1(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_foreach_supported_file_format(video_h, NULL, "format_check");
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_foreach_supported_file_format(video_h, NULL, "format_check");
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_foreach_supported_file_format_n2
- * @since_tizen                2.3
- * @description                Nagative test case that cetrieves all supported media formats by invoking a specific callback for each supported media format
- */
-int utc_video_util_foreach_supported_file_format_n2(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_foreach_supported_file_format(NULL, (video_util_supported_file_format_cb) utc_transcode_spec_cb, "format_check");
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       ret = video_util_foreach_supported_file_format(NULL, (video_util_supported_file_format_cb) utc_transcode_spec_cb, "format_check");
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_foreach_supported_file_format_p
- * @since_tizen                2.3
- * @description                Positive test case that retrieves all supported media formats by invoking a specific callback for each supported media format
- */
-int utc_video_util_foreach_supported_file_format_p(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_foreach_supported_file_format(video_h, (video_util_supported_file_format_cb) utc_transcode_spec_cb, "format_check");
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_foreach_supported_file_format(video_h, (video_util_supported_file_format_cb) utc_transcode_spec_cb, "format_check");
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_foreach_supported_video_codec_n1
- * @since_tizen                2.3
- * @description                Nagative test case that retrieves all supported video encoders by invoking a specific callback for each supported video encoder
- */
-int utc_video_util_foreach_supported_video_codec_n1(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_foreach_supported_video_codec(video_h, NULL, "video_codec_check");
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_foreach_supported_video_codec(video_h, NULL, "video_codec_check");
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_foreach_supported_video_codec_n2
- * @since_tizen                2.3
- * @description                Nagative test case that retrieves all supported video encoders by invoking a specific callback for each supported video encoder
- */
-int utc_video_util_foreach_supported_video_codec_n2(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_foreach_supported_video_codec(NULL, (video_util_supported_video_encoder_cb) utc_transcode_spec_cb, "video_codec_check");
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       ret = video_util_foreach_supported_video_codec(NULL, (video_util_supported_video_encoder_cb) utc_transcode_spec_cb, "video_codec_check");
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_foreach_supported_video_codec_p
- * @since_tizen                2.3
- * @description                Postitive test case that retrieves all supported video encoders by invoking a specific callback for each supported video encoder
- */
-int utc_video_util_foreach_supported_video_codec_p(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_foreach_supported_video_codec(video_h, (video_util_supported_video_encoder_cb) utc_transcode_spec_cb, "video_codec_check");
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_foreach_supported_video_codec(video_h, (video_util_supported_video_encoder_cb) utc_transcode_spec_cb, "video_codec_check");
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_foreach_supported_audio_codec_n1
- * @since_tizen                2.3
- * @description                Nagative test case that retrieves all supported audio encoders by invoking a specific callback for each supported audio encoder
- */
-int utc_video_util_foreach_supported_audio_codec_n1(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_foreach_supported_video_codec(video_h, NULL, "audio_codec_check");
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_foreach_supported_video_codec(video_h, NULL, "audio_codec_check");
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_foreach_supported_audio_codec_n2
- * @since_tizen                2.3
- * @description                Nagative test case that retrieves all supported audio encoders by invoking a specific callback for each supported audio encoder
- */
-int utc_video_util_foreach_supported_audio_codec_n2(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_foreach_supported_audio_codec(NULL, (video_util_supported_audio_encoder_cb) utc_transcode_spec_cb, "audio_codec_check");
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       ret = video_util_foreach_supported_audio_codec(NULL, (video_util_supported_audio_encoder_cb) utc_transcode_spec_cb, "audio_codec_check");
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_foreach_supported_audio_codec_p
- * @since_tizen                2.3
- * @description                Positive test case that retrieves all supported audio encoders by invoking a specific callback for each supported audio encoder
- */
-int utc_video_util_foreach_supported_audio_codec_p(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_foreach_supported_audio_codec(video_h, (video_util_supported_audio_encoder_cb) utc_transcode_spec_cb, "audio_codec_check");
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_foreach_supported_audio_codec(video_h, (video_util_supported_audio_encoder_cb) utc_transcode_spec_cb, "audio_codec_check");
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_destroy_n
- * @since_tizen                2.3
- * @description                Nagative test case that destroys a handle to video util
- */
-int utc_video_util_destroy_n(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_destroy(NULL);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       ret = video_util_destroy(NULL);
-       assert_neq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}
-
-/**
- * @testcase           utc_video_util_destroy_p
- * @since_tizen                2.3
- * @description                Positive test case that destroys a handle to video util
- */
-int utc_video_util_destroy_p(void)
-{
-       int ret = VIDEO_UTIL_ERROR_NONE;
-       if (g_video_info_transcoder == false) {
-               ret = video_util_destroy(video_h);
-               assert_eq(ret, VIDEO_UTIL_ERROR_NOT_SUPPORTED);
-               return 0;
-       }
-
-       assert_eq(is_handle_error, VIDEO_UTIL_ERROR_NONE);
-       ret = video_util_destroy(video_h);
-       video_h = NULL;
-       assert_eq(ret, VIDEO_UTIL_ERROR_NONE);
-
-       return 0;
-}