Add coverage comment 38/63038/2 accepted/tizen/common/20160322.150455 accepted/tizen/ivi/20160322.085656 accepted/tizen/mobile/20160322.085606 accepted/tizen/tv/20160322.085623 accepted/tizen/wearable/20160322.085636 submit/tizen/20160322.045539
authorWootak Jung <wootak.jung@samsung.com>
Tue, 22 Mar 2016 01:08:11 +0000 (10:08 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Tue, 22 Mar 2016 01:09:22 +0000 (18:09 -0700)
- enable 3.0 api coverage

Change-Id: Ib4f77819b82951a372fc959eee5732f676232cd2

src/telephony_modem.c
src/telephony_network.c
src/telephony_sim.c

index d396447f9b069acfd902a554ddbd89e6186dfef5..1ded51d70da2d2a3b9e6eb97be5f6cb7b578f286 100644 (file)
@@ -127,7 +127,6 @@ int telephony_modem_get_power_status(telephony_h handle,
 
 }
 
-/* LCOV_EXCL_START */
 int telephony_modem_get_meid(telephony_h handle, char **meid)
 {
        int ret = TELEPHONY_ERROR_NONE;
@@ -166,6 +165,7 @@ int telephony_modem_get_meid(telephony_h handle, char **meid)
                }
                g_variant_unref(gv);
        } else {
+               /* LCOV_EXCL_START */
                LOGE("g_dbus_conn failed. error (%s)", gerr->message);
                if (strstr(gerr->message, "AccessDenied")) {
                        LOGE("PERMISSION_DENIED");
@@ -175,8 +175,8 @@ int telephony_modem_get_meid(telephony_h handle, char **meid)
                        ret = TELEPHONY_ERROR_OPERATION_FAILED;
                }
                g_error_free(gerr);
+               /* LCOV_EXCL_STOP */
        }
 
        return ret;
 }
-/* LCOV_EXCL_STOP */
index 8f1c662ed46e62ce984d9f539a58d951d1114a03..ae4f7ad7b203a701ded7b201715c7e48fe80ab2f 100644 (file)
@@ -574,7 +574,6 @@ int telephony_network_get_default_subscription(telephony_h handle,
        return ret;
 }
 
-/* LCOV_EXCL_START */
 int telephony_network_get_selection_mode(telephony_h handle, telephony_network_selection_mode_e *mode)
 {
        int ret = TELEPHONY_ERROR_OPERATION_FAILED;
@@ -605,12 +604,14 @@ int telephony_network_get_selection_mode(telephony_h handle, telephony_network_s
                }
                g_variant_unref(dbus_result);
        } else {
+               /* LCOV_EXCL_START */
                LOGE("g_dbus_connection_call_sync() failed. (%s)", error->message);
                if (strstr(error->message, "AccessDenied")) {
                        LOGE("PERMISSION_DENIED");
                        ret = TELEPHONY_ERROR_PERMISSION_DENIED;
                }
                g_error_free(error);
+               /* LCOV_EXCL_STOP */
        }
 
        return ret;
@@ -637,6 +638,7 @@ int telephony_network_get_tac(telephony_h handle, int *tac)
                g_variant_get(dbus_result, "(i)", tac);
                g_variant_unref(dbus_result);
        } else {
+               /* LCOV_EXCL_START */
                LOGE("g_dbus_connection_call_sync() failed. (%s)", error->message);
                if (strstr(error->message, "AccessDenied")) {
                        LOGE("PERMISSION_DENIED");
@@ -646,6 +648,7 @@ int telephony_network_get_tac(telephony_h handle, int *tac)
                        ret = TELEPHONY_ERROR_OPERATION_FAILED;
                }
                g_error_free(error);
+               /* LCOV_EXCL_STOP */
        }
 
        return ret;
@@ -672,6 +675,7 @@ int telephony_network_get_system_id(telephony_h handle, int *sid)
                g_variant_get(dbus_result, "(i)", sid);
                g_variant_unref(dbus_result);
        } else {
+               /* LCOV_EXCL_START */
                LOGE("g_dbus_connection_call_sync() failed. (%s)", error->message);
                if (strstr(error->message, "AccessDenied")) {
                        LOGE("PERMISSION_DENIED");
@@ -681,6 +685,7 @@ int telephony_network_get_system_id(telephony_h handle, int *sid)
                        ret = TELEPHONY_ERROR_OPERATION_FAILED;
                }
                g_error_free(error);
+               /* LCOV_EXCL_STOP */
        }
 
        return ret;
@@ -707,6 +712,7 @@ int telephony_network_get_network_id(telephony_h handle, int *nid)
                g_variant_get(dbus_result, "(i)", nid);
                g_variant_unref(dbus_result);
        } else {
+               /* LCOV_EXCL_START */
                LOGE("g_dbus_connection_call_sync() failed. (%s)", error->message);
                if (strstr(error->message, "AccessDenied")) {
                        LOGE("PERMISSION_DENIED");
@@ -716,6 +722,7 @@ int telephony_network_get_network_id(telephony_h handle, int *nid)
                        ret = TELEPHONY_ERROR_OPERATION_FAILED;
                }
                g_error_free(error);
+               /* LCOV_EXCL_STOP */
        }
 
        return ret;
