From: Hyunil Date: Thu, 27 Aug 2020 03:44:21 +0000 (+0900) Subject: Apply LCOV_EXCL_START/STOP macro to WebRTC function X-Git-Tag: submit/tizen/20200916.003525~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd232f0e2269ed75b7564e828bb5da17435f353e;p=platform%2Fcore%2Fapi%2Fmediastreamer.git Apply LCOV_EXCL_START/STOP macro to WebRTC function [Version] 0.1.114 [Issue Type] Coverage Change-Id: I0272215df9b198ec7763b65fad4e029e638fa788 Signed-off-by: Hyunil --- diff --git a/packaging/capi-media-streamer.spec b/packaging/capi-media-streamer.spec index d71c441..115b0f0 100644 --- a/packaging/capi-media-streamer.spec +++ b/packaging/capi-media-streamer.spec @@ -1,6 +1,6 @@ Name: capi-media-streamer Summary: A Media Streamer API -Version: 0.1.113 +Version: 0.1.114 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/media_streamer.c b/src/media_streamer.c index 523d6f3..51f0b7a 100644 --- a/src/media_streamer.c +++ b/src/media_streamer.c @@ -939,6 +939,7 @@ int media_streamer_unset_interrupted_cb(media_streamer_h streamer) return MEDIA_STREAMER_ERROR_NONE; } +//LCOV_EXCL_START int media_streamer_node_set_decoded_ready_cb(media_streamer_node_h node, media_streamer_node_decoded_ready_cb callback, void *user_data) { media_streamer_node_s *ms_node = (media_streamer_node_s *) node; @@ -1053,3 +1054,4 @@ int media_streamer_webrtc_node_unset_message_cb(media_streamer_node_h webrtc) return MEDIA_STREAMER_ERROR_NONE; } +//LCOV_EXCL_STOP \ No newline at end of file diff --git a/src/media_streamer_gst.c b/src/media_streamer_gst.c index e1db8a0..64638c2 100644 --- a/src/media_streamer_gst.c +++ b/src/media_streamer_gst.c @@ -482,6 +482,7 @@ static GstElement *__ms_bin_find_element_and_link_by_type(GstElement *previous_e return elements_linked ? found_element : NULL; } +//LCOV_EXCL_START GstElement *ms_find_element_in_bin_by_type(GstElement *bin, node_info_s *node_klass_type) { GValue element_value = G_VALUE_INIT; @@ -551,6 +552,7 @@ GstElement *ms_find_element_in_bin_by_name(GstElement *bin, const gchar *name) return found_element; } +//LCOV_EXCL_STOP static int __ms_factory_rank_compare(GstPluginFeature *first_feature, GstPluginFeature *second_feature) { @@ -2462,6 +2464,7 @@ void ms_pipeline_get_state(media_streamer_s *ms_streamer) gst_element_state_get_name(state_old), gst_element_state_get_name(state_new)); } +//LCOV_EXCL_START gboolean ms_pipeline_is_get_state_with_no_preroll(media_streamer_s *ms_streamer) { GstState state_old = GST_STATE_NULL, state_new = GST_STATE_NULL; @@ -2479,6 +2482,7 @@ gboolean ms_pipeline_is_get_state_with_no_preroll(media_streamer_s *ms_streamer) return FALSE; } +//LCOV_EXCL_STOP GstCaps *ms_create_caps_from_fmt(media_format_h fmt, const char *node_name) { diff --git a/src/media_streamer_node.c b/src/media_streamer_node.c index b3203a8..8a7cd72 100644 --- a/src/media_streamer_node.c +++ b/src/media_streamer_node.c @@ -466,6 +466,7 @@ static int __ms_rtp_node_set_property(media_streamer_node_s *node, param_s *para return ret; } +//LCOV_EXCL_START static int __ms_webrtc_node_check_transceiver_direction_param_value(media_streamer_node_s *node, param_s *param, const gchar *param_value) { GstWebRTCRTPTransceiverDirection direction; @@ -607,6 +608,7 @@ static int __ms_webrtc_node_set_property(media_streamer_node_s *node, param_s *p return ret; } +//LCOV_EXCL_STOP static gboolean __ms_adaptive_src_node_has_property(media_streamer_node_s *node, const char *param_name) { @@ -2482,6 +2484,7 @@ static int __ms_rtp_node_set_pad_format(media_streamer_node_s *node, const char return ret; } +//LCOV_EXCL_START static int __ms_webrtc_node_set_pad_format(media_streamer_node_s *node, const char *pad_name, media_format_h fmt) { int ret = MEDIA_STREAMER_ERROR_NONE; @@ -2550,6 +2553,7 @@ static int __ms_webrtc_node_set_pad_format(media_streamer_node_s *node, const ch return ret; } +//LCOV_EXCL_STOP static int __ms_node_set_pad_format(media_streamer_node_s *node, const char *pad_name, media_format_h fmt) { @@ -2754,6 +2758,7 @@ gboolean ms_node_dpm_policy_check_iter(const GValue *item, GValue *ret, gpointer return allowed; } +//LCOV_EXCL_START int ms_webrtc_node_is_offerer(media_streamer_node_s *node, gboolean *is_offerer) { GValue *val = NULL; @@ -2784,3 +2789,4 @@ int ms_webrtc_node_is_offerer(media_streamer_node_s *node, gboolean *is_offerer) return MEDIA_STREAMER_ERROR_NONE; } +//LCOV_EXCL_STOP \ No newline at end of file diff --git a/src/media_streamer_util.c b/src/media_streamer_util.c index e238251..acd204e 100644 --- a/src/media_streamer_util.c +++ b/src/media_streamer_util.c @@ -371,7 +371,6 @@ const gchar *ms_convert_mime_to_rtp_format(media_format_mimetype_e mime) return NULL; } } -//LCOV_EXCL_STOP media_format_mimetype_e ms_convert_audio_string_format_to_media_format(const char *format_type) { @@ -389,6 +388,7 @@ media_format_mimetype_e ms_convert_audio_string_format_to_media_format(const cha return mime; } +//LCOV_EXCL_STOP media_format_mimetype_e ms_convert_video_string_format_to_media_format(const char *format_type) { @@ -570,6 +570,7 @@ int ms_bin_foreach_elements(GstBin *bin, GstIteratorFoldFunction func, void *use return MEDIA_STREAMER_ERROR_NONE; } +//LCOV_EXCL_START /* Use g_free() to free the return value. */ gchar* ms_get_string_from_json_object(JsonObject *object) { @@ -711,7 +712,6 @@ end: return ret; } -//LCOV_EXCL_START static void __global(void *data, struct wl_registry *registry, uint32_t name, const char *interface, uint32_t version) {