Disable LOG for line coverage checking 54/190754/1
authorGilbok Lee <gilbok.lee@samsung.com>
Fri, 5 Oct 2018 06:10:59 +0000 (15:10 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Fri, 5 Oct 2018 06:10:59 +0000 (15:10 +0900)
Change-Id: If7703c1d45b1c4ce55b977cbc4c478ba46fcd2ae

include/video_util_private.h
src/video_util.c

index 31b1c67..d504a07 100755 (executable)
@@ -21,6 +21,7 @@
 #include <mm_types.h>
 #include <dlog.h>
 #include <video_util_type.h>
+#include <stdio.h>
 
 #ifdef LOG_TAG
 #undef LOG_TAG
 
 #define LOG_TAG "CAPI_MEDIA_VIDEO_UTIL"
 
+#define video_util_debug(fmt, arg...)          printf(fmt, ##arg); //LCOV_EXCL_LINE
+#define video_util_info(fmt, arg...)                   printf(fmt, ##arg); //LCOV_EXCL_LINE
+#define video_util_error(fmt, arg...)                  printf(fmt, ##arg); //LCOV_EXCL_LINE
+#define video_util_debug_fenter()                      printf(fmt, ##arg); //LCOV_EXCL_LINE
+#define video_util_debug_fleave()                      printf(fmt, ##arg); //LCOV_EXCL_LINE
+#define video_util_secure_info(fmt, arg...)                    printf(fmt, ##arg); //LCOV_EXCL_LINE
+#define video_util_deprecated_log(fuction)     printf("%s", fuction); //LCOV_EXCL_LINE
+
+#if 0
 #define video_util_debug(fmt, arg...) do { \
                        LOGD(""fmt"", ##arg);     \
                } while (0)
@@ -56,6 +66,7 @@
                        LOGW("DEPRECATION WARNING: %s() is deprecated and will be removed "\
                                "from next release.", fuction); \
                } while (0)
+#endif
 
 typedef bool(*video_util_supported_type_cb)(int type, void *user_data);
 
index fccfd68..52b945f 100755 (executable)
@@ -204,6 +204,7 @@ static bool __video_util_check_fps(int fps)
        return true;
 }
 
+//LCOV_EXCL_START
 static video_util_error_e __video_util_error_convert(int error)
 {
        if (error == MM_ERROR_NONE) {
@@ -220,6 +221,7 @@ static video_util_error_e __video_util_error_convert(int error)
                return VIDEO_UTIL_ERROR_INVALID_OPERATION;
        }
 }
+//LCOV_EXCL_STOP
 
 static void __video_util_transcode_progress_cb(unsigned long current_position, unsigned long duration, void *user_data)
 {