From: Sangchul Lee Date: Fri, 14 Apr 2023 05:59:12 +0000 (+0900) Subject: Change the application of macro for coverage measurement exclusion X-Git-Tag: accepted/tizen/unified/20230417.140305~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=71e6000be66267578791f0d12c1258bf5be9ab7a;p=platform%2Fcore%2Fapi%2Fwebrtc.git Change the application of macro for coverage measurement exclusion [Version] 0.4.9 [Issue Type] Line coverage Change-Id: Iadbf2acef199da87181ee0a51a76cfd0194e2e82 Signed-off-by: Sangchul Lee --- diff --git a/packaging/capi-media-webrtc.spec b/packaging/capi-media-webrtc.spec index 8aecccb2..287d8389 100644 --- a/packaging/capi-media-webrtc.spec +++ b/packaging/capi-media-webrtc.spec @@ -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 diff --git a/src/webrtc_display.c b/src/webrtc_display.c index ebc931da..cc1e0951 100644 --- a/src/webrtc_display.c +++ b/src/webrtc_display.c @@ -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 +} diff --git a/src/webrtc_source_mediapacket.c b/src/webrtc_source_mediapacket.c index 467672b8..a28fe7d3 100644 --- a/src/webrtc_source_mediapacket.c +++ b/src/webrtc_source_mediapacket.c @@ -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