diff options
author | Kyeonghun Lee <kh9090.lee@samsung.com> | 2016-03-28 18:24:25 +0900 |
---|---|---|
committer | Kyeonghun Lee <kh9090.lee@samsung.com> | 2016-06-16 13:09:06 +0900 |
commit | bb7edf1901b42aafd0db548fdcb8a3bdee36a512 (patch) | |
tree | c0047f6e19ec17cf197f5e5a92075e140bfa87c2 /src | |
parent | ed613fcee2dcf99f14f564add3b89d220b36baba (diff) | |
download | messages-bb7edf1901b42aafd0db548fdcb8a3bdee36a512.tar.gz messages-bb7edf1901b42aafd0db548fdcb8a3bdee36a512.tar.bz2 messages-bb7edf1901b42aafd0db548fdcb8a3bdee36a512.zip |
insert LCOV_EXCL_START and LCOV_EXCL_STOP for TC coverage measurementsubmit/tizen_3.0_wearable/20161015.000001submit/tizen_3.0_mobile/20161015.000001submit/tizen_3.0_ivi/20161010.000005submit/tizen_3.0_common/20161104.104000submit/tizen/20160616.115303accepted/tizen/wearable/20160617.083226accepted/tizen/mobile/20160617.083242accepted/tizen/ivi/20160617.083405accepted/tizen/common/20160617.121337accepted/tizen/3.0/wearable/20161015.081740accepted/tizen/3.0/mobile/20161015.032709accepted/tizen/3.0/ivi/20161011.055346accepted/tizen/3.0/common/20161114.105248
Change-Id: I730826531737a9d9a58248144cf29aa281fa3832
Signed-off-by: Kyeonghun Lee <kh9090.lee@samsung.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/messages.c | 13 | ||||
-rw-r--r-- | src/messages_push.c | 2 |
2 files changed, 12 insertions, 3 deletions
diff --git a/src/messages.c b/src/messages.c index 333a640..140e74c 100644 --- a/src/messages.c +++ b/src/messages.c @@ -255,6 +255,7 @@ int messages_get_message_type(messages_message_h msg, messages_message_type_e * return ERROR_CONVERT(ret); switch (msgType) { +//LCOV_EXCL_START case MSG_TYPE_SMS_CB: case MSG_TYPE_SMS_JAVACB: *type = MESSAGES_TYPE_SMS_CB; @@ -262,6 +263,7 @@ int messages_get_message_type(messages_message_h msg, messages_message_type_e * case MSG_TYPE_SMS_WAPPUSH: *type = MESSAGES_TYPE_SMS_PUSH; break; +//LCOV_EXCL_STOP case MSG_TYPE_SMS: case MSG_TYPE_SMS_MWI: case MSG_TYPE_SMS_SYNCML: @@ -273,9 +275,11 @@ int messages_get_message_type(messages_message_h msg, messages_message_type_e * case MSG_TYPE_MMS_JAVA: *type = MESSAGES_TYPE_MMS; break; +//LCOV_EXCL_START default: *type = MESSAGES_TYPE_UNKNOWN; break; +//LCOV_EXCL_STOP } return MESSAGES_ERROR_NONE; @@ -732,6 +736,7 @@ int messages_foreach_message(messages_service_h svc, messages_message_box_e mbox return MESSAGES_ERROR_NONE; } +//LCOV_EXCL_START void _messages_sent_mediator_cb(msg_handle_t handle, msg_struct_t pStatus, void *user_param) { messages_sending_result_e ret; @@ -796,6 +801,7 @@ void _messages_incoming_mediator_cb(msg_handle_t handle, msg_struct_t msg, void free(_msg); } } +//LCOV_EXCL_STOP int messages_set_message_incoming_cb(messages_service_h svc, messages_incoming_cb callback, void *user_data) { @@ -1855,6 +1861,7 @@ int _messages_convert_recipient_to_fw(messages_recipient_type_e type) int _messages_error_converter(int err, const char *func, int line) { switch (err) { +//LCOV_EXCL_START case MSG_ERR_NULL_POINTER: LOGE("[%s:%d] NULL_POINTER(0x%08x) : Error from internal Messaging F/W ret: %d.", func, line, MESSAGES_ERROR_INVALID_PARAMETER, err); return MESSAGES_ERROR_INVALID_PARAMETER; @@ -1889,14 +1896,14 @@ int _messages_error_converter(int err, const char *func, int line) case MSG_ERR_PERMISSION_DENIED: return MESSAGES_ERROR_PERMISSION_DENIED; - +//LCOV_EXCL_STOP case MSG_SUCCESS: return MESSAGES_ERROR_NONE; - +//LCOV_EXCL_START default: LOGE("[%s:%d] OPERATION_FAILED(0x%08x) : Error from internal Messaging F/W ret: %d.", func, line, MESSAGES_ERROR_OPERATION_FAILED, err); return MESSAGES_ERROR_OPERATION_FAILED; - +//LCOV_EXCL_STOP } } diff --git a/src/messages_push.c b/src/messages_push.c index 4283eb4..743c9d6 100644 --- a/src/messages_push.c +++ b/src/messages_push.c @@ -39,6 +39,7 @@ #endif #define LOG_TAG "CAPI_MESSAGING" +//LCOV_EXCL_START void _messages_push_incoming_mediator_cb(msg_handle_t handle, const char *push_header, const char *push_body, int push_body_len, void *user_param) { messages_push_incoming_callback_s *_cb = (messages_push_incoming_callback_s *) user_param; @@ -46,6 +47,7 @@ void _messages_push_incoming_mediator_cb(msg_handle_t handle, const char *push_h if (_cb && _cb->callback) ((messages_push_incoming_cb) _cb->callback) (push_header, push_body, push_body_len, _cb->user_data); } +//LCOV_EXCL_STOP int messages_push_add_incoming_cb(messages_service_h service, const char *app_id, messages_push_incoming_cb callback, void *user_data) { |