@@ -742,6 +749,7 @@ int telephony_network_get_base_station_id(telephony_h handle, int *bs_id)
                g_variant_get(dbus_result, "(i)", bs_id);
                g_variant_unref(dbus_result);
        } else {
+               /* LCOV_EXCL_START */
                LOGE("g_dbus_connection_call_sync() failed. (%s)", error->message);
                if (strstr(error->message, "AccessDenied")) {
                        LOGE("PERMISSION_DENIED");
@@ -751,6 +759,7 @@ int telephony_network_get_base_station_id(telephony_h handle, int *bs_id)
                        ret = TELEPHONY_ERROR_OPERATION_FAILED;
                }
                g_error_free(error);
+               /* LCOV_EXCL_STOP */
        }
 
        return ret;
@@ -777,6 +786,7 @@ int telephony_network_get_base_station_latitude(telephony_h handle, int *bs_lati
                g_variant_get(dbus_result, "(i)", bs_latitude);
                g_variant_unref(dbus_result);
        } else {
+               /* LCOV_EXCL_START */
                LOGE("g_dbus_connection_call_sync() failed. (%s)", error->message);
                if (strstr(error->message, "AccessDenied")) {
                        LOGE("PERMISSION_DENIED");
@@ -786,6 +796,7 @@ int telephony_network_get_base_station_latitude(telephony_h handle, int *bs_lati
                        ret = TELEPHONY_ERROR_OPERATION_FAILED;
                }
                g_error_free(error);
+               /* LCOV_EXCL_STOP */
        }
 
        return ret;
@@ -812,6 +823,7 @@ int telephony_network_get_base_station_longitude(telephony_h handle, int *bs_lon
                g_variant_get(dbus_result, "(i)", bs_longitude);
                g_variant_unref(dbus_result);
        } else {
+               /* LCOV_EXCL_START */
                LOGE("g_dbus_connection_call_sync() failed. (%s)", error->message);
                if (strstr(error->message, "AccessDenied")) {
                        LOGE("PERMISSION_DENIED");
@@ -821,8 +833,8 @@ int telephony_network_get_base_station_longitude(telephony_h handle, int *bs_lon
                        ret = TELEPHONY_ERROR_OPERATION_FAILED;
                }
                g_error_free(error);
+               /* LCOV_EXCL_STOP */
        }
 
        return ret;
 }
-/* LCOV_EXCL_STOP */
index bed6188e94b9610b009aad7be51cc6ce70bd91e8..c88b55827465dc5b8d5010aec84068c41cc6563f 100644 (file)
@@ -491,9 +491,9 @@ int telephony_sim_get_subscriber_id(telephony_h handle, char **subscriber_id)
        return error_code;
 }
 
-/* LCOV_EXCL_START */
 int telephony_sim_get_lock_state(telephony_h handle, telephony_sim_lock_state_e *lock_state)
 {
+       /* LCOV_EXCL_START */
        TelSimCardStatus_t sim_card_state;
        int error_code = TELEPHONY_ERROR_NONE;
        TapiHandle *tapi_h;
@@ -524,6 +524,7 @@ int telephony_sim_get_lock_state(telephony_h handle, telephony_sim_lock_state_e
        }
 
        return error_code;
+       /* LCOV_EXCL_STOP */
 }
 
 int telephony_sim_get_group_id1(telephony_h handle, char **gid1)
@@ -584,9 +585,11 @@ int telephony_sim_get_group_id1(telephony_h handle, char **gid1)
                        g_variant_unref(gid_gv);
                        g_variant_unref(sync_gv);
                } else {
+                       /* LCOV_EXCL_START */
                        LOGE("g_dbus_conn failed. error (%s)", gerr->message);
                        error_code = _convert_dbus_errmsg_to_sim_error(gerr->message);
                        g_error_free(gerr);
+                       /* LCOV_EXCL_STOP */
                }
        }
 
@@ -614,6 +617,7 @@ int telephony_sim_get_call_forwarding_indicator_state(telephony_h handle, bool *
                if (ret == TAPI_API_SUCCESS) {
                        *state = (bool)tel_state;
                        LOGI("Call forwarding indicator state: [%s]", *state ? "ON" : "OFF");
+               /* LCOV_EXCL_START */
                } else if (ret == TAPI_API_ACCESS_DENIED) {
                        LOGE("PERMISSION_DENIED");
                        error_code = TELEPHONY_ERROR_PERMISSION_DENIED;
@@ -621,8 +625,8 @@ int telephony_sim_get_call_forwarding_indicator_state(telephony_h handle, bool *
                        LOGE("OPERATION_FAILED");
                        error_code = TELEPHONY_ERROR_OPERATION_FAILED;
                }
+               /* LCOV_EXCL_STOP */
        }
 
        return error_code;
 }
-/* LCOV_EXCL_STOP */