Change the application of macro for coverage measurement exclusion 88/291388/2
authorSangchul Lee <sc11.lee@samsung.com>
Fri, 14 Apr 2023 05:59:12 +0000 (14:59 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Fri, 14 Apr 2023 06:11:19 +0000 (15:11 +0900)
[Version] 0.4.9
[Issue Type] Line coverage

Change-Id: Iadbf2acef199da87181ee0a51a76cfd0194e2e82
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/capi-media-webrtc.spec
src/webrtc_display.c
src/webrtc_source_mediapacket.c

index 8aecccb215c408e891dd38434dc661790af88c9e..287d8389c7451668498eec831af79796d6b1a19c 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-webrtc
 Summary:    A WebRTC library in Tizen Native API
-Version:    0.4.8
+Version:    0.4.9
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index ebc931da9210bb188c1a6e7e8d7e957b57019b85..cc1e0951f1440d31d97763efd5c0850371024a01 100644 (file)
@@ -803,7 +803,7 @@ void _set_display_type_and_surface(webrtc_display_s *display, webrtc_display_typ
 
        LOG_INFO("display[%p, type:%d, surface:%p]", display, type, surface);
 }
-
+//LCOV_EXCL_START
 void _set_display_surface_id(webrtc_display_s *display, int surface_id, int x, int y, int w, int h)
 {
        g_autoptr(GMutexLocker) locker = NULL;
@@ -820,7 +820,7 @@ void _set_display_surface_id(webrtc_display_s *display, int surface_id, int x, i
 
        LOG_INFO("display[%p, surface_id:%d, x:%d, y:%d, w:%d, h:%d]", display, surface_id, x, y, w, h);
 }
-
+//LCOV_EXCL_STOP
 void _release_display(webrtc_display_s *display)
 {
        RET_IF(display == NULL, "display is NULL");
@@ -960,4 +960,4 @@ int _get_display_visible(webrtc_display_s *display, bool *visible)
        LOG_INFO("visible[%d]", *visible);
 
        return WEBRTC_ERROR_NONE;
-}
\ No newline at end of file
+}
index 467672b8c997fdcce31f9ee85f74c59c43b8135b..a28fe7d3e15ea2152e9e4ac0e322ff196370f193 100644 (file)
@@ -249,9 +249,7 @@ static void __appsrc_enough_data_cb(GstElement *appsrc, gpointer data)
                (source->id, WEBRTC_MEDIA_PACKET_SOURCE_BUFFER_STATE_OVERFLOW, source->buffer_state_changed_cb.user_data);
        LOG_DEBUG("<<< end of the callback");
 }
-//LCOV_EXCL_STOP
 
-//LCOV_EXCL_START
 /* Use g_free() to free the media_type parameter. */
 static GstCaps *__make_encoded_caps_from_media_format(webrtc_gst_slot_s *source, gchar **media_type)
 {
@@ -347,7 +345,6 @@ error:
        g_free(media_type);
        return WEBRTC_ERROR_INVALID_OPERATION;
 }
-//LCOV_EXCL_STOP
 
 static const char *__get_audio_format_name(media_format_mimetype_e mime_type)
 {
@@ -394,6 +391,7 @@ static const char *__get_video_format_name(media_format_mimetype_e mime_type, bo
                return NULL;
        }
 }
+//LCOV_EXCL_STOP
 
 GstCaps *_make_mediapacketsrc_raw_caps_from_media_format(webrtc_gst_slot_s *source)
 {
@@ -872,4 +870,4 @@ int _update_pt_if_media_packet_source(webrtc_s *webrtc, webrtc_gst_slot_s *sourc
 
        return WEBRTC_ERROR_NONE;
 }
-//LCOV_EXCL_STOP
\ No newline at end of file
+//LCOV_EXCL_STOP