[ITC][webrtc][non-ACR] Remove display related test cases and dependencies 04/295304/8
authorSangchul Lee <sc11.lee@samsung.com>
Wed, 5 Jul 2023 02:46:21 +0000 (11:46 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Wed, 23 Aug 2023 06:40:29 +0000 (15:40 +0900)
These are moved to webrtc-display TCT.

Change-Id: If847a52fd22f3dbe8b5e24434231945b4bb107af
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/itc/native-webrtc-itc.xml
src/itc/webrtc/CMakeLists.txt
src/itc/webrtc/ITs-webrtc.c
src/itc/webrtc/tct-webrtc-native.c
src/itc/webrtc/tct-webrtc-native_mobile.h
src/itc/webrtc/tct-webrtc-native_tizeniot.h
src/itc/webrtc/tct-webrtc-native_tv.h
src/itc/webrtc/tct-webrtc-native_wearable.h

index 3bb52d4..a9d200f 100755 (executable)
@@ -1,17 +1,17 @@
 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns="http://tizen.org/ns/packages" package="native-webrtc-itc" version="0.1.0" api-version="3.0">
-    <label>NativeWebrtcTest</label>
-    <author email="mymail@tizentest.com" href="www.tizentest.com">test</author>
-    <description>Native API test Application</description>
-    <ui-application appid="native.webrtc-itc" exec="/usr/apps/native-webrtc-itc/bin/tct-webrtc-native" nodisplay="false" multiple="false" type="capp" taskmanage="true">
+  <label>NativeWebrtcTest</label>
+  <author email="mymail@tizentest.com" href="www.tizentest.com">test</author>
+  <description>Native API test Application</description>
+  <service-application appid="native.webrtc-itc" exec="/usr/apps/native-webrtc-itc/bin/tct-webrtc-native" 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>
+    <background-category value="download"/>
+    <background-category value="iot-communication"/>
+    <background-category value="location"/>
+    <background-category value="media"/>
+    <background-category value="sensor"/>
+  </service-application>
+  <privileges>
     <privilege>http://tizen.org/privilege/externalstorage</privilege>
     <privilege>http://tizen.org/privilege/mediastorage</privilege>
     <privilege>http://tizen.org/privilege/internet</privilege>
index cd72ae3..01cdbba 100755 (executable)
@@ -6,18 +6,15 @@ SET(RPM_NAME "native-${PKG_NAME}-itc")
 SET(CAPI_LIB "webrtc")
 SET(TC_SOURCES
     ITs-webrtc-common.c
-       ITs-webrtc.c
-       ITs-webrtc_callback.c
+    ITs-webrtc.c
+    ITs-webrtc_callback.c
 )
 
 PKG_CHECK_MODULES(${CAPI_LIB} REQUIRED
     ${CAPI_LIB}
-       capi-appfw-application
-       glib-2.0
-    bundle
-       capi-system-info
-       dlog 
-       elementary
+    capi-appfw-application
+    glib-2.0
+    dlog
 )
 
 INCLUDE_DIRECTORIES(
@@ -27,7 +24,6 @@ INCLUDE_DIRECTORIES(
 ADD_EXECUTABLE(${EXEC_NAME} ${EXEC_NAME}.c ${TC_SOURCES} ${COMMON_FILE})
 TARGET_LINK_LIBRARIES(${EXEC_NAME}
     ${${CAPI_LIB}_LIBRARIES}
-    bundle
 )
 
 INSTALL(PROGRAMS ${EXEC_NAME}
index 892d527..8a75a39 100755 (executable)
@@ -19,7 +19,6 @@
 
 #define MICROPHONE_FEATURE      "http://tizen.org/feature/microphone"
 #define CAMERA_FEATURE          "http://tizen.org/feature/camera"
-#define DISPLAY_FEATURE         "http://tizen.org/feature/display"
 #define TEST_DATA_CHANNEL_LABEL "test data channel"
 #define TEST_STRING_DATA        "test string"
 #define TEST_BUFFER_SIZE        16
 static char g_test_buffer[TEST_BUFFER_SIZE] = {'t', 'e', 's', 't', 'b', 'u', 'f', '\0', };
 static bool g_bIsMicrophoneFeatureSupported;
 static bool g_bIsCameraFeatureSupported;
-static bool g_bIsDisplayFeatureSupported;
-static Evas_Object *g_win = NULL;
-
-static void winDeleteCB(void *data, Evas_Object *obj, void *event)
-{
-       elm_exit();
-}
-
-static void createWindow()
-{
-       int w = 0;
-       int h = 0;
-
-       g_win = elm_win_util_standard_add("webrtc_itc", "webrtc_itc");
-       if (g_win) {
-               elm_win_borderless_set(g_win, EINA_TRUE);
-               evas_object_smart_callback_add(g_win, "delete,request", winDeleteCB, NULL);
-               elm_win_screen_size_get(g_win, NULL, NULL, &w, &h);
-               evas_object_resize(g_win, w, h);
-               elm_win_autodel_set(g_win, EINA_TRUE);
-       }
-
-}
-
-static void destroyWindow()
-{
-
-       if (g_win) {
-               evas_object_del(g_win);
-               g_win = NULL;
-       }
-}
 
 //& set: Webrtc
 
@@ -377,9 +344,6 @@ void ITs_webrtc_startup(void)
        g_bIsCameraFeatureSupported = false;
        IS_FEATURE_SUPPORTED(CAMERA_FEATURE, g_bIsCameraFeatureSupported, API_NAMESPACE);
 
-       g_bIsDisplayFeatureSupported = false;
-       IS_FEATURE_SUPPORTED(DISPLAY_FEATURE, g_bIsDisplayFeatureSupported, API_NAMESPACE);
-
        g_bWebRTCCreation = false;
        int nRet = webrtc_create(&g_hWebRtcHandle);
        if (nRet != WEBRTC_ERROR_NONE) {
@@ -1694,7 +1658,6 @@ int ITc_webrtc_media_source_set_unset_audio_loopback_p(void)
        callback_data cb_data;
        INIT_CALLBACK_DATA(cb_data);
 
-       createWindow();
        int nRet = webrtc_add_media_source(g_hWebRtcHandle, WEBRTC_MEDIA_SOURCE_TYPE_AUDIOTEST, &nId);
        PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_add_media_source", WebRtcGetError(nRet));
 
@@ -1728,218 +1691,10 @@ int ITc_webrtc_media_source_set_unset_audio_loopback_p(void)
 
        nRet = sound_manager_destroy_stream_information(hStreamInfo);
        PRINT_RESULT_NORETURN(WEBRTC_ERROR_NONE, nRet, "sound_manager_destroy_stream_information", WebRtcGetError(nRet));
-       destroyWindow();
-
-       return 0;
-}
-
-//& purpose: Sets,Unsets a video loopback to render the video frames of the media source.
-//& type: auto
-/**
-* @testcase                    ITc_webrtc_media_source_set_unset_video_loopback_p
-* @since_tizen                         6.5
-* @author                              SRID(nibha.sharma)
-* @reviewer                            SRID(shobhit.v)
-* @type                                auto
-* @description                 Sets,Unsets a video loopback to render the video frames of the media source.
-* @scenario                            Sets,Unsets a video loopback to render the video frames of the media source.
-* @apicovered                  webrtc_media_source_set_video_loopback
-* @passcase                            If webrtc_media_source_set_video_loopback and webrtc_media_source_unset_video_loopback is successfull
-* @failcase                    If webrtc_media_source_set_video_loopback or webrtc_media_source_unset_video_loopback fails
-* @precondition                        NA
-* @postcondition               NA
-*/
-int ITc_webrtc_media_source_set_unset_video_loopback_p(void)
-{
-       START_TEST;
-       unsigned int nId;
-       callback_data cb_data;
-       INIT_CALLBACK_DATA(cb_data);
-
-       createWindow();
-       int nRet = webrtc_add_media_source(g_hWebRtcHandle, WEBRTC_MEDIA_SOURCE_TYPE_VIDEOTEST, &nId);
-       PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_add_media_source", WebRtcGetError(nRet));
-
-       nRet = webrtc_set_ice_candidate_cb(g_hWebRtcHandle, webrtcIceCandidateCB, NULL);
-       PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_set_ice_candidate_cb", WebRtcGetError(nRet));
-
-       nRet = webrtc_set_state_changed_cb(g_hWebRtcHandle, webrtcStateChangedCB, &cb_data);
-       PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_set_state_changed_cb", WebRtcGetError(nRet));
-
-       nRet = webrtc_media_source_set_video_loopback(g_hWebRtcHandle, nId, WEBRTC_DISPLAY_TYPE_OVERLAY, g_win, NULL);
-       if (!g_bIsDisplayFeatureSupported)
-               assert_eq(nRet, WEBRTC_ERROR_NOT_SUPPORTED);
-       else
-               PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_media_source_set_video_loopback", WebRtcGetError(nRet));
-
-       g_mutex_lock(&cb_data.mutex);
-
-       nRet = webrtc_start(g_hWebRtcHandle);
-       PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_start", WebRtcGetError(nRet));
-
-       RUN_POLLING_LOOP(cb_data);
-       if (!cb_data.is_invoked) {
-               FPRINTF("[Line : %d][%s] Callback webrtcStateChangedCB not invoked\\n", __LINE__, API_NAMESPACE);
-               return 1;
-       }
-
-       nRet = webrtc_stop(g_hWebRtcHandle);
-       PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_stop", WebRtcGetError(nRet));
-
-       nRet = webrtc_media_source_unset_video_loopback(g_hWebRtcHandle, nId);
-       if (!g_bIsDisplayFeatureSupported)
-               assert_eq(nRet, WEBRTC_ERROR_NOT_SUPPORTED);
-       else
-               PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_media_source_unset_video_loopback", WebRtcGetError(nRet));
-
-       destroyWindow();
 
        return 0;
 }
 
-//& purpose: Sets and Gets the display mode of the video track.
-//& type: auto
-/**
-* @testcase                    ITc_webrtc_set_get_display_mode_p
-* @since_tizen                         6.5
-* @author                              SRID(nibha.sharma)
-* @reviewer                            SRID(shobhit.v)
-* @type                                auto
-* @description                 Sets and Gets the display mode of the video track.
-* @scenario                            Sets and Gets the display mode of the video track.
-* @apicovered                  webrtc_set_display_mode,webrtc_get_display_mode
-* @passcase                            If webrtc_set_display_mode,webrtc_get_display_mode is successful
-* @failcase                    If webrtc_set_display_mode,webrtc_get_display_mode fails
-* @precondition                        NA
-* @postcondition               NA
-*/
-int ITc_webrtc_set_get_display_mode_p(void)
-{
-       START_TEST;
-       unsigned int nId,nTrackId;
-       webrtc_display_mode_e eMode;
-       callback_data cb_data;
-       INIT_CALLBACK_DATA(cb_data);
-
-       createWindow();
-       int nRet = webrtc_add_media_source(g_hWebRtcHandle, WEBRTC_MEDIA_SOURCE_TYPE_VIDEOTEST, &nId);
-       PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_add_media_source", WebRtcGetError(nRet));
-
-       nRet = webrtc_set_ice_candidate_cb(g_hWebRtcHandle, webrtcIceCandidateCB, NULL);
-       PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_set_ice_candidate_cb", WebRtcGetError(nRet));
-
-       nRet = webrtc_set_state_changed_cb(g_hWebRtcHandle, webrtcStateChangedCB, &cb_data);
-       PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_set_state_changed_cb", WebRtcGetError(nRet));
-
-       nRet = webrtc_media_source_set_video_loopback(g_hWebRtcHandle, nId, WEBRTC_DISPLAY_TYPE_OVERLAY, g_win, &nTrackId);
-       if (!g_bIsDisplayFeatureSupported)
-               assert_eq(nRet, WEBRTC_ERROR_NOT_SUPPORTED);
-       else
-               PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_media_source_set_video_loopback", WebRtcGetError(nRet));
-
-       g_mutex_lock(&cb_data.mutex);
-
-       nRet = webrtc_start(g_hWebRtcHandle);
-       PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_start", WebRtcGetError(nRet));
-
-       RUN_POLLING_LOOP(cb_data);
-       if (!cb_data.is_invoked) {
-               FPRINTF("[Line : %d][%s] Callback webrtcStateChangedCB not invoked\\n", __LINE__, API_NAMESPACE);
-               return 1;
-       }
-
-       nRet = webrtc_set_display_mode(g_hWebRtcHandle, nTrackId, WEBRTC_DISPLAY_MODE_FULL);
-       if (!g_bIsDisplayFeatureSupported)
-               assert_eq(nRet, WEBRTC_ERROR_NOT_SUPPORTED);
-       else
-               PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_set_display_mode", WebRtcGetError(nRet));
-
-       nRet = webrtc_get_display_mode(g_hWebRtcHandle, nTrackId, &eMode);
-       if (!g_bIsDisplayFeatureSupported) {
-               assert_eq(nRet, WEBRTC_ERROR_NOT_SUPPORTED);
-       } else {
-               PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_get_display_mode", WebRtcGetError(nRet));
-               PRINT_RESULT(WEBRTC_DISPLAY_MODE_FULL, eMode, "webrtc_get_display_mode", WebRtcGetError(nRet));
-       }
-
-       nRet = webrtc_stop(g_hWebRtcHandle);
-       PRINT_RESULT_NORETURN(WEBRTC_ERROR_NONE, nRet, "webrtc_stop", WebRtcGetError(nRet));
-       destroyWindow();
-       return 0;
-}
-
-//& purpose: Sets and Gets the display visibleness of the video track.
-//& type: auto
-/**
-* @testcase                    ITc_webrtc_set_get_display_visible_p
-* @since_tizen                         6.5
-* @author                              SRID(nibha.sharma)
-* @reviewer                            SRID(shobhit.v)
-* @type                                auto
-* @description                 Sets and Gets the display visibleness of the video track.
-* @scenario                            Sets and Gets the display visibleness of the video track.
-* @apicovered                  webrtc_set_display_visible,webrtc_get_display_visible
-* @passcase                            If webrtc_set_display_visible,webrtc_get_display_visible is successful
-* @failcase                    If webrtc_set_display_visible,webrtc_get_display_visible fails
-* @precondition                        NA
-* @postcondition               NA
-*/
-int ITc_webrtc_set_get_display_visible_p(void)
-{
-       START_TEST;
-       unsigned int nId,nTrackId;
-       bool bGetVisible, bSetVisible = false;
-       callback_data cb_data;
-       INIT_CALLBACK_DATA(cb_data);
-
-       int nRet = webrtc_add_media_source(g_hWebRtcHandle, WEBRTC_MEDIA_SOURCE_TYPE_VIDEOTEST, &nId);
-       PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_add_media_source", WebRtcGetError(nRet));
-
-       nRet = webrtc_set_ice_candidate_cb(g_hWebRtcHandle, webrtcIceCandidateCB, NULL);
-       PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_set_ice_candidate_cb", WebRtcGetError(nRet));
-
-       nRet = webrtc_set_state_changed_cb(g_hWebRtcHandle, webrtcStateChangedCB, &cb_data);
-       PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_set_state_changed_cb", WebRtcGetError(nRet));
-
-       createWindow();
-
-       nRet = webrtc_media_source_set_video_loopback(g_hWebRtcHandle, nId, WEBRTC_DISPLAY_TYPE_OVERLAY, g_win, &nTrackId);
-       if (!g_bIsDisplayFeatureSupported)
-               assert_eq(nRet, WEBRTC_ERROR_NOT_SUPPORTED);
-       else
-               PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_media_source_set_video_loopback", WebRtcGetError(nRet));
-
-       g_mutex_lock(&cb_data.mutex);
-
-       nRet = webrtc_start(g_hWebRtcHandle);
-       PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_start", WebRtcGetError(nRet));
-
-       RUN_POLLING_LOOP(cb_data);
-       if (!cb_data.is_invoked) {
-               FPRINTF("[Line : %d][%s] Callback webrtcStateChangedCB not invoked\\n", __LINE__, API_NAMESPACE);
-               return 1;
-       }
-
-       nRet = webrtc_set_display_visible(g_hWebRtcHandle, nTrackId, bSetVisible);
-       if (!g_bIsDisplayFeatureSupported)
-               assert_eq(nRet, WEBRTC_ERROR_NOT_SUPPORTED);
-       else
-               PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_set_display_visible", WebRtcGetError(nRet));
-
-       nRet = webrtc_get_display_visible(g_hWebRtcHandle, nTrackId, &bGetVisible);
-       if (!g_bIsDisplayFeatureSupported) {
-               assert_eq(nRet, WEBRTC_ERROR_NOT_SUPPORTED);
-       } else {
-               PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_get_display_visible", WebRtcGetError(nRet));
-               PRINT_RESULT(bGetVisible, bSetVisible, "webrtc_get_display_visible", WebRtcGetError(nRet));
-       }
-
-       nRet = webrtc_stop(g_hWebRtcHandle);
-       PRINT_RESULT_NORETURN(WEBRTC_ERROR_NONE, nRet, "webrtc_stop", WebRtcGetError(nRet));
-       destroyWindow();
-       return 0;
-}
-
 //& purpose: Sets and Gets a ICE transport policy that represents which candidates the ICE Agent is allowed to use.
 //& type: auto
 /**
@@ -1960,7 +1715,6 @@ int ITc_webrtc_set_get_ice_transport_policy_p(void)
 {
        START_TEST;
        webrtc_ice_transport_policy_e eGetPolicy;
-       createWindow();
 
        int nRet = webrtc_set_ice_transport_policy(g_hWebRtcHandle, WEBRTC_ICE_TRANSPORT_POLICY_RELAY);
        PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_set_ice_transport_policy", WebRtcGetError(nRet));
@@ -1968,7 +1722,7 @@ int ITc_webrtc_set_get_ice_transport_policy_p(void)
        nRet = webrtc_get_ice_transport_policy(g_hWebRtcHandle, &eGetPolicy);
        PRINT_RESULT(WEBRTC_ERROR_NONE, nRet, "webrtc_get_ice_transport_policy", WebRtcGetError(nRet));
        PRINT_RESULT(WEBRTC_ICE_TRANSPORT_POLICY_RELAY, eGetPolicy, "webrtc_get_ice_transport_policy", WebRtcGetError(nRet));
-       destroyWindow();
+
        return 0;
 }
 
index 6f6eb38..00fa663 100755 (executable)
 //
 #include "tct_common.h"
 
-#ifdef MOBILE  //Starts MOBILE
+#ifdef MOBILE
 #include "tct-webrtc-native_mobile.h"
-#endif  //MOBILE       //End MOBILE
+#endif
 
-#ifdef WEARABLE        //Starts WEARABLE
+#ifdef WEARABLE
 #include "tct-webrtc-native_wearable.h"
-#endif  //WEARABLE     //End WEARABLE
+#endif
 
-#ifdef TV      //Starts TV
+#ifdef TV
 #include "tct-webrtc-native_tv.h"
-#endif  //TV   //End TV
+#endif
 
-#ifdef TIZENIOT        //Starts TIZENIOT
+#ifdef TIZENIOT
 #include "tct-webrtc-native_tizeniot.h"
-#endif  //TIZENIOT     //End TIZENIOT
+#endif
 
 #include <stdio.h>
 #include <string.h>
@@ -40,7 +40,7 @@
 #include <sys/wait.h>
 #include <glib.h>
 #include <stdbool.h>
-#include <app.h>
+#include <service_app.h>
 #include <dlog.h>
 
 #include <sys/socket.h>
 #include <arpa/inet.h>
 #include <errno.h>
 
-#include <Elementary.h>
-
-typedef struct appdata {
-       Evas_Object *win;
-       Evas_Object *conform;
-       Evas_Object *label;
-} appdata_s;
-
 static bool app_create(void *data)
 {
        return true;
@@ -63,25 +55,23 @@ static bool app_create(void *data)
 
 static void app_control(app_control_h app_control, void *data)
 {
-       char* pszGetTCName = NULL;
-       int i=0, result=0, nRet=0;
+       char *pszGetTCName = NULL;
+       int i = 0;
+       int result = 0;
+       int nRet = 0;
        nRet = app_control_get_extra_data(app_control, "testcase_name", &pszGetTCName);
-       if(nRet != APP_CONTROL_ERROR_NONE)
-       {
+       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);
+               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)) )
-               {
-                       if ( tc_array[i].startup )
-                       {
+       for (i = 0; tc_array[i].name; i++) {
+               if (0 == strncmp(pszGetTCName, tc_array[i].name, strlen(pszGetTCName))) {
+                       if (tc_array[i].startup) {
                                dlog_print(DLOG_INFO, "NativeTCT", "%s : Start up", pszGetTCName);
                                tc_array[i].startup();
                        }
@@ -90,8 +80,7 @@ static void app_control(app_control_h app_control, void *data)
                        result = tc_array[i].function();
                        dlog_print(DLOG_INFO, "NativeTCT", "%s returns value = %d", pszGetTCName, result);
 
-                       if ( tc_array[i].cleanup )
-                       {
+                       if (tc_array[i].cleanup) {
                                dlog_print(DLOG_INFO, "NativeTCT", "%s : Clean up", pszGetTCName);
                                tc_array[i].cleanup();
                        }
@@ -104,7 +93,7 @@ static void app_control(app_control_h app_control, void *data)
 
        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);
+       PRINT_TC_RESULT("%d", 1);
        FREE_MEMORY_TC(pszGetTCName);
        return;
 }
@@ -117,24 +106,22 @@ static void app_terminate(void *data)
 int main(int argc, char *argv[])
 {
        int ret = 0;
-       appdata_s ad = {0,};
 
-       ui_app_lifecycle_callback_s event_callback = {0,};
+       service_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);
+       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, &ad);
-       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);
+       ret = service_app_main(argc, argv, &event_callback, NULL);
+       if (ret != APP_ERROR_NONE) {
+               dlog_print(DLOG_ERROR, "NativeTCT", "Application service_app_main call gets failed. err = %d", ret);
+               PRINT_UTC_LOG("\\n[%s][Line : %d]Application service_app_main call gets failed. err = %d\\n", __FILE__, __LINE__, ret);
+               PRINT_TC_RESULT("%d", 1);
                return ret;
        }
 
index 90bf282..ccdc6e5 100755 (executable)
@@ -67,9 +67,6 @@ extern int ITc_webrtc_set_unset_track_added_cb_p(void);
 extern int ITc_webrtc_create_offer_async_p(void);
 extern int ITc_webrtc_create_answer_async_p(void);
 extern int ITc_webrtc_media_source_set_unset_audio_loopback_p(void);
-extern int ITc_webrtc_media_source_set_unset_video_loopback_p(void);
-extern int ITc_webrtc_set_get_display_mode_p(void);
-extern int ITc_webrtc_set_get_display_visible_p(void);
 extern int ITc_webrtc_set_get_ice_transport_policy_p(void);
 extern int ITc_webrtc_start_and_finish_negotiation_p(void);
 extern int ITc_webrtc_data_channel_send_and_receive_p(void);
@@ -106,9 +103,6 @@ testcase tc_array[] = {
     {"ITc_webrtc_media_packet_source_set_format_p",ITc_webrtc_media_packet_source_set_format_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_media_packet_source_push_packet_p",ITc_webrtc_media_packet_source_push_packet_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_media_source_set_unset_audio_loopback_p",ITc_webrtc_media_source_set_unset_audio_loopback_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
-    {"ITc_webrtc_media_source_set_unset_video_loopback_p",ITc_webrtc_media_source_set_unset_video_loopback_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
-    {"ITc_webrtc_set_get_display_mode_p",ITc_webrtc_set_get_display_mode_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
-    {"ITc_webrtc_set_get_display_visible_p",ITc_webrtc_set_get_display_visible_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_set_get_ice_transport_policy_p",ITc_webrtc_set_get_ice_transport_policy_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_set_get_stun_server_p",ITc_webrtc_set_get_stun_server_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_add_turn_server_p",ITc_webrtc_add_turn_server_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
index 0f890e9..ccdc6e5 100755 (executable)
@@ -67,9 +67,6 @@ extern int ITc_webrtc_set_unset_track_added_cb_p(void);
 extern int ITc_webrtc_create_offer_async_p(void);
 extern int ITc_webrtc_create_answer_async_p(void);
 extern int ITc_webrtc_media_source_set_unset_audio_loopback_p(void);
-extern int ITc_webrtc_media_source_set_unset_video_loopback_p(void);
-extern int ITc_webrtc_set_get_display_mode_p(void);
-extern int ITc_webrtc_set_get_display_visible_p(void);
 extern int ITc_webrtc_set_get_ice_transport_policy_p(void);
 extern int ITc_webrtc_start_and_finish_negotiation_p(void);
 extern int ITc_webrtc_data_channel_send_and_receive_p(void);
@@ -106,9 +103,6 @@ testcase tc_array[] = {
     {"ITc_webrtc_media_packet_source_set_format_p",ITc_webrtc_media_packet_source_set_format_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_media_packet_source_push_packet_p",ITc_webrtc_media_packet_source_push_packet_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_media_source_set_unset_audio_loopback_p",ITc_webrtc_media_source_set_unset_audio_loopback_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
-    {"ITc_webrtc_media_source_set_unset_video_loopback_p",ITc_webrtc_media_source_set_unset_video_loopback_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
-    {"ITc_webrtc_set_get_display_mode_p",ITc_webrtc_set_get_display_mode_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
-    {"ITc_webrtc_set_get_display_visible_p",ITc_webrtc_set_get_display_visible_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_set_get_ice_transport_policy_p",ITc_webrtc_set_get_ice_transport_policy_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_set_get_stun_server_p",ITc_webrtc_set_get_stun_server_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_add_turn_server_p",ITc_webrtc_add_turn_server_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
@@ -143,7 +137,7 @@ testcase tc_array[] = {
     {"ITc_webrtc_data_channel_get_buffered_amount_low_threshold_p",ITc_webrtc_data_channel_get_buffered_amount_low_threshold_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_media_source_set_get_video_framerate_p",ITc_webrtc_media_source_set_get_video_framerate_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_set_get_bundle_policy_p",ITc_webrtc_set_get_bundle_policy_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
-       {"ITc_webrtc_foreach_stats_p",ITc_webrtc_foreach_stats_p, NULL, NULL},
+    {"ITc_webrtc_foreach_stats_p",ITc_webrtc_foreach_stats_p, NULL, NULL},
     {"ITc_webrtc_media_source_foreach_supported_transceiver_codec_p",ITc_webrtc_media_source_foreach_supported_transceiver_codec_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_media_source_set_get_transceiver_codec_p",ITc_webrtc_media_source_set_get_transceiver_codec_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
        {"ITc_webrtc_media_source_set_get_encoder_bitrate_p",ITc_webrtc_media_source_set_get_encoder_bitrate_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
index 0f890e9..ccdc6e5 100755 (executable)
@@ -67,9 +67,6 @@ extern int ITc_webrtc_set_unset_track_added_cb_p(void);
 extern int ITc_webrtc_create_offer_async_p(void);
 extern int ITc_webrtc_create_answer_async_p(void);
 extern int ITc_webrtc_media_source_set_unset_audio_loopback_p(void);
-extern int ITc_webrtc_media_source_set_unset_video_loopback_p(void);
-extern int ITc_webrtc_set_get_display_mode_p(void);
-extern int ITc_webrtc_set_get_display_visible_p(void);
 extern int ITc_webrtc_set_get_ice_transport_policy_p(void);
 extern int ITc_webrtc_start_and_finish_negotiation_p(void);
 extern int ITc_webrtc_data_channel_send_and_receive_p(void);
@@ -106,9 +103,6 @@ testcase tc_array[] = {
     {"ITc_webrtc_media_packet_source_set_format_p",ITc_webrtc_media_packet_source_set_format_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_media_packet_source_push_packet_p",ITc_webrtc_media_packet_source_push_packet_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_media_source_set_unset_audio_loopback_p",ITc_webrtc_media_source_set_unset_audio_loopback_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
-    {"ITc_webrtc_media_source_set_unset_video_loopback_p",ITc_webrtc_media_source_set_unset_video_loopback_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
-    {"ITc_webrtc_set_get_display_mode_p",ITc_webrtc_set_get_display_mode_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
-    {"ITc_webrtc_set_get_display_visible_p",ITc_webrtc_set_get_display_visible_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_set_get_ice_transport_policy_p",ITc_webrtc_set_get_ice_transport_policy_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_set_get_stun_server_p",ITc_webrtc_set_get_stun_server_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_add_turn_server_p",ITc_webrtc_add_turn_server_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
@@ -143,7 +137,7 @@ testcase tc_array[] = {
     {"ITc_webrtc_data_channel_get_buffered_amount_low_threshold_p",ITc_webrtc_data_channel_get_buffered_amount_low_threshold_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_media_source_set_get_video_framerate_p",ITc_webrtc_media_source_set_get_video_framerate_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_set_get_bundle_policy_p",ITc_webrtc_set_get_bundle_policy_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
-       {"ITc_webrtc_foreach_stats_p",ITc_webrtc_foreach_stats_p, NULL, NULL},
+    {"ITc_webrtc_foreach_stats_p",ITc_webrtc_foreach_stats_p, NULL, NULL},
     {"ITc_webrtc_media_source_foreach_supported_transceiver_codec_p",ITc_webrtc_media_source_foreach_supported_transceiver_codec_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_media_source_set_get_transceiver_codec_p",ITc_webrtc_media_source_set_get_transceiver_codec_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
        {"ITc_webrtc_media_source_set_get_encoder_bitrate_p",ITc_webrtc_media_source_set_get_encoder_bitrate_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
index 0f890e9..ccdc6e5 100755 (executable)
@@ -67,9 +67,6 @@ extern int ITc_webrtc_set_unset_track_added_cb_p(void);
 extern int ITc_webrtc_create_offer_async_p(void);
 extern int ITc_webrtc_create_answer_async_p(void);
 extern int ITc_webrtc_media_source_set_unset_audio_loopback_p(void);
-extern int ITc_webrtc_media_source_set_unset_video_loopback_p(void);
-extern int ITc_webrtc_set_get_display_mode_p(void);
-extern int ITc_webrtc_set_get_display_visible_p(void);
 extern int ITc_webrtc_set_get_ice_transport_policy_p(void);
 extern int ITc_webrtc_start_and_finish_negotiation_p(void);
 extern int ITc_webrtc_data_channel_send_and_receive_p(void);
@@ -106,9 +103,6 @@ testcase tc_array[] = {
     {"ITc_webrtc_media_packet_source_set_format_p",ITc_webrtc_media_packet_source_set_format_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_media_packet_source_push_packet_p",ITc_webrtc_media_packet_source_push_packet_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_media_source_set_unset_audio_loopback_p",ITc_webrtc_media_source_set_unset_audio_loopback_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
-    {"ITc_webrtc_media_source_set_unset_video_loopback_p",ITc_webrtc_media_source_set_unset_video_loopback_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
-    {"ITc_webrtc_set_get_display_mode_p",ITc_webrtc_set_get_display_mode_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
-    {"ITc_webrtc_set_get_display_visible_p",ITc_webrtc_set_get_display_visible_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_set_get_ice_transport_policy_p",ITc_webrtc_set_get_ice_transport_policy_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_set_get_stun_server_p",ITc_webrtc_set_get_stun_server_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_add_turn_server_p",ITc_webrtc_add_turn_server_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
@@ -143,7 +137,7 @@ testcase tc_array[] = {
     {"ITc_webrtc_data_channel_get_buffered_amount_low_threshold_p",ITc_webrtc_data_channel_get_buffered_amount_low_threshold_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_media_source_set_get_video_framerate_p",ITc_webrtc_media_source_set_get_video_framerate_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_set_get_bundle_policy_p",ITc_webrtc_set_get_bundle_policy_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
-       {"ITc_webrtc_foreach_stats_p",ITc_webrtc_foreach_stats_p, NULL, NULL},
+    {"ITc_webrtc_foreach_stats_p",ITc_webrtc_foreach_stats_p, NULL, NULL},
     {"ITc_webrtc_media_source_foreach_supported_transceiver_codec_p",ITc_webrtc_media_source_foreach_supported_transceiver_codec_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
     {"ITc_webrtc_media_source_set_get_transceiver_codec_p",ITc_webrtc_media_source_set_get_transceiver_codec_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
        {"ITc_webrtc_media_source_set_get_encoder_bitrate_p",ITc_webrtc_media_source_set_get_encoder_bitrate_p, ITs_webrtc_startup, ITs_webrtc_cleanup},