Removing TestCases and Sample test app codes
authorjygu <jygu@samsung.com>
Fri, 17 Feb 2012 11:24:09 +0000 (20:24 +0900)
committerjygu <jygu@samsung.com>
Fri, 17 Feb 2012 11:24:09 +0000 (20:24 +0900)
395 files changed:
TC/making_new_tet_scen.py [deleted file]
TC/telephony_TC/CFG/cfg_util.c [deleted file]
TC/telephony_TC/CFG/cfg_util.h [deleted file]
TC/telephony_TC/CFG/uts_tel_cfg_default_configuration.c [deleted file]
TC/telephony_TC/CFG/uts_tel_cfg_default_configuration.h [deleted file]
TC/telephony_TC/CFG/uts_tel_get_cfg_akey.c [deleted file]
TC/telephony_TC/CFG/uts_tel_get_cfg_akey.h [deleted file]
TC/telephony_TC/CFG/uts_tel_get_cfg_hidden_menu_access.c [deleted file]
TC/telephony_TC/CFG/uts_tel_get_cfg_hidden_menu_access.h [deleted file]
TC/telephony_TC/CFG/uts_tel_get_cfg_msl_info.c [deleted file]
TC/telephony_TC/CFG/uts_tel_get_cfg_msl_info.h [deleted file]
TC/telephony_TC/CFG/uts_tel_get_cfg_serving_carrier.c [deleted file]
TC/telephony_TC/CFG/uts_tel_get_cfg_serving_carrier.h [deleted file]
TC/telephony_TC/CFG/uts_tel_get_cfg_vocoder_option.c [deleted file]
TC/telephony_TC/CFG/uts_tel_get_cfg_vocoder_option.h [deleted file]
TC/telephony_TC/CFG/uts_tel_set_cfg_hidden_menu_access.c [deleted file]
TC/telephony_TC/CFG/uts_tel_set_cfg_hidden_menu_access.h [deleted file]
TC/telephony_TC/CFG/uts_tel_set_cfg_serving_carrier.c [deleted file]
TC/telephony_TC/CFG/uts_tel_set_cfg_serving_carrier.h [deleted file]
TC/telephony_TC/CFG/uts_tel_set_cfg_vocoder_option.c [deleted file]
TC/telephony_TC/CFG/uts_tel_set_cfg_vocoder_option.h [deleted file]
TC/telephony_TC/CFG/uts_tel_verify_cfg_akey.c [deleted file]
TC/telephony_TC/CFG/uts_tel_verify_cfg_akey.h [deleted file]
TC/telephony_TC/Makefile [deleted file]
TC/telephony_TC/call/README [deleted file]
TC/telephony_TC/call/call_common.h [deleted file]
TC/telephony_TC/call/unit/makefile [deleted file]
TC/telephony_TC/call/unit/tapi_callback.c [deleted file]
TC/telephony_TC/call/unit/tapi_callback.h [deleted file]
TC/telephony_TC/call/unit/tslist [deleted file]
TC/telephony_TC/call/unit/uts_tapi_check_status.c [deleted file]
TC/telephony_TC/call/unit/uts_tapi_check_status.h [deleted file]
TC/telephony_TC/call/unit/uts_tel_activate_call_ccbs.c [deleted file]
TC/telephony_TC/call/unit/uts_tel_activate_call_ccbs.h [deleted file]
TC/telephony_TC/call/unit/uts_tel_answer_call.c [deleted file]
TC/telephony_TC/call/unit/uts_tel_answer_call.h [deleted file]
TC/telephony_TC/call/unit/uts_tel_deflect_call.c [deleted file]
TC/telephony_TC/call/unit/uts_tel_deflect_call.h [deleted file]
TC/telephony_TC/call/unit/uts_tel_exe_call_explicit_transfer.c [deleted file]
TC/telephony_TC/call/unit/uts_tel_exe_call_explicit_transfer.h [deleted file]
TC/telephony_TC/call/unit/uts_tel_exe_call_flash.c [deleted file]
TC/telephony_TC/call/unit/uts_tel_exe_call_flash.h [deleted file]
TC/telephony_TC/call/unit/uts_tel_exe_call_mo.c [deleted file]
TC/telephony_TC/call/unit/uts_tel_exe_call_mo.h [deleted file]
TC/telephony_TC/call/unit/uts_tel_exit_call_emergency_mode.c [deleted file]
TC/telephony_TC/call/unit/uts_tel_exit_call_emergency_mode.h [deleted file]
TC/telephony_TC/call/unit/uts_tel_get_call_act_line.c [deleted file]
TC/telephony_TC/call/unit/uts_tel_get_call_act_line.h [deleted file]
TC/telephony_TC/call/unit/uts_tel_get_call_conf_list.c [deleted file]
TC/telephony_TC/call/unit/uts_tel_get_call_conf_list.h [deleted file]
TC/telephony_TC/call/unit/uts_tel_get_call_duration.c [deleted file]
TC/telephony_TC/call/unit/uts_tel_get_call_duration.h [deleted file]
TC/telephony_TC/call/unit/uts_tel_get_call_privacy_mode.c [deleted file]
TC/telephony_TC/call/unit/uts_tel_get_call_privacy_mode.h [deleted file]
TC/telephony_TC/call/unit/uts_tel_get_call_status.c [deleted file]
TC/telephony_TC/call/unit/uts_tel_get_call_status.h [deleted file]
TC/telephony_TC/call/unit/uts_tel_get_call_time.c [deleted file]
TC/telephony_TC/call/unit/uts_tel_get_call_time.h [deleted file]
TC/telephony_TC/call/unit/uts_tel_hold_call.c [deleted file]
TC/telephony_TC/call/unit/uts_tel_hold_call.h [deleted file]
TC/telephony_TC/call/unit/uts_tel_join_call.c [deleted file]
TC/telephony_TC/call/unit/uts_tel_join_call.h [deleted file]
TC/telephony_TC/call/unit/uts_tel_release_call.c [deleted file]
TC/telephony_TC/call/unit/uts_tel_release_call.h [deleted file]
TC/telephony_TC/call/unit/uts_tel_release_call_all.c [deleted file]
TC/telephony_TC/call/unit/uts_tel_release_call_all.h [deleted file]
TC/telephony_TC/call/unit/uts_tel_release_call_all_active.c [deleted file]
TC/telephony_TC/call/unit/uts_tel_release_call_all_active.h [deleted file]
TC/telephony_TC/call/unit/uts_tel_release_call_all_held.c [deleted file]
TC/telephony_TC/call/unit/uts_tel_release_call_all_held.h [deleted file]
TC/telephony_TC/call/unit/uts_tel_retrieve_call.c [deleted file]
TC/telephony_TC/call/unit/uts_tel_retrieve_call.h [deleted file]
TC/telephony_TC/call/unit/uts_tel_send_call_dtmf.c [deleted file]
TC/telephony_TC/call/unit/uts_tel_send_call_dtmf.h [deleted file]
TC/telephony_TC/call/unit/uts_tel_set_call_act_line.c [deleted file]
TC/telephony_TC/call/unit/uts_tel_set_call_act_line.h [deleted file]
TC/telephony_TC/call/unit/uts_tel_set_call_privacy_mode.c [deleted file]
TC/telephony_TC/call/unit/uts_tel_set_call_privacy_mode.h [deleted file]
TC/telephony_TC/call/unit/uts_tel_split_call.c [deleted file]
TC/telephony_TC/call/unit/uts_tel_split_call.h [deleted file]
TC/telephony_TC/call/unit/uts_tel_swap_call.c [deleted file]
TC/telephony_TC/call/unit/uts_tel_swap_call.h [deleted file]
TC/telephony_TC/common/unit/makefile [deleted file]
TC/telephony_TC/common/unit/tapi_common.h [deleted file]
TC/telephony_TC/common/unit/tet_macro.h [deleted file]
TC/telephony_TC/common/unit/tslist [deleted file]
TC/telephony_TC/common/unit/uts_tel_check_service_ready.c [deleted file]
TC/telephony_TC/common/unit/uts_tel_check_service_ready.h [deleted file]
TC/telephony_TC/common/unit/uts_tel_deinit.c [deleted file]
TC/telephony_TC/common/unit/uts_tel_deinit.h [deleted file]
TC/telephony_TC/common/unit/uts_tel_deregister_event.c [deleted file]
TC/telephony_TC/common/unit/uts_tel_deregister_event.h [deleted file]
TC/telephony_TC/common/unit/uts_tel_init.c [deleted file]
TC/telephony_TC/common/unit/uts_tel_init.h [deleted file]
TC/telephony_TC/common/unit/uts_tel_register_event.c [deleted file]
TC/telephony_TC/common/unit/uts_tel_register_event.h [deleted file]
TC/telephony_TC/common/unit/uts_tel_request_tunnel.c [deleted file]
TC/telephony_TC/common/unit/uts_tel_request_tunnel.h [deleted file]
TC/telephony_TC/gprs/unit/gprs_common.c [deleted file]
TC/telephony_TC/gprs/unit/gprs_common.h [deleted file]
TC/telephony_TC/gprs/unit/makefile [deleted file]
TC/telephony_TC/gprs/unit/tet_macro.h [deleted file]
TC/telephony_TC/gprs/unit/tet_scen [deleted file]
TC/telephony_TC/gprs/unit/tslist [deleted file]
TC/telephony_TC/gprs/unit/uts_tel_activate_gprs_pdp.c [deleted file]
TC/telephony_TC/gprs/unit/uts_tel_activate_gprs_pdp.h [deleted file]
TC/telephony_TC/gprs/unit/uts_tel_control_gprs_btdun_pin.c [deleted file]
TC/telephony_TC/gprs/unit/uts_tel_control_gprs_btdun_pin.h [deleted file]
TC/telephony_TC/gprs/unit/uts_tel_deactivate_gprs_pdp.c [deleted file]
TC/telephony_TC/gprs/unit/uts_tel_deactivate_gprs_pdp.h [deleted file]
TC/telephony_TC/misc/unit/async_util.c [deleted file]
TC/telephony_TC/misc/unit/async_util.h [deleted file]
TC/telephony_TC/misc/unit/makefile [deleted file]
TC/telephony_TC/misc/unit/misc_callback_util.c [deleted file]
TC/telephony_TC/misc/unit/misc_callback_util.h [deleted file]
TC/telephony_TC/misc/unit/tet_macro.h [deleted file]
TC/telephony_TC/misc/unit/tslist [deleted file]
TC/telephony_TC/misc/unit/uts_tapi_misc_NAM_info_get.c [deleted file]
TC/telephony_TC/misc/unit/uts_tapi_misc_NAM_info_get.h [deleted file]
TC/telephony_TC/misc/unit/uts_tapi_misc_NAM_info_set.c [deleted file]
TC/telephony_TC/misc/unit/uts_tapi_misc_NAM_info_set.h [deleted file]
TC/telephony_TC/misc/unit/uts_tapi_misc_me_serial_num_get.c [deleted file]
TC/telephony_TC/misc/unit/uts_tapi_misc_me_serial_num_get.h [deleted file]
TC/telephony_TC/misc/unit/uts_tapi_misc_timezone_getinfo.c [deleted file]
TC/telephony_TC/misc/unit/uts_tapi_misc_timezone_getinfo.h [deleted file]
TC/telephony_TC/misc/unit/uts_tapi_misc_timezone_setinfo.c [deleted file]
TC/telephony_TC/misc/unit/uts_tapi_misc_timezone_setinfo.h [deleted file]
TC/telephony_TC/network/README [deleted file]
TC/telephony_TC/network/unit/makefile [deleted file]
TC/telephony_TC/network/unit/tel_tapi_nw_common.c [deleted file]
TC/telephony_TC/network/unit/tel_tapi_nw_common.h [deleted file]
TC/telephony_TC/network/unit/tslist [deleted file]
TC/telephony_TC/network/unit/uts_tel_get_network_band.c [deleted file]
TC/telephony_TC/network/unit/uts_tel_get_network_band.h [deleted file]
TC/telephony_TC/network/unit/uts_tel_get_network_hybrid_in_cdma.c [deleted file]
TC/telephony_TC/network/unit/uts_tel_get_network_hybrid_in_cdma.h [deleted file]
TC/telephony_TC/network/unit/uts_tel_get_network_mode.c [deleted file]
TC/telephony_TC/network/unit/uts_tel_get_network_mode.h [deleted file]
TC/telephony_TC/network/unit/uts_tel_get_network_preferred_plmn.c [deleted file]
TC/telephony_TC/network/unit/uts_tel_get_network_preferred_plmn.h [deleted file]
TC/telephony_TC/network/unit/uts_tel_get_network_roaming.c [deleted file]
TC/telephony_TC/network/unit/uts_tel_get_network_roaming.h [deleted file]
TC/telephony_TC/network/unit/uts_tel_get_network_selection_mode.c [deleted file]
TC/telephony_TC/network/unit/uts_tel_get_network_selection_mode.h [deleted file]
TC/telephony_TC/network/unit/uts_tel_get_network_service_domain.c [deleted file]
TC/telephony_TC/network/unit/uts_tel_get_network_service_domain.h [deleted file]
TC/telephony_TC/network/unit/uts_tel_search_network.c [deleted file]
TC/telephony_TC/network/unit/uts_tel_search_network.h [deleted file]
TC/telephony_TC/network/unit/uts_tel_select_network_automatic.c [deleted file]
TC/telephony_TC/network/unit/uts_tel_select_network_automatic.h [deleted file]
TC/telephony_TC/network/unit/uts_tel_select_network_manual.c [deleted file]
TC/telephony_TC/network/unit/uts_tel_select_network_manual.h [deleted file]
TC/telephony_TC/network/unit/uts_tel_set_network_band.c [deleted file]
TC/telephony_TC/network/unit/uts_tel_set_network_band.h [deleted file]
TC/telephony_TC/network/unit/uts_tel_set_network_hybrid_in_cdma.c [deleted file]
TC/telephony_TC/network/unit/uts_tel_set_network_hybrid_in_cdma.h [deleted file]
TC/telephony_TC/network/unit/uts_tel_set_network_mode.c [deleted file]
TC/telephony_TC/network/unit/uts_tel_set_network_mode.h [deleted file]
TC/telephony_TC/network/unit/uts_tel_set_network_preferred_plmn.c [deleted file]
TC/telephony_TC/network/unit/uts_tel_set_network_preferred_plmn.h [deleted file]
TC/telephony_TC/network/unit/uts_tel_set_network_roaming.c [deleted file]
TC/telephony_TC/network/unit/uts_tel_set_network_roaming.h [deleted file]
TC/telephony_TC/network/unit/uts_tel_set_network_service_domain.c [deleted file]
TC/telephony_TC/network/unit/uts_tel_set_network_service_domain.h [deleted file]
TC/telephony_TC/power/unit/makefile [deleted file]
TC/telephony_TC/power/unit/power_common.c [deleted file]
TC/telephony_TC/power/unit/power_common.h [deleted file]
TC/telephony_TC/power/unit/tet_macro.h [deleted file]
TC/telephony_TC/power/unit/tslist [deleted file]
TC/telephony_TC/power/unit/uts_tapi_display_get_icon_info.c [deleted file]
TC/telephony_TC/power/unit/uts_tapi_display_get_icon_info.h [deleted file]
TC/telephony_TC/power/unit/uts_tapi_power_get_phone_power_status.c [deleted file]
TC/telephony_TC/power/unit/uts_tapi_power_get_phone_power_status.h [deleted file]
TC/telephony_TC/power/unit/uts_tapi_power_reboot_modem.c [deleted file]
TC/telephony_TC/power/unit/uts_tapi_power_reboot_modem.h [deleted file]
TC/telephony_TC/power/unit/uts_tel_process_power_command.c [deleted file]
TC/telephony_TC/power/unit/uts_tel_process_power_command.h [deleted file]
TC/telephony_TC/power/unit/uts_tel_set_flight_mode.c [deleted file]
TC/telephony_TC/power/unit/uts_tel_set_flight_mode.h [deleted file]
TC/telephony_TC/power/uts_tapi_power_phone_on_off.c [deleted file]
TC/telephony_TC/power/uts_tapi_power_phone_on_off.h [deleted file]
TC/telephony_TC/sat/unit/makefile [deleted file]
TC/telephony_TC/sat/unit/tet_macro.h [deleted file]
TC/telephony_TC/sat/unit/tslist [deleted file]
TC/telephony_TC/sat/unit/uts_tel_download_sat_event.c [deleted file]
TC/telephony_TC/sat/unit/uts_tel_download_sat_event.h [deleted file]
TC/telephony_TC/sat/unit/uts_tel_get_sat_main_menu_info.c [deleted file]
TC/telephony_TC/sat/unit/uts_tel_get_sat_main_menu_info.h [deleted file]
TC/telephony_TC/sat/unit/uts_tel_select_sat_menu.c [deleted file]
TC/telephony_TC/sat/unit/uts_tel_select_sat_menu.h [deleted file]
TC/telephony_TC/sat/unit/uts_tel_send_sat_app_exec_result.c [deleted file]
TC/telephony_TC/sat/unit/uts_tel_send_sat_app_exec_result.h [deleted file]
TC/telephony_TC/sat/unit/uts_tel_send_sat_ui_user_confirm.c [deleted file]
TC/telephony_TC/sat/unit/uts_tel_send_sat_ui_user_confirm.h [deleted file]
TC/telephony_TC/sat/unit/uts_tel_send_ui_display_status.c [deleted file]
TC/telephony_TC/sat/unit/uts_tel_send_ui_display_status.h [deleted file]
TC/telephony_TC/sim/README [deleted file]
TC/telephony_TC/sim/sim_common.h [deleted file]
TC/telephony_TC/sim/unit/async_util.c [deleted file]
TC/telephony_TC/sim/unit/async_util.h [deleted file]
TC/telephony_TC/sim/unit/log [deleted file]
TC/telephony_TC/sim/unit/makefile [deleted file]
TC/telephony_TC/sim/unit/sim_pw.txt [deleted file]
TC/telephony_TC/sim/unit/tet_tapi_util.h [deleted file]
TC/telephony_TC/sim/unit/tslist [deleted file]
TC/telephony_TC/sim/unit/uts_tel_change_sim_pins.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_change_sim_pins.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_delete_sim_pb_record.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_delete_sim_pb_record.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_disable_sim_fdn.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_disable_sim_fdn.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_disable_sim_personalization.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_disable_sim_personalization.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_disable_sim_security.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_disable_sim_security.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_enable_sim_fdn.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_enable_sim_fdn.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_enable_sim_personalization.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_enable_sim_personalization.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_enable_sim_security.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_enable_sim_security.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_callforwarding_info.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_callforwarding_info.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_cphs_info.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_cphs_info.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_ecc.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_ecc.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_fdn_status.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_fdn_status.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_imsi.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_imsi.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_init_info.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_init_info.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_language.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_language.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_mailbox_info.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_mailbox_info.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_messagewaiting_info.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_messagewaiting_info.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_msisdn.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_msisdn.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_pb_3g_meta_info.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_pb_3g_meta_info.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_pb_count.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_pb_count.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_pb_init_info.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_pb_init_info.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_pb_meta_info.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_pb_meta_info.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_personalization_status.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_personalization_status.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_security_status.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_security_status.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_type.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_get_sim_type.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_lock_sim_personalization.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_lock_sim_personalization.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_read_sim_pb_record.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_read_sim_pb_record.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_req_sap_cardreader_status.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_req_sap_cardreader_status.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_req_sap_connection.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_req_sap_connection.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_req_sap_connection_status.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_req_sap_connection_status.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_req_sap_power_operation.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_req_sap_power_operation.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_req_sap_transfer_apdu.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_req_sap_transfer_apdu.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_req_sap_transfer_atr.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_req_sap_transfer_atr.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_req_sap_transport_protocol.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_req_sap_transport_protocol.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_req_sim_access.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_req_sim_access.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_req_sim_isim_authentication.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_req_sim_isim_authentication.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_set_sim_language.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_set_sim_language.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_update_sim_pb_record.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_update_sim_pb_record.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_verifiy_sim_pins.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_verifiy_sim_pins.h [deleted file]
TC/telephony_TC/sim/unit/uts_tel_verify_sim_puks.c [deleted file]
TC/telephony_TC/sim/unit/uts_tel_verify_sim_puks.h [deleted file]
TC/telephony_TC/sms/README [deleted file]
TC/telephony_TC/sms/sms_common.h [deleted file]
TC/telephony_TC/sms/unit/async_util.c [deleted file]
TC/telephony_TC/sms/unit/async_util.h [deleted file]
TC/telephony_TC/sms/unit/error [deleted file]
TC/telephony_TC/sms/unit/makefile [deleted file]
TC/telephony_TC/sms/unit/sms_callback_util.c [deleted file]
TC/telephony_TC/sms/unit/sms_callback_util.h [deleted file]
TC/telephony_TC/sms/unit/sms_util.c [deleted file]
TC/telephony_TC/sms/unit/sms_util.h [deleted file]
TC/telephony_TC/sms/unit/tet_macro.h [deleted file]
TC/telephony_TC/sms/unit/tet_tapi_util_new.h [deleted file]
TC/telephony_TC/sms/unit/tslist [deleted file]
TC/telephony_TC/sms/unit/uts_tel_delete_sms_in_sim.c [deleted file]
TC/telephony_TC/sms/unit/uts_tel_delete_sms_in_sim.h [deleted file]
TC/telephony_TC/sms/unit/uts_tel_get_sms_cb_config.c [deleted file]
TC/telephony_TC/sms/unit/uts_tel_get_sms_cb_config.h [deleted file]
TC/telephony_TC/sms/unit/uts_tel_get_sms_count.c [deleted file]
TC/telephony_TC/sms/unit/uts_tel_get_sms_count.h [deleted file]
TC/telephony_TC/sms/unit/uts_tel_get_sms_parameter_count.c [deleted file]
TC/telephony_TC/sms/unit/uts_tel_get_sms_parameter_count.h [deleted file]
TC/telephony_TC/sms/unit/uts_tel_get_sms_parameters.c [deleted file]
TC/telephony_TC/sms/unit/uts_tel_get_sms_parameters.h [deleted file]
TC/telephony_TC/sms/unit/uts_tel_get_sms_preferred_bearer.c [deleted file]
TC/telephony_TC/sms/unit/uts_tel_get_sms_preferred_bearer.h [deleted file]
TC/telephony_TC/sms/unit/uts_tel_get_sms_sca.c [deleted file]
TC/telephony_TC/sms/unit/uts_tel_get_sms_sca.h [deleted file]
TC/telephony_TC/sms/unit/uts_tel_read_sms_in_sim.c [deleted file]
TC/telephony_TC/sms/unit/uts_tel_read_sms_in_sim.h [deleted file]
TC/telephony_TC/sms/unit/uts_tel_send_sms.c [deleted file]
TC/telephony_TC/sms/unit/uts_tel_send_sms.h [deleted file]
TC/telephony_TC/sms/unit/uts_tel_send_sms_deliver_report.c [deleted file]
TC/telephony_TC/sms/unit/uts_tel_send_sms_deliver_report.h [deleted file]
TC/telephony_TC/sms/unit/uts_tel_send_sms_msg.c [deleted file]
TC/telephony_TC/sms/unit/uts_tel_send_sms_msg.h [deleted file]
TC/telephony_TC/sms/unit/uts_tel_set_sms_cb_config.c [deleted file]
TC/telephony_TC/sms/unit/uts_tel_set_sms_cb_config.h [deleted file]
TC/telephony_TC/sms/unit/uts_tel_set_sms_memory_status.c [deleted file]
TC/telephony_TC/sms/unit/uts_tel_set_sms_memory_status.h [deleted file]
TC/telephony_TC/sms/unit/uts_tel_set_sms_message_status.c [deleted file]
TC/telephony_TC/sms/unit/uts_tel_set_sms_message_status.h [deleted file]
TC/telephony_TC/sms/unit/uts_tel_set_sms_parameters.c [deleted file]
TC/telephony_TC/sms/unit/uts_tel_set_sms_parameters.h [deleted file]
TC/telephony_TC/sms/unit/uts_tel_set_sms_preferred_bearer.c [deleted file]
TC/telephony_TC/sms/unit/uts_tel_set_sms_preferred_bearer.h [deleted file]
TC/telephony_TC/sms/unit/uts_tel_set_sms_sca.c [deleted file]
TC/telephony_TC/sms/unit/uts_tel_set_sms_sca.h [deleted file]
TC/telephony_TC/sms/unit/uts_tel_write_sms_in_sim.c [deleted file]
TC/telephony_TC/sms/unit/uts_tel_write_sms_in_sim.h [deleted file]
TC/telephony_TC/sound/unit/async_util.c [deleted file]
TC/telephony_TC/sound/unit/async_util.h [deleted file]
TC/telephony_TC/sound/unit/makefile [deleted file]
TC/telephony_TC/sound/unit/sound_callback_util.c [deleted file]
TC/telephony_TC/sound/unit/sound_callback_util.h [deleted file]
TC/telephony_TC/sound/unit/tet_macro.h [deleted file]
TC/telephony_TC/sound/unit/tslist [deleted file]
TC/telephony_TC/sound/unit/uts_tel_control_sound_voice_recording.c [deleted file]
TC/telephony_TC/sound/unit/uts_tel_control_sound_voice_recording.h [deleted file]
TC/telephony_TC/sound/unit/uts_tel_get_sound_mute_status.c [deleted file]
TC/telephony_TC/sound/unit/uts_tel_get_sound_mute_status.h [deleted file]
TC/telephony_TC/sound/unit/uts_tel_get_sound_volume_info.c [deleted file]
TC/telephony_TC/sound/unit/uts_tel_get_sound_volume_info.h [deleted file]
TC/telephony_TC/sound/unit/uts_tel_set_sound_clock.c [deleted file]
TC/telephony_TC/sound/unit/uts_tel_set_sound_clock.h [deleted file]
TC/telephony_TC/sound/unit/uts_tel_set_sound_loopback.c [deleted file]
TC/telephony_TC/sound/unit/uts_tel_set_sound_loopback.h [deleted file]
TC/telephony_TC/sound/unit/uts_tel_set_sound_mute_status.c [deleted file]
TC/telephony_TC/sound/unit/uts_tel_set_sound_mute_status.h [deleted file]
TC/telephony_TC/sound/unit/uts_tel_set_sound_path.c [deleted file]
TC/telephony_TC/sound/unit/uts_tel_set_sound_path.h [deleted file]
TC/telephony_TC/sound/unit/uts_tel_set_sound_volume_info.c [deleted file]
TC/telephony_TC/sound/unit/uts_tel_set_sound_volume_info.h [deleted file]
TC/telephony_TC/ss/README [deleted file]
TC/telephony_TC/ss/ss_common.h [deleted file]
TC/telephony_TC/ss/unit/makefile [deleted file]
TC/telephony_TC/ss/unit/tet_tapi_util.c [deleted file]
TC/telephony_TC/ss/unit/tet_tapi_util.h [deleted file]
TC/telephony_TC/ss/unit/tslist [deleted file]
TC/telephony_TC/ss/unit/uts_tel_change_ss_barring_password.c [deleted file]
TC/telephony_TC/ss/unit/uts_tel_change_ss_barring_password.h [deleted file]
TC/telephony_TC/ss/unit/uts_tel_get_ss_aoc_info.c [deleted file]
TC/telephony_TC/ss/unit/uts_tel_get_ss_aoc_info.h [deleted file]
TC/telephony_TC/ss/unit/uts_tel_get_ss_barring_status.c [deleted file]
TC/telephony_TC/ss/unit/uts_tel_get_ss_barring_status.h [deleted file]
TC/telephony_TC/ss/unit/uts_tel_get_ss_cli_status.c [deleted file]
TC/telephony_TC/ss/unit/uts_tel_get_ss_cli_status.h [deleted file]
TC/telephony_TC/ss/unit/uts_tel_get_ss_forward_status.c [deleted file]
TC/telephony_TC/ss/unit/uts_tel_get_ss_forward_status.h [deleted file]
TC/telephony_TC/ss/unit/uts_tel_get_ss_waiting_status.c [deleted file]
TC/telephony_TC/ss/unit/uts_tel_get_ss_waiting_status.h [deleted file]
TC/telephony_TC/ss/unit/uts_tel_send_ss_ussd_cancel.c [deleted file]
TC/telephony_TC/ss/unit/uts_tel_send_ss_ussd_cancel.h [deleted file]
TC/telephony_TC/ss/unit/uts_tel_send_ss_ussd_request.c [deleted file]
TC/telephony_TC/ss/unit/uts_tel_send_ss_ussd_request.h [deleted file]
TC/telephony_TC/ss/unit/uts_tel_send_ss_ussd_response.c [deleted file]
TC/telephony_TC/ss/unit/uts_tel_send_ss_ussd_response.h [deleted file]
TC/telephony_TC/ss/unit/uts_tel_set_ss_aoc_info.c [deleted file]
TC/telephony_TC/ss/unit/uts_tel_set_ss_aoc_info.h [deleted file]
TC/telephony_TC/ss/unit/uts_tel_set_ss_barring.c [deleted file]
TC/telephony_TC/ss/unit/uts_tel_set_ss_barring.h [deleted file]
TC/telephony_TC/ss/unit/uts_tel_set_ss_forward.c [deleted file]
TC/telephony_TC/ss/unit/uts_tel_set_ss_forward.h [deleted file]
TC/telephony_TC/ss/unit/uts_tel_set_ss_waiting.c [deleted file]
TC/telephony_TC/ss/unit/uts_tel_set_ss_waiting.h [deleted file]
TC/telephony_TC/tet_scen [deleted file]
TC/telephony_TC/tetbuild.cfg [deleted file]
TC/telephony_TC/tetclean.cfg [deleted file]
TC/telephony_TC/tetexec.cfg [deleted file]
TC/tet_scen [deleted file]
TC/tslist.txt [deleted file]

diff --git a/TC/making_new_tet_scen.py b/TC/making_new_tet_scen.py
deleted file mode 100755 (executable)
index 6c5b845..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-#!/usr/bin/python
-
-#############################################
-# tet_scen  auto generator
-#
-# ** argv[1] = TC root
-#############################################
-
-import sys,string,os
-
-
-write_file = open("tet_scen", 'w')
-
-#
-# making new tet_scen
-#
-def making_tet_scen (filename):
-       #tmp_list = filename.strip().split('/')
-       n_filename = filename.replace(' ', '\\ ')
-       #print n_filename
-       #new_path = "/"+ sys.argv[1] +"/"+n_filename[2:-6]
-       new_path = "/"+n_filename[:-6]
-       #print new_path
-       file = open(filename, 'r')
-       lines = file.readlines()
-       for line in lines:
-               if len(line.strip()) > 1:
-                       list = line.strip().split('/')
-                       #print new_path + list[-1]
-                       write_file.write("\t"+new_path+list[-1]+"\n")
-
-#
-# usage()
-#
-def usage():
-       print(" ")
-       print("./making_new_tet_scen.py tc_root")
-       print("Put the Test Case's root directory.")
-       print("Do not include '/' at the end")
-       print(" ")
-
-#
-# main()
-#
-def main():
-       if len(sys.argv) < 2:
-               usage()
-               sys.exit(0)
-               
-       os.system('find '+ sys.argv[1] +' -name "tslist" > tslist.txt')
-       
-       #write_file = open("tetscen", w)
-       write_file.write("# auto generated tet_scen\n")
-       write_file.write("all\n")
-       write_file.write("\t\"Starting Full Test Suite\"\n")
-       
-       for file in open("tslist.txt", 'r'):
-               #print file.strip()
-               making_tet_scen(file.strip())
-                       
-       write_file.write("\t\"Completed Full Test Suite\"\n")
-       write_file.write("# EOF\n")
-       write_file.close()
-       print(" ")
-       print("==============================")
-       print("New tet_scen file is made~~~~")
-       print("==============================")
-       print(" ")
-main()
diff --git a/TC/telephony_TC/CFG/cfg_util.c b/TC/telephony_TC/CFG/cfg_util.c
deleted file mode 100644 (file)
index a5fb7f3..0000000
+++ /dev/null
@@ -1,176 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-#include "cfg_util.h"
-
-static unsigned int subscription_id[7];
-GMainLoop *main_loop = NULL;
-
-void  app_cfg_callback (TelTapiEvent_t * TapiEvent)
-{
-
-       TelTapiEventClass_t     eventClass;
-       TelTapiEventType_t      eventType;
-       int                             requestId;
-       int                             status;
-       void                    *EventData = NULL;
-
-       eventClass = TapiEvent->EventClass;
-       eventType = TapiEvent->EventType;
-       requestId = TapiEvent->RequestId;
-       status = TapiEvent->Status;
-       EventData = TapiEvent->pData;
-
-       printf("\nClass:[%d], Event Type:[%d], RequestId:[%d], Status:[%d] \n", eventClass, eventType , requestId, status );
-
-       if( EventData==NULL)
-       {
-               printf("\n******  EventData is NULL.........   ******\n");
-       }
-
-       switch(eventClass)
-       {
-                       case TAPI_EVENT_CLASS_CFG:
-                               switch(eventType)
-                               {
-                                       case TAPI_EVENT_CFG_GET_A_KEY_CNF :
-                                               printf("***  TAPI_EVENT_CFG_GET_A_KEY_CNF received : %x ****\n", eventType);
-                                               break;
-
-                                       case TAPI_EVENT_CFG_VERIFY_A_KEY_CNF:
-                                               printf("*** TAPI_EVENT_CFG_VERIFY_A_KEY_CNF received  : %x ****\n", eventType);
-                                               break;
-
-                                       case TAPI_EVENT_CFG_GET_MSL_INFO_CNF:
-                                               printf("***  TAPI_EVENT_CFG_GET_MSL_INFO_CNF received : %x ****\n", eventType);
-                                               break;
-
-                                       case TAPI_EVENT_CFG_GET_VOCODER_OPTION_CNF:
-                                               printf("***  TAPI_EVENT_CFG_GET_VOCODER_OPTION_CNF received : %x ****\n", eventType);
-                                               break;
-
-                                       case TAPI_EVENT_CFG_SET_VOCODER_OPTION_CNF:
-                                               printf("***  TAPI_EVENT_CFG_SET_VOCODER_OPTION_CNF received : %x ****\n", eventType);
-                                               break;
-
-                                       case TAPI_EVENT_CFG_GET_HIDDEN_MENU_ACCESS_CNF:
-                                               printf("***  TAPI_EVENT_CFG_GET_HIDDEN_MENU_ACCESS_CNF received : %x ****\n", eventType);
-                                               break;
-                                       case TAPI_EVENT_CFG_SET_HIDDEN_MENU_ACCESS_CNF:
-                                               printf("***  TAPI_EVENT_CFG_SET_HIDDEN_MENU_ACCESS_CNF received : %x ****\n", eventType);
-                                               break;
-                                        case TAPI_EVENT_CFG_GET_CURRENT_CARRIER_CNF:
-                                               printf("***  TAPI_EVENT_CFG_GET_CURRENT_CARRIER_CNF received : %x ****\n", eventType);
-                                               break;
-                                         case TAPI_EVENT_CFG_SET_CURRENT_CARRIER_CNF:
-                                               printf("***  TAPI_EVENT_CFG_SET_CURRENT_CARRIER_CNF received : %x ****\n", eventType);
-                                               break;
-                                         case TAPI_EVENT_CFG_GET_SIO_MODE_CNF:
-                                               printf("***  TAPI_EVENT_CFG_GET_SIO_MODE_CNF received : %x ****\n", eventType);
-                                               break;
-                                          case         TAPI_EVENT_CFG_SET_SIO_MODE_CNF:
-                                               printf("***  TAPI_EVENT_CFG_SET_SIO_MODE_CNF received : %x ****\n", eventType);
-                                               break;
-                                         case  TAPI_EVENT_CFG_GET_ACTIVATION_DATE_CNF:
-                                               printf("***  TAPI_EVENT_CFG_GET_ACTIVATION_DATE_CNF received : %x ****\n", eventType);
-                                               break;
-                                         case  TAPI_EVENT_CFG_GET_RECONDITIONED_DATE_CNF:
-                                               printf("*** TAPI_EVENT_CFG_GET_RECONDITIONED_DATE_CNF received : %x ****\n", eventType);
-                                               break;
-                                         case  TAPI_EVENT_CFG_SET_TTY_MODE_CNF:
-                                               printf("***     TAPI_EVENT_CFG_SET_TTY_MODE_CNF received : %x ****\n", eventType);
-                                               break;
-                                        
-                                        case   TAPI_EVENT_CFG_GET_TTY_MODE_CNF:
-                                               printf("***     TAPI_EVENT_CFG_GET_TTY_MODE_CNF received : %x ****\n", eventType);
-                                               break;
-                                       default:
-                                               printf("***  Default Event  %x ****\n", eventType);
-                                               break;
-
-                               }
-
-                               break;
-
-                       default:
-                               printf("*** Other TAPI EVENT received : class : %x ****\n", eventClass);
-                               break;
-       }
-
-}
-
-
-int gmain_loop_for_tapi_events(int delay)
-{
-       main_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add (delay, TimeOutFun, NULL);
-       g_main_loop_run (main_loop);
-
-       return 0;
-}
-
-void print_all_subsciption_ids()
-{
-       int i=0;
-       for(i=0;i<7;i++)
-       {
-               printf("\n subscription_id[%d] has value %d \n",i,subscription_id[i]);
-       }
-}
-
-
-TapiResult_t register_all_events()
-{
-       TapiResult_t api_err = TAPI_API_SUCCESS;
-
-       api_err = tel_register_event(TAPI_EVENT_CFG_GET_A_KEY_CNF, &subscription_id[0], app_cfg_callback);
-
-       api_err = tel_register_event(TAPI_EVENT_CFG_VERIFY_A_KEY_CNF, &subscription_id[1], app_cfg_callback);
-       api_err = tel_register_event(TAPI_EVENT_CFG_GET_MSL_INFO_CNF, &subscription_id[2], app_cfg_callback);
-       api_err = tel_register_event(TAPI_EVENT_CFG_GET_VOCODER_OPTION_CNF, &subscription_id[3],app_cfg_callback);
-       api_err = tel_register_event(TAPI_EVENT_CFG_SET_VOCODER_OPTION_CNF, &subscription_id[4], app_cfg_callback);
-       api_err = tel_register_event(TAPI_EVENT_CFG_GET_HIDDEN_MENU_ACCESS_CNF, &subscription_id[5], app_cfg_callback);
-       api_err = tel_register_event(TAPI_EVENT_CFG_SET_HIDDEN_MENU_ACCESS_CNF, &subscription_id[6], app_cfg_callback);
-        api_err = tel_register_event(TAPI_EVENT_CFG_GET_CURRENT_CARRIER_CNF, &subscription_id[7], app_cfg_callback);
-        api_err = tel_register_event(TAPI_EVENT_CFG_SET_CURRENT_CARRIER_CNF, &subscription_id[8], app_cfg_callback);
-        api_err = tel_register_event(TAPI_EVENT_CFG_GET_SIO_MODE_CNF, &subscription_id[9], app_cfg_callback);
-        api_err = tel_register_event(TAPI_EVENT_CFG_SET_SIO_MODE_CNF, &subscription_id[10], app_cfg_callback);
-        api_err = tel_register_event(TAPI_EVENT_CFG_GET_ACTIVATION_DATE_CNF, &subscription_id[11], app_cfg_callback);
-        api_err = tel_register_event(TAPI_EVENT_CFG_GET_RECONDITIONED_DATE_CNF, &subscription_id[12], app_cfg_callback);
-        api_err = tel_register_event(TAPI_EVENT_CFG_SET_TTY_MODE_CNF, &subscription_id[13], app_cfg_callback);
-        api_err = tel_register_event(TAPI_EVENT_CFG_GET_TTY_MODE_CNF, &subscription_id[14], app_cfg_callback);
-
-       print_all_subsciption_ids();
-       return 0;
-}
-
-
- TapiResult_t deregister_all()
-{
-  int i ;
-        for(i=0 ;i<=14; i++)
-        {
-       tel_deregister_event(subscription_id[i]);
-        }
-       
-       return 0;
-
-}
-
-
diff --git a/TC/telephony_TC/CFG/cfg_util.h b/TC/telephony_TC/CFG/cfg_util.h
deleted file mode 100644 (file)
index 767dfb4..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef _CFG_UTIL_H_
-#define _CFG_UTIL_H_
-
-
-#include <stdlib.h>
-#include <signal.h>
-#include <errno.h>
-#include "string.h"
-#include "assert.h"
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <glib.h>
-#include <pthread.h>
-#include <stdio.h>
-#include <ITapiCfg.h>
-
-
-#include <ITapiSound.h>
-#include <tet_api.h>
-#include "tet_macro.h"
-#include <gconf/gconf-client.h>
-#include <ITapiCall.h>
-#include <TapiCommon.h>
-#include <tapi_err.h>
-#include "async_util.h"
-
-
-
-#define TIME_DELAY 5000
-
-//extern void  app_sound_callback (TelTapiEvent_t * TapiEvent);
-
-extern TapiResult_t register_all_events();
-extern  TapiResult_t deregister_all();
-void print_all_subsciption_ids();
-extern int gmain_loop_for_tapi_events(int delay);
-extern gboolean TimeOutFun (void *data);
-void  app_cfg_callback (TelTapiEvent_t * TapiEvent);
-
-#endif //_CFG_UTIL_H_
diff --git a/TC/telephony_TC/CFG/uts_tel_cfg_default_configuration.c b/TC/telephony_TC/CFG/uts_tel_cfg_default_configuration.c
deleted file mode 100644 (file)
index c892987..0000000
+++ /dev/null
@@ -1,243 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/** 
-* @ingroup TELEPHONY_API TelephonyAPI
-* @addtogroup CONFIG Configuration
-*/
-
-/**
-* @ingroup  CONFIG Configuration
-* @addtogroup UTS_CONFIG Unit
-*/
-
-/**
-* @ingroup  UTS_CONFIG
-* @addtogroup UTS_TAPI_CFG_GET_TTY_MODE tel_set_cfg_default_configuration
-* @brief Unit test cases for tel_set_cfg_default_configuration()
-* @par Test function Prototype:
-*      TapiResult_t   tel_set_cfg_default_configuration( int *pRequestID) 
-* @par Test function description:
-* It requests to get tty(text telephone) mode.(CDMA only)       
-* @par Important Notes:
-*      None
-* @param [out] pRequestId 
-* - Unique identifier for a particular request.
-* - request_id value can be any value from 0 to 255 if the API is returned successfully
-* - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message
-* The event associated is TAPI_EVENT_CFG_GET_TTY_MODE_CNF
-* @pre
-*      None
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully. 
-* - Refer TapiResult_t for failure and error code 
-* @{
-*/
-
-/**
-* @file        uts_tel_set_cfg_default_configuration.c
-* @brief       This is a suite of unit test cases to test tel_set_cfg_default_configuration() API function
-* @author      Gautam Nand Sinha  (gnand.sinha@samsung.com)
-* @version     Initial Creation V0.1
-* @date        2009.12.16
-*/
-
-
-
-#include "uts_tel_set_cfg_default_configuration.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_set_cfg_default_configuration_000, 1},
-       {utc_tel_set_cfg_default_configuration_001, 2},
-        {utc_tel_set_cfg_default_configuration_002, 3},
-        {utc_tel_set_cfg_default_configuration_003, 4},
-        {utc_tel_set_cfg_default_configuration_004, 5},
-        {utc_tel_set_cfg_default_configuration_005, 6},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for 
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-       
-       if(tel_init() != TAPI_API_SUCCESS)
-       {
-          printf("TelTapiInit() Failed \n")
-         }
-          register_all_events();
-               
-       return;                                         
-}
-
-static void cleanup()
-{
-       deregister_all();
-       tel_deinit();
-       return;
-}
-
-
-
-void utc_tel_set_cfg_default_configuration_000()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-       ret_status = tel_set_cfg_default_configuration(TAPI_CFG_DEFAULT_FULL);
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_default_configuration_000 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_default_configuration_000 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-
-
-void utc_tel_set_cfg_default_configuration_001()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-       ret_status = tel_set_cfg_default_configuration(TAPI_CFG_DEFAULT_FACTORY);
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_default_configuration_001 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_default_configuration_001 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_set_cfg_default_configuration_002()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-       ret_status = tel_set_cfg_default_configuration( TAPI_CFG_DEFAULT_SERVICE);
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_default_configuration_002 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_default_configuration_002 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_set_cfg_default_configuration_003()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-       ret_status = tel_set_cfg_default_configuration( TAPI_CFG_DEFAULT_SERVICE);
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_default_configuration_003 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_default_configuration_003 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_set_cfg_default_configuration_004()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-       ret_status = tel_set_cfg_default_configuration( TAPI_CFG_DEFAULT_MODE_MAX);
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_default_configuration_004 has failed\n");
-         tet_result(TET_FAIL);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_default_configuration_004 has passed\n");
-           tet_result(TET_PASS);
-           }
-}
-
-void utc_tel_set_cfg_default_configuration_005()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-       ret_status = tel_set_cfg_default_configuration(-1);
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_default_configuration_004 has failed\n");
-         tet_result(TET_FAIL);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_default_configuration_004 has passed\n");
-           tet_result(TET_PASS);
-           }
-}
-
-
-/** @} */
diff --git a/TC/telephony_TC/CFG/uts_tel_cfg_default_configuration.h b/TC/telephony_TC/CFG/uts_tel_cfg_default_configuration.h
deleted file mode 100644 (file)
index bb1c130..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @file     uts_tel_set_cfg_default_configuration.h
-* @brief    This is the implementaion file for the test case of getting tty mode
-* @author      Gautam Nand Sinha  (gnand.sinha@samsung.com)
-* @version     Initial Creation V0.1
-* @date        2009.12.16
-*/
-
-#include <tet_api.h>
-#include <ITapiCall.h>
-#include <ITapiSs.h>
-#include <stdlib.h>
-#include <signal.h>
-#include <stdio.h>
-#include <errno.h>
-#include <sys/types.h>
-
-#include <pthread.h>
-#include "assert.h"
-#include "glib.h"
-#include "cfg_util.h"
-                        
-#include "TapiCommon.h" 
-//#include "tapi_utility.h"
-#include <gconf/gconf-client.h>
-#include "string.h"
-
-#include "tet_tapi_util.h"
-
-#ifndef _UTS_TAPI_CFG_GET_TTY_MODE_H_
-#define _UTS_TAPI_CFG_GET_TTY_MODE_H_
-
-       static void utc_tel_set_cfg_default_configuration_000();
-       static void utc_tel_set_cfg_default_configuration_001();
-        static void utc_tel_set_cfg_default_configuration_002();
-        static void utc_tel_set_cfg_default_configuration_003();
-        static void utc_tel_set_cfg_default_configuration_004();
-        static void utc_tel_set_cfg_default_configuration_005();
-       
-
-#endif //_UTS_TAPI_CFG_GET_TTY_MODE_H_
-
diff --git a/TC/telephony_TC/CFG/uts_tel_get_cfg_akey.c b/TC/telephony_TC/CFG/uts_tel_get_cfg_akey.c
deleted file mode 100644 (file)
index 8fc9101..0000000
+++ /dev/null
@@ -1,159 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/** 
-* @ingroup TELEPHONY_API TelephonyAPI
-* @addtogroup CONFIG Configuration
-*/
-
-/**
-* @ingroup  CONFIG Configuration
-* @addtogroup UTS_CONFIG Unit
-*/
-
-/**
-* @ingroup  UTS_CONFIG
-* @addtogroup UTS_TAPI_CFG_GET_TTY_MODE tel_get_cfg_akey
-* @brief Unit test cases for tel_get_cfg_akey()
-* @par Test function Prototype:
-*      TapiResult_t   tel_get_cfg_akey( int *pRequestID) 
-* @par Test function description:
-* It requests to get tty(text telephone) mode.(CDMA only)       
-* @par Important Notes:
-*      None
-* @param [out] pRequestId 
-* - Unique identifier for a particular request.
-* - request_id value can be any value from 0 to 255 if the API is returned successfully
-* - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message
-* The event associated is TAPI_EVENT_CFG_GET_TTY_MODE_CNF
-* @pre
-*      None
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully. 
-* - Refer TapiResult_t for failure and error code 
-* @{
-*/
-
-/**
-* @file        uts_tel_get_cfg_akey.c
-* @brief       This is a suite of unit test cases to test tel_get_cfg_akey() API function
-* @author      Gautam Nand Sinha  (gnand.sinha@samsung.com)
-* @version     Initial Creation V0.1
-* @date        2009.12.16
-*/
-
-
-
-#include "uts_tel_get_cfg_akey.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_cfg_akey_000, 1},
-       {utc_tel_get_cfg_akey_001, 2},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for 
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-       
-       if(tel_init() != TAPI_API_SUCCESS)
-       {
-          printf("TelTapiInit() Failed \n")
-         }
-          register_all_events();
-               
-       return;                                         
-}
-
-static void cleanup()
-{
-       deregister_all();
-       tel_deinit();
-       return;
-}
-
-
-
-void utc_tel_get_cfg_akey_000()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-       tel_set_cfg_default_configuration(TAPI_CFG_DEFAULT_FULL);
-        ret_status = tel_get_cfg_akey();
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_get_cfg_akey_000 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_get_cfg_akey_000 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-
-
-void utc_tel_get_cfg_akey_001()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-       ret_status = tel_get_cfg_akey();
-        ret_status = tel_get_cfg_akey();
-        ret_status = tel_get_cfg_akey();
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_get_cfg_akey_001 has failed\n");
-         tet_result(TET_FAIL);
-         }
-          else
-          {
-           tet_infoline("utc_tel_get_cfg_akey_001 has passed\n");
-           tet_result(TET_PASS);
-           }
-}
-
-
-
-/** @} */
diff --git a/TC/telephony_TC/CFG/uts_tel_get_cfg_akey.h b/TC/telephony_TC/CFG/uts_tel_get_cfg_akey.h
deleted file mode 100644 (file)
index 2382d13..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @file     uts_tel_set_cfg_default_configuration.h
-* @brief    This is the implementaion file for the test case of getting tty mode
-* @author      Gautam Nand Sinha  (gnand.sinha@samsung.com)
-* @version     Initial Creation V0.1
-* @date        2009.12.16
-*/
-
-#include <tet_api.h>
-#include <ITapiCall.h>
-#include <ITapiSs.h>
-#include <stdlib.h>
-#include <signal.h>
-#include <stdio.h>
-#include <errno.h>
-#include <sys/types.h>
-
-#include <pthread.h>
-#include "assert.h"
-#include "glib.h"
-#include "cfg_util.h"
-                        
-#include "TapiCommon.h" 
-//#include "tapi_utility.h"
-#include <gconf/gconf-client.h>
-#include "string.h"
-
-#include "tet_tapi_util.h"
-
-#ifndef _UTS_TAPI_CFG_GET_TTY_MODE_H_
-#define _UTS_TAPI_CFG_GET_TTY_MODE_H_
-
-       static void utc_tel_get_cfg_akey_000();
-       static void utc_tel_get_cfg_akey_001();
-       
-       
-
-#endif //_UTS_TAPI_CFG_GET_TTY_MODE_H_
-
diff --git a/TC/telephony_TC/CFG/uts_tel_get_cfg_hidden_menu_access.c b/TC/telephony_TC/CFG/uts_tel_get_cfg_hidden_menu_access.c
deleted file mode 100644 (file)
index 56ae4b3..0000000
+++ /dev/null
@@ -1,182 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/** 
-* @ingroup TELEPHONY_API TelephonyAPI
-* @addtogroup CONFIG Configuration
-*/
-
-/**
-* @ingroup  CONFIG Configuration
-* @addtogroup UTS_CONFIG Unit
-*/
-
-/**
-* @ingroup  UTS_CONFIG
-* @addtogroup UTS_TAPI_CFG_GET_TTY_MODE tel_get_cfg_hidden_menu_access
-* @brief Unit test cases for tel_get_cfg_hidden_menu_access()
-* @par Test function Prototype:
-*      TapiResult_t   tel_get_cfg_hidden_menu_access() 
-* @par Test function description:
-* It requests to get tty(text telephone) mode.(CDMA only)       
-* @par Important Notes:
-*      None
-* @param [out] pRequestId 
-* - Unique identifier for a particular request.
-* - request_id value can be any value from 0 to 255 if the API is returned successfully
-* - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message
-* The event associated is TAPI_EVENT_CFG_GET_TTY_MODE_CNF
-* @pre
-*      None
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully. 
-* - Refer TapiResult_t for failure and error code 
-* @{
-*/
-
-/**
-* @file        uts_tel_get_cfg_hidden_menu_access.c
-* @brief       This is a suite of unit test cases to test tel_get_cfg_hidden_menu_access() API function
-* @author      Gautam Nand Sinha  (gnand.sinha@samsung.com)
-* @version     Initial Creation V0.1
-* @date        2009.12.16
-*/
-
-
-
-#include "uts_tel_get_cfg_hidden_menu_access.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_cfg_hidden_menu_access_000, 1},
-       {utc_tel_get_cfg_hidden_menu_access_001, 2},
-        {utc_tel_get_cfg_hidden_menu_access_002, 3},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for 
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-       
-       if(tel_init() != TAPI_API_SUCCESS)
-       {
-          printf("TelTapiInit() Failed \n")
-         }
-          register_all_events();
-               
-       return;                                         
-}
-
-static void cleanup()
-{
-       deregister_all();
-       tel_deinit();
-       return;
-}
-
-
-
-void utc_tel_get_cfg_hidden_menu_access_000()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        
-        tel_set_cfg_hidden_menu_access(TAPI_CFG_HIDDEN_MENU_ENABLE);
-        ret_status = tel_get_cfg_hidden_menu_access();
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_get_cfg_hidden_menu_access_000 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_get_cfg_hidden_menu_access_000 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-
-
-void utc_tel_get_cfg_hidden_menu_access_001()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        tel_set_cfg_hidden_menu_access(TAPI_CFG_HIDDEN_MENU_DISABLE);
-        ret_status = tel_get_cfg_hidden_menu_access();
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_get_cfg_hidden_menu_access_001 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_get_cfg_hidden_menu_access_001 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_get_cfg_hidden_menu_access_002()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-      
-        tel_set_cfg_hidden_menu_access(-1);
-        ret_status = tel_get_cfg_hidden_menu_access();
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_get_cfg_hidden_menu_access_002 has failed\n");
-         tet_result(TET_FAIL);
-         }
-          else
-          {
-           tet_infoline("utc_tel_get_cfg_hidden_menu_access_002 has passed\n");
-           tet_result(TET_PASS);
-           }
-}
-
-
-/** @} */
diff --git a/TC/telephony_TC/CFG/uts_tel_get_cfg_hidden_menu_access.h b/TC/telephony_TC/CFG/uts_tel_get_cfg_hidden_menu_access.h
deleted file mode 100644 (file)
index eaea1a4..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @file     uts_tel_get_cfg_vocoder_option.h
-* @brief    This is the implementaion file for the test case of getting tty mode
-* @author      Gautam Nand Sinha  (gnand.sinha@samsung.com)
-* @version     Initial Creation V0.1
-* @date        2009.12.16
-*/
-
-#include <tet_api.h>
-#include <ITapiCall.h>
-#include <ITapiSs.h>
-#include <stdlib.h>
-#include <signal.h>
-#include <stdio.h>
-#include <errno.h>
-#include <sys/types.h>
-
-#include <pthread.h>
-#include "assert.h"
-#include "glib.h"
-#include "cfg_util.h"
-                        
-#include "TapiCommon.h" 
-//#include "tapi_utility.h"
-#include <gconf/gconf-client.h>
-#include "string.h"
-
-#include "tet_tapi_util.h"
-
-#ifndef _UTS_TEL_GET_CFG_HIDDEN_MENU_ACCESS_H_
-#define _UTS_TEL_GET_CFG_HIDDEN_MENU_ACCESS_H_
-
-       static void utc_tel_get_cfg_hidden_menu_access_000();
-       static void utc_tel_get_cfg_hidden_menu_access_001();
-        static void utc_tel_get_cfg_hidden_menu_access_002();
-        
-       
-
-#endif //_UTS_TEL_GET_CFG_HIDDEN_MENU_ACCESS_H_
-
diff --git a/TC/telephony_TC/CFG/uts_tel_get_cfg_msl_info.c b/TC/telephony_TC/CFG/uts_tel_get_cfg_msl_info.c
deleted file mode 100644 (file)
index a988594..0000000
+++ /dev/null
@@ -1,159 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/** 
-* @ingroup TELEPHONY_API TelephonyAPI
-* @addtogroup CONFIG Configuration
-*/
-
-/**
-* @ingroup  CONFIG Configuration
-* @addtogroup UTS_CONFIG Unit
-*/
-
-/**
-* @ingroup  UTS_CONFIG
-* @addtogroup UTS_TAPI_CFG_GET_TTY_MODE tel_get_cfg_msl_info
-* @brief Unit test cases for tel_get_cfg_msl_info()
-* @par Test function Prototype:
-*      TapiResult_t   tel_get_cfg_msl_info( int *pRequestID) 
-* @par Test function description:
-* It requests to get tty(text telephone) mode.(CDMA only)       
-* @par Important Notes:
-*      None
-* @param [out] pRequestId 
-* - Unique identifier for a particular request.
-* - request_id value can be any value from 0 to 255 if the API is returned successfully
-* - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message
-* The event associated is TAPI_EVENT_CFG_GET_TTY_MODE_CNF
-* @pre
-*      None
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully. 
-* - Refer TapiResult_t for failure and error code 
-* @{
-*/
-
-/**
-* @file        uts_tel_get_cfg_msl_info.c
-* @brief       This is a suite of unit test cases to test tel_get_cfg_msl_info() API function
-* @author      Gautam Nand Sinha  (gnand.sinha@samsung.com)
-* @version     Initial Creation V0.1
-* @date        2009.12.16
-*/
-
-
-
-#include "uts_tel_get_cfg_msl_info.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_cfg_msl_info_000, 1},
-       {utc_tel_get_cfg_msl_info_001, 2},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for 
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-       
-       if(tel_init() != TAPI_API_SUCCESS)
-       {
-          printf("TelTapiInit() Failed \n")
-         }
-          register_all_events();
-               
-       return;                                         
-}
-
-static void cleanup()
-{
-       deregister_all();
-       tel_deinit();
-       return;
-}
-
-
-
-void utc_tel_get_cfg_msl_info_000()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-       tel_set_cfg_default_configuration(TAPI_CFG_DEFAULT_FULL);
-        ret_status = tel_get_cfg_msl_info();
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_get_cfg_msl_info_000 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_get_cfg_msl_info_000 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-
-
-void utc_tel_get_cfg_msl_info_001()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-       ret_status = tel_get_cfg_msl_info();
-        ret_status = tel_get_cfg_msl_info();
-        ret_status = tel_get_cfg_msl_info();
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_get_cfg_msl_info_001 has failed\n");
-         tet_result(TET_FAIL);
-         }
-          else
-          {
-           tet_infoline("utc_tel_get_cfg_msl_info_001 has passed\n");
-           tet_result(TET_PASS);
-           }
-}
-
-
-
-/** @} */
diff --git a/TC/telephony_TC/CFG/uts_tel_get_cfg_msl_info.h b/TC/telephony_TC/CFG/uts_tel_get_cfg_msl_info.h
deleted file mode 100644 (file)
index 2626e1d..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @file     uts_tel_get_cfg_msl_info.h
-* @brief    This is the implementaion file for the test case of getting tty mode
-* @author      Gautam Nand Sinha  (gnand.sinha@samsung.com)
-* @version     Initial Creation V0.1
-* @date        2009.12.16
-*/
-
-#include <tet_api.h>
-#include <ITapiCall.h>
-#include <ITapiSs.h>
-#include <stdlib.h>
-#include <signal.h>
-#include <stdio.h>
-#include <errno.h>
-#include <sys/types.h>
-
-#include <pthread.h>
-#include "assert.h"
-#include "glib.h"
-#include "cfg_util.h"
-                        
-#include "TapiCommon.h" 
-//#include "tapi_utility.h"
-#include <gconf/gconf-client.h>
-#include "string.h"
-
-#include "tet_tapi_util.h"
-
-#ifndef _UTS_TAPI_GET_CFG_TMSL_INFO_H_
-#define _UTS_TAPI_GET_CFG_TMSL_INFO_H_
-
-       static void utc_tel_get_cfg_msl_info_000();
-       static void utc_tel_get_cfg_msl_info_001();
-       
-       
-
-#endif //_UTS_TAPI_GET_CFG_TMSL_INFO_H_
-
diff --git a/TC/telephony_TC/CFG/uts_tel_get_cfg_serving_carrier.c b/TC/telephony_TC/CFG/uts_tel_get_cfg_serving_carrier.c
deleted file mode 100644 (file)
index cfeefe8..0000000
+++ /dev/null
@@ -1,422 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/** 
-* @ingroup TELEPHONY_API TelephonyAPI
-* @addtogroup CONFIG Configuration
-*/
-
-/**
-* @ingroup  CONFIG Configuration
-* @addtogroup UTS_CONFIG Unit
-*/
-
-/**
-* @ingroup  UTS_CONFIG
-* @addtogroup UTS_TAPI_CFG_set_TTY_MODE tel_get_cfg_serving_carrier
-* @brief Unit test cases for tel_get_cfg_serving_carrier()
-* @par Test function Prototype:
-*      TapiResult_t   tel_get_cfg_serving_carrier( int *pRequestID) 
-* @par Test function description:
-* It requests to set tty(text telephone) mode.(CDMA only)       
-* @par Important Notes:
-*      None
-* @param [out] pRequestId 
-* - Unique identifier for a particular request.
-* - request_id value can be any value from 0 to 255 if the API is returned successfully
-* - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message
-* The event associated is TAPI_EVENT_CFG_set_TTY_MODE_CNF
-* @pre
-*      None
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully. 
-* - Refer TapiResult_t for failure and error code 
-* @{
-*/
-
-/**
-* @file        uts_tel_get_cfg_serving_carrier.c
-* @brief       This is a suite of unit test cases to test tel_get_cfg_serving_carrier() API function
-* @author      Gautam Nand Sinha  (gnand.sinha@samsung.com)
-* @version     Initial Creation V0.1
-* @date        2009.12.16
-*/
-
-
-
-#include "uts_tel_get_cfg_serving_carrier.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_cfg_serving_carrier_000, 1},
-       {utc_tel_get_cfg_serving_carrier_001, 2},
-        {utc_tel_get_cfg_serving_carrier_002, 3},
-        {utc_tel_get_cfg_serving_carrier_003, 4},
-        {utc_tel_get_cfg_serving_carrier_004, 5},
-        {utc_tel_get_cfg_serving_carrier_005, 6},
-        {utc_tel_get_cfg_serving_carrier_006, 7},
-        {utc_tel_get_cfg_serving_carrier_007, 8},
-        {utc_tel_get_cfg_serving_carrier_008, 9},
-        {utc_tel_get_cfg_serving_carrier_009, 10},
-        {utc_tel_get_cfg_serving_carrier_010, 11},
-        {utc_tel_get_cfg_serving_carrier_011, 12},
-        {utc_tel_get_cfg_serving_carrier_012, 13},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for 
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-       
-       if(tel_init() != TAPI_API_SUCCESS)
-       {
-          printf("TelTapiInit() Failed \n")
-         }
-          register_all_events();
-               
-       return;                                         
-}
-
-static void cleanup()
-{
-       deregister_all();
-       tel_deinit();
-       return;
-}
-
-
-
-void utc_tel_get_cfg_serving_carrier_000()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        tel_set_cfg_serving_carrier(TAPI_CFG_CARRIER_TEST);
-        ret_status = tel_get_cfg_serving_carrier();
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_get_cfg_serving_carrier_000 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_get_cfg_serving_carrier_000 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-
-
-void utc_tel_get_cfg_serving_carrier_001()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        tel_set_cfg_serving_carrier( TAPI_CFG_CARRIER_SKT);
-        ret_status = tel_get_cfg_serving_carrier();
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_get_cfg_serving_carrier_001 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_get_cfg_serving_carrier_001 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_get_cfg_serving_carrier_002()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        tel_set_cfg_serving_carrier(TAPI_CFG_CARRIER_KTF);
-        ret_status = tel_get_cfg_serving_carrier();
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_get_cfg_serving_carrier_002 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_get_cfg_serving_carrier_002 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_get_cfg_serving_carrier_003()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        tel_set_cfg_serving_carrier( TAPI_CFG_CARRIER_LGT);
-        ret_status = tel_get_cfg_serving_carrier();
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_get_cfg_serving_carrier_003 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_get_cfg_serving_carrier_003 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_get_cfg_serving_carrier_004()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        tel_set_cfg_serving_carrier( TAPI_CFG_CARRIER_VERIZON);
-        ret_status = tel_get_cfg_serving_carrier();
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_get_cfg_serving_carrier_004 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_get_cfg_serving_carrier_004 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_get_cfg_serving_carrier_005()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        tel_set_cfg_serving_carrier( TAPI_CFG_CARRIER_SPRINT);
-        ret_status = tel_get_cfg_serving_carrier();
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_get_cfg_serving_carrier_005 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_get_cfg_serving_carrier_005 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_get_cfg_serving_carrier_006()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        tel_set_cfg_serving_carrier( TAPI_CFG_CARRIER_ALLTEL);
-        ret_status = tel_get_cfg_serving_carrier();
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_get_cfg_serving_carrier_006 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_get_cfg_serving_carrier_006 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_get_cfg_serving_carrier_007()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        tel_set_cfg_serving_carrier(  TAPI_CFG_CARRIER_TELUS);
-        ret_status = tel_get_cfg_serving_carrier();
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_get_cfg_serving_carrier_007 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_get_cfg_serving_carrier_007 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_get_cfg_serving_carrier_008()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        tel_set_cfg_serving_carrier(TAPI_CFG_CARRIER_BMC);
-        ret_status = tel_get_cfg_serving_carrier();
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_get_cfg_serving_carrier_008 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_get_cfg_serving_carrier_008 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_get_cfg_serving_carrier_009()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        tel_set_cfg_serving_carrier( TAPI_CFG_CARRIER_ALIANT);
-        ret_status = tel_get_cfg_serving_carrier();
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_get_cfg_serving_carrier_009 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_get_cfg_serving_carrier_009 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_get_cfg_serving_carrier_010()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        tel_set_cfg_serving_carrier( TAPI_CFG_CARRIER_SASKTEL);
-        ret_status = tel_get_cfg_serving_carrier();
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_get_cfg_serving_carrier_010 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_get_cfg_serving_carrier_010 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_get_cfg_serving_carrier_011()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        tel_set_cfg_serving_carrier(  TAPI_CFG_CARRIER_MTS);
-        ret_status = tel_get_cfg_serving_carrier();
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_get_cfg_serving_carrier_011 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_get_cfg_serving_carrier_011 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_get_cfg_serving_carrier_012()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        tel_set_cfg_serving_carrier(-1);
-        ret_status = tel_get_cfg_serving_carrier();
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_get_cfg_serving_carrier_012 has failed\n");
-         tet_result(TET_FAIL);
-         }
-          else
-          {
-           tet_infoline("utc_tel_get_cfg_serving_carrier_012 has passed\n");
-           tet_result(TET_PASS);
-           }
-}
-
-
-/** @} */
diff --git a/TC/telephony_TC/CFG/uts_tel_get_cfg_serving_carrier.h b/TC/telephony_TC/CFG/uts_tel_get_cfg_serving_carrier.h
deleted file mode 100644 (file)
index 83ac180..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @file     uts_tel_get_cfg_serving_carrier.h
-* @brief    This is the implementaion file for the test case of setting tty mode
-* @author      Gautam Nand Sinha  (gnand.sinha@samsung.com)
-* @version     Initial Creation V0.1
-* @date        2009.12.16
-*/
-
-#include <tet_api.h>
-#include <ITapiCall.h>
-#include <ITapiSs.h>
-#include <stdlib.h>
-#include <signal.h>
-#include <stdio.h>
-#include <errno.h>
-#include <sys/types.h>
-
-#include <pthread.h>
-#include "assert.h"
-#include "glib.h"
-#include "cfg_util.h"
-                        
-#include "TapiCommon.h" 
-//#include "tapi_utility.h"
-#include <gconf/gconf-client.h>
-#include "string.h"
-
-#include "tet_tapi_util.h"
-
-#ifndef _UTS_TEL_GET_CFG_SERVING_CARRIER_H_
-#define _UTS_TEL_GET_CFG_SERVING_CARRIER_H_
-
-       static void utc_tel_get_cfg_serving_carrier_000();
-       static void utc_tel_get_cfg_serving_carrier_001();
-        static void utc_tel_get_cfg_serving_carrier_002();
-        static void utc_tel_get_cfg_serving_carrier_003();
-        static void utc_tel_get_cfg_serving_carrier_004();
-        static void utc_tel_get_cfg_serving_carrier_005();
-        static void utc_tel_get_cfg_serving_carrier_006();
-        static void utc_tel_get_cfg_serving_carrier_007();
-        static void utc_tel_get_cfg_serving_carrier_008();
-        static void utc_tel_get_cfg_serving_carrier_009();
-        static void utc_tel_get_cfg_serving_carrier_010();
-        static void utc_tel_get_cfg_serving_carrier_011();
-        static void utc_tel_get_cfg_serving_carrier_012();
-       
-       
-
-#endif //_UTS_TEL_GET_CFG_SERVING_CARRIER_H_
-
diff --git a/TC/telephony_TC/CFG/uts_tel_get_cfg_vocoder_option.c b/TC/telephony_TC/CFG/uts_tel_get_cfg_vocoder_option.c
deleted file mode 100644 (file)
index 7e8f744..0000000
+++ /dev/null
@@ -1,226 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/** 
-* @ingroup TELEPHONY_API TelephonyAPI
-* @addtogroup CONFIG Configuration
-*/
-
-/**
-* @ingroup  CONFIG Configuration
-* @addtogroup UTS_CONFIG Unit
-*/
-
-/**
-* @ingroup  UTS_CONFIG
-* @addtogroup UTS_TAPI_CFG_GET_TTY_MODE tel_get_cfg_vocoder_option
-* @brief Unit test cases for tel_get_cfg_vocoder_option()
-* @par Test function Prototype:
-*      TapiResult_t   tel_get_cfg_vocoder_option( int *pRequestID) 
-* @par Test function description:
-* It requests to get tty(text telephone) mode.(CDMA only)       
-* @par Important Notes:
-*      None
-* @param [out] pRequestId 
-* - Unique identifier for a particular request.
-* - request_id value can be any value from 0 to 255 if the API is returned successfully
-* - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message
-* The event associated is TAPI_EVENT_CFG_GET_TTY_MODE_CNF
-* @pre
-*      None
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully. 
-* - Refer TapiResult_t for failure and error code 
-* @{
-*/
-
-/**
-* @file        uts_tel_get_cfg_vocoder_option.c
-* @brief       This is a suite of unit test cases to test tel_get_cfg_vocoder_option() API function
-* @author      Gautam Nand Sinha  (gnand.sinha@samsung.com)
-* @version     Initial Creation V0.1
-* @date        2009.12.16
-*/
-
-
-
-#include "uts_tel_get_cfg_vocoder_option.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_cfg_vocoder_option_000, 1},
-       {utc_tel_get_cfg_vocoder_option_001, 2},
-        {utc_tel_get_cfg_vocoder_option_002, 3},
-        {utc_tel_get_cfg_vocoder_option_003, 4},
-        {utc_tel_get_cfg_vocoder_option_004, 5},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for 
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-       
-       if(tel_init() != TAPI_API_SUCCESS)
-       {
-          printf("TelTapiInit() Failed \n")
-         }
-          register_all_events();
-               
-       return;                                         
-}
-
-static void cleanup()
-{
-       deregister_all();
-       tel_deinit();
-       return;
-}
-
-
-
-void utc_tel_get_cfg_vocoder_option_000()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        tel_set_cfg_vocoder_option( TAPI_CFG_VOC_OPTION_DEFAULT);
-        ret_status = tel_get_cfg_vocoder_option();
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_get_cfg_vocoder_option_000 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_get_cfg_vocoder_option_000 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-
-
-void utc_tel_get_cfg_vocoder_option_001()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        tel_set_cfg_vocoder_option( TAPI_CFG_VOC_OPTION_EVRC);
-        ret_status = tel_get_cfg_vocoder_option();
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_get_cfg_vocoder_option_001 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_get_cfg_vocoder_option_001 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_get_cfg_vocoder_option_002()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        tel_set_cfg_vocoder_option( TAPI_CFG_VOC_OPTION_13K);
-        ret_status = tel_get_cfg_vocoder_option();
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_get_cfg_vocoder_option_002 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_get_cfg_vocoder_option_002 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_get_cfg_vocoder_option_003()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        tel_set_cfg_vocoder_option( TAPI_CFG_VOC_OPTION_8K);
-        ret_status = tel_get_cfg_vocoder_option();
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_get_cfg_vocoder_option_003 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_get_cfg_vocoder_option_003 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_get_cfg_vocoder_option_004()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        tel_set_cfg_vocoder_option( -1);
-        ret_status = tel_get_cfg_vocoder_option(); 
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_get_cfg_vocoder_option_004 has failed\n");
-         tet_result(TET_FAIL);
-         }
-          else
-          {
-           tet_infoline("utc_tel_get_cfg_vocoder_option_004 has passed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-
-/** @} */
diff --git a/TC/telephony_TC/CFG/uts_tel_get_cfg_vocoder_option.h b/TC/telephony_TC/CFG/uts_tel_get_cfg_vocoder_option.h
deleted file mode 100644 (file)
index 6645d61..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @file     uts_tel_get_cfg_vocoder_option.h
-* @brief    This is the implementaion file for the test case of getting tty mode
-* @author      Gautam Nand Sinha  (gnand.sinha@samsung.com)
-* @version     Initial Creation V0.1
-* @date        2009.12.16
-*/
-
-#include <tet_api.h>
-#include <ITapiCall.h>
-#include <ITapiSs.h>
-#include <stdlib.h>
-#include <signal.h>
-#include <stdio.h>
-#include <errno.h>
-#include <sys/types.h>
-
-#include <pthread.h>
-#include "assert.h"
-#include "glib.h"
-#include "cfg_util.h"
-                        
-#include "TapiCommon.h" 
-//#include "tapi_utility.h"
-#include <gconf/gconf-client.h>
-#include "string.h"
-
-#include "tet_tapi_util.h"
-
-#ifndef _UTS_TAPI_GET_CFG_TMSL_INFO_H_
-#define _UTS_TAPI_GET_CFG_TMSL_INFO_H_
-
-       static void utc_tel_get_cfg_vocoder_option_000();
-       static void utc_tel_get_cfg_vocoder_option_001();
-        static void utc_tel_get_cfg_vocoder_option_002();
-        static void utc_tel_get_cfg_vocoder_option_003();
-        static void utc_tel_get_cfg_vocoder_option_004();
-       
-       
-
-#endif //_UTS_TAPI_GET_CFG_TMSL_INFO_H_
-
diff --git a/TC/telephony_TC/CFG/uts_tel_set_cfg_hidden_menu_access.c b/TC/telephony_TC/CFG/uts_tel_set_cfg_hidden_menu_access.c
deleted file mode 100644 (file)
index 6471897..0000000
+++ /dev/null
@@ -1,179 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/** 
-* @ingroup TELEPHONY_API TelephonyAPI
-* @addtogroup CONFIG Configuration
-*/
-
-/**
-* @ingroup  CONFIG Configuration
-* @addtogroup UTS_CONFIG Unit
-*/
-
-/**
-* @ingroup  UTS_CONFIG
-* @addtogroup UTS_TAPI_CFG_GET_TTY_MODE tel_set_cfg_hidden_menu_access
-* @brief Unit test cases for tel_set_cfg_hidden_menu_access()
-* @par Test function Prototype:
-*      TapiResult_t   tel_set_cfg_hidden_menu_access( int *pRequestID) 
-* @par Test function description:
-* It requests to get tty(text telephone) mode.(CDMA only)       
-* @par Important Notes:
-*      None
-* @param [out] pRequestId 
-* - Unique identifier for a particular request.
-* - request_id value can be any value from 0 to 255 if the API is returned successfully
-* - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message
-* The event associated is TAPI_EVENT_CFG_GET_TTY_MODE_CNF
-* @pre
-*      None
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully. 
-* - Refer TapiResult_t for failure and error code 
-* @{
-*/
-
-/**
-* @file        uts_tel_set_cfg_hidden_menu_access.c
-* @brief       This is a suite of unit test cases to test tel_set_cfg_hidden_menu_access() API function
-* @author      Gautam Nand Sinha  (gnand.sinha@samsung.com)
-* @version     Initial Creation V0.1
-* @date        2009.12.16
-*/
-
-
-
-#include "uts_tel_set_cfg_hidden_menu_access.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_set_cfg_hidden_menu_access_000, 1},
-       {utc_tel_set_cfg_hidden_menu_access_001, 2},
-        {utc_tel_set_cfg_hidden_menu_access_002, 3},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for 
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-       
-       if(tel_init() != TAPI_API_SUCCESS)
-       {
-          printf("TelTapiInit() Failed \n")
-         }
-          register_all_events();
-               
-       return;                                         
-}
-
-static void cleanup()
-{
-       deregister_all();
-       tel_deinit();
-       return;
-}
-
-
-
-void utc_tel_set_cfg_hidden_menu_access_000()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        
-        ret_status = tel_set_cfg_hidden_menu_access(TAPI_CFG_HIDDEN_MENU_ENABLE);
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_hidden_menu_access_000 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_hidden_menu_access_000 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-
-
-void utc_tel_set_cfg_hidden_menu_access_001()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        ret_status = tel_set_cfg_hidden_menu_access(TAPI_CFG_HIDDEN_MENU_DISABLE);
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_hidden_menu_access_001 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_hidden_menu_access_001 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_set_cfg_hidden_menu_access_002()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-      
-        ret_status = tel_set_cfg_hidden_menu_access(-1);
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_hidden_menu_access_002 has failed\n");
-         tet_result(TET_FAIL);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_hidden_menu_access_002 has passed\n");
-           tet_result(TET_PASS);
-           }
-}
-
-
-/** @} */
diff --git a/TC/telephony_TC/CFG/uts_tel_set_cfg_hidden_menu_access.h b/TC/telephony_TC/CFG/uts_tel_set_cfg_hidden_menu_access.h
deleted file mode 100644 (file)
index bd2231b..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @file     uts_tel_get_cfg_vocoder_option.h
-* @brief    This is the implementaion file for the test case of getting tty mode
-* @author      Gautam Nand Sinha  (gnand.sinha@samsung.com)
-* @version     Initial Creation V0.1
-* @date        2009.12.16
-*/
-
-#include <tet_api.h>
-#include <ITapiCall.h>
-#include <ITapiSs.h>
-#include <stdlib.h>
-#include <signal.h>
-#include <stdio.h>
-#include <errno.h>
-#include <sys/types.h>
-
-#include <pthread.h>
-#include "assert.h"
-#include "glib.h"
-#include "cfg_util.h"
-                        
-#include "TapiCommon.h" 
-//#include "tapi_utility.h"
-#include <gconf/gconf-client.h>
-#include "string.h"
-
-#include "tet_tapi_util.h"
-
-#ifndef _UTS_TEL_SET_CFG_HIDDEN_MENU_ACCESS_H_
-#define _UTS_TEL_SET_CFG_HIDDEN_MENU_ACCESS_H_
-
-       static void utc_tel_set_cfg_hidden_menu_access_000();
-       static void utc_tel_set_cfg_hidden_menu_access_001();
-        static void utc_tel_set_cfg_hidden_menu_access_002();
-        
-       
-
-#endif //_UTS_TEL_SET_CFG_HIDDEN_MENU_ACCESS_H_
-
diff --git a/TC/telephony_TC/CFG/uts_tel_set_cfg_serving_carrier.c b/TC/telephony_TC/CFG/uts_tel_set_cfg_serving_carrier.c
deleted file mode 100644 (file)
index e31f268..0000000
+++ /dev/null
@@ -1,409 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/** 
-* @ingroup TELEPHONY_API TelephonyAPI
-* @addtogroup CONFIG Configuration
-*/
-
-/**
-* @ingroup  CONFIG Configuration
-* @addtogroup UTS_CONFIG Unit
-*/
-
-/**
-* @ingroup  UTS_CONFIG
-* @addtogroup UTS_TAPI_CFG_set_TTY_MODE tel_set_cfg_serving_carrier
-* @brief Unit test cases for tel_set_cfg_serving_carrier()
-* @par Test function Prototype:
-*      TapiResult_t   tel_set_cfg_serving_carrier( int *pRequestID) 
-* @par Test function description:
-* It requests to set tty(text telephone) mode.(CDMA only)       
-* @par Important Notes:
-*      None
-* @param [out] pRequestId 
-* - Unique identifier for a particular request.
-* - request_id value can be any value from 0 to 255 if the API is returned successfully
-* - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message
-* The event associated is TAPI_EVENT_CFG_set_TTY_MODE_CNF
-* @pre
-*      None
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully. 
-* - Refer TapiResult_t for failure and error code 
-* @{
-*/
-
-/**
-* @file        uts_tel_set_cfg_serving_carrier.c
-* @brief       This is a suite of unit test cases to test tel_set_cfg_serving_carrier() API function
-* @author      Gautam Nand Sinha  (gnand.sinha@samsung.com)
-* @version     Initial Creation V0.1
-* @date        2009.12.16
-*/
-
-
-
-#include "uts_tel_set_cfg_serving_carrier.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_set_cfg_serving_carrier_000, 1},
-       {utc_tel_set_cfg_serving_carrier_001, 2},
-        {utc_tel_set_cfg_serving_carrier_002, 3},
-        {utc_tel_set_cfg_serving_carrier_003, 4},
-        {utc_tel_set_cfg_serving_carrier_004, 5},
-        {utc_tel_set_cfg_serving_carrier_005, 6},
-        {utc_tel_set_cfg_serving_carrier_006, 7},
-        {utc_tel_set_cfg_serving_carrier_007, 8},
-        {utc_tel_set_cfg_serving_carrier_008, 9},
-        {utc_tel_set_cfg_serving_carrier_009, 10},
-        {utc_tel_set_cfg_serving_carrier_010, 11},
-        {utc_tel_set_cfg_serving_carrier_011, 12},
-        {utc_tel_set_cfg_serving_carrier_012, 13},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for 
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-       
-       if(tel_init() != TAPI_API_SUCCESS)
-       {
-          printf("TelTapiInit() Failed \n")
-         }
-          register_all_events();
-               
-       return;                                         
-}
-
-static void cleanup()
-{
-       deregister_all();
-       tel_deinit();
-       return;
-}
-
-
-
-void utc_tel_set_cfg_serving_carrier_000()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        ret_status = ret_status = tel_set_cfg_serving_carrier(  TAPI_CFG_CARRIER_TEST);
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_serving_carrier_000 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_serving_carrier_000 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-
-
-void utc_tel_set_cfg_serving_carrier_001()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        ret_status = tel_set_cfg_serving_carrier( TAPI_CFG_CARRIER_SKT);
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_serving_carrier_001 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_serving_carrier_001 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_set_cfg_serving_carrier_002()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        ret_status = tel_set_cfg_serving_carrier(TAPI_CFG_CARRIER_KTF);
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_serving_carrier_002 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_serving_carrier_002 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_set_cfg_serving_carrier_003()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        ret_status = tel_set_cfg_serving_carrier( TAPI_CFG_CARRIER_LGT);
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_serving_carrier_003 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_serving_carrier_003 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_set_cfg_serving_carrier_004()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        ret_status = tel_set_cfg_serving_carrier( TAPI_CFG_CARRIER_VERIZON);
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_serving_carrier_004 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_serving_carrier_004 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_set_cfg_serving_carrier_005()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        ret_status = tel_set_cfg_serving_carrier( TAPI_CFG_CARRIER_SPRINT);
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_serving_carrier_005 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_serving_carrier_005 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_set_cfg_serving_carrier_006()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        ret_status = tel_set_cfg_serving_carrier( TAPI_CFG_CARRIER_ALLTEL);
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_serving_carrier_006 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_serving_carrier_006 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_set_cfg_serving_carrier_007()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        ret_status = tel_set_cfg_serving_carrier(  TAPI_CFG_CARRIER_TELUS);
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_serving_carrier_007 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_serving_carrier_007 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_set_cfg_serving_carrier_008()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        ret_status = tel_set_cfg_serving_carrier(TAPI_CFG_CARRIER_BMC);
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_serving_carrier_008 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_serving_carrier_008 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_set_cfg_serving_carrier_009()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        ret_status = tel_set_cfg_serving_carrier( TAPI_CFG_CARRIER_ALIANT);
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_serving_carrier_009 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_serving_carrier_009 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_set_cfg_serving_carrier_010()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        ret_status = tel_set_cfg_serving_carrier( TAPI_CFG_CARRIER_SASKTEL);
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_serving_carrier_010 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_serving_carrier_010 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_set_cfg_serving_carrier_011()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        ret_status = tel_set_cfg_serving_carrier(  TAPI_CFG_CARRIER_MTS);
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_serving_carrier_011 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_serving_carrier_011 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_set_cfg_serving_carrier_012()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        ret_status = tel_set_cfg_serving_carrier(-1);
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_serving_carrier_012 has failed\n");
-         tet_result(TET_FAIL);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_serving_carrier_012 has passed\n");
-           tet_result(TET_PASS);
-           }
-}
-
-
-/** @} */
diff --git a/TC/telephony_TC/CFG/uts_tel_set_cfg_serving_carrier.h b/TC/telephony_TC/CFG/uts_tel_set_cfg_serving_carrier.h
deleted file mode 100644 (file)
index 67e8f85..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @file     uts_tel_set_cfg_serving_carrier.h
-* @brief    This is the implementaion file for the test case of setting tty mode
-* @author      Gautam Nand Sinha  (gnand.sinha@samsung.com)
-* @version     Initial Creation V0.1
-* @date        2009.12.16
-*/
-
-#include <tet_api.h>
-#include <ITapiCall.h>
-#include <ITapiSs.h>
-#include <stdlib.h>
-#include <signal.h>
-#include <stdio.h>
-#include <errno.h>
-#include <sys/types.h>
-
-#include <pthread.h>
-#include "assert.h"
-#include "glib.h"
-#include "cfg_util.h"
-                        
-#include "TapiCommon.h" 
-//#include "tapi_utility.h"
-#include <gconf/gconf-client.h>
-#include "string.h"
-
-#include "tet_tapi_util.h"
-
-#ifndef _UTS_TEL_SET_CFG_SERVING_CARRIER_H_
-#define _UTS_TEL_SET_CFG_SERVING_CARRIER_H_
-
-       static void utc_tel_set_cfg_serving_carrier_000();
-       static void utc_tel_set_cfg_serving_carrier_001();
-        static void utc_tel_set_cfg_serving_carrier_002();
-        static void utc_tel_set_cfg_serving_carrier_003();
-        static void utc_tel_set_cfg_serving_carrier_004();
-        static void utc_tel_set_cfg_serving_carrier_005();
-        static void utc_tel_set_cfg_serving_carrier_006();
-        static void utc_tel_set_cfg_serving_carrier_007();
-        static void utc_tel_set_cfg_serving_carrier_008();
-        static void utc_tel_set_cfg_serving_carrier_009();
-        static void utc_tel_set_cfg_serving_carrier_010();
-        static void utc_tel_set_cfg_serving_carrier_011();
-        static void utc_tel_set_cfg_serving_carrier_012();
-       
-       
-
-#endif //_UTS_TEL_SET_CFG_SERVING_CARRIER_H_
-
diff --git a/TC/telephony_TC/CFG/uts_tel_set_cfg_vocoder_option.c b/TC/telephony_TC/CFG/uts_tel_set_cfg_vocoder_option.c
deleted file mode 100644 (file)
index fe13b34..0000000
+++ /dev/null
@@ -1,225 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/** 
-* @ingroup TELEPHONY_API TelephonyAPI
-* @addtogroup CONFIG Configuration
-*/
-
-/**
-* @ingroup  CONFIG Configuration
-* @addtogroup UTS_CONFIG Unit
-*/
-
-/**
-* @ingroup  UTS_CONFIG
-* @addtogroup UTS_TAPI_CFG_set_TTY_MODE tel_set_cfg_vocoder_option
-* @brief Unit test cases for tel_set_cfg_vocoder_option()
-* @par Test function Prototype:
-*      TapiResult_t   tel_set_cfg_vocoder_option( int *pRequestID) 
-* @par Test function description:
-* It requests to set tty(text telephone) mode.(CDMA only)       
-* @par Important Notes:
-*      None
-* @param [out] pRequestId 
-* - Unique identifier for a particular request.
-* - request_id value can be any value from 0 to 255 if the API is returned successfully
-* - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message
-* The event associated is TAPI_EVENT_CFG_set_TTY_MODE_CNF
-* @pre
-*      None
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully. 
-* - Refer TapiResult_t for failure and error code 
-* @{
-*/
-
-/**
-* @file        uts_tel_set_cfg_vocoder_option.c
-* @brief       This is a suite of unit test cases to test tel_set_cfg_vocoder_option() API function
-* @author      Gautam Nand Sinha  (gnand.sinha@samsung.com)
-* @version     Initial Creation V0.1
-* @date        2009.12.16
-*/
-
-
-
-#include "uts_tel_set_cfg_vocoder_option.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_set_cfg_vocoder_option_000, 1},
-       {utc_tel_set_cfg_vocoder_option_001, 2},
-        {utc_tel_set_cfg_vocoder_option_002, 3},
-        {utc_tel_set_cfg_vocoder_option_003, 4},
-        {utc_tel_set_cfg_vocoder_option_004, 5},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for 
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-       
-       if(tel_init() != TAPI_API_SUCCESS)
-       {
-          printf("TelTapiInit() Failed \n")
-         }
-          register_all_events();
-               
-       return;                                         
-}
-
-static void cleanup()
-{
-       deregister_all();
-       tel_deinit();
-       return;
-}
-
-
-
-void utc_tel_set_cfg_vocoder_option_000()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        ret_status = ret_status = tel_set_cfg_vocoder_option( TAPI_CFG_VOC_OPTION_DEFAULT);
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_vocoder_option_000 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_vocoder_option_000 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-
-
-void utc_tel_set_cfg_vocoder_option_001()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        ret_status = tel_set_cfg_vocoder_option( TAPI_CFG_VOC_OPTION_EVRC);
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_vocoder_option_001 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_vocoder_option_001 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_set_cfg_vocoder_option_002()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        ret_status = tel_set_cfg_vocoder_option( TAPI_CFG_VOC_OPTION_13K);
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_vocoder_option_002 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_vocoder_option_002 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_set_cfg_vocoder_option_003()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        ret_status = tel_set_cfg_vocoder_option( TAPI_CFG_VOC_OPTION_8K);
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_vocoder_option_003 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_vocoder_option_003 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-void utc_tel_set_cfg_vocoder_option_004()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-        ret_status = tel_set_cfg_vocoder_option( -1);
-         
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_set_cfg_vocoder_option_004 has failed\n");
-         tet_result(TET_FAIL);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_cfg_vocoder_option_004 has passed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-
-/** @} */
diff --git a/TC/telephony_TC/CFG/uts_tel_set_cfg_vocoder_option.h b/TC/telephony_TC/CFG/uts_tel_set_cfg_vocoder_option.h
deleted file mode 100644 (file)
index b7f57cb..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @file     uts_tel_set_cfg_vocoder_option.h
-* @brief    This is the implementaion file for the test case of setting tty mode
-* @author      Gautam Nand Sinha  (gnand.sinha@samsung.com)
-* @version     Initial Creation V0.1
-* @date        2009.12.16
-*/
-
-#include <tet_api.h>
-#include <ITapiCall.h>
-#include <ITapiSs.h>
-#include <stdlib.h>
-#include <signal.h>
-#include <stdio.h>
-#include <errno.h>
-#include <sys/types.h>
-
-#include <pthread.h>
-#include "assert.h"
-#include "glib.h"
-#include "cfg_util.h"
-                        
-#include "TapiCommon.h" 
-//#include "tapi_utility.h"
-#include <gconf/gconf-client.h>
-#include "string.h"
-
-#include "tet_tapi_util.h"
-
-#ifndef _UTS_TEL_SET_CFG_VOCODER_OPTION_H_
-#define _UTS_TEL_SET_CFG_VOCODER_OPTION_H_
-
-       static void utc_tel_set_cfg_vocoder_option_000();
-       static void utc_tel_set_cfg_vocoder_option_001();
-        static void utc_tel_set_cfg_vocoder_option_002();
-        static void utc_tel_set_cfg_vocoder_option_003();
-        static void utc_tel_set_cfg_vocoder_option_004();
-       
-       
-
-#endif //_UTS_TEL_SET_CFG_VOCODER_OPTION_H_
-
diff --git a/TC/telephony_TC/CFG/uts_tel_verify_cfg_akey.c b/TC/telephony_TC/CFG/uts_tel_verify_cfg_akey.c
deleted file mode 100644 (file)
index 5352a4b..0000000
+++ /dev/null
@@ -1,159 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/** 
-* @ingroup TELEPHONY_API TelephonyAPI
-* @addtogroup CONFIG Configuration
-*/
-
-/**
-* @ingroup  CONFIG Configuration
-* @addtogroup UTS_CONFIG Unit
-*/
-
-/**
-* @ingroup  UTS_CONFIG
-* @addtogroup UTS_TAPI_CFG_GET_TTY_MODE tel_verify_cfg_akey
-* @brief Unit test cases for tel_verify_cfg_akey()
-* @par Test function Prototype:
-*      TapiResult_t   tel_verify_cfg_akey( int *pRequestID) 
-* @par Test function description:
-* It requests to get tty(text telephone) mode.(CDMA only)       
-* @par Important Notes:
-*      None
-* @param [out] pRequestId 
-* - Unique identifier for a particular request.
-* - request_id value can be any value from 0 to 255 if the API is returned successfully
-* - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message
-* The event associated is TAPI_EVENT_CFG_GET_TTY_MODE_CNF
-* @pre
-*      None
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully. 
-* - Refer TapiResult_t for failure and error code 
-* @{
-*/
-
-/**
-* @file        uts_tel_verify_cfg_akey.c
-* @brief       This is a suite of unit test cases to test tel_verify_cfg_akey() API function
-* @author      Gautam Nand Sinha  (gnand.sinha@samsung.com)
-* @version     Initial Creation V0.1
-* @date        2009.12.16
-*/
-
-
-
-#include "uts_tel_verify_cfg_akey.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_verify_cfg_akey_000, 1},
-       {utc_tel_verify_cfg_akey_001, 2},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for 
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-       
-       if(tel_init() != TAPI_API_SUCCESS)
-       {
-          printf("TelTapiInit() Failed \n")
-         }
-          register_all_events();
-               
-       return;                                         
-}
-
-static void cleanup()
-{
-       deregister_all();
-       tel_deinit();
-       return;
-}
-
-
-
-void utc_tel_verify_cfg_akey_000()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-        char *key = "PHONE" ;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-       tel_set_cfg_default_configuration(TAPI_CFG_DEFAULT_FULL);
-        ret_status = tel_verify_cfg_akey(key);
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_verify_cfg_akey_000 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_verify_cfg_akey_000 has failed\n");
-           tet_result(TET_FAIL);
-           }
-}
-
-
-
-void utc_tel_verify_cfg_akey_001()
-{
-       
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-       ret_status = tel_verify_cfg_akey(NULL);
-        
-        gmain_loop_for_tapi_events(TIME_DELAY);
-
-       if(ret_status  == TAPI_API_SUCCESS)
-        {\r
-        tet_infoline("utc_tel_verify_cfg_akey_001 has failed\n");
-         tet_result(TET_FAIL);
-         }
-          else
-          {
-           tet_infoline("utc_tel_verify_cfg_akey_001 has passed\n");
-           tet_result(TET_PASS);
-           }
-}
-
-
-
-/** @} */
diff --git a/TC/telephony_TC/CFG/uts_tel_verify_cfg_akey.h b/TC/telephony_TC/CFG/uts_tel_verify_cfg_akey.h
deleted file mode 100644 (file)
index 987d756..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @file     uts_tel_verify_cfg_akey.h
-* @brief    This is the implementaion file for the test case of getting tty mode
-* @author      Gautam Nand Sinha  (gnand.sinha@samsung.com)
-* @version     Initial Creation V0.1
-* @date        2009.12.16
-*/
-
-#include <tet_api.h>
-#include <ITapiCall.h>
-#include <ITapiSs.h>
-#include <stdlib.h>
-#include <signal.h>
-#include <stdio.h>
-#include <errno.h>
-#include <sys/types.h>
-
-#include <pthread.h>
-#include "assert.h"
-#include "glib.h"
-#include "cfg_util.h"
-                        
-#include "TapiCommon.h" 
-//#include "tapi_utility.h"
-#include <gconf/gconf-client.h>
-#include "string.h"
-
-#include "tet_tapi_util.h"
-
-#ifndef _UTS_TAPI_CFG_GET_TTY_MODE_H_
-#define _UTS_TAPI_CFG_GET_TTY_MODE_H_
-
-       static void utc_tel_verify_cfg_akey_000();
-       static void utc_tel_verify_cfg_akey_001();
-       
-       
-
-#endif //_UTS_TAPI_CFG_GET_TTY_MODE_H_
-
diff --git a/TC/telephony_TC/Makefile b/TC/telephony_TC/Makefile
deleted file mode 100644 (file)
index 11f69dc..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-SUBDIRS = common/unit call/unit gprs/unit network/unit power/unit sat/unit sim/unit sms/unit sound/unit ss/unit
-
-.PHONY: subdirs $(SUBDIRS)
-
-subdirs: $(SUBDIRS)
-
-$(SUBDIRS):
-       $(MAKE) -C $@
-
-clean :
-       -for d in $(SUBDIRS); do (cd $$d; $(MAKE) clean ); done
-
diff --git a/TC/telephony_TC/call/README b/TC/telephony_TC/call/README
deleted file mode 100644 (file)
index 075a6f3..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-=================================================================================
-*                                    README                                     *
-=================================================================================
-
-1. The EMAIL Test Script directory (TestCases) includes:
-
-       call/
-               |-- README                                         ; This file
-               `-- Unit                                           ; contains Unit TCs
-                   |-- makefile
-                   |-- tslist
-                   `-- Unit test case source codes
-       2 directories, 44 files
-       
-
-2. The $(TEST_ROOT) directory must includes following files:
-
-       /$(TEST_ROOT)
-               |-- tet_scen
-               |-- tetbuild.cfg
-               |-- tetclean.cfg
-               `-- tetexec.cfg
-
-=================================================================================
-*                                Preconditions                                  *
----------------------------------------------------------------------------------
-|  Before Testing Call Module, you should check the following conditions        |
-=================================================================================
-
-1. Prepare Three valid SIM cards .
-
-2. One target phone and two other phones are required to create MO/MT Call.Two extra phones are required for SWAP, HOLD, CONFERENCE and SPLIT etc functioality.
-
-3. Call waiting must be enabled if not then enable it manually.
-
-4. Modify the mobile number
-       - call_common.h [LINE 40]
-       - Followings are the macro for mobile number customized as per the country.
-               // Mobile numbers
-
-                 #define MOB_NUM1     "+919999146715"   //Used for MO call creation. Change the number according to your country.
-                 #define MOB_NUM2     "+919810971703"   //Used to divert a call to specified number. Change the number according to your country.
-                 #define DTMF_STRING  "12345"        // User can change as per their choice    
-
-5. During execution continuously watch the log file at Putty or whatever terminal used for target logging and as per the log instruction, user has to provide
-   the MT call or disconnect the call.
-
-         e,g.: log will be printed in the following fashion:
-
-
-              /****************************************/ 
-              Give a MT Call within 20 secs 
-             /****************************************/
-
-              If user sees this kind of log in putty or used terminal, user has to give a MT call within the specified time [e.g. 20 secs].
-            
-             /****************************************/ 
-             As call is answered disconnect the call
-            /****************************************/
-
-            If user see this kind of log in putty or used terminal , user has to disconnect after the call is received[ Not through target but through end user phone]
-
-            /****************************************/
-            disconnect the call
-           /****************************************/
-
-          If user see this kind of log in putty or used terminal , user has to disconnect in MO & MT scenario\92s[ Not through target but through end user phone]
-
-=================================================================================
-*                                  Change log                                   *
-=================================================================================
-1. 18-Dec-2008
-       - Initial draft.
-2. 10-Oct-2010
-       - Revised
-       
-=================================================================================
-*                                      NOTE                                     *
-=================================================================================
-1. In order to ensure successful working of the Test Scripts, please ensure that all of the IPKG files are installed normally.
-2. Testing Call Module can be executed under target system environment (not simulator).
-
diff --git a/TC/telephony_TC/call/call_common.h b/TC/telephony_TC/call/call_common.h
deleted file mode 100644 (file)
index 1e89f3c..0000000
+++ /dev/null
@@ -1,191 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _TET_TAPI_UTIL_NEW_
-#define _TET_TAPI_UTIL_NEW_
-
-#include <TelUtility.h>
-#include <TelErr.h>
-#include "TapiCommon.h"
-
-
-#define TIME_DELAY0 3000
-#define TIME_DELAY1 20000
-#define TIME_DELAY2 30000
-#define TIME_DELAY3 30000
-
-#define INVALID_CALL_HANDLE 0
-#define VALID_CALL_HANDLE      1
-
-#define MOB_NUM1 "01012345678"   //Used for MO call creation.Change the number according to your country.
-#define MOB_NUM2 "01098765432"   //Used to divert a call to specified number.Change the number according to your country.
-
-#define DTMF_STRING "12345"  // User can change as per their choice
-
-#define LOCAL_MOB_NUM     "01012345678"
-
-
-#define        MAX_NUMBER_SIZE         16
-#define TEST_INVALID_VALUE_1   -1
-#define TEST_INVALID_VALUE_2   5
-
-// TET_Error Code string return macro
-typedef struct {
-       TapiResult_t err;
-       char * string;
-}TAPI_Error_String;
-
-//#define TAPI_ERROR_MAX TAPI_API_MISC_OUTPARAM_NULL+1
-#define TAPI_ERROR_MAX 200 
-
-TAPI_Error_String g_TAPI_ErrorString[TAPI_ERROR_MAX] = {
-
-       /* #################### COMMON START ################ */
-       {TAPI_API_SUCCESS,              "TAPI_API_SUCCESS : No Error occured"},
-       {TAPI_API_INVALID_INPUT,        "TAPI_API_INVALID_INPUT : Input values are not correct in TAPI Library"},
-       {TAPI_API_INVALID_PTR,          "TAPI_API_INVALID_PTR : Invalid pointer"},
-       {TAPI_API_NOT_SUPPORTED,        "TAPI_API_NOT_SUPPORTED: The feature corresponding to requested API is not supported. This may be due to market/network/vendor reasons such as the feature is not available in the network"},
-       {TAPI_API_DEPRICATED,           "TAPI_API_DEPRICATED : This API is deprecated and will be so in future also"},
-       {TAPI_API_SYSTEM_OUT_OF_MEM,    "TAPI_API_SYSTEM_OUT_OF_MEM : Out of memory"},
-       {TAPI_API_SYSTEM_RPC_LINK_DOWN, "TAPI_API_SYSTEM_RPC_LINK_DOWN : RPC link down"},
-       {TAPI_API_MODEM_POWERED_OFF,    "TAPI_API_MODEM_POWERED_OFF : The Modem is powered off"},
-       {TAPI_API_SERVICE_NOT_READY,    "TAPI_API_SERVICE_NOT_READY : Phone was powered on, but yet to receive the power up completed notification"},
-       {TAPI_API_SERVER_FAILURE ,      "TAPI_API_SERVER_FAILURE : error occurred in Telephony server"},
-       {TAPI_API_OEM_PLUGIN_FAILURE ,  "TAPI_API_OEM_PLUGIN_FAILURE  : Plug-in layer failure"},
-       {TAPI_API_TRANSPORT_LAYER_FAILURE, "TAPI_API_TRANSPORT_LAYER_FAILURE"},
-
-       {TAPI_API_INVALID_CALL_HANDLE,  "TAPI_API_INVALID_CALL_HANDLE : Invalid call handle"},
-       {TAPI_API_INVALID_CALL_STATE,   "TAPI_API_INVALID_CALL_STATE : Invalid call state- Newly added. Need to raise a CR for this"},
-
-       {TAPI_API_INVALID_DATA_LEN,     "TAPI_API_INVALID_DATA_LEN : Invalid data length"},
-       {TAPI_API_SIM_NOT_FOUND,        "TAPI_API_SIM_NOT_FOUND : Sim is not present / removed "},
-       {TAPI_API_SIM_BUSY,             "TAPI_API_SIM_BUSY : SIM is busy"},
-       {TAPI_API_SIM_INVALID_CARD_TYPE, "TAPI_API_SIM_INVALID_CARD_TYPE : Sim card is unknown "},
-       {TAPI_API_SIM_CARD_PERMANENT_ERROR, "TAPI_API_SIM_CARD_PERMANENT_ERROR : SIM error/blocked state"},
-       {TAPI_API_SIM_NOT_INITIALIZED,  "TAPI_API_SIM_NOT_INITIALIZED : SIM has not initialized yet (waiting for PIN verifcation, etc)"},
-       {TAPI_API_REQUEST_MAX_IN_PROGRESS, "TAPI_API_REQUEST_MAX_IN_PROGRESS : Maximum number of API Request for the same service are already in progress "},
-       {TAPI_API_OFFLINE_MODE_ERROR,   "TAPI_API_OFFLINE_MODE_ERROR : OEM Telephony Provider is in Offline mode"},
-       {TAPI_EVENT_CLASS_UNKNOWN,      "TAPI_EVENT_CLASS_UNKNOWN : Event class specified is not present in Event Class list"},
-       {TAPI_EVENT_UNKNOWN,            "TAPI_EVENT_UNKNOWN : Event specified is not present in TAPI Unsolicited Event list"},
-       {TAPI_REGISTRATION_OP_FAILED,   "TAPI_REGISTRATION_OP_FAILED : Callback Registration/De-registration failed"},
-       {TAPI_NETTEXT_SCADDRESS_NOT_SET, "TAPI_NETTEXT_SCADDRESS_NOT_SET"},
-       {TAPI_API_OPERATION_FAILED,     "TAPI_API_OPERATION_FAILED"},
-       {TAPI_API_INVALID_OPERATION,    "TAPI_API_INVALID_OPERATION"},
-
-       /*    Samsung Specif   */
-    {TAPI_API_SYSTEM_RPC_LINK_NOT_EST, "TAPI_API_SYSTEM_RPC_LINK_NOT_EST"},
-       {TAPI_API_API_NOT_SUPPORTED,    "TAPI_API_API_NOT_SUPPORTED"},
-       {TAPI_API_SERVER_LAYER_FAILURE, "TAPI_API_SERVER_LAYER_FAILURE"},
-
-       /*        CALL        */
-       {TAPI_API_INVALID_CALL_ID,      "TAPI_API_INVALID_CALL_ID"},
-       {TAPI_API_CALL_CTXT_OVERFLOW,   "TAPI_API_CALL_CTXT_OVERFLOW"},
-       {TAPI_API_COULD_NOT_GET_CALL_CTXT, "TAPI_API_COULD_NOT_GET_CALL_CTXT"},
-       {TAPI_API_CTXT_SEARCH_RET_NON_CALL_CTXT, "TAPI_API_CTXT_SEARCH_RET_NON_CALL_CTXT"},
-       {TAPI_API_COULD_NOT_DESTROY_CTXT,  "TAPI_API_COULD_NOT_DESTROY_CTXT"},
-       {TAPI_API_INVALID_LINE_ID,      "TAPI_API_INVALID_LINE_ID"},
-
-       /*      POWER   */
-//     {TAPI_API_MODEM_ALREADY_ON,  "TAPI_API_MODEM_ALREADY_ON"},
-//     {TAPI_API_MODEM_ALREADY_OFF, "TAPI_API_MODEM_ALREADY_OFF"},
-
-       /* NETTEXT */
-       {TAPI_API_NETTEXT_DEVICE_NOT_READY,     "TAPI_API_NETTEXT_DEVICE_NOT_READY"},
-       {TAPI_API_NETTEXT_SCADDR_NOT_SET,       "TAPI_API_NETTEXT_SCADDR_NOT_SET"},
-       {TAPI_API_NETTEXT_INVALID_DATA_LEN,     "TAPI_API_NETTEXT_INVALID_DATA_LEN"},
-
-       /* SIM  */
-       //{TAPI_API_SIM_DEV_CTX_NULL,           "TAPI_API_SIM_DEV_CTX_NULL"},
-       //{TAPI_API_SIM_SIM_NOT_FOUND,          "TAPI_API_SIM_SIM_NOT_FOUND"},
-       {TAPI_API_SIM_SIM_SESSION_FULL,         "TAPI_API_SIM_SIM_SESSION_FULL"},
-       //{TAPI_API_SIM_INVALID_APP_ID,         "TAPI_API_SIM_INVALID_APP_ID"},
-       {TAPI_API_SIM_INVALID_SESSION,          "TAPI_API_SIM_INVALID_SESSION"},
-       {TAPI_API_SIM_FILE_TYPE_WRONG,          "TAPI_API_SIM_FILE_TYPE_WRONG"},
-       {TAPI_API_SIM_FILE_ENCODE_FAIL,         "TAPI_API_SIM_FILE_ENCODE_FAIL"},
-       {TAPI_API_SIM_FILE_DECODE_FAIL,         "TAPI_API_SIM_FILE_DECODE_FAIL"},
-       {TAPI_API_SIM_FILE_INVALID_ENCODE_LEN,  "TAPI_API_SIM_FILE_INVALID_ENCODE_LEN"},
-       {TAPI_API_SIM_INVALID_RECORD_NUM,       "TAPI_API_SIM_INVALID_RECORD_NUM"},
-       {TAPI_API_SIM_CASE_NOT_HANDLED,         "TAPI_API_SIM_CASE_NOT_HANDLED"},
-       {TAPI_API_SIM_OEM_UNKNOWN_SIM_CARD,     "TAPI_API_SIM_OEM_UNKNOWN_SIM_CARD"},
-       {TAPI_API_SIM_SEC_UKNOWN_PIN_TYPE,      "TAPI_API_SIM_SEC_UKNOWN_PIN_TYPE"},
-       {TAPI_API_SIM_SEC_INVALID_PIN_TYPE,     "TAPI_API_SIM_SEC_INVALID_PIN_TYPE"},
-       {TAPI_API_SIM_PB_INVALID_STORAGE_TYPE,  "TAPI_API_SIM_PB_INVALID_STORAGE_TYPE"},
-
-       {TAPI_API_SAT_COMMAND_TYPE_MISMATCH,    "TAPI_API_SAT_COMMAND_TYPE_MISMATCH"},
-
-       /* Network */
-       {TAPI_API_NETWORK_INVALID_CTXT,         "TAPI_API_NETWORK_INVALID_CTXT"},
-
-       /*Misc */
-       {TAPI_API_MISC_RETURN_NULL,             "TAPI_API_MISC_RETURN_NULL"},
-       {TAPI_API_MISC_VALIDITY_ERROR,          "TAPI_API_MISC_VALIDITY_ERROR"},
-       {TAPI_API_MISC_INPUTPARM_ERROR,         "TAPI_API_MISC_INPUTPARM_ERROR"},
-       {TAPI_API_MISC_OUTPARAM_NULL,           "TAPI_API_MISC_OUTPARAM_NULL"},
-};
-
-//#define TET_ERROR_TO_STRING(err) g_TAPI_ErrorString[(err)].string
-static const char* TET_ERROR_TO_STRING(TapiResult_t err_code)
-{
-       int index;
-       for( index=0; g_TAPI_ErrorString[index].err != TAPI_ERROR_MAX ; index++)
-       {
-               if (g_TAPI_ErrorString[index].err == err_code || g_TAPI_ErrorString[index].err == TAPI_ERROR_MAX)
-                       return g_TAPI_ErrorString[index].string;
-       }
-       return NULL;
-}
-
-// TET_CHECK Macro : TAPI api return value test macro. If it is not TAPI_API_SUCCESS, tet_retult(TET_FAIL) is called
-#define TET_CHECK(x1, y...) \
- { \
-   TapiResult_t err = y;\
-   if (err != (x1)) \
-       { \
-               tet_printf("%s[%d] : test fail. error code =%d [%s] ",__FILE__,__LINE__, err, TET_ERROR_TO_STRING(err) ); \
-               tet_result(TET_FAIL); \
-               return;\
-       } \
- }
-
-#define TET_CHECK2(x1,x2, y...) \
- { \
-   TapiResult_t err = y;\
-   if (!(err == (x1) || err == (x2))) \
-       { \
-               tet_printf("%s[%d] : test fail. error code =%d [%s] ",__FILE__,__LINE__, err, TET_ERROR_TO_STRING(err) ); \
-               tet_result(TET_FAIL); \
-               return;\
-       } \
- }
-
-#define TET_CHECK3(x1,x2,x3, y...) \
- { \
-   TapiResult_t err = y;\
-   if (!(err == (x1) || err == (x2) || err == (x3))) \
-       { \
-               tet_printf("%s[%d] : test fail. error code =%d [%s] ",__FILE__,__LINE__, err, TET_ERROR_TO_STRING(err) ); \
-               tet_result(TET_FAIL); \
-               return;\
-       } \
- }
-
-
-#endif //_TET_TAPI_UTIL_
diff --git a/TC/telephony_TC/call/unit/makefile b/TC/telephony_TC/call/unit/makefile
deleted file mode 100644 (file)
index b775530..0000000
+++ /dev/null
@@ -1,133 +0,0 @@
-CC=gcc -Wall
-
-TS1  = uts_tel_exe_call_mo
-TS2  = uts_tel_answer_call
-TS3  = uts_tel_release_call
-TS4  = uts_tel_release_call_all
-TS5  = uts_tel_retrieve_call
-TS6  = uts_tel_hold_call
-TS7  = uts_tel_swap_call
-TS8  = uts_tel_join_call
-TS9  = uts_tel_split_call
-TS10  = uts_tel_exe_call_explicit_transfer
-TS11  = uts_tel_get_call_act_line
-TS12  = uts_tel_set_call_act_line
-TS13  = uts_tel_get_call_conf_list
-TS14  = uts_tel_get_call_status
-TS15  = uts_tel_get_call_duration
-TS16  = uts_tel_send_call_dtmf
-TS17  = uts_tel_release_call_all_active
-TS18  = uts_tel_release_call_all_held
-//TS19  = uts_tapi_check_status
-TS20  = uts_tel_exit_call_emergency_mode
-TS21  = uts_tel_exe_call_flash
-TS22  = uts_tel_get_call_privacy_mode
-TS23  = uts_tel_set_call_privacy_mode
-TS24  = uts_tel_get_call_time
-TS25  = uts_tel_activate_call_ccbs
-TS26  = uts_tel_deflect_call
-
-LB1  = tapi_callback
-
-LIBS =$(LB1).o
-LIBS += `pkg-config --libs  gconf-2.0 dbus-1 dbus-glib-1 glib-2.0 gthread-2.0 tapi` 
-
-LIBS +=$(TET_ROOT)/lib/tet3/tcm.o
-LIBS +=-L$(TET_ROOT)/lib/tet3 -lapi
-
-INCS =  -I. `pkg-config --cflags  gconf-2.0 glib-2.0 dbus-1 dbus-glib-1 gthread-2.0 tapi`
-INCS += -I$(TET_ROOT)/inc/tet3 
-INCS += -I..
-
-CFLAGS += $(INCS) -D__arm__ -D_ARM_TOUCH -DTELEPHONY_TIMER
-CC +=$(CFLAGS)
-LDFLAGS = $(LIBS)
-
-all : $(LB1) $(TS1) $(TS2) $(TS3) $(TS4) $(TS5) $(TS6) $(TS7) $(TS8) $(TS9) $(TS10) $(TS11) $(TS12) $(TS13) $(TS14) $(TS15) $(TS16) $(TS17) $(TS18) $(TS20)   $(TS21)   $(TS22) $(TS23) $(TS24) $(TS25) $(TS26)  
-
-
-clean :
-       rm -rf *~ *.o tet_lock tet_captured $(LB1) $(TS1) $(TS2) $(TS3) $(TS4) $(TS5) $(TS6) $(TS7) $(TS8) $(TS9) $(TS10) $(TS11) $(TS12)  $(TS13) $(TS14) $(TS15) $(TS16) $(TS17) $(TS18) $(TS20)   $(TS21)   $(TS22) $(TS23) $(TS24) $(TS25) $(TS26)  
-
-
-$(LB1): $(LB1).c
-       $(CC) -c $(LB1).c
-
-$(TS1): $(TS1).c $(LB1)
-       $(CC) -o $(TS1) $(TS1).c  $(LDFLAGS)
-
-$(TS2): $(TS2).c $(LB1)
-       $(CC) -o $(TS2) $(TS2).c  $(LDFLAGS)
-
-$(TS3): $(TS3).c $(LB1)
-       $(CC) -o $(TS3) $(TS3).c  $(LDFLAGS)
-
-$(TS4): $(TS4).c $(LB1)
-       $(CC) -o $(TS4) $(TS4).c  $(LDFLAGS)
-
-$(TS5): $(TS5).c $(LB1)
-       $(CC) -o $(TS5) $(TS5).c  $(LDFLAGS)
-
-$(TS6): $(TS6).c $(LB1)
-       $(CC) -o $(TS6) $(TS6).c  $(LDFLAGS)
-
-$(TS7): $(TS7).c $(LB1)
-       $(CC) -o $(TS7) $(TS7).c  $(LDFLAGS)
-
-$(TS8): $(TS8).c $(LB1)
-       $(CC) -o $(TS8) $(TS8).c  $(LDFLAGS)
-
-$(TS9): $(TS9).c $(LB1)
-       $(CC) -o $(TS9) $(TS9).c  $(LDFLAGS)
-
-$(TS10): $(TS10).c $(LB1)
-       $(CC) -o $(TS10) $(TS10).c  $(LDFLAGS)
-
-$(TS11): $(TS11).c $(LB1)
-       $(CC) -o $(TS11) $(TS11).c  $(LDFLAGS)
-
-$(TS12): $(TS12).c $(LB1)
-       $(CC) -o $(TS12) $(TS12).c  $(LDFLAGS)
-
-$(TS13): $(TS13).c $(LB1)
-       $(CC) -o $(TS13) $(TS13).c  $(LDFLAGS)
-
-
-$(TS14): $(TS14).c $(LB1)
-       $(CC) -o $(TS14) $(TS14).c  $(LDFLAGS)
-
-$(TS15): $(TS15).c $(LB1)
-       $(CC) -o $(TS15) $(TS15).c  $(LDFLAGS)
-
-$(TS16): $(TS16).c $(LB1)
-       $(CC) -o $(TS16) $(TS16).c  $(LDFLAGS)
-
-$(TS17): $(TS17).c $(LB1)
-       $(CC) -o $(TS17) $(TS17).c  $(LDFLAGS)
-
-$(TS18): $(TS18).c $(LB1)
-       $(CC) -o $(TS18) $(TS18).c  $(LDFLAGS)
-
-#$(TS19): $(TS19).c $(LB1)
-#      $(CC) -o $(TS19) $(TS19).c  $(LDFLAGS)
-
-$(TS20): $(TS20).c $(LB1)
-       $(CC) -o $(TS20) $(TS20).c  $(LDFLAGS)
-
-$(TS21): $(TS21).c $(LB1)
-       $(CC) -o $(TS21) $(TS21).c  $(LDFLAGS)
-
-$(TS22): $(TS22).c $(LB1)
-       $(CC) -o $(TS22) $(TS22).c  $(LDFLAGS)
-
-$(TS23): $(TS23).c $(LB1)
-       $(CC) -o $(TS23) $(TS23).c  $(LDFLAGS)
-
-$(TS24): $(TS24).c $(LB1)
-       $(CC) -o $(TS24) $(TS24).c  $(LDFLAGS)
-
-$(TS25): $(TS25).c $(LB1)
-       $(CC) -o $(TS25) $(TS25).c  $(LDFLAGS)
-
-$(TS26): $(TS26).c $(LB1)
-       $(CC) -o $(TS26) $(TS26).c  $(LDFLAGS)
diff --git a/TC/telephony_TC/call/unit/tapi_callback.c b/TC/telephony_TC/call/unit/tapi_callback.c
deleted file mode 100644 (file)
index 8c04955..0000000
+++ /dev/null
@@ -1,309 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "tapi_callback.h"
-
-GMainLoop *main_loop = NULL;
-TS_UINT g_CallHandle = -1;
-TS_BOOL call_status = FALSE;
-/***** TESTING FOR VALID SET OF INPTS*****/
-
-TS_UINT conf_call_handle=-1 ;
-static unsigned int subscription_id[32]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
-
-int expected_event;
-
-void  app_callback  (TelTapiEvent_t * TapiEvent)
-{
-
-       int     eventClass;
-       int     eventType;
-       int                     requestId;
-       int                     status;
-       void                    *EventData = NULL;
-
-       TS_UINT callHandle;
-
-       eventClass = TapiEvent->EventClass;
-       eventType = TapiEvent->EventType;
-       requestId = TapiEvent->RequestId;
-       status = TapiEvent->Status;
-       EventData = TapiEvent->pData;
-
-       CALL_TEST_DEBUG("Class:[%d], Event Type:[%d], RequestId:[%d], Status:[%d] \n", eventClass, eventType , requestId,                               status );
-       if( EventData==NULL)
-       {
-               CALL_TEST_DEBUG("******  EventData is NULL.........   ******\n");
-       }
-
-       switch(eventClass)
-       {
-               case TAPI_EVENT_CLASS_CALL_VOICE:
-               case TAPI_EVENT_CLASS_CALL_DATA:
-               {
-
-                       switch(eventType)
-                       {
-
-                               case  TAPI_EVENT_CALL_SETUP_CNF:
-                                       memcpy(&callHandle, EventData, sizeof(TS_UINT));
-                                       CALL_TEST_DEBUG(" === TAPI_EVENT_CALL_SETUP_CNF. callHandle:[%d]\n",callHandle);
-                                       break;
-
-
-                               case TAPI_EVENT_CALL_ALERT_IND:
-                                       memcpy(&callHandle, EventData, sizeof(TS_UINT));
-                                       CALL_TEST_DEBUG(" === TAPI_EVENT_CALL_ALERT_IND. callHandle:[%d]\n",callHandle);
-                                       break;
-
-                               case TAPI_EVENT_CALL_INCOM_IND:
-                                       memcpy(&callHandle, EventData, sizeof(TS_UINT));
-                                       g_CallHandle = callHandle;
-                                       CALL_TEST_DEBUG(" === TAPI_EVENT_CALL_INCOM_IND. callHandle:[%d]\n",callHandle);
-                                       break;
-
-                               case TAPI_EVENT_CALL_ANSWER_CNF:
-                                       memcpy(&callHandle, EventData, sizeof(TS_UINT));
-                                       CALL_TEST_DEBUG(" === TAPI_EVENT_CALL_ANSWER_CNF. callHandle:[%d]\n",callHandle);
-                                       break;
-
-                               case TAPI_EVENT_CALL_WAITING_IND:
-                                       memcpy(&callHandle, EventData, sizeof(TS_UINT));
-                                       CALL_TEST_DEBUG(" === TAPI_EVENT_CALL_WAITING_IND. callHandle:[%d]\n",callHandle);
-                                       break;
-
-                               case TAPI_EVENT_CALL_CONNECTED_IND:
-
-                                       memcpy(&callHandle, EventData, sizeof(TS_UINT));
-                                       CALL_TEST_DEBUG(" === TAPI_EVENT_CALL_CONNECTED_IND. callHandle:[%d]\n",callHandle);
-                                       break;
-
-                               case TAPI_EVENT_CALL_CONNECTING_IND:
-                                       memcpy(&callHandle, EventData, sizeof(TS_UINT));
-                                       CALL_TEST_DEBUG(" === TAPI_EVENT_CALL_CONNECTING_IND. callHandle:[%d]\n",callHandle);
-                                       break;
-
-                               case TAPI_EVENT_CALL_RETRIEVE_CNF:
-                                       memcpy(&callHandle, EventData, sizeof(TS_UINT));
-                                       CALL_TEST_DEBUG(" === TAPI_EVENT_CALL_RETRIEVE_CNF. callHandle:[%d]\n",callHandle);
-                                       break;
-
-                               case TAPI_EVENT_CALL_HOLD_CNF:
-                                       memcpy(&callHandle, EventData, sizeof(TS_UINT));
-                                       CALL_TEST_DEBUG(" === TAPI_EVENT_CALL_HOLD_CNF. callHandle:[%d]\n",callHandle);
-                                       break;
-
-                               case TAPI_EVENT_CALL_SETUPCONFERENCE_CNF:
-                                       memcpy(&callHandle, EventData, sizeof(TS_UINT));
-                                       conf_call_handle = callHandle;
-                                       CALL_TEST_DEBUG(" === TAPI_EVENT_CALL_SETUPCONFERENCE_CNF. callHandle:[%d]\n",callHandle);
-                                       break;
-
-                               case TAPI_EVENT_CALL_SPLITCONFERENCE_CNF:
-                                       memcpy(&callHandle, EventData, sizeof(TS_UINT));
-
-                                       CALL_TEST_DEBUG(" === TAPI_EVENT_CALL_SPLITCONFERENCE_CNF. callHandle:[%d]\n",callHandle);
-                                       break;
-
-                               case TAPI_EVENT_CALL_TRANSFER_CNF:
-                                       memcpy(&callHandle, EventData, sizeof(TS_UINT));
-                                       CALL_TEST_DEBUG(" === TAPI_EVENT_CALL_TRANSFER_CNF. callHandle:[%d]\n",callHandle);
-                                       break;
-
-                               case TAPI_EVENT_CALL_SEND_DTMF_CNF: // no data.
-                                       CALL_TEST_DEBUG(" === TAPI_EVENT_CALL_SEND_DTMF_CNF. \n");
-                                       break;
-
-                               case TAPI_EVENT_CALL_RELEASE_CNF:
-                                       memcpy(&callHandle, EventData, sizeof(TS_UINT));
-                                       CALL_TEST_DEBUG(" === TAPI_EVENT_CALL_RELEASE_CNF. callHandle:[%d]\n",callHandle);
-                                       break;
-
-                               case TAPI_EVENT_CALL_RELEASE_ALL_CNF: // no data.
-                                       CALL_TEST_DEBUG(" === TAPI_EVENT_CALL_RELEASE_ALL_CNF. \n");
-                                       break;
-
-                               case TAPI_EVENT_CALL_END_IND:
-                                       memcpy(&callHandle, EventData, sizeof(TS_UINT));
-                                       CALL_TEST_DEBUG(" === TAPI_EVENT_CALL_END_IND. callHandle:[%d]\n",callHandle);
-                                       call_status = TRUE;
-                                       break;
-
-                               case TAPI_EVENT_CALL_SET_LINEID_CNF:
-                                       memcpy(&callHandle, EventData, sizeof(TS_UINT));
-                                       CALL_TEST_DEBUG(" === TAPI_EVENT_CALL_SET_LINEID_CNF. callHandle:[%d]\n",callHandle);
-                                       call_status = TRUE;
-                                       break;
-
-                               case TAPI_EVENT_CALL_GET_LINEID_CNF:
-                                       memcpy(&callHandle, EventData, sizeof(TS_UINT));
-                                       CALL_TEST_DEBUG(" === TAPI_EVENT_CALL_GET_LINEID_CNF. callHandle:[%d]\n",callHandle);
-                                       call_status = TRUE;
-                                       break;
-
-                               case TAPI_EVENT_CALL_RELEASE_ALL_HELD_CNF:
-                                       CALL_TEST_DEBUG(" === TAPI_EVENT_CALL_RELEASE_ALL_HELD_CNF\n");
-                                       call_status = TRUE;
-                                       break;
-
-                               default:
-                                       CALL_TEST_DEBUG(" === VOICE EVENT CLASS. but UNKNOWN EVENT TYPE:[%d] \n", eventType);
-                                       call_status = FALSE;
-                                       break;
-
-                       }
-                        break;
-               }
-               default:
-                       CALL_TEST_DEBUG(" UNKNOWN EVENT CLASS:[%d] \n", eventClass);
-                       break;
-
-       }
-       if(eventType == expected_event)
-               g_main_loop_quit(main_loop);
-}
-
-gboolean
-TimeOutFun (void *data)
-{
-       g_main_loop_quit (main_loop);
-       printf ("Exit from this callback\n");
-       call_status = FALSE;
-       return FALSE;
-
-
-}
-
-int gmain_loop_for_tapi_events(int delay)
-{
-
-       main_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add (delay, TimeOutFun, NULL);
-       g_main_loop_run (main_loop);
-
-       return 0;
-
-
-}
-
-
-
-
-
-void print_all_subsciption_ids()
-{
-       int i=0;
-       for(i=0;i<27;i++)
-       {
-               printf("\n subscription_id[%d] has value %d \n",i,subscription_id[i]);
-       }
-}
-
-TapiResult_t register_all_events()
-{
-       TapiResult_t api_err = TAPI_API_SUCCESS;
-
-       api_err = tel_register_event(TAPI_EVENT_CALL_SETUP_CNF, &subscription_id[0], (TelAppCallback)&app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_CALL_ALERT_IND, &subscription_id[1], (TelAppCallback)&app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_CALL_CONNECTING_IND, &subscription_id[2], (TelAppCallback)&app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_CALL_CONNECTED_IND, &subscription_id[3], (TelAppCallback)&app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_CALL_INCOM_IND, &subscription_id[4], (TelAppCallback)&app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_CALL_ANSWER_CNF, &subscription_id[5], (TelAppCallback)&app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_CALL_RETRIEVE_CNF, &subscription_id[6], (TelAppCallback)&app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_CALL_RETRIEVE_IND, &subscription_id[7], (TelAppCallback)&app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_CALL_HOLD_IND, &subscription_id[8], (TelAppCallback)&app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_CALL_HOLD_CNF, &subscription_id[9], (TelAppCallback)&app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_CALL_TRANSFER_CNF, &subscription_id[10], (TelAppCallback)&app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_CALL_TRANSFER_IND, &subscription_id[11], (TelAppCallback)&app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_CALL_SETUPCONFERENCE_CNF, &subscription_id[12], (TelAppCallback)&app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_CALL_SETUPCONFERENCE_IND, &subscription_id[13], (TelAppCallback)&app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_CALL_SPLITCONFERENCE_CNF, &subscription_id[14], (TelAppCallback)&app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_CALL_SEND_DTMF_CNF, &subscription_id[15], (TelAppCallback)&app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_CALL_WAITING_IND, &subscription_id[16], (TelAppCallback)&app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_CALL_FORWARD_IND, &subscription_id[17], (TelAppCallback)&app_callback,NULL);
-       //api_err = tel_register_event(TAPI_EVENT_CALL_USERINFO_IND, &subscription_id[18], (TelAppCallback)&app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_CALL_RELEASE_CNF, &subscription_id[19], (TelAppCallback)&app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_CALL_RELEASE_ALL_CNF, &subscription_id[20], (TelAppCallback)&app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_CALL_RELEASE_ALL_ACTIVE_CNF, &subscription_id[21], (TelAppCallback)&app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_CALL_END_IND, &subscription_id[22], (TelAppCallback)&app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_CALL_GET_LINEID_CNF, &subscription_id[23], (TelAppCallback)&app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_CALL_SET_LINEID_CNF, &subscription_id[24], (TelAppCallback)&app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_CALL_SWAP_CNF, &subscription_id[25], (TelAppCallback)&app_callback,NULL);
-       /* For multiparty call */
-       api_err = tel_register_event(TAPI_EVENT_SS_WAITING_CNF, &subscription_id[26], (TelAppCallback)&app_callback,NULL);
-
-       /* For multiparty call */
-       api_err = tel_register_event(TAPI_EVENT_CALL_RELEASE_ALL_HELD_CNF, &subscription_id[27], (TelAppCallback)&app_callback,NULL);
-
-//     api_err = tel_register_event(TAPI_EVENT_CALL_EXIT_EMERGENCYMODE_CNF, &subscription_id[28], (TelAppCallback)&app_callback,NULL);
-
-       api_err = tel_register_event(TAPI_EVENT_CALL_FLASHINFO_CNF, &subscription_id[28], (TelAppCallback)&app_callback,NULL);
-
-//     api_err = tel_register_event(TAPI_EVENT_CALL_SET_PRIVACYMODE_CNF, &subscription_id[30], (TelAppCallback)&app_callback,NULL);
-
-//     api_err = tel_register_event(TAPI_EVENT_CALL_GET_PRIVACYMODE_CNF, &subscription_id[31], (TelAppCallback)&app_callback,NULL);
-
-
-//     print_all_subsciption_ids();
-       return api_err;
-}
-
-
- TapiResult_t deregister_all()
-{
-       TapiResult_t api_err = TAPI_API_SUCCESS;
-
-       api_err = tel_deregister_event(subscription_id[0]);
-       api_err = tel_deregister_event(subscription_id[1]);
-       api_err = tel_deregister_event(subscription_id[2]);
-       api_err = tel_deregister_event(subscription_id[3]);
-       api_err = tel_deregister_event(subscription_id[4]);
-       api_err = tel_deregister_event(subscription_id[5]);
-       api_err = tel_deregister_event(subscription_id[6]);
-       api_err = tel_deregister_event(subscription_id[7]);
-       api_err = tel_deregister_event(subscription_id[8]);
-       api_err = tel_deregister_event(subscription_id[9]);
-       api_err = tel_deregister_event(subscription_id[10]);
-       api_err = tel_deregister_event(subscription_id[11]);
-       api_err = tel_deregister_event(subscription_id[12]);
-       api_err = tel_deregister_event(subscription_id[13]);
-       api_err = tel_deregister_event(subscription_id[14]);
-       api_err = tel_deregister_event(subscription_id[15]);
-       api_err = tel_deregister_event(subscription_id[16]);
-       api_err = tel_deregister_event(subscription_id[17]);
-       api_err = tel_deregister_event(subscription_id[18]);
-       api_err = tel_deregister_event(subscription_id[19]);
-       api_err = tel_deregister_event(subscription_id[20]);
-       api_err = tel_deregister_event(subscription_id[21]);
-       api_err = tel_deregister_event(subscription_id[22]);
-       api_err = tel_deregister_event(subscription_id[23]);
-       api_err = tel_deregister_event(subscription_id[24]);
-       api_err = tel_deregister_event(subscription_id[25]);
-       api_err = tel_deregister_event(subscription_id[26]);
-       api_err = tel_deregister_event(subscription_id[27]);
-//     api_err = tel_deregister_event(subscription_id[28]);
-       api_err = tel_deregister_event(subscription_id[28]);
-///    api_err = tel_deregister_event(subscription_id[30]);
-//     api_err = tel_deregister_event(subscription_id[31]);
-
-       return api_err;
-
-}
-
diff --git a/TC/telephony_TC/call/unit/tapi_callback.h b/TC/telephony_TC/call/unit/tapi_callback.h
deleted file mode 100644 (file)
index 021b7c6..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef        __UTS_TAPI_COMMON_H_
-#define   __UTS_TAPI_COMMON_H_
-
-/*  Includes */
-
-#include <stdio.h>
-#include <errno.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <glib-2.0/glib.h>
-#include <pthread.h>
-#include <stdio.h>
-
-#include <ITapiCall.h>
-#include <TapiCommon.h>
-
-
-
-#define CALL_TEST_DEBUG(fmt, args...)  \
-       printf("[%s %s:%d]\n" fmt "\n",__FILE__, __FUNCTION__,  __LINE__, ##args); 
-
-extern int gmain_loop_for_tapi_events(int delay);
-
-extern void  app_callback  (TelTapiEvent_t * TapiEvent);
-extern gboolean TimeOutFun (void *data);
-
-
-extern TapiResult_t register_all_events();
-
-extern TapiResult_t deregister_all();
-
-void print_all_subsciption_ids();
-
-
-#endif
diff --git a/TC/telephony_TC/call/unit/tslist b/TC/telephony_TC/call/unit/tslist
deleted file mode 100644 (file)
index 1c6d5c4..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-/call/unit/uts_tel_get_call_time
-#//call/unit/uts_tel_exe_call_flash
-#//call/unit/uts_tel_exit_call_emergency_mode
-#//call/unit/uts_tel_get_call_privacy_mode
-#//call/unit/uts_tel_set_call_privacy_mode
-#//call/unit/uts_tel_answer_call
-/call/unit/uts_tel_exe_call_mo
-/call/unit/uts_tel_release_call
-/call/unit/uts_tel_release_call_all
-/call/unit/uts_tel_release_call_all_active
-/call/unit/uts_tel_hold_call
-/call/unit/uts_tel_retrieve_call
-/call/unit/uts_tel_swap_call
-/call/unit/uts_tel_send_call_dtmf
-/call/unit/uts_tel_join_call
-/call/unit/uts_tel_split_call
-/call/unit/uts_tel_get_call_act_line
-#//call/unit/uts_tel_exe_call_explicit_transfer
-/call/unit/uts_tel_get_call_status
-/call/unit/uts_tel_get_call_duration
-/call/unit/uts_tel_get_call_conf_list
-/call/unit/uts_tel_set_call_act_line
diff --git a/TC/telephony_TC/call/unit/uts_tapi_check_status.c b/TC/telephony_TC/call/unit/uts_tapi_check_status.c
deleted file mode 100644 (file)
index b363c54..0000000
+++ /dev/null
@@ -1,126 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <TapiCommon.h>
-#include "uts_tapi_check_status.h"
-
-
-/* Initialize TCM data structures */
-
-
-
-
-
-/*
-*  tapi_api_err_t tel_exe_call_mo(tel_exe_call_mo_info_t const * const ptr_call_setup_info,
-*              tapi_call_handle *ptr_call_handle);
-*/
-
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-extern int expected_event;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)
-       {
-               printf("tel_init() Failed ret_status = %d \n",ret_status);
-       }
-
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-       if(tel_get_app_name(&dname))
-               printf("Dbus Get app name error\n");
-       else 
-               printf("Dbus Name is %s\n",dname.name);
-               
-       tel_check_service_ready(&bStatus);
-       printf("Telephpny service  %d\n",bStatus);
-
-       g_CallHandle = -1;
-}
-
-static void cleanup()
-{
-       deregister_all();
-
-       tel_deinit();
-}
-
-/**
- * @brief This tests tapi_common_check_status() API in normal conditions
- * @par ID:
- * UTC_TAPI_CHECK_STATUS_01
- * @param [out] status 
- * @return TAPI_API_SUCCESS
-*/
-
-/***** TESTING FOR VALID SET OF INPUTS*****/
-
-void utc_tapi_check_status_01()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       TS_BOOL * status;
-       ret_status = tapi_common_check_status(&status);
-       if(ret_status !=TAPI_API_SUCCESS)
-       {
-               tet_result(TET_FAIL);
-       }       
-       printf("utc_tapi_check_status_01 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-/**
- * @brief This tests tapi_common_check_status() API in abnormal conditions 
- * @par ID:
- * UTC_TAPI_CHECK_STATUS_02
- * @param [out] status 
- * @return TAPI_API_FAILURE
-*/
-
-/***** TESTING FOR VALID SET OF INPUTS*****/
-
-void utc_tapi_check_status_02()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       
-       ret_status = tapi_common_check_status(NULL);
-       
-       if(ret_status ==TAPI_API_SUCCESS)
-       {
-               tet_result(TET_FAIL);
-       }
-       printf("utc_tapi_check_status_02 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-
diff --git a/TC/telephony_TC/call/unit/uts_tapi_check_status.h b/TC/telephony_TC/call/unit/uts_tapi_check_status.h
deleted file mode 100644 (file)
index 3a77f2b..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef        __UTS_TAPI_CHECK_STATUS_H_
-#define   __UTS_TAPI_CHECK_STATUS_H_
-
-#include "tapi_callback.h"
-#include <tet_api.h>
-#include "call_common.h"
-//#include <ITapi_common.h>
-
-extern TS_UINT g_CallHandle;
-extern TS_BOOL call_status;
-
-       static void utc_tapi_check_status_01(void);
-       static void utc_tapi_check_status_02(void);
-
-       static void startup();
-
-       static void cleanup();
-
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tapi_check_status_01, 1},
-       {utc_tapi_check_status_02, 2},
-       {NULL, 0}
-       };
-
-#endif
-
-/**
- * @}
- */
diff --git a/TC/telephony_TC/call/unit/uts_tel_activate_call_ccbs.c b/TC/telephony_TC/call/unit/uts_tel_activate_call_ccbs.c
deleted file mode 100644 (file)
index bdb2519..0000000
+++ /dev/null
@@ -1,266 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-/**\r
-* @ingroup     TELEPHONY_FRAMEWORK_API\r
-* @addtogroup  CALL\r
-*/\r
-\r
-/**\r
-* @ingroup     CALL\r
-* @addtogroup  UTS_TEL_ACTIVE_CALL_CCBS Unit\r
-*/\r
-\r
-/**\r
-* @ingroup     UTS_TEL_ACTIVE_CALL_CCBS Unit\r
-* @addtogroup  UTS_TEL_ACTIVE_CALL_CCBS_ Uts_Tel_Active_Call_Ccbs\r
-* @{\r
-*/\r
-\r
-/**\r
-* @file uts_tel_activate_call_ccbs.c\r
-* @brief This is a suit of unit test cases to test tel_activate_call_ccbs() API function\r
-* @author Gautam Nand Sinha (gnand.sinha@samsung.com)\r
-* @version Initial Creation Version 0.1\r
-* @date 2010.06.29\r
-*/
-
-#include "uts_tel_activate_call_ccbs.h"
-
-
-/* Initialize TCM data structures */
-
-
-
-
-
-/*
-*    TapiResult_t      tel_activate_call_ccbs(unsigned int call_handle, int *pRequestID)
-*/
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-
-extern int expected_event;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)
-       {
-               tet_printf("tel_init() Failed ret_status = %d \n",ret_status);
-       }
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-       if(tel_get_app_name(&dname))
-               printf("Dbus Get app name error\n");
-       else 
-               printf("Dbus Name is %s\n",dname.name);
-               
-       tel_check_service_ready(&bStatus);
-       printf("Telephpny service  %d\n",bStatus);
-
-       g_CallHandle = -1;
-}
-
-static void cleanup()
-{
-       int RequestId;
-       tel_release_call_all(&RequestId);
-       expected_event = TAPI_EVENT_CALL_END_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-       deregister_all();
-
-       tel_deinit();
-
-}
-
-
-/**
- * @brief This tests tel_activate_call_ccbs() API in normal conditions
- * @par ID:
- * UTC_TEL_DEFLECT_CALL_01
- * @param [in] CallHandle = callhandle
- * @param [out] pCallStatus = &CallStatus
-* @return TAPI_API_SUCCESS
-*/
-
-void utc_tel_activate_call_ccbs_01()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       int  RequestId = -1;
-       TS_UINT call_handle;
-        TelCallDeflectDstInfo_t info;
-       TelCallStatus_t CallStatus;
-       TelCallSetupParams_t setup_call_info;
-       char normal[16] = MOB_NUM1;
-
-       memset(&setup_call_info, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info.CallType = TAPI_CALL_TYPE_VOICE;   //VOICE CALL
-       strncpy(setup_call_info.szNumber, normal, 13);
-       tet_printf("called number = %s\n", setup_call_info.szNumber);
-
-       //setup_call_info.IdentityMode = TAPI_CALL_IDENTITY_SHOW;
-
-       tel_exe_call_mo(&setup_call_info, &call_handle, &RequestId);
-
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       RequestId = -1;
-
-       ret_status  = tel_activate_call_ccbs (call_handle,&RequestId);
-
-       tet_printf ("bMoCall = %d \n pNumber = %s\n CallType = %d\n allActiveState=%d\n CallState =%d\n bConferenceState =%d\n", CallStatus.bMoCall, CallStatus.pNumber, CallStatus.CallType, CallStatus.CallActiveState, CallStatus.CallState, CallStatus.bConferenceState);
-
-       
-        if(ret_status == TAPI_API_SUCCESS)
-        { 
-        tet_printf("utc_tel_activate_call_ccbs_01 has passed and Data in ret_status is %d\n", ret_status);
-        tet_result(TET_PASS);
-        }
-         else
-          { 
-          tet_printf("utc_tel_activate_call_ccbs_01 has failed and Data in ret_status is %d\n", ret_status);
-          tet_result(TET_FAIL);
-           }
-         
-
-       
-}
-
-/**
- * @brief This tests tel_activate_call_ccbs() API in normal conditions
- * @par ID:
- * UTC_TEL_DEFLECT_CALL_02
- * @param [in] CallHandle = callhandle
- * @param [out] pCallStatus = NULL
-* @return TAPI_API_INVALID_CALL_HANDLE
-*/
-
-void utc_tel_activate_call_ccbs_02()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       int  RequestId = -1;
-       TS_UINT call_handle;
-        TelCallDeflectDstInfo_t info;
-       TelCallStatus_t CallStatus;
-       TelCallSetupParams_t setup_call_info;
-       char normal[16] = MOB_NUM1;
-
-       memset(&setup_call_info, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info.CallType = TAPI_CALL_TYPE_VOICE;   //VOICE CALL
-       strncpy(setup_call_info.szNumber, normal, 13);
-       tet_printf("called number = %s\n", setup_call_info.szNumber);
-
-       //setup_call_info.IdentityMode = TAPI_CALL_IDENTITY_SHOW;
-
-       tel_exe_call_mo(&setup_call_info, &call_handle, &RequestId);
-
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       RequestId = -1;
-
-       ret_status  = tel_activate_call_ccbs (call_handle,NULL);
-
-       tet_printf ("bMoCall = %d \n pNumber = %s\n CallType = %d\n allActiveState=%d\n CallState =%d\n bConferenceState =%d\n", CallStatus.bMoCall, CallStatus.pNumber, CallStatus.CallType, CallStatus.CallActiveState, CallStatus.CallState, CallStatus.bConferenceState);
-
-       
-        if(ret_status != TAPI_API_SUCCESS)
-        { 
-        tet_printf("utc_tel_activate_call_ccbs_02 has passed and Data in ret_status is %d\n", ret_status);
-        tet_result(TET_PASS);
-        }
-         else
-          { 
-          tet_printf("utc_tel_activate_call_ccbs_02 has failed and Data in ret_status is %d\n", ret_status);
-          tet_result(TET_FAIL);
-           }
-         
-
-       
-}
-
-
-/**
- * @brief This tests tel_activate_call_ccbs() API in normal conditions
- * @par ID:
- * UTC_TEL_DEFLECT_CALL_03
- * @param [in] CallHandle = -1
- * @param [out] pCallStatus = NULL
-* @return TAPI_API_INVALID_CALL_HANDLE
-*/
-
-void utc_tel_activate_call_ccbs_03()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       int  RequestId = -1;
-       TS_UINT call_handle;
-        TelCallDeflectDstInfo_t info;
-       TelCallStatus_t CallStatus;
-       TelCallSetupParams_t setup_call_info;
-       char normal[16] = MOB_NUM1;
-
-       memset(&setup_call_info, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info.CallType = TAPI_CALL_TYPE_VOICE;   //VOICE CALL
-       strncpy(setup_call_info.szNumber, normal, 13);
-       tet_printf("called number = %s\n", setup_call_info.szNumber);
-
-       //setup_call_info.IdentityMode = TAPI_CALL_IDENTITY_SHOW;
-
-       tel_exe_call_mo(&setup_call_info, &call_handle, &RequestId);
-
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       RequestId = -1;
-
-       ret_status  = tel_activate_call_ccbs (-1,NULL);
-
-       tet_printf ("bMoCall = %d \n pNumber = %s\n CallType = %d\n allActiveState=%d\n CallState =%d\n bConferenceState =%d\n", CallStatus.bMoCall, CallStatus.pNumber, CallStatus.CallType, CallStatus.CallActiveState, CallStatus.CallState, CallStatus.bConferenceState);
-
-       
-        if(ret_status != TAPI_API_SUCCESS)
-        { 
-        tet_printf("utc_tel_activate_call_ccbs_03 has passed and Data in ret_status is %d\n", ret_status);
-        tet_result(TET_PASS);
-        }
-         else
-          { 
-          tet_printf("utc_tel_activate_call_ccbs_03 has failed and Data in ret_status is %d\n", ret_status);
-          tet_result(TET_FAIL);
-           }
-         
-
-       
-}
-
-
-
diff --git a/TC/telephony_TC/call/unit/uts_tel_activate_call_ccbs.h b/TC/telephony_TC/call/unit/uts_tel_activate_call_ccbs.h
deleted file mode 100644 (file)
index 725fa77..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-/**\r
-* @ingroup     TELEPHONY_FRAMEWORK_API\r
-* @addtogroup  CALL\r
-*/\r
-\r
-/**\r
-* @ingroup     CALL\r
-* @addtogroup  UTS_TEL_ACTIVE_CALL_CCBS Unit\r
-*/\r
-\r
-/**\r
-* @ingroup     UTS_TEL_ACTIVE_CALL_CCBS Unit\r
-* @addtogroup  UTS_TEL_ACTIVE_CALL_CCBS_ Uts_Tel_Active_Call_Ccbs\r
-* @{\r
-*/\r
-\r
-/**\r
-* @file uts_tel_activate_call_ccbs.h\r
-* @brief This is a suit of unit test cases to test tel_activate_call_ccbs() API function\r
-* @author Gautam Nand Sinha (gnand.sinha@samsung.com)\r
-* @version Initial Creation Version 0.1\r
-* @date 2010.06.29\r
-*/
-
-#ifndef        __UTS_TEL_ACTIVE_CALL_CCBS_H_
-#define   __UTS_TEL_ACTIVE_CALL_CCBS_H_
-
-/*  Includes */
-
-
-#include "tapi_callback.h"
-#include <tet_api.h>
-#include "call_common.h"
-
-extern TS_UINT g_CallHandle;
-extern TS_BOOL call_status;
-
-
-
-/**
-* @test   This test case tests  TapiResult_t   el_deflect_call(unsigned int call_handle, const TelCallDeflectDstInfo_t *info, int *pRequestID)
-* @brief  This API is used to test to get the call information.
-* @return  tapi_api_err_t
-*/
-
-
-       static void utc_tel_activate_call_ccbs_01(void);
-
-       static void utc_tel_activate_call_ccbs_02(void);
-
-       static void utc_tel_activate_call_ccbs_03(void);
-
-
-
-       static void startup();
-
-       static void cleanup();
-
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_activate_call_ccbs_01, 1},
-       {utc_tel_activate_call_ccbs_02, 2},
-       {utc_tel_activate_call_ccbs_03, 3},
-       {NULL, 0}
-       };
-
-#endif
-
-/**
- * @}
- */
diff --git a/TC/telephony_TC/call/unit/uts_tel_answer_call.c b/TC/telephony_TC/call/unit/uts_tel_answer_call.c
deleted file mode 100644 (file)
index ae8ccd1..0000000
+++ /dev/null
@@ -1,160 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include "uts_tel_answer_call.h"
-
-/* Initialize TCM data structures */
-
-/*
-*  tapi_api_err_t tel_exe_call_mo(tel_exe_call_mo_info_t const * const ptr_call_setup_info,
-*              tapi_call_handle *ptr_call_handle);
-*/
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-extern int expected_event;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)
-       {
-               printf("tel_init() Failed ret_status = %d \n",ret_status);
-       }
-
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-       if(tel_get_app_name(&dname))
-               printf("Dbus Get app name error\n");
-       else 
-               printf("Dbus Name is %s\n",dname.name);
-               
-       tel_check_service_ready(&bStatus);
-       printf("Telephpny service  %d\n",bStatus);
-
-       g_CallHandle = -1;
-}
-
-static void cleanup()
-{
-       deregister_all();
-
-       tel_deinit();
-}
-
-/**
- * @brief This tests tel_answer_call() API in normal conditions MO call.
- * @par ID:
- * UTC_TEL_ANSWER_CALL_01
- * @param [in] CallHandle = g_CallHandle
- * @param [in] AnsType = TEL_ANSWER_CALL_ACCEPT
- * @param [out] pRequestId = &RequestId
- * @return TAPI_API_SUCCESS
-*/
-
-/***** TESTING FOR VALID SET OF INPUTS*****/
-
-void utc_tel_answer_call_01()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       int  RequestId = -1;
-       CALL_TEST_DEBUG("\n /**************************************** Give a MT Call within 20 secs ****************************/\n");
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-       ret_status = tel_answer_call(g_CallHandle, TAPI_CALL_ANSWER_ACCEPT, &RequestId);
-       g_CallHandle = -1;
-
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_ANSWER_CNF;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       printf("utc_tel_answer_call_01 pass");
-       tet_result(TET_PASS);
-       tel_release_call_all(&RequestId);
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       return;
-}
-
-/**
- * @brief This tests tel_answer_call() API in normal conditions in MT call.
- * @par ID:
- * UTC_TEL_ANSWER_CALL_02
- * @param [in] CallHandle = g_CallHandle
- * @param [in] AnsType = TAPI_CALL_ANSWER_REJECT
- * @param [out] pRequestId = &RequestId
- * @return TAPI_API_SUCCESS
-*/
-
-void utc_tel_answer_call_02()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       int  RequestId = -1;
-
-       CALL_TEST_DEBUG("\n /**************************************** Give a MT Call within 20 secs /****************************/\n");
-
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       ret_status = tel_answer_call(g_CallHandle, TAPI_CALL_ANSWER_REJECT, &RequestId);
-       g_CallHandle = -1;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-       expected_event = TAPI_EVENT_CALL_ANSWER_CNF;
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       printf("utc_tel_answer_call_02 pass");
-       tel_release_call_all(&RequestId);
-       tet_result(TET_PASS);
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       return;
-}
-
-/**
- * @brief This tests tel_answer_call() API in abnormal conditions
- * @par ID:
- * UTC_TEL_ANSWER_CALL_03
- * @param [in] CallHandle = g_CallHandle
- * @param [in] AnsType = TEL_ANSWER_CALL_ACCEPT
- * @param [out] pRequestId = NULL
- * @return TAPI_API_INVALID_PTR
-*/
-
-void utc_tel_answer_call_03()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-
-       ret_status = tel_answer_call(g_CallHandle, TAPI_CALL_ANSWER_ACCEPT, NULL);
-
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_status);
-
-       printf("utc_tel_answer_call_03 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-
diff --git a/TC/telephony_TC/call/unit/uts_tel_answer_call.h b/TC/telephony_TC/call/unit/uts_tel_answer_call.h
deleted file mode 100644 (file)
index bed1bc4..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef        __UTS_TEL_ANSWER_CALL_H_
-#define   __UTS_TEL_ANSWER_SETUP_H_
-
-#include "tapi_callback.h"
-#include <tet_api.h>
-#include "call_common.h"
-
-extern TS_UINT g_CallHandle;
-extern TS_BOOL call_status;
-
-       static void utc_tel_answer_call_01(void);
-
-       static void utc_tel_answer_call_02(void);
-
-       static void utc_tel_answer_call_03(void);
-
-       static void startup();
-
-       static void cleanup();
-
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_answer_call_01, 1},
-       {utc_tel_answer_call_02, 2},
-       {utc_tel_answer_call_03, 3},
-       {NULL, 0}
-       };
-
-#endif
diff --git a/TC/telephony_TC/call/unit/uts_tel_deflect_call.c b/TC/telephony_TC/call/unit/uts_tel_deflect_call.c
deleted file mode 100644 (file)
index 8c0add1..0000000
+++ /dev/null
@@ -1,269 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-/**\r
-* @ingroup     TELEPHONY_FRAMEWORK_API\r
-* @addtogroup  CALL\r
-*/\r
-\r
-/**\r
-* @ingroup     CALL\r
-* @addtogroup  UTS_TEL_DEFLECT_CALL Unit\r
-*/\r
-\r
-/**\r
-* @ingroup     UTS_TEL_DEFLECT_CALL Unit\r
-* @addtogroup  UTS_TEL_DEFLECT_CALL_ Uts_Tel_Deflect_Call\r
-* @{\r
-*/\r
-\r
-/**\r
-* @file uts_tel_deflect_call.c\r
-* @brief This is a suit of unit test cases to test tel_deflect_call() API function\r
-* @author Gautam Nand Sinha (gnand.sinha@samsung.com)\r
-* @version Initial Creation Version 0.1\r
-* @date 2010.06.29\r
-*/
-
-#include "uts_tel_deflect_call.h"
-
-
-/* Initialize TCM data structures */
-
-
-
-
-
-/*
-*    TapiResult_t      tel_deflect_call(unsigned int call_handle, const TelCallDeflectDstInfo_t *info, int *pRequestID)
-*/
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-
-extern int expected_event;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)
-       {
-               printf("tel_init() Failed ret_status = %d \n",ret_status);
-       }
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-       if(tel_get_app_name(&dname))
-               printf("Dbus Get app name error\n");
-       else 
-               printf("Dbus Name is %s\n",dname.name);
-               
-       tel_check_service_ready(&bStatus);
-       printf("Telephpny service  %d\n",bStatus);
-
-       g_CallHandle = -1;
-}
-
-static void cleanup()
-{
-       int RequestId;
-       tel_release_call_all(&RequestId);
-       expected_event = TAPI_EVENT_CALL_END_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-       deregister_all();
-
-       tel_deinit();
-
-}
-
-
-/**
- * @brief This tests tel_deflect_call() API in normal conditions
- * @par ID:
- * UTC_TEL_DEFLECT_CALL_01
- * @param [in] CallHandle = callhandle
- * @param [out] info = &info
- * @param [out] pCallStatus = &CallStatus
-* @return TAPI_API_SUCCESS
-*/
-
-void utc_tel_deflect_call_01()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       int  RequestId = -1;
-       TS_UINT call_handle;
-        TelCallDeflectDstInfo_t info;
-       TelCallStatus_t CallStatus;
-       TelCallSetupParams_t setup_call_info;
-       char normal[16] = MOB_NUM1;
-
-       memset(&setup_call_info, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info.CallType = TAPI_CALL_TYPE_VOICE;   //VOICE CALL
-       strncpy(setup_call_info.szNumber, normal, 13);
-       tet_printf("called number = %s\n", setup_call_info.szNumber);
-
-       //setup_call_info.IdentityMode = TAPI_CALL_IDENTITY_SHOW;
-
-       tel_exe_call_mo(&setup_call_info, &call_handle, &RequestId);
-
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       RequestId = -1;
-
-       ret_status  = tel_deflect_call (call_handle,&info,&RequestId);
-
-       tet_printf ("bMoCall = %d \n pNumber = %s\n CallType = %d\n allActiveState=%d\n CallState =%d\n bConferenceState =%d\n", CallStatus.bMoCall, CallStatus.pNumber, CallStatus.CallType, CallStatus.CallActiveState, CallStatus.CallState, CallStatus.bConferenceState);
-
-       
-        if(ret_status == TAPI_API_SUCCESS)
-        { 
-        printf("utc_tel_deflect_call_01 pass\n");
-        tet_result(TET_PASS);
-        }
-         else
-          { 
-          printf("utc_tel_deflect_call_01 pass\n");
-          tet_result(TET_FAIL);
-           }
-         
-
-       
-}
-
-/**
- * @brief This tests tel_deflect_call() API in normal conditions
- * @par ID:
- * UTC_TEL_DEFLECT_CALL_02
- * @param [in] CallHandle = callhandle
- * @param [out] info = NULL
- * @param [out] pCallStatus = &CallStatus
-* @return TAPI_API_INVALID_CALL_HANDLE
-*/
-
-void utc_tel_deflect_call_02()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       int  RequestId = -1;
-       TS_UINT call_handle;
-        TelCallDeflectDstInfo_t info;
-       TelCallStatus_t CallStatus;
-       TelCallSetupParams_t setup_call_info;
-       char normal[16] = MOB_NUM1;
-
-       memset(&setup_call_info, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info.CallType = TAPI_CALL_TYPE_VOICE;   //VOICE CALL
-       strncpy(setup_call_info.szNumber, normal, 13);
-       tet_printf("called number = %s\n", setup_call_info.szNumber);
-
-       //setup_call_info.IdentityMode = TAPI_CALL_IDENTITY_SHOW;
-
-       tel_exe_call_mo(&setup_call_info, &call_handle, &RequestId);
-
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       RequestId = -1;
-
-       ret_status  = tel_deflect_call (call_handle,NULL,&RequestId);
-
-       tet_printf ("bMoCall = %d \n pNumber = %s\n CallType = %d\n allActiveState=%d\n CallState =%d\n bConferenceState =%d\n", CallStatus.bMoCall, CallStatus.pNumber, CallStatus.CallType, CallStatus.CallActiveState, CallStatus.CallState, CallStatus.bConferenceState);
-
-       
-        if(ret_status != TAPI_API_SUCCESS)
-        { 
-        printf("utc_tel_deflect_call_02 pass\n");
-        tet_result(TET_PASS);
-        }
-         else
-          { 
-          printf("utc_tel_deflect_call_02 pass\n");
-          tet_result(TET_FAIL);
-           }
-         
-
-       
-}
-
-
-/**
- * @brief This tests tel_deflect_call() API in normal conditions
- * @par ID:
- * UTC_TEL_DEFLECT_CALL_03
- * @param [in] CallHandle = callhandle
- * @param [out] info = NULL
- * @param [out] pCallStatus = NULL
-* @return TAPI_API_INVALID_CALL_HANDLE
-*/
-
-void utc_tel_deflect_call_03()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       int  RequestId = -1;
-       TS_UINT call_handle;
-        TelCallDeflectDstInfo_t info;
-       TelCallStatus_t CallStatus;
-       TelCallSetupParams_t setup_call_info;
-       char normal[16] = MOB_NUM1;
-
-       memset(&setup_call_info, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info.CallType = TAPI_CALL_TYPE_VOICE;   //VOICE CALL
-       strncpy(setup_call_info.szNumber, normal, 13);
-       tet_printf("called number = %s\n", setup_call_info.szNumber);
-
-       //setup_call_info.IdentityMode = TAPI_CALL_IDENTITY_SHOW;
-
-       tel_exe_call_mo(&setup_call_info, &call_handle, &RequestId);
-
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       RequestId = -1;
-
-       ret_status  = tel_deflect_call (call_handle,NULL,NULL);
-
-       tet_printf ("bMoCall = %d \n pNumber = %s\n CallType = %d\n allActiveState=%d\n CallState =%d\n bConferenceState =%d\n", CallStatus.bMoCall, CallStatus.pNumber, CallStatus.CallType, CallStatus.CallActiveState, CallStatus.CallState, CallStatus.bConferenceState);
-
-       
-        if(ret_status != TAPI_API_SUCCESS)
-        { 
-        printf("utc_tel_deflect_call_03 pass\n");
-        tet_result(TET_PASS);
-        }
-         else
-          { 
-          printf("utc_tel_deflect_call_03 pass\n");
-          tet_result(TET_FAIL);
-           }
-         
-
-       
-}
-
-
-
diff --git a/TC/telephony_TC/call/unit/uts_tel_deflect_call.h b/TC/telephony_TC/call/unit/uts_tel_deflect_call.h
deleted file mode 100644 (file)
index 73e71bf..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-/**\r
-* @ingroup     TELEPHONY_FRAMEWORK_API\r
-* @addtogroup  CALL\r
-*/\r
-\r
-/**\r
-* @ingroup     CALL\r
-* @addtogroup  UTS_TEL_DEFLECT_CALL Unit\r
-*/\r
-\r
-/**\r
-* @ingroup     UTS_TEL_DEFLECT_CALL Unit\r
-* @addtogroup  UTS_TEL_DEFLECT_CALL_ Uts_Tel_Deflect_Call\r
-* @{\r
-*/\r
-\r
-/**\r
-* @file uts_tel_deflect_call.h\r
-* @brief This is a suit of unit test cases to test tel_deflect_call() API function\r
-* @author Gautam Nand Sinha (gnand.sinha@samsung.com)\r
-* @version Initial Creation Version 0.1\r
-* @date 2010.06.29\r
-*/
-
-
-#ifndef        __TS_TEL_DEFLECT_CALL_H_
-#define   __TS_TEL_DEFLECT_CALL_H_
-
-/*  Includes */
-
-
-#include "tapi_callback.h"
-#include <tet_api.h>
-#include "call_common.h"
-
-extern TS_UINT g_CallHandle;
-extern TS_BOOL call_status;
-
-
-
-/**
-* @test   This test case tests  TapiResult_t   el_deflect_call(unsigned int call_handle, const TelCallDeflectDstInfo_t *info, int *pRequestID)
-* @brief  This API is used to test to get the call information.
-* @return  tapi_api_err_t
-*/
-
-
-       static void utc_tel_deflect_call_01(void);
-
-       static void utc_tel_deflect_call_02(void);
-
-       static void utc_tel_deflect_call_03(void);
-
-
-
-       static void startup();
-
-       static void cleanup();
-
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_deflect_call_01, 1},
-       {utc_tel_deflect_call_02, 2},
-       {utc_tel_deflect_call_03, 3},
-       {NULL, 0}
-       };
-
-#endif
-
-/**
- * @}
- */
diff --git a/TC/telephony_TC/call/unit/uts_tel_exe_call_explicit_transfer.c b/TC/telephony_TC/call/unit/uts_tel_exe_call_explicit_transfer.c
deleted file mode 100644 (file)
index 015f98f..0000000
+++ /dev/null
@@ -1,206 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#include "uts_tel_exe_call_explicit_transfer.h"
-
-
-/* Initialize TCM data structures */
-
-
-
-
-
-/*
-*  tel_exe_call_explicit_transfer  ( unsigned int  CallHandle, int *pRequestId );
-*/
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-
-extern int expected_event;
-
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)
-       {
-               printf("tel_init() Failed ret_status = %d \n",ret_status);
-       }
-
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-       if(tel_get_app_name(&dname))
-               printf("Dbus Get app name error\n");
-       else 
-               printf("Dbus Name is %s\n",dname.name);
-               
-       tel_check_service_ready(&bStatus);
-       printf("Telephpny service  %d\n",bStatus);
-}
-
-static void cleanup()
-{
-
-    int  RequestId = -1;
-
-    tel_release_call_all(&RequestId);
-       expected_event = TAPI_EVENT_CALL_END_IND;
-
-    gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       deregister_all();
-
-       tel_deinit();
-}
-
-
-/**
- * @brief This tests tel_exe_call_explicit_transfer() API in normal conditions
- * @par ID:
- * UTC_TEL_EXE_CALL_EXPLICIT_TRANSFER_01
- * @param [in] CallHandle = call_handle1
- * @param [out] pRequestId = &RequestId
- * @return TAPI_API_SUCCESS
-*/
-void utc_tel_exe_call_explicit_transfer_01()
-{
-       CALL_TEST_DEBUG("\n################     TEST START    ################\n");
-       TapiResult_t  ret_status ;
-       unsigned int call_handle_01 = -1;
-       unsigned int call_handle_02 = -1;
-       TelCallSetupParams_t setup_call_info_01;
-       TelCallSetupParams_t setup_call_info_02;
-       int  RequestId = -1;
-       char normal1[16] = MOB_NUM1;
-       char normal2[16] = MOB_NUM2;
-
-       memset(&setup_call_info_01, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info_01.CallType = TAPI_CALL_TYPE_VOICE;
-       strncpy(setup_call_info_01.szNumber, normal1, 13);
-       tet_printf("called number = %s\n", setup_call_info_01.szNumber);
-
-       //setup_call_info_01.IdentityMode = TAPI_CALL_IDENTITY_SHOW;    //preet: TelCallSetupParams_t donot have these memebers
-       //setup_call_info_01.pCugInfo = NULL;
-       //setup_call_info_01.pUusInfo = NULL;
-
-       memset(&setup_call_info_02, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info_02.CallType = TAPI_CALL_TYPE_VOICE;
-       strncpy(setup_call_info_02.szNumber, normal2, 13);
-       tet_printf("called number = %s\n", setup_call_info_02.szNumber);
-
-       //setup_call_info_02.IdentityMode = TAPI_CALL_IDENTITY_SHOW;    //preet: TelCallSetupParams_t donot have these memebers
-       //setup_call_info_02.pCugInfo = NULL;
-       //setup_call_info_02.pUusInfo = NULL;
-
-
-       CALL_TEST_DEBUG("MAKE A 1ST MO CALL TO %s\n",setup_call_info_01.szNumber);
-       ret_status =  tel_exe_call_mo(&setup_call_info_01, &call_handle_01, &RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       CALL_TEST_DEBUG("HOLD THE ACTIVE CALL\n");
-       ret_status = tel_hold_call (call_handle_01 , &RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       //expected_event = TAPI_EVENT_CALL_HOLD_CNF;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-
-       CALL_TEST_DEBUG("MAKE 2ND MO CALL TO %s\n",setup_call_info_02.szNumber);
-       ret_status =  tel_exe_call_mo(&setup_call_info_02, &call_handle_02, &RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       CALL_TEST_DEBUG("EXPLICIT TRANSFER %s\n",setup_call_info_02.szNumber);
-       ret_status = tel_exe_call_explicit_transfer(call_handle_02 ,&RequestId);
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-       expected_event = TAPI_EVENT_CALL_TRANSFER_CNF;
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-
-       CALL_TEST_DEBUG("RELEASE ALL CALLS\n");
-       tel_release_call_all(&RequestId);
-       expected_event = TAPI_EVENT_CALL_END_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       printf("utc_tel_exe_call_explicit_transfer_02 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_exe_call_explicit_transfer() API in abnormal conditions
- * @par ID:
- * UTC_TEL_EXE_CALL_EXPLICIT_TRANSFER_02
- * @param [in] CallHandle = call_handle2
- * @param [out] pRequestId = &RequestId
-* @return TAPI_API_INVALID_CALL_HANDLE
-*/
-
-void utc_tel_exe_call_explicit_transfer_02()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       int  RequestId = -1;
-
-       ret_status = tel_exe_call_explicit_transfer(INVALID_CALL_HANDLE,&RequestId);
-
-       TET_CHECK(TAPI_API_INVALID_CALL_HANDLE, ret_status);
-
-       printf("utc_tel_exe_call_explicit_transfer_02 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-
-/**
- * @brief This tests tel_exe_call_explicit_transfer() API in abnormal conditions
- * @par ID:
- * UTC_TEL_EXE_CALL_EXPLICIT_TRANSFER_04
- * @param [in] CallHandle = INVALID_CALL_HANDLE
- * @param [out] pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-
-void utc_tel_exe_call_explicit_transfer_03()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-
-       ret_status = tel_exe_call_explicit_transfer(VALID_CALL_HANDLE,NULL);
-
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_status);
-
-       printf("utc_tel_exe_call_explicit_transfer_04 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
diff --git a/TC/telephony_TC/call/unit/uts_tel_exe_call_explicit_transfer.h b/TC/telephony_TC/call/unit/uts_tel_exe_call_explicit_transfer.h
deleted file mode 100644 (file)
index 4ee6d6a..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef        __UTS_TAPI_TRANSFER_CALL_H_
-#define   __UTS_TAPI_TRANSFER_CALL_H_
-
-/*  Includes */
-
-
-#include "tapi_callback.h"
-#include <tet_api.h>
-#include "call_common.h"
-
-
-       static void utc_tel_exe_call_explicit_transfer_01(void);
-
-       static void utc_tel_exe_call_explicit_transfer_02(void);
-
-       static void utc_tel_exe_call_explicit_transfer_03(void);
-
-
-       static void startup();
-
-       static void cleanup();
-
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_exe_call_explicit_transfer_01, 1},
-       {utc_tel_exe_call_explicit_transfer_02, 2},
-       {utc_tel_exe_call_explicit_transfer_03, 3},
-       {NULL, 0}
-       };
-
-#endif
-
-/**
- * @}
- */
diff --git a/TC/telephony_TC/call/unit/uts_tel_exe_call_flash.c b/TC/telephony_TC/call/unit/uts_tel_exe_call_flash.c
deleted file mode 100644 (file)
index d41e0b5..0000000
+++ /dev/null
@@ -1,155 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "uts_tel_exe_call_flash.h"
-#include <stdlib.h>
-#define NUMBER_SIZE 11
-
-/* Initialize TCM data structures */
-
-
-
-
-
-/*
-*  tapi_api_err_t tel_exe_call_mo(tel_exe_call_mo_info_t const * const ptr_call_setup_info,
-*              tapi_call_handle *ptr_call_handle);
-*/
-
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-extern int expected_event;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)
-       {
-               printf("tel_init() Failed ret_status = %d \n",ret_status);
-       }
-
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-       if(tel_get_app_name(&dname))
-               printf("Dbus Get app name error\n");
-       else 
-               printf("Dbus Name is %s\n",dname.name);
-               
-       tel_check_service_ready(&bStatus);
-       printf("Telephpny service  %d\n",bStatus);
-
-       g_CallHandle = -1;
-}
-
-static void cleanup()
-{
-       deregister_all();
-
-       tel_deinit();
-}
-
-/**
- * @brief This tests tel_exe_call_flash() API in normal conditions
- * @par ID:
- * UTC_TAPI_CHECK_STATUS_01
- * @param [out] 
- * @return TAPI_API_SUCCESS
-*/
-
-/***** TESTING FOR VALID SET OF INPUTS*****/
-
-void utc_tel_exe_call_flash_01()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       char pDialNumber[NUMBER_SIZE];
-       strcpy(pDialNumber, "9886541875");
-               int pRequestID;
-       ret_status = tel_exe_call_flash_info ( pDialNumber, &pRequestID);
-       if(ret_status !=TAPI_API_SUCCESS)
-       {
-               printf("uts_tapi_flash_inof_01 failed %d, number %s\n",ret_status,pDialNumber);
-               tet_result(TET_FAIL);
-       }       
-       printf("utc_tapi_check_status_01 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-
-/**
- *  * @brief This tests tel_exe_call_flash() API in abnormal conditions
- *   * @par ID:
- *    * UTC_TAPI_CHECK_STATUS_01
- *     * @param [out] 
- *      * @return TAPI_API_FAILURE
- *      */
-
-/***** TESTING FOR INVALID SET OF INPUTS*****/
-
-
-void utc_tel_exe_call_flash_02()
-{
-   CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-   TapiResult_t  ret_status ;
-   int *pRequestID;
-   ret_status = tel_exe_call_flash_info ( NULL, pRequestID);
-   if(ret_status ==TAPI_API_SUCCESS)
-   {
-       tet_result(TET_FAIL);
-   } 
-   printf("utc_tapi_check_status_02 pass");
-   tet_result(TET_PASS);
-
-  return;
-}
-
-
-/**
- *  * @brief This tests tel_exe_call_flash() API in abnormal conditions
- *   * @par ID:
- *    * UTC_TAPI_CHECK_STATUS_01
- *     * @param [out] 
- *      * @return TAPI_API_FAILURE
- *      */
-
-void utc_tel_exe_call_flash_03()
-{
-   CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-   TapiResult_t  ret_status ;
-       char const *const pDialNumber={"919811507939"};
-   ret_status = tel_exe_call_flash_info (pDialNumber, NULL);
-   if(ret_status ==TAPI_API_SUCCESS)
-   {
-       tet_result(TET_FAIL);
-   } 
-   printf("utc_tapi_check_status_03 pass");
-   tet_result(TET_PASS);
-
-  return;
-}
diff --git a/TC/telephony_TC/call/unit/uts_tel_exe_call_flash.h b/TC/telephony_TC/call/unit/uts_tel_exe_call_flash.h
deleted file mode 100644 (file)
index 3132bdb..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef        __UTS_TEL_EXE_CALL_FLASH_H_
-#define   __UTS_TEL_EXE_CALL_FLASH_H_
-
-#include "tapi_callback.h"
-#include <tet_api.h>
-#include "call_common.h"
-#include <TapiCommon.h>
-#include <ITapiCall.h>
-
-extern TS_UINT g_CallHandle;
-extern TS_BOOL call_status;
-
-       static void utc_tel_exe_call_flash_01(void);
-       static void utc_tel_exe_call_flash_02(void);
-       static void utc_tel_exe_call_flash_03(void);
-       static void startup();
-
-       static void cleanup();
-
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_exe_call_flash_01, 1},
-       {utc_tel_exe_call_flash_02, 2},
-       {utc_tel_exe_call_flash_03, 2},
-       {NULL, 0}
-       };
-
-#endif
-
-/**
- * @}
- */
diff --git a/TC/telephony_TC/call/unit/uts_tel_exe_call_mo.c b/TC/telephony_TC/call/unit/uts_tel_exe_call_mo.c
deleted file mode 100644 (file)
index 217b740..0000000
+++ /dev/null
@@ -1,213 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#include "uts_tel_exe_call_mo.h"
-#include "TelCall.h"
-/* Initialize TCM data structures */
-
-/*
-* TapiResult_t    tel_exe_call_mo (const TelCallSetupParams_t* pParams,unsigned int  * pCallHandle, int * );
-
-*/
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-extern int expected_event;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)
-       {
-               printf("tel_init() Failed ret_status = %d \n",ret_status);
-       }
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-       if(tel_get_app_name(&dname))
-               printf("Dbus Get app name error\n");
-       else 
-               printf("Dbus Name is %s\n",dname.name);
-               
-       tel_check_service_ready(&bStatus);
-       printf("Telephpny service  %d\n",bStatus);
-       
-       g_CallHandle = -1;
-}
-
-static void cleanup()
-{
-       deregister_all();
-
-       tel_deinit();
-}
-/**
- * @brief This tests tel_exe_call_mo() API in normal conditions
- * @par ID:
- * UTC_TEL_EXE_CALL_MO_01
- * @param [in] pParams = &setup_call_info
- * @param [out] pCallHandle = &active_call_handle
- * @param [out] pRequestId = &RequestId
-* @return TAPI_API_SUCCESS
-*/
-void utc_tel_exe_call_mo_01()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       unsigned int active_call_handle = -1;
-       TelCallSetupParams_t setup_call_info;
-       int  RequestId = -1;
-       char normal[16] = {0};
-       strncpy(normal, MOB_NUM1, 16);
-
-
-       memset(&setup_call_info, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info.CallType = TAPI_CALL_TYPE_VOICE;
-       strncpy(setup_call_info.szNumber, normal,16);
-       tet_printf("called number = %s\n", setup_call_info.szNumber);
-       CALL_TEST_DEBUG("called number = %s\n", setup_call_info.szNumber);
-
-       //setup_call_info.IdentityMode = TAPI_CALL_IDENTITY_SHOW;               //preet: TelCallSetupParams_t dont have these members
-        //setup_call_info.pCugInfo = NULL;
-       //setup_call_info.pUusInfo = NULL;
-       ret_status =  tel_exe_call_mo(&setup_call_info, &active_call_handle, &RequestId);
-
-       tet_printf ("setup_call_handle_01 = %d\t request_id_01 =%d\n", active_call_handle,RequestId);
-       CALL_TEST_DEBUG ("setup_call_handle_01 = %d\t request_id_01 =%d\n", active_call_handle,RequestId);
-
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       tet_infoline("utc_tel_exe_call_mo_01 pass");
-       tet_result(TET_PASS);
-       CALL_TEST_DEBUG("i am out of 1st test case \n");
-
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       RequestId = -1;
-       tel_release_call_all(&RequestId);
-       expected_event = TAPI_EVENT_CALL_END_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       printf("utc_tel_exe_call_mo_01 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_exe_call_mo() API in abnormal conditions
- * @par ID:
- * UTC_TEL_EXE_CALL_MO_02
- * @param [in] pParams = NULL
- * @param [out] pCallHandle = &call_handle
- * @param [out] pRequestId = &RequestId
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_exe_call_mo_02()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       unsigned int call_handle;
-       int  RequestId = -1;
-
-       ret_status =  tel_exe_call_mo(NULL, &call_handle, &RequestId);
-
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_status);
-
-       tet_printf ("setup_call_handle_02 = %d\t request_id_02 =%d\n", call_handle,RequestId);
-
-       printf("utc_tel_exe_call_mo_02 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-
-/**
- * @brief This tests tel_exe_call_mo() API in abnormal conditions
- * @par ID:
- * UTC_TEL_EXE_CALL_MO_03
- * @param [in] pParams = &setup_call_info
- * @param [out] pCallHandle = NULL
- * @param [out] pRequestId = &RequestId
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_exe_call_mo_03()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status;
-       TelCallSetupParams_t setup_call_info;
-       int  RequestId = -1;
-       char normal[16] = MOB_NUM1;
-
-       memset(&setup_call_info, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info.CallType = TAPI_CALL_TYPE_VOICE;   //VOICE CALL
-       strncpy(setup_call_info.szNumber, normal, sizeof(normal));
-       ret_status =  tel_exe_call_mo(&setup_call_info, NULL, &RequestId);
-
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_status);
-
-       tet_printf (" request_id_03 =%d\n",RequestId);
-
-       printf("utc_tel_exe_call_mo_03 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_exe_call_mo() API in abnormal conditions
- * @par ID:
- * UTC_TEL_EXE_CALL_MO_04
- * @param [in] pParams = &setup_call_info
- * @param [out] pCallHandle = &active_call_handle
- * @param [out] pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-
-void utc_tel_exe_call_mo_04()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       unsigned int call_handle = INVALID_CALL_HANDLE;
-       TelCallSetupParams_t setup_call_info;
-       int  RequestId = -1;
-       char normal[16] = MOB_NUM1;
-
-       memset(&setup_call_info, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info.CallType = TAPI_CALL_TYPE_VOICE;   //VOICE CALL
-       strncpy(setup_call_info.szNumber, normal, sizeof(normal));
-       ret_status =  tel_exe_call_mo(&setup_call_info, &call_handle, NULL);
-
-       tet_printf ("setup_call_handle_04 = %d\t request_id_04 =%d\n", call_handle,RequestId);
-
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_status);
-
-       printf("utc_tel_exe_call_mo_04 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-
diff --git a/TC/telephony_TC/call/unit/uts_tel_exe_call_mo.h b/TC/telephony_TC/call/unit/uts_tel_exe_call_mo.h
deleted file mode 100644 (file)
index f2a7e7e..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef        __UTS_TEL_EXE_CALL_MO_H_
-#define __UTS_TEL_EXE_CALL_MO_H_
-
-/*  Includes */
-#include "tapi_callback.h"
-#include <tet_api.h>
-#include "call_common.h"
-
-extern TS_UINT g_CallHandle;
-extern TS_BOOL call_status;
-
-
-
-static void utc_tel_exe_call_mo_01(void);
-static void utc_tel_exe_call_mo_02(void);
-static void utc_tel_exe_call_mo_03(void);
-static void utc_tel_exe_call_mo_04(void);
-
-static void startup();
-static void cleanup();
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_exe_call_mo_01, 1},
-       {utc_tel_exe_call_mo_02, 2},
-       {utc_tel_exe_call_mo_03, 3},
-       {utc_tel_exe_call_mo_04, 4},
-       {NULL, 0}
-};
-
-#endif
-
-
-/**
- * @}
- */
diff --git a/TC/telephony_TC/call/unit/uts_tel_exit_call_emergency_mode.c b/TC/telephony_TC/call/unit/uts_tel_exit_call_emergency_mode.c
deleted file mode 100644 (file)
index d8e057e..0000000
+++ /dev/null
@@ -1,125 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <TapiCommon.h>
-#include "uts_tel_exit_call_emergency_mode.h"
-
-
-/* Initialize TCM data structures */
-
-
-
-
-
-/*
-*  tapi_api_err_t tel_exe_call_mo(tel_exe_call_mo_info_t const * const ptr_call_setup_info,
-*              tapi_call_handle *ptr_call_handle);
-*/
-
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-extern int expected_event;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)
-       {
-               printf("tel_init() Failed ret_status = %d \n",ret_status);
-       }
-
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-       if(tel_get_app_name(&dname))
-               printf("Dbus Get app name error\n");
-       else 
-               printf("Dbus Name is %s\n",dname.name);
-               
-       tel_check_service_ready(&bStatus);
-       printf("Telephpny service  %d\n",bStatus);
-
-       g_CallHandle = -1;
-}
-
-static void cleanup()
-{
-       deregister_all();
-
-       tel_deinit();
-}
-
-/**
- * @brief This tests tel_exit_call_emergency_mode() API in normal conditions
- * @par ID:
- * UTC_TEL_EXIT_CALL_EMERGENCY_MODE
- * @param [out] 
- * @return TAPI_API_SUCCESS
-*/
-
-/***** TESTING FOR VALID SET OF INPUTS*****/
-
-void utc_tel_exit_call_emergency_mode_01()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       int *pRequestID;
-       ret_status =tel_exit_call_emergency_mode(&pRequestID); 
-       if(ret_status !=TAPI_API_SUCCESS)
-       {
-               tet_result(TET_FAIL);
-       }       
-       printf("utc_tel_exit_call_emergency_mode_01 pass");
-       tet_result(TET_PASS);
-
-       return;
-
-}
-/**
- * @brief This tests tel_exit_call_emergency_mode() API in normal conditions
- * @par ID:
- * UTC_TEL_EXIT_CALL_EMERGENCY_MODE
- * @param [out] 
- * @return TAPI_API_SUCCESS
-*/
-
-/***** TESTING FOR VALID SET OF INPUTS*****/
-
-void utc_tel_exit_call_emergency_mode_02()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       ret_status =tel_exit_call_emergency_mode(NULL); 
-       if(ret_status ==TAPI_API_SUCCESS)
-       {
-               tet_result(TET_FAIL);
-       }       
-       printf("utc_tel_exit_call_emergency_mode_02 pass");
-       tet_result(TET_PASS);
-
-       return;
-
-}
diff --git a/TC/telephony_TC/call/unit/uts_tel_exit_call_emergency_mode.h b/TC/telephony_TC/call/unit/uts_tel_exit_call_emergency_mode.h
deleted file mode 100644 (file)
index 314d94b..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef        __UTS_TEL_EXIT_CALL_EMERGENCY_MODE_H_
-#define   __UTS_TEL_EXIT_CALL_EMERGENCY_MODE_H_
-
-#include "tapi_callback.h"
-#include <tet_api.h>
-#include "call_common.h"
-#include <ITapiCall.h>
-
-extern TS_UINT g_CallHandle;
-extern TS_BOOL call_status;
-
-       static void utc_tel_exit_call_emergency_mode_01(void);
-       static void utc_tel_exit_call_emergency_mode_02(void);
-
-       static void startup();
-
-       static void cleanup();
-
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_exit_call_emergency_mode_01, 1},
-       {utc_tel_exit_call_emergency_mode_02, 2},
-       {NULL, 0}
-       };
-
-#endif
-
-/**
- * @}
- */
diff --git a/TC/telephony_TC/call/unit/uts_tel_get_call_act_line.c b/TC/telephony_TC/call/unit/uts_tel_get_call_act_line.c
deleted file mode 100644 (file)
index 0d6c514..0000000
+++ /dev/null
@@ -1,134 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#include "uts_tel_get_call_act_line.h"
-
-
-/* Initialize TCM data structures */
-
-
-
-
-
-/*
-*   TapiResult_t tel_get_call_act_line (TelCallActiveLine_t* ptr_active_line  ,int *pRequestId);
-*/
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-extern int expected_event;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)
-       {
-               printf("tel_init() Failed ret_status = %d \n",ret_status);
-       }
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-       if(tel_get_app_name(&dname))
-               printf("Dbus Get app name error\n");
-       else 
-               printf("Dbus Name is %s\n",dname.name);
-               
-       tel_check_service_ready(&bStatus);
-       printf("Telephpny service  %d\n",bStatus);
-
-       g_CallHandle = -1;
-
-}
-
-static void cleanup()
-{
-       deregister_all();
-
-       tel_deinit();
-
-}
-
-
-
-/***** TESTING FOR VALID SET OF INPUTS*****/
-/**
- * @brief This tests tel_get_call_act_line() API in normal conditions
- * @par ID:
- * UTC_TEL_GET_CALL_ACT_LINE_01
- * @param [in] ptr_active_line = &active_line
- * @param [out] pRequestId = &RequestId
- * @return TAPI_API_SUCCESS
-*/
-
-void utc_tel_get_call_act_line_01()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       int  RequestId = -1;
-
-       printf ("Get Active Line With Valid Out Param.");
-
-       ret_status = tel_get_call_act_line(&RequestId);
-
-       if (ret_status >= 0)
-       {
-               TET_CHECK(TAPI_API_SUCCESS, ret_status);
-
-               printf("utc_tel_get_call_act_line_01 pass\n");
-               tet_result(TET_PASS);
-       }
-       return;
-}
-
-/***** TESTING FOR INVALID SET OF INPUTS*****/
-
-/**
- * @brief This tests tel_get_call_act_line() API in abnormal conditions
- * @par ID:
- * UTC_TEL_GET_CALL_ACT_LINE_02
- * @param [in] ptr_active_line = NULL
- * @param [out] pRequestId = &RequestId
-* @return TAPI_API_INVALID_PTR
-*/
-
-void utc_tel_get_call_act_line_02()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       int  RequestId = -1;
-
-       ret_status = tel_get_call_act_line(NULL);
-
-
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_status);
-
-       printf("utc_tel_get_call_act_line_02 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
diff --git a/TC/telephony_TC/call/unit/uts_tel_get_call_act_line.h b/TC/telephony_TC/call/unit/uts_tel_get_call_act_line.h
deleted file mode 100644 (file)
index 62e63ab..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef        __UTS_TEL_GET_CALL_ACT_LINE_H_
-#define   __UTS_TEL_GET_CALL_ACT_LINE_H_
-
-/*  Includes */
-
-#include "tapi_callback.h"
-#include <tet_api.h>
-#include "call_common.h"
-
-
-extern TS_UINT g_CallHandle;
-extern TS_BOOL call_status;
-
-       static void utc_tel_get_call_act_line_01(void);
-
-       static void utc_tel_get_call_act_line_02(void);
-
-       static void startup();
-
-       static void cleanup();
-
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_call_act_line_01, 1},
-       {utc_tel_get_call_act_line_02, 2},
-       {NULL, 0}
-       };
-
-#endif
-
-/**
- * @}
- */
diff --git a/TC/telephony_TC/call/unit/uts_tel_get_call_conf_list.c b/TC/telephony_TC/call/unit/uts_tel_get_call_conf_list.c
deleted file mode 100644 (file)
index fb33f73..0000000
+++ /dev/null
@@ -1,233 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#include "uts_tel_get_call_conf_list.h"
-
-
-/* Initialize TCM data structures */
-
-
-
-
-
-/*
-*    TapiResult_t      tel_get_call_conf_list ( unsigned int  CallHandle,unsigned int * pCallList, int *pNoOfCalls );                                                                          pCallList, int *pNoOfCalls );
-*/
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-
-unsigned int CallList[3] = {0};
-static int NoOfCalls = -1;
-extern int expected_event;
-
-//extern tapi_call_handle conf_call_handle;    //preet: conf_call_handle is nowhere used
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-       tapi_dbus_connection_name dname;
-       int bStatus;
-
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)
-       {
-               printf("tel_init() Failed ret_status = %d \n",ret_status);
-       }
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-       if(tel_get_app_name(&dname))
-               printf("Dbus Get app name error\n");
-       else 
-               printf("Dbus Name is %s\n",dname.name);
-               
-       tel_check_service_ready(&bStatus);
-       printf("Telephpny service  %d\n",bStatus);
-
-}
-
-static void cleanup()
-{
-       int RequestId;
-       tel_release_call_all(&RequestId);
-       expected_event = TAPI_EVENT_CALL_END_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       CallList[0] = CallList[1] = CallList[2] = -1;
-       NoOfCalls = -1;
-       deregister_all();
-
-       tel_deinit();
-
-}
-
-
-
-
-/**
- * @brief This tests tel_get_call_conf_list() API in normal conditions
- * @par ID:
- * UTC_TEL_GET_CALL_CONF_LIST_01
- * @param [in] CallHandle = callhandle[1]
- * @param [out] pCallList = CallList //array
- * @param [out] pNoOfCalls = &NoOfCalls
-* @return TAPI_API_SUCCESS
-*/
-
-void utc_tel_get_call_conf_list_01()
-{
-       CALL_TEST_DEBUG("\n################     TEST START    ################\n");
-       TapiResult_t  ret_status ;
-       unsigned int call_handle_01 = -1;
-       unsigned int call_handle_02 = -1;
-       TelCallSetupParams_t setup_call_info_01;
-       TelCallSetupParams_t setup_call_info_02;
-       int  RequestId = -1;
-       char normal1[16] = MOB_NUM1;
-       char normal2[16] = MOB_NUM2;
-
-       memset(&setup_call_info_01, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info_01.CallType = TAPI_CALL_TYPE_VOICE;
-       strncpy(setup_call_info_01.szNumber, normal1, 13);
-       tet_printf("called number = %s\n", setup_call_info_01.szNumber);
-
-       //setup_call_info_01.IdentityMode = TAPI_CALL_IDENTITY_SHOW;    //preet
-       //setup_call_info_01.pCugInfo = NULL;
-       //setup_call_info_01.pUusInfo = NULL;
-
-       memset(&setup_call_info_02, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info_02.CallType = TAPI_CALL_TYPE_VOICE;
-       strncpy(setup_call_info_02.szNumber, normal2, 13);
-       tet_printf("called number = %s\n", setup_call_info_02.szNumber);
-
-       //setup_call_info_02.IdentityMode = TAPI_CALL_IDENTITY_SHOW;    //preet
-       //setup_call_info_02.pCugInfo = NULL;
-       //setup_call_info_02.pUusInfo = NULL;
-
-
-       CALL_TEST_DEBUG("MAKE A 1ST MO CALL TO %s\n",setup_call_info_01.szNumber);
-       ret_status =  tel_exe_call_mo(&setup_call_info_01, &call_handle_01, &RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       CALL_TEST_DEBUG("HOLD THE ACTIVE CALL\n");
-       ret_status = tel_hold_call (call_handle_01 , &RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_HOLD_CNF;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       CALL_TEST_DEBUG("MAKE 2ND MO CALL TO %s\n",setup_call_info_02.szNumber);
-       ret_status =  tel_exe_call_mo(&setup_call_info_02, &call_handle_02, &RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       CALL_TEST_DEBUG("JOIN TWO CALLS\n");
-       ret_status = tel_join_call (call_handle_02, call_handle_01, &RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_SETUPCONFERENCE_CNF;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       CALL_TEST_DEBUG("GET CONFERENCE LIST\n");
-       ret_status = tel_get_call_conf_list (call_handle_02, CallList, &NoOfCalls);
-       tet_printf ("call_id1 =%d\n call_id2=%d\n call_id3=%d\n NoOfCalls=%d\n", CallList[0], CallList[1], CallList[2], NoOfCalls);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       CALL_TEST_DEBUG("RELEASE ALL CALLS\n");
-       tel_release_call_all(&RequestId);
-       expected_event = TAPI_EVENT_CALL_END_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_get_call_conf_list() API in abnormal conditions
- * @par ID:
- * UTC_TEL_GET_CALL_CONF_LIST_02
- * @param [in] CallHandle = callhandle[1]
- * @param [out] pCallList = CallList //array
- * @param [out] pNoOfCalls = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-
-void utc_tel_get_call_conf_list_02()
-{
-       TapiResult_t  ret_status ;
-
-       ret_status = tel_get_call_conf_list (VALID_CALL_HANDLE, CallList, NULL);
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_status);
-       printf("utc_tel_get_call_conf_list_02 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_get_call_conf_list() API in abnormal conditions
- * @par ID:
- * UTC_TEL_GET_CALL_CONF_LIST_03
- * @param [in] CallHandle = callhandle[1]
- * @param [out] pCallList = NULL
- * @param [out] pNoOfCalls = &NoOfCalls
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_get_call_conf_list_03()
-{
-       TapiResult_t  ret_status ;
-
-       ret_status = tel_get_call_conf_list (VALID_CALL_HANDLE, NULL, &NoOfCalls);
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_status);
-       printf("utc_tel_get_call_conf_list_03 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_get_call_conf_list() API in abnormal conditions
- * @par ID:
- * UTC_TEL_GET_CALL_CONF_LIST_04
- * @param [in] CallHandle = INVALID_CALL_HANDLE
- * @param [out] pCallList = CallList //array
- * @param [out] pNoOfCalls = &NoOfCalls
-* @return TAPI_API_INVALID_CALL_HANDLE
-*/
-
-void utc_tel_get_call_conf_list_04()
-{
-       TapiResult_t  ret_status ;
-
-       ret_status = tel_get_call_conf_list (INVALID_CALL_HANDLE, CallList, &NoOfCalls);
-       TET_CHECK(TAPI_API_INVALID_CALL_HANDLE, ret_status);
-       printf("utc_tel_get_call_conf_list_04 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
diff --git a/TC/telephony_TC/call/unit/uts_tel_get_call_conf_list.h b/TC/telephony_TC/call/unit/uts_tel_get_call_conf_list.h
deleted file mode 100644 (file)
index bd14c88..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef        __UTS_TEL_GET_CALL_CONF_LIST_H_
-#define   __UTS_TEL_GET_CALL_CONF_LIST_H_
-
-/*  Includes */
-
-
-#include "tapi_callback.h"
-#include <tet_api.h>
-#include "call_common.h"
-
-
-
-/**
-* @test   This test case tests   TapiResult_t  tel_get_call_conf_list ( unsigned int  CallHandle,unsigned int *        *                                                                               pCallList, int *pNoOfCalls );
-* @brief  This API is used to establish conference call
-* @return  tapi_api_err_t
-*/
-
-
-       static void utc_tel_get_call_conf_list_01(void);
-
-       static void utc_tel_get_call_conf_list_02(void);
-
-       static void utc_tel_get_call_conf_list_03(void);
-
-       static void utc_tel_get_call_conf_list_04(void);
-
-       static void startup();
-
-       static void cleanup();
-
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_call_conf_list_01, 1},
-       {utc_tel_get_call_conf_list_02, 2},
-       {utc_tel_get_call_conf_list_03, 3},
-       {utc_tel_get_call_conf_list_04, 4},
-
-       {NULL, 0}
-       };
-
-#endif
-
-/**
- * @}
- */
diff --git a/TC/telephony_TC/call/unit/uts_tel_get_call_duration.c b/TC/telephony_TC/call/unit/uts_tel_get_call_duration.c
deleted file mode 100644 (file)
index 4d6855b..0000000
+++ /dev/null
@@ -1,173 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include "uts_tel_get_call_duration.h"
-
-/*
-*    TapiResult_t      tel_get_call_duration  ( unsigned int  CallHandle, unsigned int * pDurationInSecs);
-*/
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-
-extern int expected_event;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)
-       {
-               printf("tel_init() Failed ret_status = %d \n",ret_status);
-       }
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-       if(tel_get_app_name(&dname))
-               printf("Dbus Get app name error\n");
-       else 
-               printf("Dbus Name is %s\n",dname.name);
-               
-       tel_check_service_ready(&bStatus);
-       printf("Telephpny service  %d\n",bStatus);
-}
-
-static void cleanup()
-{
-       int RequestId;
-       tel_release_call_all(&RequestId);
-       expected_event = TAPI_EVENT_CALL_END_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-       deregister_all();
-
-       tel_deinit();
-
-}
-
-
-
-
-/**
- * @brief This tests tel_get_call_duration() API in normal conditions
- * @par ID:
- * UTC_TEL_GET_CALL_DURATION_01
- * @param [in] CallHandle = callhandle
- * @param [out] pDurationInSecs = &DurationInSecs
- * @return TAPI_API_SUCCESS
-*/
-
-void utc_tel_get_call_duration_01()
-{
-       CALL_TEST_DEBUG("\n################     TEST START    ################\n");
-
-       unsigned int DurationInSecs;
-
-       TapiResult_t  ret_status ;
-       unsigned int call_handle_01 = -1;
-       TelCallSetupParams_t setup_call_info_01;
-       int  RequestId = -1;
-       char normal1[16] = MOB_NUM1;
-
-       memset(&setup_call_info_01, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info_01.CallType = TAPI_CALL_TYPE_VOICE;
-       strncpy(setup_call_info_01.szNumber, normal1, 13);
-       tet_printf("called number = %s\n", setup_call_info_01.szNumber);
-
-       //setup_call_info_01.IdentityMode = TAPI_CALL_IDENTITY_SHOW;    //preet
-       //setup_call_info_01.pCugInfo = NULL;
-       //setup_call_info_01.pUusInfo = NULL;
-
-       CALL_TEST_DEBUG("MAKE A MO CALL TO %s\n",setup_call_info_01.szNumber);
-       ret_status =  tel_exe_call_mo(&setup_call_info_01, &call_handle_01, &RequestId);
-       tet_printf ("call_handle = %d\n",call_handle_01);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       RequestId = -1;
-
-       ret_status  = tel_get_call_duration (call_handle_01, &DurationInSecs);
-
-       tet_printf ("Call_duration =%d \n", DurationInSecs);
-
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-
-       printf("utc_tel_get_call_duration_01 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-
-/**
- * @brief This tests tel_get_call_duration() API in abnormal conditions
- * @par ID:
- * UTC_TEL_GET_CALL_DURATION_02
- * @param [in] CallHandle = callhandle
- * @param [out] pDurationInSecs = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-
-void utc_tel_get_call_duration_02()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-
-       ret_status  = tel_get_call_duration (VALID_CALL_HANDLE, NULL);
-
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_status);
-       printf("utc_tel_get_call_duration_02 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-
-/**
- * @brief This tests tel_get_call_duration() API in abnormal conditions
- * @par ID:
- * UTC_TEL_GET_CALL_DURATION_03
- * @param [in] CallHandle = INVALID_CALL_HANDLE
- * @param [out] pDurationInSecs = &DurationInSecs
-* @return TAPI_API_INVALID_CALL_HANDLE
-*/
-
-void utc_tel_get_call_duration_03()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       unsigned int DurationInSecs = -1;
-
-       ret_status  = tel_get_call_duration (INVALID_CALL_HANDLE, &DurationInSecs);
-
-       TET_CHECK(TAPI_API_INVALID_CALL_HANDLE, ret_status);
-       printf("utc_tel_get_call_duration_03\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-
-
diff --git a/TC/telephony_TC/call/unit/uts_tel_get_call_duration.h b/TC/telephony_TC/call/unit/uts_tel_get_call_duration.h
deleted file mode 100644 (file)
index c417e36..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef        __UTS_TEL_GET_CALL_DURATION_H_
-#define   __UTS_TEL_GET_CALL_DURATION_H_
-
-/*  Includes */
-
-
-#include "tapi_callback.h"
-#include <tet_api.h>
-#include "call_common.h"
-
-extern TS_UINT g_CallHandle;
-extern TS_BOOL call_status;
-
-
-
-/**
-* @test   This test case tests  TapiResult_t   tel_get_call_duration  ( unsigned int  CallHandle, unsigned int *                                                                               pDurationInSecs);
-* @brief  This API is used to test to get the call information.
-* @return  tapi_api_err_t
-*/
-
-
-       static void utc_tel_get_call_duration_01(void);
-
-       static void utc_tel_get_call_duration_02(void);
-
-       static void utc_tel_get_call_duration_03(void);
-
-       static void startup();
-
-       static void cleanup();
-
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_call_duration_01, 1},
-       {utc_tel_get_call_duration_02, 2},
-       {utc_tel_get_call_duration_03, 3},
-       {NULL, 0}
-       };
-
-#endif
-
-/**
- * @}
- */
diff --git a/TC/telephony_TC/call/unit/uts_tel_get_call_privacy_mode.c b/TC/telephony_TC/call/unit/uts_tel_get_call_privacy_mode.c
deleted file mode 100644 (file)
index 2eac1c1..0000000
+++ /dev/null
@@ -1,176 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <TelCall.h>
-#include "uts_tel_get_call_privacy_mode.h"
-
-/* Initialize TCM data structures */
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-extern int expected_event;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)
-       {
-               printf("tel_init() Failed ret_status = %d \n",ret_status);
-       }
-
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-       if(tel_get_app_name(&dname))
-               printf("Dbus Get app name error\n");
-       else 
-               printf("Dbus Name is %s\n",dname.name);
-               
-       tel_check_service_ready(&bStatus);
-       printf("Telephpny service  %d\n",bStatus);
-
-       g_CallHandle = -1;
-}
-
-static void cleanup()
-{
-       deregister_all();
-
-       tel_deinit();
-}
-
-/**
- * @brief This tests () API in normal conditions
- * @par ID:
- * UTC_TEL_GET_CALL_PRIVACY_MODE_01
- * @param [out] 
- * @return TAPI_API_SUCCESS
-*/
-
-/***** TESTING FOR VALID SET OF INPUTS*****/
-
-void utc_tel_get_call_privacy_mode_01()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       TelCallPrivacyType_t PrivacyType;
-               int *pRequestID;
-               PrivacyType =  TAPI_CALL_PRIVACY_TYPE_MS;       
-       ret_status =tel_get_call_privacy_mode (PrivacyType, &pRequestID); 
-       if(ret_status !=TAPI_API_SUCCESS)
-       {
-               tet_result(TET_FAIL);
-       }       
-       printf("utc_tel_get_call_privacy_mode_01 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-void utc_tel_get_call_privacy_mode_02()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       TelCallPrivacyType_t PrivacyType;
-               int *pRequestID;
-               PrivacyType = TAPI_CALL_PRIVACY_TYPE_BS ;       
-       ret_status =tel_get_call_privacy_mode (PrivacyType, &pRequestID); 
-       if(ret_status !=TAPI_API_SUCCESS)
-       {
-               tet_result(TET_FAIL);
-       }       
-       printf("utc_tel_get_call_privacy_mode_02 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-void utc_tel_get_call_privacy_mode_03()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       TelCallPrivacyType_t PrivacyType;
-               int *pRequestID;
-               PrivacyType =  TAPI_CALL_PRIVACY_TYPE_CURRENT;  
-       ret_status =tel_get_call_privacy_mode (PrivacyType, &pRequestID); 
-       if(ret_status !=TAPI_API_SUCCESS)
-       {
-               tet_result(TET_FAIL);
-       }       
-       printf("utc_tel_get_call_privacy_mode_03 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-void utc_tel_get_call_privacy_mode_04()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-               int *pRequestID;
-       ret_status =tel_get_call_privacy_mode (-1, pRequestID); 
-       if(ret_status ==TAPI_API_SUCCESS)
-       {
-               tet_result(TET_FAIL);
-       }       
-       printf("utc_tel_get_call_privacy_mode_04 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-void utc_tel_get_call_privacy_mode_05()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-               int *pRequestID;
-       ret_status =tel_get_call_privacy_mode (4, pRequestID); 
-       if(ret_status ==TAPI_API_SUCCESS)
-       {
-               tet_result(TET_FAIL);
-       }       
-       printf("utc_tel_get_call_privacy_mode_04 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-void utc_tel_get_call_privacy_mode_06()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       TelCallPrivacyType_t PrivacyType;
-               PrivacyType =  TAPI_CALL_PRIVACY_TYPE_CURRENT;  
-       ret_status =tel_get_call_privacy_mode (PrivacyType, NULL); 
-       if(ret_status ==TAPI_API_SUCCESS)
-       {
-               tet_result(TET_FAIL);
-       }       
-       printf("utc_tel_get_call_privacy_mode_05 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-
diff --git a/TC/telephony_TC/call/unit/uts_tel_get_call_privacy_mode.h b/TC/telephony_TC/call/unit/uts_tel_get_call_privacy_mode.h
deleted file mode 100644 (file)
index 02043b3..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef        __UTS_TEL_GET_CALL_PRIVACY_MODE_H_
-#define   __UTS_TEL_GET_CALL_PRIVACY_MODE_H_
-
-#include "tapi_callback.h"
-#include <tet_api.h>
-#include "call_common.h"
-#include <ITapiCall.h>
-
-extern TS_UINT g_CallHandle;
-extern TS_BOOL call_status;
-
-       static void utc_tel_get_call_privacy_mode_01(void);
-       static void utc_tel_get_call_privacy_mode_02(void);
-       static void utc_tel_get_call_privacy_mode_03(void);
-       static void utc_tel_get_call_privacy_mode_04(void);
-       static void utc_tel_get_call_privacy_mode_05(void);
-       static void utc_tel_get_call_privacy_mode_06(void);
-
-       static void startup();
-
-       static void cleanup();
-
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_call_privacy_mode_01, 1},
-       {utc_tel_get_call_privacy_mode_02, 2},
-       {utc_tel_get_call_privacy_mode_03, 3},
-       {utc_tel_get_call_privacy_mode_04, 4},
-       {utc_tel_get_call_privacy_mode_05, 5},
-       {utc_tel_get_call_privacy_mode_06, 6},
-       {NULL, 0}
-       };
-
-#endif
-
-/**
- * @}
- */
diff --git a/TC/telephony_TC/call/unit/uts_tel_get_call_status.c b/TC/telephony_TC/call/unit/uts_tel_get_call_status.c
deleted file mode 100644 (file)
index ffb3902..0000000
+++ /dev/null
@@ -1,194 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include "uts_tel_get_call_status.h"
-
-
-/* Initialize TCM data structures */
-
-
-
-
-
-/*
-*    TapiResult_t      tel_get_call_status ( unsigned int  CallHandle, TelCallStatus_t * pCallStatus);
-*/
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-
-extern int expected_event;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)
-       {
-               printf("tel_init() Failed ret_status = %d \n",ret_status);
-       }
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-       if(tel_get_app_name(&dname))
-               printf("Dbus Get app name error\n");
-       else 
-               printf("Dbus Name is %s\n",dname.name);
-               
-       tel_check_service_ready(&bStatus);
-       printf("Telephpny service  %d\n",bStatus);
-
-       g_CallHandle = -1;
-}
-
-static void cleanup()
-{
-       int RequestId;
-       tel_release_call_all(&RequestId);
-       expected_event = TAPI_EVENT_CALL_END_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-       deregister_all();
-
-       tel_deinit();
-
-}
-
-
-/**
- * @brief This tests tel_get_call_status() API in normal conditions
- * @par ID:
- * UTC_TEL_GET_CALL_STATUS_01
- * @param [in] CallHandle = callhandle
- * @param [out] pCallStatus = &CallStatus
-* @return TAPI_API_SUCCESS
-*/
-
-void utc_tel_get_call_status_01()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       int  RequestId = -1;
-       TS_UINT call_handle;
-       TelCallStatus_t CallStatus;
-       TelCallSetupParams_t setup_call_info;
-       char normal[16] = MOB_NUM1;
-
-       memset(&setup_call_info, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info.CallType = TAPI_CALL_TYPE_VOICE;   //VOICE CALL
-       strncpy(setup_call_info.szNumber, normal, 13);
-       tet_printf("called number = %s\n", setup_call_info.szNumber);
-
-       //setup_call_info.IdentityMode = TAPI_CALL_IDENTITY_SHOW;
-
-       ret_status=tel_exe_call_mo(&setup_call_info, &call_handle, &RequestId);
-       tet_printf ("call_handle = %d\n",call_handle);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       RequestId = -1;
-       tet_printf ("call_handle = %d\n",call_handle);
-       ret_status  = tel_get_call_status (call_handle, &CallStatus);
-
-       tet_printf ("bMoCall = %d \n pNumber = %s\n CallType = %d\n allActiveState=%d\n CallState =%d\n bConferenceState =%d\n", CallStatus.bMoCall, CallStatus.pNumber, CallStatus.CallType, CallStatus.CallActiveState, CallStatus.CallState, CallStatus.bConferenceState);
-
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-
-       printf("utc_tel_get_call_status_01 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_get_call_status() API in abnormal conditions
- * @par ID:
- * UTC_TEL_GET_CALL_STATUS_02
- * @param [in] CallHandle = callhandle
- * @param [out] pCallStatus = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-
-void utc_tel_get_call_status_02()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-
-       ret_status  = tel_get_call_status (VALID_CALL_HANDLE, NULL);
-
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_status);
-       printf("utc_tel_get_call_status_02 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_get_call_status() API in abnormal conditions
- * @par ID:
- * UTC_TEL_GET_CALL_STATUS_03
- * @param [in] CallHandle = INVALID_CALL_HANDLE
- * @param [out] pCallStatus = &CallStatus
-* @return TAPI_API_INVALID_CALL_HANDLE
-*/
-void utc_tel_get_call_status_03()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       TelCallStatus_t CallStatus;
-
-       ret_status  = tel_get_call_status (INVALID_CALL_HANDLE, &CallStatus);
-
-       TET_CHECK(TAPI_API_INVALID_CALL_HANDLE, ret_status);
-       printf("utc_tel_get_call_status_03 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_get_call_status() API in abnormal conditions
- * @par ID:
- * UTC_TEL_GET_CALL_STATUS_04
- * @param [in] CallHandle = INVALID_CALL_HANDLE
- * @param [out] pCallStatus = NULL
- * @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_get_call_status_04()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-
-       ret_status  = tel_get_call_status (INVALID_CALL_HANDLE, NULL);
-
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_status);
-       printf("utc_tel_get_call_status_04 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-
-
diff --git a/TC/telephony_TC/call/unit/uts_tel_get_call_status.h b/TC/telephony_TC/call/unit/uts_tel_get_call_status.h
deleted file mode 100644 (file)
index 9af698e..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef        __UTS_TEL_GET_CALL_STATUS_H_
-#define   __UTS_TEL_GET_CALL_STATUS_H_
-
-/*  Includes */
-
-
-#include "tapi_callback.h"
-#include <tet_api.h>
-#include "call_common.h"
-
-extern TS_UINT g_CallHandle;
-extern TS_BOOL call_status;
-
-
-
-/**
-* @test   This test case tests  TapiResult_t   tel_get_call_status ( unsigned int  CallHandle,
-                                                                       TelCallStatus_t *pCallStatus);
-* @brief  This API is used to test to get the call information.
-* @return  tapi_api_err_t
-*/
-
-
-       static void utc_tel_get_call_status_01(void);
-
-       static void utc_tel_get_call_status_02(void);
-
-       static void utc_tel_get_call_status_03(void);
-
-       static void utc_tel_get_call_status_04(void);
-
-       static void startup();
-
-       static void cleanup();
-
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_call_status_01, 1},
-       {utc_tel_get_call_status_02, 2},
-       {utc_tel_get_call_status_03, 3},
-       {utc_tel_get_call_status_04, 4},
-       {NULL, 0}
-       };
-
-#endif
-
-/**
- * @}
- */
diff --git a/TC/telephony_TC/call/unit/uts_tel_get_call_time.c b/TC/telephony_TC/call/unit/uts_tel_get_call_time.c
deleted file mode 100644 (file)
index 9ced768..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <TapiCommon.h>
-#include "uts_tel_get_call_time.h"
-
-/* Initialize TCM data structures */
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-extern int expected_event;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)
-       {
-               printf("tel_init() Failed ret_status = %d \n",ret_status);
-       }
-
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-       if(tel_get_app_name(&dname))
-               printf("Dbus Get app name error\n");
-       else 
-               printf("Dbus Name is %s\n",dname.name);
-               
-       tel_check_service_ready(&bStatus);
-       printf("Telephpny service  %d\n",bStatus);
-
-       g_CallHandle = -1;
-}
-
-static void cleanup()
-{
-       deregister_all();
-
-       tel_deinit();
-}
-
-/**
- * @brief This tests () API in normal conditions
- * @par ID:
- * UTC_TEL_GET_CALL_TIME_01
- * @param [out] status 
- * @return TAPI_API_SUCCESS
-*/
-
-/***** TESTING FOR VALID SET OF INPUTS*****/
-
-void utc_tel_get_call_time_01()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       TS_WORD req_mask = 1;
-               int *pRequestID;
-       ret_status = tel_get_call_time (req_mask, &pRequestID); 
-       if(ret_status !=TAPI_API_SUCCESS)
-       {
-               tet_result(TET_FAIL);
-       }       
-       printf("utc_tel_get_call_time_01 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-void utc_tel_get_call_time_02()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       TS_WORD req_mask = 1;
-       ret_status = tel_get_call_time (req_mask, NULL); 
-       if(ret_status ==TAPI_API_SUCCESS)
-       {
-               tet_result(TET_FAIL);
-       }       
-       printf("utc_tel_get_call_time_02 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
diff --git a/TC/telephony_TC/call/unit/uts_tel_get_call_time.h b/TC/telephony_TC/call/unit/uts_tel_get_call_time.h
deleted file mode 100644 (file)
index 9e7b052..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef        __UTS_TEL_GET_CALL_TIME_H_
-#define   __UTS_TEL_GET_CALL_TIME_H_
-
-#include "tapi_callback.h"
-#include <tet_api.h>
-#include "call_common.h"
-#include <ITapiCall.h>
-
-extern TS_UINT g_CallHandle;
-extern TS_BOOL call_status;
-
-       static void utc_tel_get_call_time_01(void);
-       static void utc_tel_get_call_time_02(void);
-
-       static void startup();
-
-       static void cleanup();
-
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_call_time_01, 1},
-       {utc_tel_get_call_time_02, 2},
-       {NULL, 0}
-       };
-
-#endif
-
-/**
- * @}
- */
diff --git a/TC/telephony_TC/call/unit/uts_tel_hold_call.c b/TC/telephony_TC/call/unit/uts_tel_hold_call.c
deleted file mode 100644 (file)
index b46bb82..0000000
+++ /dev/null
@@ -1,201 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include "uts_tel_hold_call.h"
-
-
-/* Initialize TCM data structures */
-
-
-
-
-
-/*
-*  TapiResult_t        tel_hold_call ( unsigned int  CallHandle, int *pRequestId);
-*/
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-
-extern int expected_event;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)
-       {
-               printf("tel_init() Failed ret_status = %d \n",ret_status);
-       }
-
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-       if(tel_get_app_name(&dname))
-               printf("Dbus Get app name error\n");
-       else 
-               printf("Dbus Name is %s\n",dname.name);
-               
-       tel_check_service_ready(&bStatus);
-       printf("Telephpny service  %d\n",bStatus);
-
-}
-
-static void cleanup()
-{
-       int RequestId;
-       tel_release_call_all(&RequestId);
-       expected_event = TAPI_EVENT_CALL_END_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       deregister_all();
-
-       tel_deinit();
-
-}
-
-
-
-
-
-/**
- * @brief This tests tel_hold_call() API in normal conditions
- * @par ID:
- * UTC_TEL_HOLD_CALL_01
- * @param [in] CallHandle = g_hold_callhandle[1]
- * @param [out] pRequestId = &RequestId
- * @return TAPI_API_SUCCESS
-*/
-
-void utc_tel_hold_call_01()
-{
-       CALL_TEST_DEBUG("################     TEST START    ################");
-       TapiResult_t  ret_status ;
-       unsigned int active_call_handle = -1;
-       TelCallSetupParams_t setup_call_info;
-       int  RequestId = -1;
-       char normal[16] = MOB_NUM1;
-
-       memset(&setup_call_info, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info.CallType = TAPI_CALL_TYPE_VOICE;
-       strncpy(setup_call_info.szNumber, normal, 13);
-       tet_printf("called number = %s\n", setup_call_info.szNumber);
-
-       //setup_call_info.IdentityMode = TAPI_CALL_IDENTITY_SHOW;       //preet: TelCallSetupParams_t dont have these memebers
-       //setup_call_info.pCugInfo = NULL;
-       //setup_call_info.pUusInfo = NULL;
-
-       CALL_TEST_DEBUG("MAKE A MO CALL TO %s",setup_call_info.szNumber);
-
-       ret_status =  tel_exe_call_mo(&setup_call_info, &active_call_handle , &RequestId);
-       //ret_status = tel_answer_call(g_CallHandle, TEL_ANSWER_CALL_ACCEPT, &RequestId);
-         //      g_CallHandle = -1;
-       //              TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       //                      expected_event = TAPI_EVENT_CALL_ANSWER_CNF;
-       //                              gmain_loop_for_tapi_events(TIME_DELAY1);
-                               
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_SETUP_CNF;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       CALL_TEST_DEBUG("HOLD THE ACTIVE CALL");
-
-       ret_status = tel_hold_call (active_call_handle , &RequestId);
-
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_HOLD_CNF;
-
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       CALL_TEST_DEBUG("RELEASE ALL CALLS");
-
-       tel_release_call_all(&RequestId);
-       expected_event = TAPI_EVENT_CALL_END_IND;
-
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       tet_result(TET_PASS);
-
-       return;
-
-}
-
-/**
- * @brief This tests tel_hold_call() API in abnormal conditions
- * @par ID:
- * UTC_TEL_HOLD_CALL_02
- * @param [in] CallHandle = 1
- * @param [out] pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-
-void utc_tel_hold_call_02()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-
-       TS_UINT call_handle = VALID_CALL_HANDLE;
-
-       ret_status = tel_hold_call ( call_handle, NULL);
-
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_status);
-
-       tet_infoline("utc_tel_hold_call_02");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-
-/**
- * @brief This tests tel_hold_call() API in abnormal conditions
- * @par ID:
- * UTC_TEL_HOLD_CALL_03
- * @param [in] CallHandle = call_handle
- * @param [out] pRequestId = &RequestId
-* @return TAPI_API_INVALID_CALL_HANDLE
-*/
-
-void utc_tel_hold_call_03()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       unsigned int call_handle = INVALID_CALL_HANDLE;
-       int  RequestId = -1;
-
-       ret_status = tel_hold_call (call_handle, &RequestId);
-
-       TET_CHECK(TAPI_API_INVALID_CALL_HANDLE, ret_status);
-
-       tet_infoline("utc_tel_hold_call_03 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-
diff --git a/TC/telephony_TC/call/unit/uts_tel_hold_call.h b/TC/telephony_TC/call/unit/uts_tel_hold_call.h
deleted file mode 100644 (file)
index 7cfec54..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef        __UTS_TEL_HOLD_CALL_H_
-#define   __UTS_TEL_HOLD_CALL_H_
-
-/*  Includes */
-
-
-#include "tapi_callback.h"
-#include <tet_api.h>
-#include "call_common.h"
-
-extern TS_UINT g_CallHandle;
-extern TS_BOOL call_status;
-
-
-
-/**
-* @test   This test case tests  TapiResult_t   tel_hold_call ( unsigned int  CallHandle, int *pRequestId);
-* @brief  This API is used to test MT call
-* @return  tapi_api_err_t
-*/
-
-
-
-       static void utc_tel_hold_call_01(void);
-
-       static void utc_tel_hold_call_02(void);
-
-       static void utc_tel_hold_call_03(void);
-
-
-       static void startup();
-
-       static void cleanup();
-
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_hold_call_01, 1},
-       {utc_tel_hold_call_02, 2},
-       {utc_tel_hold_call_03, 3},
-       {NULL, 0}
-       };
-
-#endif
-
-/**
- * @}
- */
diff --git a/TC/telephony_TC/call/unit/uts_tel_join_call.c b/TC/telephony_TC/call/unit/uts_tel_join_call.c
deleted file mode 100644 (file)
index aee59b3..0000000
+++ /dev/null
@@ -1,219 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#include "uts_tel_join_call.h"
-
-
-/* Initialize TCM data structures */
-
-
-
-
-
-/*
-*    TapiResult_t      tel_join_call ( unsigned int  CallHandle1,  unsigned int  CallHandle2, int * pRequestId);
-*/
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-
-extern int expected_event;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)
-       {
-               printf("tel_init() Failed ret_status = %d \n",ret_status);
-       }
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-       if(tel_get_app_name(&dname))
-               printf("Dbus Get app name error\n");
-       else 
-               printf("Dbus Name is %s\n",dname.name);
-               
-       tel_check_service_ready(&bStatus);
-       printf("Telephpny service  %d\n",bStatus);
-
-}
-
-static void cleanup()
-{
-       int  RequestId = -1;
-
-       tel_release_call_all(&RequestId);
-       expected_event = TAPI_EVENT_CALL_END_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY0);
-
-       deregister_all();
-
-       tel_deinit();
-
-}
-
-
-
-/**
- * @brief This tests tel_join_call() API in normal conditions
- * @par ID:
- * UTC_TEL_JOIN_CALL_01
- * @param [in] CallHandle1 = callhandle[1]
- * @param [in] CallHandle2 = callhandle[0]
- * @param [out] pRequestId = &RequestId
-* @return TAPI_API_SUCCESS
-*/
-
-void utc_tel_join_call_01()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       unsigned int call_handle_01 = -1;
-       unsigned int call_handle_02 = -1;
-       TelCallSetupParams_t setup_call_info_01;
-       TelCallSetupParams_t setup_call_info_02;
-       int  RequestId = -1;
-       char normal1[16] = MOB_NUM1;
-       char normal2[16] = MOB_NUM2;
-
-       memset(&setup_call_info_01, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info_01.CallType = TAPI_CALL_TYPE_VOICE;
-       strncpy(setup_call_info_01.szNumber, normal1, 13);
-       tet_printf("called number = %s\n", setup_call_info_01.szNumber);
-
-       //setup_call_info_01.IdentityMode = TAPI_CALL_IDENTITY_SHOW;    //preet: TelCallSetupParams_t dont have these members
-       //setup_call_info_01.pCugInfo = NULL;
-       //setup_call_info_01.pUusInfo = NULL;
-
-       memset(&setup_call_info_02, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info_02.CallType = TAPI_CALL_TYPE_VOICE;
-       strncpy(setup_call_info_02.szNumber, normal2, 13);
-       tet_printf("called number = %s\n", setup_call_info_02.szNumber);
-
-       //setup_call_info_02.IdentityMode = TAPI_CALL_IDENTITY_SHOW;    //preet: TelCallSetupParams_t dont have these member
-       //setup_call_info_02.pCugInfo = NULL;
-       //setup_call_info_02.pUusInfo = NULL;
-
-
-       CALL_TEST_DEBUG("MAKE A 1ST MO CALL TO %s\n",setup_call_info_01.szNumber);
-
-       ret_status =  tel_exe_call_mo(&setup_call_info_01, &call_handle_01, &RequestId);
-
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       CALL_TEST_DEBUG("HOLD THE ACTIVE CALL\n");
-
-       ret_status = tel_hold_call (call_handle_01 , &RequestId);
-
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       //expected_event = TAPI_EVENT_CALL_HOLD_CNF;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-
-       CALL_TEST_DEBUG("MAKE 2ND MO CALL TO %s\n",setup_call_info_02.szNumber);
-
-       ret_status =  tel_exe_call_mo(&setup_call_info_02, &call_handle_02, &RequestId);
-
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       CALL_TEST_DEBUG("JOIN TWO CALLS\n");
-
-       ret_status = tel_join_call (call_handle_02, call_handle_01, &RequestId);
-
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_SETUPCONFERENCE_CNF;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       CALL_TEST_DEBUG("RELEASE ALL CALLS\n");
-
-       tel_release_call_all(&RequestId);
-       expected_event = TAPI_EVENT_CALL_END_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       printf("utc_tel_join_call_01 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-
-/**
- * @brief This tests tel_join_call() API in abnormal conditions
- * @par ID:
- * UTC_TEL_JOIN_CALL_02
- * @param [in] CallHandle1 = INVALID_CALL_HANDLE
- * @param [in] CallHandle2 = VALID_CALL_HANDLE
- * @param [out] pRequestId = &RequestId
-* @return TAPI_API_INVALID_CALL_HANDLE
-*/
-
-void utc_tel_join_call_02()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       int  RequestId = -1;
-
-       ret_status = tel_join_call (INVALID_CALL_HANDLE, VALID_CALL_HANDLE, &RequestId);
-
-       TET_CHECK(TAPI_API_INVALID_CALL_HANDLE, ret_status);
-
-       printf("utc_tel_join_call_02 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_join_call() API in abnormal conditions
- * @par ID:
- * UTC_TEL_JOIN_CALL_04
- * @param [in] CallHandle1 = VALID_CALL_HANDLE
- * @param [in] CallHandle2 = VALID_CALL_HANDLE+1
- * @param [out] pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-
-void utc_tel_join_call_03()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-
-       ret_status = tel_join_call (VALID_CALL_HANDLE, VALID_CALL_HANDLE+1, NULL);
-
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_status);
-
-       printf("utc_tel_join_call_04 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
diff --git a/TC/telephony_TC/call/unit/uts_tel_join_call.h b/TC/telephony_TC/call/unit/uts_tel_join_call.h
deleted file mode 100644 (file)
index deb278d..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef        __UTS_TEL_JOIN_CALL_H_
-#define   __UTS_TEL_JOIN_CALL_H_
-
-/*  Includes */
-
-
-#include "tapi_callback.h"
-#include <tet_api.h>
-#include "call_common.h"
-
-
-       static void utc_tel_join_call_01(void);
-
-       static void utc_tel_join_call_02(void);
-
-       static void utc_tel_join_call_03(void);
-
-       static void startup();
-
-       static void cleanup();
-
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_join_call_01, 1},
-       {utc_tel_join_call_02, 2},
-       {utc_tel_join_call_03, 3},
-       {NULL, 0}
-       };
-
-#endif
-
-/**
- * @}
- */
diff --git a/TC/telephony_TC/call/unit/uts_tel_release_call.c b/TC/telephony_TC/call/unit/uts_tel_release_call.c
deleted file mode 100644 (file)
index 94f0da7..0000000
+++ /dev/null
@@ -1,185 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <ITapiSs.h>
-
-#include "uts_tel_release_call.h"
-
-
-extern TS_UINT g_CallHandle;
-
-/* Initialize TCM data structures */
-
-
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-extern int expected_event;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-       tapi_dbus_connection_name dname;
-       int bStatus;
-
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)
-       {
-               printf("tel_init() Failed ret_status = %d \n",ret_status);
-       }
-       g_CallHandle = -1;
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-       if(tel_get_app_name(&dname))
-               printf("Dbus Get app name error\n");
-       else 
-               printf("Dbus Name is %s\n",dname.name);
-               
-       tel_check_service_ready(&bStatus);
-       printf("Telephpny service  %d\n",bStatus);
-}
-
-static void cleanup()
-{
-       g_CallHandle = -1;
-
-       deregister_all();
-
-       tel_deinit();
-}
-
-/**
-TapiResult_t   tel_release_call ( unsigned int  CallHandle, int *pRequestId);
-*/
-
-
-/**
- * @brief This tests tel_release_call() API in normal conditions (MO CALL)
- * @par ID:
- * UTC_TEL_RELEASE_CALL_01
- * @param [in] CallHandle = active_call_handle
- * @param [out] pRequestId = &RequestId
-* @return TAPI_API_SUCCESS
-*/
-
-
-void utc_tel_release_call_01()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       unsigned int active_call_handle = 0;
-       TelCallSetupParams_t setup_call_info;
-       int  RequestId = -1;
-       char normal[16] = MOB_NUM1;
-
-       memset(&setup_call_info, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info.CallType = TAPI_CALL_TYPE_VOICE;
-       strncpy(setup_call_info.szNumber, normal, 13);
-       tet_printf("called number = %s\n", setup_call_info.szNumber);
-
-       //setup_call_info.IdentityMode = TAPI_CALL_IDENTITY_SHOW;       //preet: TelCallSetupParams_t dont ahve these members
-       //setup_call_info.pCugInfo = NULL;
-       //setup_call_info.pUusInfo = NULL;
-
-       CALL_TEST_DEBUG("MAKE A MO CALL TO %s",setup_call_info.szNumber);
-       ret_status =  tel_exe_call_mo(&setup_call_info, &g_CallHandle, &RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_SETUP_CNF;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       CALL_TEST_DEBUG("RELEASE A CALL %s\n",setup_call_info.szNumber);
-       ret_status = tel_release_call (g_CallHandle,&RequestId );
-
-       expected_event = TAPI_EVENT_CALL_END_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-
-       tet_infoline("utc_tel_release_call_01");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-
-/**
- * @brief This tests tel_release_call() API in abnormal conditions
- * @par ID:
- * UTC_TEL_RELEASE_CALL_02
- * @param [in] CallHandle = INVALID_CALL_HANDLE
- * @param [out] pRequestId = &RequestId
-* @return TAPI_API_INVALID_CALL_HANDLE
-*/
-
-void utc_tel_release_call_02()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       unsigned int call_handle = -1;//INVALID_CALL_HANDLE;
-       int  RequestId = -1;
-
-       ret_status = tel_release_call (call_handle ,&RequestId);
-
-       printf ("utc_tel_release_call_02  RequestId = %d\n", RequestId);
-
-       TET_CHECK(TAPI_API_COULD_NOT_GET_CALL_CTXT, ret_status);
-
-       tet_infoline("utc_tel_release_call_02");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_release_call() API in abnormal conditions (MT CALL)
- * @par ID:
- * UTC_TEL_RELEASE_CALL_03
- * @param [in] CallHandle = g_CallHandle
- * @param [out] pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-
-
-void utc_tel_release_call_03()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       unsigned int call_handle;
-
-       ret_status = tel_release_call (call_handle,NULL );
-
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_status);
-
-       tet_infoline("utc_tel_release_call_03");
-       tet_result(TET_PASS);
-
-       return;
-}
-
diff --git a/TC/telephony_TC/call/unit/uts_tel_release_call.h b/TC/telephony_TC/call/unit/uts_tel_release_call.h
deleted file mode 100644 (file)
index f0d314a..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef        __UTS_TEL_RELEASE_CALL_H_
-#define   __UTS_TEL_RELEASE_CALL_H_
-
-#include "tapi_callback.h"
-#include <tet_api.h>
-#include "call_common.h"
-
-
-/**
-* @test   This test case tests  TapiResult_t   tel_release_call ( unsigned int  CallHandle, int *pRequestId);
-                               TapiResult_t    tel_release_callAll (int *pRequestId);
-* @brief  This API is used to test MT call
-* @return  tapi_api_err_t
-*/
-
-
-       static void utc_tel_release_call_01(void);
-
-       static void utc_tel_release_call_02(void);
-
-       static void utc_tel_release_call_03(void);
-
-       static void startup();
-
-       static void cleanup();
-
-
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_release_call_01, 1},
-       {utc_tel_release_call_02, 2},
-       {utc_tel_release_call_03, 3},
-       {NULL, 0}
-       };
-
-#endif
-
-/**
- * @}
- */
diff --git a/TC/telephony_TC/call/unit/uts_tel_release_call_all.c b/TC/telephony_TC/call/unit/uts_tel_release_call_all.c
deleted file mode 100644 (file)
index 08bf39f..0000000
+++ /dev/null
@@ -1,155 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-#include <stdio.h>
-#include <stdlib.h>
-
-#include "uts_tel_release_call_all.h"
-
-/* Initialize TCM data structures */
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-extern int expected_event;
-
-static void startup()
-{      
-       TapiResult_t  ret_status ;
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)
-       {
-               printf("tel_init() Failed ret_status = %d \n",ret_status);
-       }
-
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-       if(tel_get_app_name(&dname))
-               printf("Dbus Get app name error\n");
-       else 
-               printf("Dbus Name is %s\n",dname.name);
-               
-       tel_check_service_ready(&bStatus);
-       printf("Telephpny service  %d\n",bStatus);
-}
-
-static void cleanup()
-{
-       deregister_all();
-
-       tel_deinit();
-}
-
-/**
- * @brief This tests tel_release_call_all() API in normal conditions (MO call)
- * @par ID:
- * UTC_TEL_RELEASE_CALL_ALL_01
- * @param [out] pRequestId = &RequestId
-* @return TAPI_API_SUCCESS
-*/
-void utc_tel_release_call_all_01()
-{
-       CALL_TEST_DEBUG("\n################     TEST START    ################\n");
-       TapiResult_t  ret_status ;
-       unsigned int call_handle_01 = -1;
-       unsigned int call_handle_02 = -1;
-       TelCallSetupParams_t setup_call_info_01;
-       TelCallSetupParams_t setup_call_info_02;
-       int  RequestId = -1;
-       char normal1[16] = MOB_NUM1;
-       char normal2[16] = MOB_NUM2;
-
-       memset(&setup_call_info_01, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info_01.CallType = TAPI_CALL_TYPE_VOICE;
-       strncpy(setup_call_info_01.szNumber, normal1, 13);
-       tet_printf("called number = %s\n", setup_call_info_01.szNumber);
-
-       //setup_call_info_01.IdentityMode = TAPI_CALL_IDENTITY_SHOW;    //preet
-       //setup_call_info_01.pCugInfo = NULL;   
-       //setup_call_info_01.pUusInfo = NULL;
-
-       memset(&setup_call_info_02, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info_02.CallType = TAPI_CALL_TYPE_VOICE;
-       strncpy(setup_call_info_02.szNumber, normal2, 13);
-       tet_printf("called number = %s\n", setup_call_info_02.szNumber);
-
-       //setup_call_info_02.IdentityMode = TAPI_CALL_IDENTITY_SHOW;    //preet
-       //setup_call_info_02.pCugInfo = NULL;
-       //setup_call_info_02.pUusInfo = NULL;
-
-       CALL_TEST_DEBUG("MAKE A 1ST MO CALL TO %s\n",setup_call_info_01.szNumber);
-       ret_status =  tel_exe_call_mo(&setup_call_info_01, &call_handle_01, &RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_SETUP_CNF;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       CALL_TEST_DEBUG("HOLD THE ACTIVE CALL\n");
-       ret_status = tel_hold_call (call_handle_01 , &RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_HOLD_CNF;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-                        
-       CALL_TEST_DEBUG("MAKE 2ND MO CALL TO %s\n",setup_call_info_02.szNumber);
-       ret_status =  tel_exe_call_mo(&setup_call_info_02, &call_handle_02, &RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_SETUP_CNF;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-       
-       CALL_TEST_DEBUG("RELEASE ALL ACTIVE CALL\n");
-       ret_status =  tel_release_call_all(&RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_END_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_release_call_all() API in abnormal conditions
- * @par ID:
- * UTC_TEL_RELEASE_CALL_ALL_02
- * @param [out] pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-
-void utc_tel_release_call_all_02()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-
-       ret_status = tel_release_call_all (NULL);
-
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_status);
-
-       tet_infoline("utc_tel_release_call_func_03");
-       tet_result(TET_PASS);
-
-       return;
-}
diff --git a/TC/telephony_TC/call/unit/uts_tel_release_call_all.h b/TC/telephony_TC/call/unit/uts_tel_release_call_all.h
deleted file mode 100644 (file)
index eb3574c..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef        __UTS_TEL_RELEASE_CALL_ALL_H_
-#define  __UTS_TEL_RELEASE_CALL_ALL_H_ 
-
-/*  Includes */
-
-#include "tapi_callback.h"
-#include <tet_api.h>
-#include "call_common.h"
-
-extern TS_UINT g_CallHandle;
-extern TS_BOOL call_status;
-
-
-
-/**
-* @test   This test case tests         TapiResult_t    tel_release_call_all (int *pRequestId);
-* @brief  This API is used to test MT call
-* @return  tapi_api_err_t
-*/
-
-
-//     static void utc_tel_release_call_all_01(void);
-
-       static void utc_tel_release_call_all_01(void);
-
-       static void utc_tel_release_call_all_02(void);
-
-
-
-       static void startup();
-
-       static void cleanup();
-
-
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_release_call_all_01, 1},
-       {utc_tel_release_call_all_02, 2},
-       {NULL, 0}
-       };
-
-#endif
-
-/**
- * @}
- */
diff --git a/TC/telephony_TC/call/unit/uts_tel_release_call_all_active.c b/TC/telephony_TC/call/unit/uts_tel_release_call_all_active.c
deleted file mode 100644 (file)
index 3705fa1..0000000
+++ /dev/null
@@ -1,182 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include "uts_tel_release_call_all_active.h"
-
-
-/* Initialize TCM data structures */
-
-
-
-
-
-/*
-*  TapiResult_t        tel_release_call_all_active(int *pRequestID);
-*/
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-
-extern int expected_event;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)
-       {
-               printf("tel_init() Failed ret_status = %d \n",ret_status);
-       }
-
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-       if(tel_get_app_name(&dname))
-               printf("Dbus Get app name error\n");
-       else 
-               printf("Dbus Name is %s\n",dname.name);
-               
-       tel_check_service_ready(&bStatus);
-       printf("Telephpny service  %d\n",bStatus);
-
-       g_CallHandle = -1;
-}
-
-static void cleanup()
-{
-       int  RequestId = -1;
-
-       tel_release_call_all(&RequestId);
-       gmain_loop_for_tapi_events(TIME_DELAY0);
-
-       deregister_all();
-
-       tel_deinit();
-
-}
-
-
-/**
- * @brief This tests tel_release_call_active_all() API in normal conditions
- * @par ID:
- * UTC_TEL_RELEASE_CALL_ALL_ACTIVe_01
- * @param [out] pRequestId = &RequestId
-* @return TAPI_API_SUCCESS
-*/
-
-void utc_tel_release_call_all_active_01()
-{
-       CALL_TEST_DEBUG("\n################     TEST START    ################\n");
-       TapiResult_t  ret_status ;
-       unsigned int call_handle_01 = -1;
-       unsigned int call_handle_02 = -1;
-       TelCallSetupParams_t setup_call_info_01;
-       TelCallSetupParams_t setup_call_info_02;
-       int  RequestId = -1;
-       char normal1[16] = MOB_NUM1;
-       char normal2[16] = MOB_NUM2;
-
-       memset(&setup_call_info_01, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info_01.CallType = TAPI_CALL_TYPE_VOICE;
-       strncpy(setup_call_info_01.szNumber, normal1, 13);
-       tet_printf("called number = %s\n", setup_call_info_01.szNumber);
-
-       //setup_call_info_01.IdentityMode = TAPI_CALL_IDENTITY_SHOW;    //preet: TelCallSetupParams_t donot have these members
-       //setup_call_info_01.pCugInfo = NULL;
-       //setup_call_info_01.pUusInfo = NULL;
-
-       memset(&setup_call_info_02, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info_02.CallType = TAPI_CALL_TYPE_VOICE;
-       strncpy(setup_call_info_02.szNumber, normal2, 13);
-       tet_printf("called number = %s\n", setup_call_info_02.szNumber);
-
-       //setup_call_info_02.IdentityMode = TAPI_CALL_IDENTITY_SHOW;    //preet: TelCallSetupParams_t donot have these members
-       //setup_call_info_02.pCugInfo = NULL;
-       //setup_call_info_02.pUusInfo = NULL;
-
-
-       CALL_TEST_DEBUG("MAKE A 1ST MO CALL TO %s\n",setup_call_info_01.szNumber);
-       ret_status =  tel_exe_call_mo(&setup_call_info_01, &call_handle_01, &RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       CALL_TEST_DEBUG("HOLD THE ACTIVE CALL\n");
-       ret_status = tel_hold_call (call_handle_01 , &RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_HOLD_CNF;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       CALL_TEST_DEBUG("MAKE 2ND MO CALL TO %s\n",setup_call_info_02.szNumber);
-       ret_status =  tel_exe_call_mo(&setup_call_info_02, &call_handle_02, &RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       CALL_TEST_DEBUG("RELEASE ALL ACTIVE CALL\n");
-       ret_status =  tel_release_call_all_active(&RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_END_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       TelCallStatus_t call_status;
-
-       CALL_TEST_DEBUG("GET CALL STATUS\n");
-       ret_status = tel_get_call_status (call_handle_01, &call_status);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       CALL_TEST_DEBUG("Active State :%d\n",call_status.CallActiveState);
-       CALL_TEST_DEBUG("Call State    :%d\n",call_status.CallState);
-       CALL_TEST_DEBUG("call Type :%d\n",call_status.CallType);
-       CALL_TEST_DEBUG("call Number :%s\n",call_status.pNumber);
-
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_release_call_all_active() API in abnormal conditions
- * @par ID:
- * UTC_TEL_RELEASE_CALL_ALL_ACTIVe_02
- * @param [out] pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-
-
-void utc_tel_release_call_all_active_02()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-
-       ret_status = tel_release_call_all_active(NULL);
-
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_status);
-
-       tet_infoline("utc_tel_release_call_all_active_02");
-       tet_result(TET_PASS);
-
-       return;
-}
-
diff --git a/TC/telephony_TC/call/unit/uts_tel_release_call_all_active.h b/TC/telephony_TC/call/unit/uts_tel_release_call_all_active.h
deleted file mode 100644 (file)
index 2117dc5..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef        __UTS_TEL_RELEASE_CALL_ALL_ACTIVE_H_
-#define   __UTS_TEL_RELEASE_CALL_ALL_ACTIVE_H_
-
-/*  Includes */
-
-
-#include "tapi_callback.h"
-#include <tet_api.h>
-#include "call_common.h"
-
-extern TS_UINT g_CallHandle;
-extern TS_BOOL call_status;
-
-
-
-/**
-* @test   This test case tests   TapiResult_t  tel_release_call_all_active(int *pRequestID);
-* @brief  This API is used to release all active call.
-* @return  TapiResult_t
-*/
-
-
-
-/**
-* @test                This test case tests
-* API          This test case tests TapiResult_t       tel_release_call_all_active(int *pRequestID);
-* @brief        launch  application with valid input, outparameter . @n
-* @pre
-* @param[in]    pRequestID = valid pointer ,
-* @return      TAPI_API_SUCCESS
-
-*/
-
-       static void utc_tel_release_call_all_active_01(void);
-
-
-/**
-* @test                This test case tests
-* API          This test case tests TapiResult_t       tel_release_call_all_active(int *pRequestID);
-* @brief        launch  application with valid input, outparameter . @n
-* @pre
-* @param[in]    pRequestID = NULL ,
-* @return      TAPI_API_INVALID_PTR
-
-*/
-
-       static void utc_tel_release_call_all_active_02(void);
-
-
-\r\r     static void startup();
-
-       static void cleanup();
-
-
-struct tet_testlist tet_testlist[] = {
-               {utc_tel_release_call_all_active_01, 1},
-               {utc_tel_release_call_all_active_02, 2},
-               {NULL, 0}
-       };
-
-#endif
-
-/**
- * @}
- */
diff --git a/TC/telephony_TC/call/unit/uts_tel_release_call_all_held.c b/TC/telephony_TC/call/unit/uts_tel_release_call_all_held.c
deleted file mode 100644 (file)
index ccdc03b..0000000
+++ /dev/null
@@ -1,169 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-\r
-#include <stdio.h>\r
-#include <stdlib.h>\r
-\r
-#include "uts_tel_release_call_all_held.h"\r
-\r
-\r
-\r
-/* Initialize TCM data structures */\r
-\r
-\r
-\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-\r
-\r
-extern int expected_event;\r
-\r
-static void startup()\r
-{\r
-       TapiResult_t  ret_status ;\r
-       tapi_dbus_connection_name dname;\r
-       int bStatus;\r
-       ret_status = tel_init();\r
-\r
-       if(ret_status != TAPI_API_SUCCESS)\r
-       {\r
-               printf("tel_init() Failed ret_status = %d \n",ret_status);\r
-       }\r
-\r
-\r
-       register_all_events();\r
-       tel_register_app_name("org.samsung.test");\r
-       if(tel_get_app_name(&dname))\r
-               printf("Dbus Get app name error\n");\r
-       else \r
-               printf("Dbus Name is %s\n",dname.name);\r
-               \r
-       tel_check_service_ready(&bStatus);\r
-       printf("Telephpny service  %d\n",bStatus);\r
-}\r
-\r
-static void cleanup()\r
-{\r
-       deregister_all();\r
-\r
-       tel_deinit();\r
-}\r
-\r
-\r
-/**\r
-TapiResult_t   tel_release_call_all_held (int *pRequestId);\r
-*/\r
-\r
-\r
-/**\r
- * @brief This tests tel_release_call_all_held() API in normal conditions (MO call)\r
- * @par ID:\r
- * UTC_TEL_RELEASE_CALL_ALL_01\r
- * @param [out] pRequestId = &RequestId\r
-* @return TAPI_API_SUCCESS\r
-*/\r
-void utc_tel_release_call_all_held_01()\r
-{\r
-       CALL_TEST_DEBUG("\n################     TEST START    ################\n");\r
-       TapiResult_t  ret_status ;\r
-       unsigned int call_handle_01 = -1;\r
-       unsigned int call_handle_02 = -1;\r
-       TelCallSetupParams_t setup_call_info_01;\r
-       TelCallSetupParams_t setup_call_info_02;\r
-       int  RequestId = -1;\r
-       char normal1[16] = MOB_NUM1;\r
-       char normal2[16] = MOB_NUM2;\r
-\r
-       memset(&setup_call_info_01, 0, sizeof(TelCallSetupParams_t));\r
-       setup_call_info_01.CallType = TAPI_CALL_TYPE_VOICE;\r
-       strncpy(setup_call_info_01.szNumber, normal1, 13);\r
-       tet_printf("called number = %s\n", setup_call_info_01.szNumber);\r
-\r
-       //setup_call_info_01.IdentityMode = TAPI_CALL_IDENTITY_SHOW;    //preet\r
-       //setup_call_info_01.pCugInfo = NULL;\r
-       //setup_call_info_01.pUusInfo = NULL;\r
-\r
-       memset(&setup_call_info_02, 0, sizeof(TelCallSetupParams_t));\r
-       setup_call_info_02.CallType = TAPI_CALL_TYPE_VOICE;\r
-       strncpy(setup_call_info_02.szNumber, normal2, 13);\r
-       tet_printf("called number = %s\n", setup_call_info_02.szNumber);\r
-\r
-       //setup_call_info_02.IdentityMode = TAPI_CALL_IDENTITY_SHOW;    //preet\r
-       //setup_call_info_02.pCugInfo = NULL;\r
-       //setup_call_info_02.pUusInfo = NULL;\r
-\r
-\r
-       CALL_TEST_DEBUG("MAKE A 1ST MO CALL TO %s\n",setup_call_info_01.szNumber);\r
-       ret_status =  tel_exe_call_mo(&setup_call_info_01, &call_handle_01, &RequestId);\r
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);\r
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;\r
-       gmain_loop_for_tapi_events(TIME_DELAY1);\r
-\r
-       CALL_TEST_DEBUG("HOLD THE ACTIVE CALL\n");\r
-       ret_status = tel_hold_call (call_handle_01 , &RequestId);\r
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);\r
-       expected_event = TAPI_EVENT_CALL_HOLD_CNF;\r
-       gmain_loop_for_tapi_events(TIME_DELAY1);\r
-\r
-       CALL_TEST_DEBUG("MAKE 2ND MO CALL TO %s\n",setup_call_info_02.szNumber);\r
-       ret_status =  tel_exe_call_mo(&setup_call_info_02, &call_handle_02, &RequestId);\r
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);\r
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;\r
-       gmain_loop_for_tapi_events(TIME_DELAY1);\r
-\r
-\r
-       CALL_TEST_DEBUG("RELEASE ALL HELD CALLS\n");\r
-       ret_status =  tel_release_call_all_held(&RequestId);\r
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);\r
-       expected_event = TAPI_EVENT_CALL_RELEASE_ALL_HELD_CNF;\r
-       gmain_loop_for_tapi_events(TIME_DELAY1);\r
-\r
-       tet_result(TET_PASS);\r
-\r
-       return;\r
-}\r
-\r
-/**\r
- * @brief This tests tel_release_call_all() API in abnormal conditions\r
- * @par ID:\r
- * UTC_TEL_RELEASE_CALL_ALL_02\r
- * @param [out] pRequestId = NULL\r
-* @return TAPI_API_INVALID_PTR\r
-*/\r
-\r
-void utc_tel_release_call_all_held_02()\r
-{\r
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");\r
-       TapiResult_t  ret_status ;\r
-\r
-       ret_status = tel_release_call_all_held (NULL);\r
-\r
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_status);\r
-\r
-       tet_infoline("utc_tel_release_call_all_held_func_02");\r
-       tet_result(TET_PASS);\r
-\r
-       return;\r
-}\r
-\r
-\r
-\r
diff --git a/TC/telephony_TC/call/unit/uts_tel_release_call_all_held.h b/TC/telephony_TC/call/unit/uts_tel_release_call_all_held.h
deleted file mode 100644 (file)
index 59a22b8..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-#ifndef        __UTS_TEL_RELEASE_CALL_ALL_CALL_H_\r
-#define   __UTS_TEL_RELEASE_CALL_ALL_CALL_H_\r
-\r
-/*  Includes */\r
-\r
-#include "tapi_callback.h"\r
-#include <tet_api.h>\r
-#include "call_common.h"\r
-\r
-extern TS_UINT g_CallHandle;\r
-extern TS_BOOL call_status;\r
-\r
-\r
-\r
-/**\r
-* @test   This test case tests         TapiResult_t    tel_release_call_all (int *pRequestId);\r
-* @brief  This API is used to test MT call\r
-* @return  tapi_api_err_t\r
-*/\r
-\r
-\r
-//     static void utc_tel_release_call_all_01(void);\r
-\r
-       static void utc_tel_release_call_all_held_01(void);\r
-\r
-       static void utc_tel_release_call_all_held_02(void);\r
-\r
-\r
-\r
-       static void startup();\r
-\r
-       static void cleanup();\r
-\r
-\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-//     {utc_tel_release_call_all_01, 1},\r
-       {utc_tel_release_call_all_held_01, 1},\r
-       {utc_tel_release_call_all_held_02, 2},\r
-       {NULL, 0}\r
-       };\r
-\r
-#endif\r
-\r
-/**\r
- * @}\r
- */\r
-\r
diff --git a/TC/telephony_TC/call/unit/uts_tel_retrieve_call.c b/TC/telephony_TC/call/unit/uts_tel_retrieve_call.c
deleted file mode 100644 (file)
index b590728..0000000
+++ /dev/null
@@ -1,187 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#include "uts_tel_retrieve_call.h"
-
-
-/* Initialize TCM data structures */
-
-/*
-*  TapiResult_t        tel_retrieve_call ( unsigned int  CallHandle, int *pRequestId) ;
-*/
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-
-extern int expected_event;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-       tapi_dbus_connection_name dname;
-       int bStatus;
-
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)
-       {
-               printf("tel_init() Failed ret_status = %d \n",ret_status);
-       }
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-       if(tel_get_app_name(&dname))
-               printf("Dbus Get app name error\n");
-       else 
-               printf("Dbus Name is %s\n",dname.name);
-               
-       tel_check_service_ready(&bStatus);
-       printf("Telephpny service  %d\n",bStatus);
-}
-
-static void cleanup()
-{
-       int  RequestId = -1;
-
-       tel_release_call_all(&RequestId);
-       expected_event = TAPI_EVENT_CALL_END_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       deregister_all();
-
-       tel_deinit();
-}
-
-
-/**
- * @brief This tests tel_retrieve_call() API in normal conditions
- * @par ID: UTC_TEL_RETRIEVE_CALL_01
- * @param [in] CallHandle = g_retreive_handle[0]
- * @param [out] pRequestId = &RequestId
-* @return TAPI_API_SUCCESS
-*/
-
-
-void utc_tel_retrieve_call_01()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       unsigned int active_call_handle = 0;
-       TelCallSetupParams_t setup_call_info;
-       int  RequestId = -1;
-       char normal[16] = MOB_NUM1;
-
-       memset(&setup_call_info, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info.CallType = TAPI_CALL_TYPE_VOICE;
-       strncpy(setup_call_info.szNumber, normal, 13);
-       tet_printf("called number = %s\n", setup_call_info.szNumber);
-
-       //setup_call_info.IdentityMode = TAPI_CALL_IDENTITY_SHOW;       //preet
-       //setup_call_info.pCugInfo = NULL;
-       //setup_call_info.pUusInfo = NULL;
-
-       CALL_TEST_DEBUG("MAKE A MO CALL TO %s",setup_call_info.szNumber);
-       ret_status =  tel_exe_call_mo(&setup_call_info, &active_call_handle, &RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       CALL_TEST_DEBUG("HOLD THE ACTIVE CALL");
-       ret_status = tel_hold_call (active_call_handle , &RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_HOLD_CNF;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       CALL_TEST_DEBUG("RETRIEVE THE HELD CALL");
-       ret_status = tel_retrieve_call (active_call_handle ,&RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_RETRIEVE_CNF;
-
-       CALL_TEST_DEBUG("RELEASE ALL CALLS");
-       tel_release_call_all(&RequestId);
-       expected_event = TAPI_EVENT_CALL_END_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       printf("utc_tel_retrieve_call_01 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-
-}
-
-/**
- * @brief This tests tel_retrieve_call() API in abnormal conditions
- * @par ID:
- * UTC_TEL_RETRIEVE_CALL_02
- * @param [in] CallHandle = g_retreive_handle[1]
- * @param [out] pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-
-void utc_tel_retrieve_call_02()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       int  RequestId = -1;
-       unsigned int call_handle = VALID_CALL_HANDLE;
-
-       ret_status = tel_retrieve_call (call_handle , NULL);
-
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_status);
-
-       RequestId = -1;
-
-       printf("utc_tel_retrieve_call_02 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-
-}
-
-/**
- * @brief This tests tel_retrieve_call() API in abnormal conditions
- * @par ID:
- * UTC_TEL_RETRIEVE_CALL_03
- * @param [in] CallHandle = INVALID_CALL_HANDLE
- * @param [out] pRequestId = &RequestId
-* @return TAPI_API_INVALID_CALL_HANDLE
-*/
-
-void utc_tel_retrieve_call_03()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       unsigned int call_handle = INVALID_CALL_HANDLE;
-       int  RequestId = -1;
-
-       ret_status = tel_retrieve_call (call_handle, &RequestId);
-
-       TET_CHECK(TAPI_API_INVALID_CALL_HANDLE, ret_status);
-
-       printf("utc_tel_retrieve_call_03 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-
diff --git a/TC/telephony_TC/call/unit/uts_tel_retrieve_call.h b/TC/telephony_TC/call/unit/uts_tel_retrieve_call.h
deleted file mode 100644 (file)
index 68b8c6b..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef        __UTS_TEL_RETRIEVE_CALL_H_
-#define   __UTS_TEL_RETRIEVE_CALL_H_
-
-/*  Includes */
-
-
-#include "tapi_callback.h"
-#include <tet_api.h>
-#include "call_common.h"
-
-extern TS_UINT g_CallHandle;
-extern TS_BOOL call_status;
-
-
-
-/**
-* @test   This test case tests  TapiResult_t   tel_retrieve_call ( unsigned int  CallHandle, int *pRequestId) ;
-* @brief  This API is used to test MT call
-* @return  tapi_api_err_t
-*/
-
-
-       static void utc_tel_retrieve_call_01(void);
-
-       static void utc_tel_retrieve_call_02(void);
-
-       static void utc_tel_retrieve_call_03(void);
-
-
-       static void startup();
-
-       static void cleanup();
-
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_retrieve_call_01, 1},
-       {utc_tel_retrieve_call_02, 2},
-       {utc_tel_retrieve_call_03, 3},
-       {NULL, 0}
-       };
-
-#endif
-
-/**
- * @}
- */
diff --git a/TC/telephony_TC/call/unit/uts_tel_send_call_dtmf.c b/TC/telephony_TC/call/unit/uts_tel_send_call_dtmf.c
deleted file mode 100644 (file)
index cad4e75..0000000
+++ /dev/null
@@ -1,175 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#include <stdio.h>
-#include <stdlib.h>
-
-#include <sys/types.h>
-#include <sys/wait.h>
-#include<unistd.h>
-
-#include "uts_tel_send_call_dtmf.h"
-
-
-
-/* Initialize TCM data structures */
-
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-extern int expected_event;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)
-       {
-               printf("tel_init() Failed ret_status = %d \n",ret_status);
-       }
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-       if(tel_get_app_name(&dname))
-               printf("Dbus Get app name error\n");
-       else 
-               printf("Dbus Name is %s\n",dname.name);
-               
-       tel_check_service_ready(&bStatus);
-       printf("Telephpny service  %d\n",bStatus);
-}
-
-static void cleanup()
-{
-       int RequestId;
-       tel_release_call_all(&RequestId);
-       expected_event = TAPI_EVENT_CALL_END_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-       deregister_all();
-
-       tel_deinit();
-}
-
-/**
-*   TapiResult_t       tel_send_call_dtmf (const char * pDtmfString, int *pRequestId);
-*/
-
-
-/**
- * @brief This tests tel_send_call_dtmf () API in normal condition (MO call)
- * @par ID:
- * UTC_TEL_SEND_CALL_DTMF_01
- * @param [in] pDtmfString = DTMF_STRING
- * @param [out] pRequestId = &RequestId
-* @return TAPI_API_SUCCESS
-*/
-
-void utc_tel_send_call_dtmf_01()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-
-       TapiResult_t  ret_status ;
-       unsigned int call_handle = INVALID_CALL_HANDLE;
-       TelCallSetupParams_t setup_call_info;
-       int  RequestId = -1;
-       char normal[16] = MOB_NUM1;
-
-       memset(&setup_call_info, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info.CallType = TAPI_CALL_TYPE_VOICE;   //VOICE CALL
-       strncpy(setup_call_info.szNumber, normal, sizeof(normal));
-       ret_status =  tel_exe_call_mo(&setup_call_info, &call_handle, &RequestId);
-
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       ret_status = tel_send_call_dtmf(DTMF_STRING , &RequestId);
-
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-
-       expected_event = TAPI_EVENT_CALL_SEND_DTMF_CNF;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-       printf("utc_tel_send_call_dtmf_func_01 pass");
-       tet_result(TET_PASS);
-
-       tel_release_call_all(&RequestId);
-
-       expected_event = TAPI_EVENT_CALL_END_IND;
-    gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       return;
-}
-
-/**
- * @brief This tests tel_send_call_dtmf () API in abnormal conditions
- * @par ID:
- * UTC_TEL_SEND_CALL_DTMF_03
- * @param [in] pDtmfString = DTMF_STRING
- * @param [out] pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-
-void utc_tel_send_call_dtmf_03()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-
-       ret_status = tel_send_call_dtmf (DTMF_STRING , NULL);
-
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_status);
-
-       printf("utc_tel_send_call_dtmf_func_03 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_send_call_dtmf () API in abnormal conditions
- * @par ID:
- * UTC_TEL_SEND_CALL_DTMF_04
- * @param [in] pDtmfString = NULL
- * @param [out] pRequestId = &RequestId
-* @return TAPI_API_INVALID_PTR
-*/
-
-void utc_tel_send_call_dtmf_04()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-
-       int  RequestId = -1;
-       ret_status = tel_send_call_dtmf (NULL , &RequestId);
-
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_status);
-
-       printf("utc_tel_send_call_dtmf_func_04 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-
diff --git a/TC/telephony_TC/call/unit/uts_tel_send_call_dtmf.h b/TC/telephony_TC/call/unit/uts_tel_send_call_dtmf.h
deleted file mode 100644 (file)
index 8e1c95e..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef        __UTS_TEL_SEND_CALL_DTMF_H_
-#define   __UTS_TEL_SEND_CALL_DTMF_H_
-
-/*  Includes */
-
-#include <tet_api.h>
-#include "call_common.h"
-#include <ITapiCall.h>
-#include "tapi_callback.h"
-
-extern TS_UINT g_CallHandle;
-extern TS_BOOL call_status;
-
-       static void utc_tel_send_call_dtmf_01(void);
-
-       static void utc_tel_send_call_dtmf_03(void);
-
-       static void utc_tel_send_call_dtmf_04(void);
-
-
-
-       static void startup();
-
-       static void cleanup();
-
-
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_send_call_dtmf_01, 1},
-       {utc_tel_send_call_dtmf_03, 3},
-       {utc_tel_send_call_dtmf_04, 4},
-       {NULL, 0}
-       };
-
-#endif
-
-/**
- * @}
- */
diff --git a/TC/telephony_TC/call/unit/uts_tel_set_call_act_line.c b/TC/telephony_TC/call/unit/uts_tel_set_call_act_line.c
deleted file mode 100644 (file)
index 5d816d3..0000000
+++ /dev/null
@@ -1,217 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#include "uts_tel_set_call_act_line.h"
-
-
-/* Initialize TCM data structures */
-
-
-/*
-*   TapiResult_t tel_set_call_act_line (TelCallActiveLine_t active_line  ,int *pRequestId);
-*/
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-extern int expected_event;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)
-       {
-               printf("tel_init() Failed ret_status = %d \n",ret_status);
-       }
-
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-       if(tel_get_app_name(&dname))
-               printf("Dbus Get app name error\n");
-       else 
-               printf("Dbus Name is %s\n",dname.name);
-               
-       tel_check_service_ready(&bStatus);
-       printf("Telephpny service  %d\n",bStatus);
-
-       g_CallHandle = -1;
-}
-
-static void cleanup()
-{
-       TapiResult_t  ret_status ;
-       int  RequestId = -1;
-       ret_status = tel_set_call_act_line(TAPI_CALL_ACTIVE_LINE1 ,&RequestId);
-       deregister_all();
-
-       tel_deinit();
-
-}
-
-
-
-/**
- * @brief This tests tel_set_call_act_line() API in normal conditions
- * @par ID:
- * UTC_TEL_SET_CALL_ACT_LINE_01
- * @param [in] CallHandle = TAPI_CALL_ACTIVE_LINE1
- * @param [out] pRequestId = &RequestId
-* @return TAPI_API_SUCCESS
-*/
-
-
-void utc_tel_set_call_act_line_01()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       int  RequestId = -1;
-
-       ret_status = tel_set_call_act_line(TAPI_CALL_ACTIVE_LINE1 ,&RequestId);
-
-       expected_event = TAPI_EVENT_CALL_SET_LINEID_CNF;
-       if (ret_status >= 0)
-       {
-               TET_CHECK(TAPI_API_SUCCESS, ret_status);
-
-               expected_event = TAPI_EVENT_CALL_SET_LINEID_CNF;
-               printf("utc_tel_set_call_act_line_01 pass\n");
-               tet_result(TET_PASS);
-       }
-       return;
-}
-
-
-/**
- * @brief This tests tel_set_call_act_line() API in normal conditions
- * @par ID:
- * UTC_TEL_SET_CALL_ACT_LINE_02
- * @param [in] CallHandle = TAPI_CALL_ACTIVE_LINE2
- * @param [out] pRequestId = &RequestId
-* @return TAPI_API_SUCCESS
-*/
-
-void utc_tel_set_call_act_line_02()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       int  RequestId = -1;
-
-       ret_status = tel_set_call_act_line(TAPI_CALL_ACTIVE_LINE2 ,&RequestId);
-
-       expected_event = TAPI_EVENT_CALL_SET_LINEID_CNF;
-       if (ret_status >= 0)
-       {
-               TET_CHECK(TAPI_API_SUCCESS, ret_status);
-
-               expected_event = TAPI_EVENT_CALL_SET_LINEID_CNF;
-               printf("utc_tel_set_call_act_line_02 pass\n");
-               tet_result(TET_PASS);
-       }
-       return;
-}
-
-/**
- * @brief This tests tel_set_call_act_line() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SET_CALL_ACT_LINE_03
- * @param [in] CallHandle = TAPI_CALL_ACTIVE_LINE2+1
- * @param [out] pRequestId = &RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_set_call_act_line_03()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       int  RequestId = -1;
-
-       ret_status = tel_set_call_act_line(TAPI_CALL_ACTIVE_LINE2+1 ,&RequestId);
-
-
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_status);
-
-       printf("utc_tel_set_call_act_line_03 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_call_act_line() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SET_CALL_ACT_LINE_04
- * @param [in] CallHandle = TAPI_CALL_ACTIVE_LINE1-1
- * @param [out] pRequestId = &RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_set_call_act_line_04()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       int  RequestId = -1;
-
-       ret_status = tel_set_call_act_line(TAPI_CALL_ACTIVE_LINE1-1 ,&RequestId);
-
-
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_status);
-
-       printf("utc_tel_set_call_act_line_04 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_call_act_line() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SET_CALL_ACT_LINE_05
- * @param [in] CallHandle = TAPI_CALL_ACTIVE_LINE1-1
- * @param [out] pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-
-void utc_tel_set_call_act_line_05()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-
-       ret_status = tel_set_call_act_line(TAPI_CALL_ACTIVE_LINE1 ,NULL);
-
-
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_status);
-
-       printf("utc_tel_set_call_act_line_05 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-
-
-
-
diff --git a/TC/telephony_TC/call/unit/uts_tel_set_call_act_line.h b/TC/telephony_TC/call/unit/uts_tel_set_call_act_line.h
deleted file mode 100644 (file)
index 32f569a..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef        __UTS_TEL_SET_CALL_ACT_LINE_H_
-#define   __UTS_TEL_SET_CALL_ACT_LINE_H_
-
-/*  Includes */
-
-#include "tapi_callback.h"
-#include <tet_api.h>
-#include "call_common.h"
-
-extern TS_UINT g_CallHandle;
-extern TS_BOOL call_status;
-
-       static void utc_tel_set_call_act_line_01(void);
-
-       static void utc_tel_set_call_act_line_02(void);
-
-       static void utc_tel_set_call_act_line_03(void);
-
-       static void utc_tel_set_call_act_line_04(void);
-
-       static void utc_tel_set_call_act_line_05(void);
-
-
-
-       static void startup();
-
-       static void cleanup();
-
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_set_call_act_line_01, 1},
-       {utc_tel_set_call_act_line_02, 2},
-       {utc_tel_set_call_act_line_03, 3},
-       {utc_tel_set_call_act_line_04, 4},
-       {utc_tel_set_call_act_line_05, 5},
-       {NULL, 0}
-       };
-
-#endif
-
-/**
- * @}
- */
diff --git a/TC/telephony_TC/call/unit/uts_tel_set_call_privacy_mode.c b/TC/telephony_TC/call/unit/uts_tel_set_call_privacy_mode.c
deleted file mode 100644 (file)
index 39f448e..0000000
+++ /dev/null
@@ -1,278 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <TelCall.h>
-#include "uts_tel_set_call_privacy_mode.h"
-
-/* Initialize TCM data structures */
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-extern int expected_event;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)
-       {
-               printf("tel_init() Failed ret_status = %d \n",ret_status);
-       }
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-       if(tel_get_app_name(&dname))
-               printf("Dbus Get app name error\n");
-       else 
-               printf("Dbus Name is %s\n",dname.name);
-               
-       tel_check_service_ready(&bStatus);
-       printf("Telephpny service  %d\n",bStatus);
-
-       g_CallHandle = -1;
-}
-
-static void cleanup()
-{
-       deregister_all();
-
-       tel_deinit();
-}
-
-/**
- * @brief This tests () API in normal conditions
- * @par ID:
- * UTC_TEL_GET_CALL_PRIVACY_MODE_01
- * @param [out] 
- * @return TAPI_API_SUCCESS
-*/
-
-/***** TESTING FOR VALID SET OF INPUTS*****/
-
-void utc_tel_set_call_privacy_mode_01()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       TelCallVoicePrivacyInfo_t PrivacyInfo ;
-               int *pRequestID;
-               PrivacyInfo.PrivacyType =  TAPI_CALL_PRIVACY_TYPE_MS;   
-               PrivacyInfo.PrivacyMode = TAPI_CALL_PRIVACY_MODE_STANDARD ;     
-       ret_status =tel_set_call_privacy_mode (PrivacyInfo, &pRequestID); 
-       if(ret_status !=TAPI_API_SUCCESS)
-       {
-               tet_result(TET_FAIL);
-       }       
-       printf("utc_tel_get_call_privacy_mode_01 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-void utc_tel_set_call_privacy_mode_02()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       TelCallVoicePrivacyInfo_t PrivacyInfo ;
-               int *pRequestID;
-               PrivacyInfo.PrivacyType =  TAPI_CALL_PRIVACY_TYPE_MS;   
-               PrivacyInfo.PrivacyMode = TAPI_CALL_PRIVACY_MODE_ENHANCED;      
-       ret_status =tel_set_call_privacy_mode (PrivacyInfo, &pRequestID); 
-       if(ret_status !=TAPI_API_SUCCESS)
-       {
-               tet_result(TET_FAIL);
-       }       
-       printf("utc_tel_get_call_privacy_mode_02 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-void utc_tel_set_call_privacy_mode_03()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       TelCallVoicePrivacyInfo_t PrivacyInfo ;
-               int *pRequestID;
-               PrivacyInfo.PrivacyType =  TAPI_CALL_PRIVACY_TYPE_BS;   
-               PrivacyInfo.PrivacyMode = TAPI_CALL_PRIVACY_MODE_STANDARD ;     
-       ret_status =tel_set_call_privacy_mode (PrivacyInfo, &pRequestID); 
-       if(ret_status !=TAPI_API_SUCCESS)
-       {
-               tet_result(TET_FAIL);
-       }       
-       printf("utc_tel_get_call_privacy_mode_03 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-void utc_tel_set_call_privacy_mode_04()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       TelCallVoicePrivacyInfo_t PrivacyInfo ;
-               int *pRequestID;
-               PrivacyInfo.PrivacyType =  TAPI_CALL_PRIVACY_TYPE_BS;   
-               PrivacyInfo.PrivacyMode = TAPI_CALL_PRIVACY_MODE_ENHANCED;      
-       ret_status =tel_set_call_privacy_mode (PrivacyInfo, &pRequestID); 
-       if(ret_status !=TAPI_API_SUCCESS)
-       {
-               tet_result(TET_FAIL);
-       }       
-       printf("utc_tel_get_call_privacy_mode_04 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-void utc_tel_set_call_privacy_mode_05()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       TelCallVoicePrivacyInfo_t PrivacyInfo ;
-               int *pRequestID;
-               PrivacyInfo.PrivacyType =  TAPI_CALL_PRIVACY_TYPE_CURRENT;      
-               PrivacyInfo.PrivacyMode = TAPI_CALL_PRIVACY_MODE_STANDARD ;     
-       ret_status =tel_set_call_privacy_mode (PrivacyInfo, &pRequestID); 
-       if(ret_status !=TAPI_API_SUCCESS)
-       {
-               tet_result(TET_FAIL);
-       }       
-       printf("utc_tel_get_call_privacy_mode_05 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-void utc_tel_set_call_privacy_mode_06()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       TelCallVoicePrivacyInfo_t PrivacyInfo ;
-               int *pRequestID;
-               PrivacyInfo.PrivacyType = TAPI_CALL_PRIVACY_TYPE_CURRENT ;      
-               PrivacyInfo.PrivacyMode = TAPI_CALL_PRIVACY_MODE_ENHANCED;      
-       ret_status =tel_set_call_privacy_mode (PrivacyInfo, &pRequestID); 
-       if(ret_status !=TAPI_API_SUCCESS)
-       {
-               tet_result(TET_FAIL);
-       }       
-       printf("utc_tel_get_call_privacy_mode_06 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-void utc_tel_set_call_privacy_mode_07()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       TelCallVoicePrivacyInfo_t PrivacyInfo ;
-               int *pRequestID;
-               PrivacyInfo.PrivacyType =  -1;  
-               PrivacyInfo.PrivacyMode = TAPI_CALL_PRIVACY_MODE_ENHANCED;      
-       ret_status =tel_set_call_privacy_mode (PrivacyInfo, &pRequestID); 
-       if(ret_status ==TAPI_API_SUCCESS)
-       {
-               tet_result(TET_FAIL);
-       }       
-       printf("utc_tel_get_call_privacy_mode_07 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-void utc_tel_set_call_privacy_mode_08()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       TelCallVoicePrivacyInfo_t PrivacyInfo ;
-               int *pRequestID;
-               PrivacyInfo.PrivacyType =  4;   
-               PrivacyInfo.PrivacyMode = TAPI_CALL_PRIVACY_MODE_ENHANCED;      
-       ret_status =tel_set_call_privacy_mode (PrivacyInfo, &pRequestID); 
-       printf("\nReturn Code is :%d\n",ret_status);
-       if(ret_status ==TAPI_API_SUCCESS)
-       {
-               tet_result(TET_FAIL);
-       }       
-       printf("utc_tel_get_call_privacy_mode_08 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-void utc_tel_set_call_privacy_mode_09()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       TelCallVoicePrivacyInfo_t PrivacyInfo ;
-               int *pRequestID;
-               PrivacyInfo.PrivacyType = TAPI_CALL_PRIVACY_TYPE_CURRENT ;      
-               PrivacyInfo.PrivacyMode = -1;   
-       ret_status =tel_set_call_privacy_mode (PrivacyInfo, &pRequestID); 
-       if(ret_status ==TAPI_API_SUCCESS)
-       {
-               tet_result(TET_FAIL);
-       }       
-       printf("utc_tel_get_call_privacy_mode_09 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-void utc_tel_set_call_privacy_mode_10()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       TelCallVoicePrivacyInfo_t PrivacyInfo ;
-               int *pRequestID;
-               PrivacyInfo.PrivacyType = TAPI_CALL_PRIVACY_TYPE_CURRENT ;      
-               PrivacyInfo.PrivacyMode = 2;    
-       ret_status =tel_set_call_privacy_mode (PrivacyInfo, &pRequestID); 
-       if(ret_status ==TAPI_API_SUCCESS)
-       {
-               tet_result(TET_FAIL);
-       }       
-       printf("utc_tel_get_call_privacy_mode_10 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-void utc_tel_set_call_privacy_mode_11()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       TelCallVoicePrivacyInfo_t PrivacyInfo ;
-               PrivacyInfo.PrivacyType = TAPI_CALL_PRIVACY_TYPE_CURRENT ;      
-               PrivacyInfo.PrivacyMode = TAPI_CALL_PRIVACY_MODE_ENHANCED;      
-       ret_status =tel_set_call_privacy_mode (PrivacyInfo, NULL); 
-       if(ret_status ==TAPI_API_SUCCESS)
-       {
-               tet_result(TET_FAIL);
-       }       
-       printf("utc_tel_get_call_privacy_mode_11 pass");
-       tet_result(TET_PASS);
-
-       return;
-}
diff --git a/TC/telephony_TC/call/unit/uts_tel_set_call_privacy_mode.h b/TC/telephony_TC/call/unit/uts_tel_set_call_privacy_mode.h
deleted file mode 100644 (file)
index 26366d1..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef        __UTS_TEL_SET_CALL_PRIVACY_MODE_H_
-#define   __UTS_TEL_SET_CALL_PRIVACY_MODE_H_
-
-#include "tapi_callback.h"
-#include <tet_api.h>
-#include "call_common.h"
-#include <ITapiCall.h>
-
-extern TS_UINT g_CallHandle;
-extern TS_BOOL call_status;
-
-       static void utc_tel_set_call_privacy_mode_01(void);
-       static void utc_tel_set_call_privacy_mode_02(void);
-       static void utc_tel_set_call_privacy_mode_03(void);
-       static void utc_tel_set_call_privacy_mode_04(void);
-       static void utc_tel_set_call_privacy_mode_05(void);
-       static void utc_tel_set_call_privacy_mode_06(void);
-       static void utc_tel_set_call_privacy_mode_07(void);
-       static void utc_tel_set_call_privacy_mode_08(void);
-       static void utc_tel_set_call_privacy_mode_09(void);
-       static void utc_tel_set_call_privacy_mode_10(void);
-       static void utc_tel_set_call_privacy_mode_11(void);
-
-       static void startup();
-
-       static void cleanup();
-
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_set_call_privacy_mode_01, 1},
-       {utc_tel_set_call_privacy_mode_02, 2},
-       {utc_tel_set_call_privacy_mode_03, 3},
-       {utc_tel_set_call_privacy_mode_04, 4},
-       {utc_tel_set_call_privacy_mode_05, 5},
-       {utc_tel_set_call_privacy_mode_06, 6},
-       {utc_tel_set_call_privacy_mode_07, 7},
-       {utc_tel_set_call_privacy_mode_08, 8},
-       {utc_tel_set_call_privacy_mode_09, 9},
-       {utc_tel_set_call_privacy_mode_10, 10},
-       {utc_tel_set_call_privacy_mode_11, 11},
-       {NULL, 0}
-       };
-
-#endif
-
-/**
- * @}
- */
diff --git a/TC/telephony_TC/call/unit/uts_tel_split_call.c b/TC/telephony_TC/call/unit/uts_tel_split_call.c
deleted file mode 100644 (file)
index e9f25c5..0000000
+++ /dev/null
@@ -1,229 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#include "uts_tel_split_call.h"
-
-
-/* Initialize TCM data structures */
-
-
-/*
-*  TapiResult_t        tel_split_call ( unsigned int  CallHandle, int * pRequestId );
-*/
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-
-extern int expected_event;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)
-       {
-               printf("tel_init() Failed ret_status = %d \n",ret_status);
-       }
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-       if(tel_get_app_name(&dname))
-               printf("Dbus Get app name error\n");
-       else 
-               printf("Dbus Name is %s\n",dname.name);
-               
-       tel_check_service_ready(&bStatus);
-       printf("Telephpny service  %d\n",bStatus);
-
-       g_CallHandle = -1;
-}
-
-static void cleanup()
-{
-
-       deregister_all();
-
-       tel_deinit();
-
-}
-
-
-
-/**
- * @brief This tests tel_split_call() API in normal conditions
- * @par ID:
- * UTC_TEL_SPLIT_CALL_01
- * @param [in] CallHandle = callhandle[0]
- * @param [out] pRequestId = &RequestId
-* @return TAPI_API_SUCCESS
-*/
-void utc_tel_split_call_01()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       unsigned int call_handle_01 = -1;
-       unsigned int call_handle_02 = -1;
-       TelCallSetupParams_t setup_call_info_01;
-       TelCallSetupParams_t setup_call_info_02;
-       int  RequestId = -1;
-       char normal1[16] = MOB_NUM1;
-       char normal2[16] = MOB_NUM2;
-
-       memset(&setup_call_info_01, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info_01.CallType = TAPI_CALL_TYPE_VOICE;
-       strncpy(setup_call_info_01.szNumber, normal1, 13);
-       tet_printf("called number = %s\n", setup_call_info_01.szNumber);
-
-       //setup_call_info_01.IdentityMode = TAPI_CALL_IDENTITY_SHOW;    //preet: TelCallSetupParams_t dont have these memebers
-       //setup_call_info_01.pCugInfo = NULL;
-       //setup_call_info_01.pUusInfo = NULL;
-
-       memset(&setup_call_info_02, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info_02.CallType = TAPI_CALL_TYPE_VOICE;
-       strncpy(setup_call_info_02.szNumber, normal2, 13);
-       tet_printf("called number = %s\n", setup_call_info_02.szNumber);
-
-       //setup_call_info_02.IdentityMode = TAPI_CALL_IDENTITY_SHOW;    //preet: TelCallSetupParams_t dont have these memebers
-       //setup_call_info_02.pCugInfo = NULL;
-       //setup_call_info_02.pUusInfo = NULL;
-
-
-       CALL_TEST_DEBUG("MAKE A 1ST MO CALL TO %s\n",setup_call_info_01.szNumber);
-       ret_status =  tel_exe_call_mo(&setup_call_info_01, &call_handle_01, &RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       CALL_TEST_DEBUG("HOLD THE ACTIVE CALL\n");
-       ret_status = tel_hold_call (call_handle_01 , &RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       //expected_event = TAPI_EVENT_CALL_HOLD_CNF;
-       gmain_loop_for_tapi_events(TIME_DELAY2);
-
-       CALL_TEST_DEBUG("MAKE 2ND MO CALL TO %s\n",setup_call_info_02.szNumber);
-       ret_status =  tel_exe_call_mo(&setup_call_info_02, &call_handle_02, &RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       CALL_TEST_DEBUG("JOIN TWO CALLS\n");
-       ret_status = tel_join_call (call_handle_02, call_handle_01, &RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_SETUPCONFERENCE_CNF;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       CALL_TEST_DEBUG("SPLIT THE CONFERENCE\n");
-       ret_status = tel_split_call(call_handle_01, &RequestId);
-       expected_event = TAPI_EVENT_CALL_SPLITCONFERENCE_CNF;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-       printf ("utc_tel_split_call_01 RequestId = %d\n", RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-
-       CALL_TEST_DEBUG("RELEASE ALL CALLS\n");
-       tel_release_call_all(&RequestId);
-       expected_event = TAPI_EVENT_CALL_END_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       printf("utc_tel_split_call_01 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-
-/**
- * @brief This tests tel_split_call() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SPLIT_CALL_02
- * @param [in] CallHandle = callhandle[0]
- * @param [out] pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_split_call_02()
-{
-       CALL_TEST_DEBUG("\n################     TEST START    ################\n");
-       TapiResult_t  ret_status ;
-
-       ret_status = tel_split_call(VALID_CALL_HANDLE, NULL);
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_status);
-
-       printf("utc_tel_split_call_02 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-
-/**
- * @brief This tests tel_split_call() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SPLIT_CALL_03
- * @param [in] CallHandle = INVALID_CALL_HANDLE
- * @param [out] pRequestId = &RequestId
-* @return TAPI_API_INVALID_CALL_HANDLE
-*/
-
-
-void utc_tel_split_call_03()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       int  RequestId = -1;
-
-       ret_status = tel_split_call(INVALID_CALL_HANDLE, &RequestId);
-
-       TET_CHECK(TAPI_API_INVALID_CALL_HANDLE, ret_status);
-
-       printf("utc_tel_split_call_03 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_split_call() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SPLIT_CALL_04
- * @param [in] CallHandle = INVALID_CALL_HANDLE
- * @param [out] pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-
-void utc_tel_split_call_04()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-
-       ret_status = tel_split_call(VALID_CALL_HANDLE, NULL);
-
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_status);
-
-       printf("utc_tel_split_call_04 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
diff --git a/TC/telephony_TC/call/unit/uts_tel_split_call.h b/TC/telephony_TC/call/unit/uts_tel_split_call.h
deleted file mode 100644 (file)
index 96c2f64..0000000
+++ /dev/null
@@ -1,115 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef        __UTS_TEL_SPLIT_CALL_H_
-#define   __UTS_TEL_SPLIT_CALL_H_
-
-/*  Includes */
-
-
-#include "tapi_callback.h"
-#include <tet_api.h>
-#include "call_common.h"
-
-extern TS_UINT g_CallHandle;
-extern TS_BOOL call_status;
-
-
-/**
-* @test   This test case tests     TapiResult_t        tel_split_call ( unsigned int  CallHandle, int * pRequestId );
-* @brief  This API is used to split a call from conference
-* @return  tapi_api_err_t
-*/
-
-
-
-/**
-* @test                This test case tests
-* API          This test case tests  TapiResult_t      tel_split_call ( unsigned int  CallHandle, int * pRequestId );
-* @brief        launch  application with valid input, outparameter . @n
-* @pre
-* @param[in]    call_handle = valid value ,
-* @param[out]  pRequestId,
-* @return      TAPI_API_SUCCESS
-
-*/
-
-       static void utc_tel_split_call_01(void);
-
-/**
-* @test                This test case tests
-* API          This test case tests   TapiResult_t     tel_split_call ( unsigned int  CallHandle, int * pRequestId );
-* @brief        launch  application with valid input, outparameter . @n
-* @pre
-* @param[in]    call_handle = Invalid value ,
-* @param[out]  pRequestId,
-* @return      TAPI_API_INVALID_INPUT
-
-*/
-
-       static void utc_tel_split_call_02(void);
-
-
-/**
-* @test                This test case tests
-* API          This test case tests   TapiResult_t     tel_split_call ( unsigned int  CallHandle, int * pRequestId );
-* @brief        launch  application with valid input, outparameter . @n
-* @pre
-* @param[in]    call_handle = valid value ,
-* @param[out]  NULL,
-* @return      TAPI_API_INVALID_INPUT
-
-*/
-
-       static void utc_tel_split_call_03(void);
-
-/**
-* @test                This test case tests
-* API          This test case tests   TapiResult_t     tel_split_call ( unsigned int  CallHandle, int * pRequestId );
-* @brief        launch  application with valid input, outparameter . @n
-* @pre
-* @param[in]    call_handle = Invalid value ,
-* @param[out]  NULL,
-* @return      TAPI_API_INVALID_INPUT
-
-*/
-
-       static void utc_tel_split_call_04(void);
-
-
-\r\r     static void startup();
-
-       static void cleanup();
-
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_split_call_01, 1},
-       {utc_tel_split_call_02, 2},
-       {utc_tel_split_call_03, 3},
-       {utc_tel_split_call_04, 4},
-       {NULL, 0}
-       };
-
-#endif
-
-/**
- * @}
- */
diff --git a/TC/telephony_TC/call/unit/uts_tel_swap_call.c b/TC/telephony_TC/call/unit/uts_tel_swap_call.c
deleted file mode 100644 (file)
index ec84bac..0000000
+++ /dev/null
@@ -1,246 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#include "uts_tel_swap_call.h"
-#include "ITapiSs.h"
-
-
-/* Initialize TCM data structures */
-
-
-/*
-*  TapiResult_t tel_swap_call( unsigned int active_call, unsigned int held_call  ,int *pRequestId);
-*/
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-extern int expected_event;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-       tapi_dbus_connection_name dname;
-       int bStatus;
-
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)
-       {
-               printf("tel_init() Failed ret_status = %d \n",ret_status);
-       }
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-       if(tel_get_app_name(&dname))
-               printf("Dbus Get app name error\n");
-       else 
-               printf("Dbus Name is %s\n",dname.name);
-               
-       tel_check_service_ready(&bStatus);
-       printf("Telephpny service  %d\n",bStatus);
-
-       TelSsWaitingInfo_t waitInfo;
-
-       int request_id=0;
-       waitInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;
-       waitInfo.Mode =(TelSsCallWaitOperationMode_t)TAPI_SS_CW_ACTIVATE;
-
-       ret_status = tel_set_ss_waiting(&waitInfo, &request_id);
-       expected_event = TAPI_EVENT_SS_WAITING_CNF;
-       printf("call waiting\n");
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-
-       g_CallHandle = -1;
-}
-
-static void cleanup()
-{
-       int  RequestId = -1;
-
-       tel_release_call_all(&RequestId);
-       expected_event = TAPI_EVENT_CALL_END_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY1);
-
-       deregister_all();
-
-       tel_deinit();
-
-}
-
-
-/**
- * @brief This tests tel_swap_call() API in normal conditions
- * @par ID:
- * UTC_TEL_SWAP_CALL_01
- * @param [in] active_call = callhandle[1]
- * @param [in] held_call = callhandle[0]
- * @param [out] pRequestId = &RequestId
-* @return TAPI_API_SUCCESS
-*/
-// Sunghyuk Lee
-void utc_tel_swap_call_01()
-{
-       CALL_TEST_DEBUG("\n################     TEST START    ################\n");
-       TapiResult_t  ret_status ;
-       unsigned int call_handle_01 = -1;
-       unsigned int call_handle_02 = -1;
-       TelCallSetupParams_t setup_call_info_01;
-       TelCallSetupParams_t setup_call_info_02;
-       int  RequestId = -1;
-       char normal1[16] = MOB_NUM1;
-       char normal2[16] = MOB_NUM2;
-
-       memset(&setup_call_info_01, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info_01.CallType = TAPI_CALL_TYPE_VOICE;
-       strncpy(setup_call_info_01.szNumber, normal1, 13);
-       tet_printf("called number = %s\n", setup_call_info_01.szNumber);
-
-       //setup_call_info_01.IdentityMode = TAPI_CALL_IDENTITY_SHOW;    //preet: TelCallSetupParams_t donot have these memebers
-       //setup_call_info_01.pCugInfo = NULL;
-       //setup_call_info_01.pUusInfo = NULL;
-
-       memset(&setup_call_info_02, 0, sizeof(TelCallSetupParams_t));
-       setup_call_info_02.CallType = TAPI_CALL_TYPE_VOICE;
-       strncpy(setup_call_info_02.szNumber, normal2, 13);
-       tet_printf("called number = %s\n", setup_call_info_02.szNumber);
-
-       //setup_call_info_02.IdentityMode = TAPI_CALL_IDENTITY_SHOW;    //preet: TelCallSetupParams_t donot have these memebers
-               //setup_call_info_02.pCugInfo = NULL;
-       //setup_call_info_02.pUusInfo = NULL;
-
-
-       CALL_TEST_DEBUG("MAKE A 1ST MO CALL TO %s\n",setup_call_info_01.szNumber);
-       ret_status =  tel_exe_call_mo(&setup_call_info_01, &call_handle_01, &RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY2);
-
-       CALL_TEST_DEBUG("HOLD THE ACTIVE CALL\n");
-       ret_status = tel_hold_call (call_handle_01 , &RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-//     expected_event = TAPI_EVENT_CALL_HOLD_CNF;
-       gmain_loop_for_tapi_events(TIME_DELAY2);
-
-       CALL_TEST_DEBUG("MAKE 2ND MO CALL TO %s\n",setup_call_info_02.szNumber);
-       ret_status =  tel_exe_call_mo(&setup_call_info_02, &call_handle_02, &RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_CONNECTED_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY2);
-
-       CALL_TEST_DEBUG("SWAP TWO CALLS\n");
-       ret_status = tel_swap_call (call_handle_02, call_handle_01, &RequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_status);
-       expected_event = TAPI_EVENT_CALL_SWAP_CNF;
-       gmain_loop_for_tapi_events(TIME_DELAY2);
-
-       CALL_TEST_DEBUG("RELEASE ALL CALLS\n");
-       tel_release_call_all(&RequestId);
-       expected_event = TAPI_EVENT_CALL_END_IND;
-       gmain_loop_for_tapi_events(TIME_DELAY2);
-
-       tet_result(TET_PASS);
-
-       return;
-
-}
-
-
-/**
- * @brief This tests tel_swap_call() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SWAP_CALL_02
- * @param [in] active_call = INVALID_CALL_HANDLE
- * @param [in] held_call = VALID_CALL_HANDLE
- * @param [out] pRequestId = &RequestId
-* @return TAPI_API_INVALID_CALL_HANDLE
-*/
-
-void utc_tel_swap_call_02()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       int  RequestId = -1;
-       unsigned int call_handle = VALID_CALL_HANDLE;
-
-       ret_status = tel_swap_call (INVALID_CALL_HANDLE, call_handle, &RequestId);
-
-       TET_CHECK(TAPI_API_INVALID_CALL_HANDLE, ret_status);
-       printf("utc_tel_swap_call_02 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_swap_call() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SWAP_CALL_03
- * @param [in] active_call = VALID_CALL_HANDLE
- * @param [in] held_call = INVALID_CALL_HANDLE
- * @param [out] pRequestId = &RequestIdd
-* @return TAPI_API_INVALID_CALL_HANDLE
-*/
-
-void utc_tel_swap_call_03()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       int  RequestId = -1;
-       unsigned int call_handle = VALID_CALL_HANDLE;
-
-       ret_status = tel_swap_call (call_handle, INVALID_CALL_HANDLE, &RequestId);
-
-       TET_CHECK(TAPI_API_INVALID_CALL_HANDLE, ret_status);
-       printf("utc_tel_swap_call_03 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-
-/**
- * @brief This tests tel_swap_call() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SWAP_CALL_04
- * @param [in] active_call = VALID_CALL_HANDLE
- * @param [in] held_call = VALID_CALL_HANDLE
- * @param [out] pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-
-void utc_tel_swap_call_04()
-{
-       CALL_TEST_DEBUG("\n########     TEST START    ###########\n");
-       TapiResult_t  ret_status ;
-       unsigned int call_handle = VALID_CALL_HANDLE;
-
-       ret_status = tel_swap_call (call_handle, call_handle, NULL);
-
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_status);
-       printf("utc_tel_swap_call_04 pass\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
diff --git a/TC/telephony_TC/call/unit/uts_tel_swap_call.h b/TC/telephony_TC/call/unit/uts_tel_swap_call.h
deleted file mode 100644 (file)
index 72bb349..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef        __UTS_TEL_SWAP_CALL_H_
-#define   __UTS_TEL_SWAP_CALL_H_
-
-/*  Includes */
-
-#include "tapi_callback.h"
-#include <tet_api.h>
-#include "call_common.h"
-
-extern TS_UINT g_CallHandle;
-extern TS_BOOL call_status;
-
-
-
-       static void utc_tel_swap_call_01(void);
-
-       static void utc_tel_swap_call_02(void);
-
-       static void utc_tel_swap_call_03(void);
-
-       static void utc_tel_swap_call_04(void);
-
-
-       static void startup();
-
-       static void cleanup();
-
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_swap_call_01, 1},
-       {utc_tel_swap_call_02, 2},
-       {utc_tel_swap_call_03, 3},
-       {utc_tel_swap_call_04, 4},
-       {NULL, 0}
-       };
-
-#endif
-
-/**
- * @}
- */
diff --git a/TC/telephony_TC/common/unit/makefile b/TC/telephony_TC/common/unit/makefile
deleted file mode 100644 (file)
index f255d69..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-CC=gcc -Wall
-CXX=g++ -Wall
-
-#LB1 = async_util
-LB1 = 
-TS1 = uts_tel_check_service_ready
-TS2 = uts_tel_deinit
-#TS3 = uts_tel_deinit_ecore_loop
-TS3 = 
-TS4 = uts_tel_register_event
-#TS5 = uts_tel_deregister_event_at_ecore_loop
-TS5 = 
-#TS6 = uts_tel_init_ecore_loop
-TS6 = 
-TS7 = uts_tel_request_tunnel
-TS8 = uts_tel_init
-TS9 = uts_tel_deregister_event
-#TS10 = uts_tel_register_event_at_ecore_loop
-TS10 = 
-
-LIBS  = `pkg-config --libs  gconf-2.0 glib-2.0 dbus-1 dbus-glib-1 gthread-2.0 tapi ` 
-LIBS +=$(TET_ROOT)/lib/tet3/tcm.o
-LIBS +=-L$(TET_ROOT)/lib/tet3 -lapi
-
-INCS  =  -I. `pkg-config --cflags  gconf-2.0 glib-2.0 dbus-1 dbus-glib-1 gthread-2.0 tapi `
-INCS  += -I$(TET_ROOT)/inc/tet3 
-
-#ifeq ($(ARCH),target)
-#CC += -g -mabi=aapcs-linux
-#endif
-
-CFLAGS = $(INCS) -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -DWITHOUT_APP_MGR 
-CC +=$(CFLAGS)
-LDFLAGS = $(LIBS)
-
-
-all :  $(LB1) $(TS1) $(TS2) $(TS3) $(TS4) $(TS5) $(TS6) $(TS7) $(TS8) $(TS9) $(TS10) 
-      
-
-      
-clean :
-       rm -rf *~ *.o tet_lock tet_captured 
-       rm -rf $(TS1) $(TS2) $(TS3) $(TS4) $(TS5) $(TS6)  $(TS7) $(TS8) $(TS9) $(TS10)
-
-
-$(LB1): $(LB1).c
-       $(CC) -c $(LB1).c
-
-$(TS1): $(TS1).c $(LB1)
-       $(CC) -o $(TS1) $(TS1).c  $(LDFLAGS)
-
-$(TS2): $(TS2).c $(LB1)
-       $(CC) -o $(TS2) $(TS2).c  $(LDFLAGS)
-
-$(TS3): $(TS3).c $(LB1)
-       $(CC) -o $(TS3) $(TS3).c  $(LDFLAGS)
-
-$(TS4): $(TS4).c $(LB1)
-       $(CC) -o $(TS4) $(TS4).c  $(LDFLAGS)
-
-$(TS5): $(TS5).c $(LB1)
-       $(CC) -o $(TS5) $(TS5).c  $(LDFLAGS)
-
-$(TS6): $(TS6).c $(LB1)
-       $(CC) -o $(TS6) $(TS6).c  $(LDFLAGS)
-
-$(TS7): $(TS7).c $(LB1)
-       $(CC) -o $(TS7) $(TS7).c  $(LDFLAGS)
-
-$(TS8): $(TS8).c $(LB1)
-       $(CC) -o $(TS8) $(TS8).c  $(LDFLAGS)
-
-$(TS9): $(TS9).c $(LB1)
-       $(CC) -o $(TS9) $(TS9).c  $(LDFLAGS)
-
-$(TS10): $(TS10).c $(LB1)
-       $(CC) -o $(TS10) $(TS10).c  $(LDFLAGS)
-
diff --git a/TC/telephony_TC/common/unit/tapi_common.h b/TC/telephony_TC/common/unit/tapi_common.h
deleted file mode 100644 (file)
index b8e6491..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef UTS_TAPI_COMMON_H
-#define UTS_TAPI_COMMON_H
-
-#include <stdio.h>
-#include <glib.h>
-
-GMainLoop *main_loop = NULL;
-
-#define TIME_DELAY 5000
-
-gboolean
-TimeOutFun (void *data)
-{
-       g_main_loop_quit (main_loop);
-       printf ("Exit from this callback\n");
-       return FALSE;
-}
-
-int gmain_loop_for_tapi_events(int delay)
-{
-
-       main_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add (delay, TimeOutFun, NULL);
-       g_main_loop_run (main_loop);
-
-       return 0;
-}
-#endif
diff --git a/TC/telephony_TC/common/unit/tet_macro.h b/TC/telephony_TC/common/unit/tet_macro.h
deleted file mode 100644 (file)
index 17c574c..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef TET_MACRO_H
-#define TET_MACRO_H
-
-//#define true TET_PASS 
-//#define false TET_FAIL
-//#define printf tet_printf 
-
-//#define MT_FAIL(x) tet_result(TET_FAIL)
-#define TET_CHECK(x) if(x) tet_result(TET_PASS); else tet_result(TET_FAIL)
-#define TET_CHECK_EQUAL(x,y) if ((x)==(y)) tet_result(TET_PASS);  else tet_result(TET_FAIL)
-#define TET_CHECK_NOT_EQUAL(x,y) if ((x)!=(y)) tet_result(TET_PASS);  else tet_result(TET_FAIL)
-
-////modified by Aakash Manik aakash.manik@samsung.com on 08_04_08
-
-#define TET_CHECK_MESSAGE(x,y) if ((y)==(TRUE)) tet_result(TET_PASS); else {tet_result(TET_FAIL); tet_printf(x);} 
-#define TET_CHECK_EQUAL_MESSAGE(x,y,z) if ((y)==(z)) tet_result(TET_PASS);  else {tet_result(TET_FAIL); tet_printf(x);}
-#define TET_CHECK_NOT_EQUAL_MESSAGE(x,y,z) if ((y)!=(z)) tet_result(TET_PASS);  else {tet_result(TET_FAIL); tet_printf(x);}
-
-////modified by Aakash Manik aakash.manik@samsung.com on 08_04_08
-
-#endif
-
diff --git a/TC/telephony_TC/common/unit/tslist b/TC/telephony_TC/common/unit/tslist
deleted file mode 100644 (file)
index 0615e56..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-/common/unit/uts_tel_check_service_ready
-/common/unit/uts_tel_deinit
-/common/unit/uts_tel_register_event
-/common/unit/uts_tel_init
-/common/unit/uts_tel_deregister_event
-/common/unit/uts_tel_request_tunnel
diff --git a/TC/telephony_TC/common/unit/uts_tel_check_service_ready.c b/TC/telephony_TC/common/unit/uts_tel_check_service_ready.c
deleted file mode 100644 (file)
index ecde3ac..0000000
+++ /dev/null
@@ -1,142 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#include <tet_api.h>\r
-#include <ITapiSim.h>\r
-#include <TapiCommon.h>\r
-#include "tapi_common.h"\r
-#include "tet_macro.h"\r
-#include "uts_tel_check_service_ready.h"\r
-\r
-/* Initialize TCM data structures */\r
-static void startup();\r
-static void cleanup();\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tel_check_service_ready_01, 1},\r
-       {utc_tel_check_service_ready_02, 2},\r
-       {NULL, 0}\r
-};\r
-#if 0\r
-/*\r
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////\r
-*/\r
-// Prototype : User must add function body\r
-gboolean g_timeout_callback (void *data);\r
-\r
-// GMainLoop global handler\r
-GMainLoop *nw_context_loop = NULL;\r
-\r
-void G_MAIN_LOOP_CLOSE()\r
-{\r
-    g_main_loop_quit(nw_context_loop);\r
-}\r
-\r
-int G_MAIN_LOOP_RUN(int sec)\r
-{\r
-       //GMainLoop *mainloop;\r
-       nw_context_loop = g_main_loop_new (NULL, FALSE);\r
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);\r
-       g_main_loop_run (nw_context_loop);\r
-\r
-       return 0;\r
-}\r
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////\r
-#endif\r
-\r
-/*\r
-  User Defined Handler\r
-*/\r
-\r
-\r
-/* Startup & Clean function : It is not test code, only for\r
-   initialize and finalize test module\r
-*/\r
-static void startup()\r
-{\r
-       tet_infoline("uts_tel_get_sim_imsi Test Start\n");\r
-       if (tel_init() != TAPI_API_SUCCESS)\r
-       {\r
-               tet_infoline("startup fail. tel_init() failed");\r
-       }\r
-       return;\r
-}\r
-\r
-\r
-static void cleanup()\r
-{\r
-       tet_infoline("uts_tel_get_sim_imsi Test Finished\n");\r
-       if (tel_deinit() != TAPI_API_SUCCESS)\r
-       {\r
-               tet_infoline("startup fail. tel_deinit() failed");\r
-       }\r
-       return;\r
-}\r
-\r
-void utc_tel_check_service_ready_01()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int bstatus;\r
-\r
-       returnStatus = tel_check_service_ready(&bstatus);\r
-\r
-       tet_printf ("The return value is %d\n", returnStatus);\r
-\r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-       {\r
-               tet_result(TET_PASS);\r
-               tet_printf("utc_tel_check_service_ready_01 success\n");\r
-       }\r
-       else\r
-       {\r
-               tet_result(TET_FAIL);   \r
-               tet_printf("utc_tel_check_service_ready_01 failed\n");\r
-       }\r
-}\r
-\r
-\r
-\r
-void utc_tel_check_service_ready_02()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       \r
-       returnStatus = tel_check_service_ready(NULL);\r
-\r
-       tet_printf ("The return value is %d\n", returnStatus);\r
-\r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-       {\r
-               tet_result(TET_FAIL);\r
-               tet_printf("utc_tel_check_service_ready_02 failed\n");\r
-       }\r
-       tet_result(TET_PASS);\r
-//returnStatus = tel_deinit(); //Deinitializin already deinitialized tapi\r
-}\r
-\r
-/** @} */\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
diff --git a/TC/telephony_TC/common/unit/uts_tel_check_service_ready.h b/TC/telephony_TC/common/unit/uts_tel_check_service_ready.h
deleted file mode 100644 (file)
index 595a3ce..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-\r
-\r
-#ifndef  _UTC_TAPI_DEINIT_EVENT_\r
-#define  _UTC_TAPI_DEINIT_EVENT_\r
-\r
-\r
-void utc_tel_check_service_ready_01();\r
-void utc_tel_check_service_ready_02();\r
-\r
-static void startup();\r
-\r
-static void cleanup();\r
-\r
-\r
-\r
-\r
-\r
-#endif  //_UTC_TAPI_DEINIT_EVENT_\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
diff --git a/TC/telephony_TC/common/unit/uts_tel_deinit.c b/TC/telephony_TC/common/unit/uts_tel_deinit.c
deleted file mode 100644 (file)
index 3d7fdfc..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#include <tet_api.h>\r
-#include <ITapiSim.h>\r
-#include <TapiCommon.h>\r
-#include "tapi_common.h"\r
-#include "tet_macro.h"\r
-#include "uts_tel_deinit.h"\r
-#include <glib.h>\r
-/* Initialize TCM data structures */\r
-static void startup();\r
-static void cleanup();\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tapi_deinit_01, 1},\r
-       {NULL, 0}\r
-};\r
-\r
-static void startup()\r
-{\r
-}\r
-\r
-static void cleanup()\r
-{\r
-}\r
-\r
-void utc_tapi_deinit_01()\r
-{\r
-\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-\r
-       if(tel_init() == TAPI_API_SUCCESS){\r
-               returnStatus = tel_deinit();\r
-       }\r
-\r
-       tet_printf ("The return value is %d\n", returnStatus);\r
-\r
-       TET_CHECK_EQUAL(returnStatus ,TAPI_API_SUCCESS);\r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-               tet_printf("utc_tapi_deinit_01 pass\n");\r
-}\r
-\r
-/** @} */\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
diff --git a/TC/telephony_TC/common/unit/uts_tel_deinit.h b/TC/telephony_TC/common/unit/uts_tel_deinit.h
deleted file mode 100644 (file)
index 034318d..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-\r
-\r
-#ifndef  _UTC_TAPI_DEINIT_EVENT_\r
-#define  _UTC_TAPI_DEINIT_EVENT_\r
-\r
-\r
-void utc_tapi_deinit_01();\r
-\r
-static void startup();\r
-\r
-static void cleanup();\r
-\r
-#endif  //_UTC_TAPI_DEINIT_EVENT_\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
diff --git a/TC/telephony_TC/common/unit/uts_tel_deregister_event.c b/TC/telephony_TC/common/unit/uts_tel_deregister_event.c
deleted file mode 100644 (file)
index 884c2a1..0000000
+++ /dev/null
@@ -1,153 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-#include <tet_api.h>\r
-#include <TapiCommon.h>\r
-#include "tapi_common.h"\r
-#include "tet_macro.h"\r
-#include "uts_tel_deregister_event.h"\r
-\r
-/* Initialize TCM data structures */\r
-static void startup();\r
-static void cleanup();\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tel_deregister_event_01, 1},\r
-       {utc_tel_deregister_event_02, 2},\r
-       {NULL, 0}\r
-};\r
-\r
-/*\r
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////\r
-*/\r
-// Prototype : User must add function body\r
-gboolean g_timeout_callback (void *data);\r
-\r
-// GMainLoop global handler\r
-GMainLoop *nw_context_loop = NULL;\r
-\r
-void G_MAIN_LOOP_CLOSE()\r
-{\r
-    g_main_loop_quit(nw_context_loop);\r
-}\r
-\r
-int G_MAIN_LOOP_RUN(int sec)\r
-{\r
-       nw_context_loop = g_main_loop_new (NULL, FALSE);\r
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);\r
-       g_main_loop_run (nw_context_loop);\r
-\r
-       return 0;\r
-}\r
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////\r
-\r
-\r
-/*\r
-  User Defined Handler\r
-*/\r
-// Global variable for user data\r
-static int gAsyncResult; //user defined data : Async callback is called or not\r
-\r
-// G_MAIN Utility : time out callback function\r
-gboolean g_timeout_callback (void *data)\r
-{\r
-       gAsyncResult = FALSE;\r
-       tet_printf("[SIM APP][TIME OUT] g_timeout called .Close g_main_roop()");\r
-       G_MAIN_LOOP_CLOSE();\r
-       return FALSE;\r
-}\r
-\r
-\r
-/* Startup & Clean function : It is not test code, only for\r
-   initialize and finalize test module\r
-*/\r
-static int gStartupSuccess = FALSE;\r
-static unsigned int subscription_id = 0;\r
-\r
-\r
-int register_app_callback(TelTapiEvent_t *Event)\r
-{\r
-               tet_printf("utc_tapi_register_event_01  - call back called\n");\r
-               return TRUE;\r
-}\r
-\r
-static void startup()\r
-{\r
-    tet_infoline("utc_tapi_update_deregister_event Test Start\n");\r
-\r
-       if ( tel_init() == TAPI_API_SUCCESS)\r
-       {\r
-               if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_CLASS_DATA,&subscription_id,(TelAppCallback)register_app_callback,NULL))\r
-                       gStartupSuccess = TRUE;\r
-               else\r
-                       tet_infoline("startup fail. tel_register_event() failed");\r
-       } else {\r
-               tet_infoline("startup fail. tel_init() failed");\r
-       }\r
-\r
-    return;\r
-}\r
-\r
-\r
-static void cleanup()\r
-{\r
-    tet_infoline("utc_tapi_update_deregister_event Test Finished\n");\r
-tel_deinit();\r
-\r
-    return;\r
-}\r
-\r
-\r
-\r
-void utc_tel_deregister_event_01()\r
-{\r
-\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-\r
-       returnStatus = tel_deregister_event(subscription_id);\r
-\r
-       tet_printf ("The return value is %d\n", returnStatus);\r
-\r
-       TET_CHECK_EQUAL(returnStatus,TAPI_API_SUCCESS);\r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-               tet_printf("utc_tapi_deregister_event_01 pass\n");\r
-\r
-}\r
-\r
-\r
-void utc_tel_deregister_event_02()\r
-{\r
-\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-\r
-       returnStatus = tel_deregister_event(NULL);\r
-\r
-       tet_printf ("The return value is %d\n", returnStatus);\r
-\r
-       TET_CHECK_EQUAL(returnStatus,TAPI_API_INVALID_INPUT);\r
-       if(returnStatus == TAPI_API_INVALID_INPUT)\r
-               tet_printf("utc_tapi_deregister_event_02 pass\n");\r
-\r
-}\r
-\r
-\r
-\r
-/** @} */\r
-\r
diff --git a/TC/telephony_TC/common/unit/uts_tel_deregister_event.h b/TC/telephony_TC/common/unit/uts_tel_deregister_event.h
deleted file mode 100644 (file)
index 991bfc4..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-\r
-\r
-#ifndef  _UTC_TAPI_DEREGISTER_EVENT_\r
-#define  _UTC_TAPI_DEREGISTER_EVENT_\r
-\r
-\r
-void utc_tel_deregister_event_01();\r
-void utc_tel_deregister_event_02();\r
-\r
-static void startup();\r
-\r
-static void cleanup();\r
-\r
-\r
-#endif  //_UTC_TAPI_DEREGISTER_EVENT_\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
diff --git a/TC/telephony_TC/common/unit/uts_tel_init.c b/TC/telephony_TC/common/unit/uts_tel_init.c
deleted file mode 100644 (file)
index c76ff43..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-#include <tet_api.h>\r
-#include <TapiCommon.h>\r
-#include "tet_macro.h"\r
-#include "uts_tel_init.h"\r
-#include "tapi_common.h"\r
-\r
-/* Initialize TCM data structures */\r
-static void startup();\r
-static void cleanup();\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tel_init_01, 1},\r
-       {NULL, 0}\r
-};\r
-\r
-\r
-/* Startup & Clean function : It is not test code, only for\r
-   initialize and finalize test module\r
-*/\r
-\r
-static void startup()\r
-{\r
-}\r
-\r
-static void cleanup()\r
-{\r
-}\r
-\r
-void utc_tel_init_01()\r
-{\r
-\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-\r
-       returnStatus = tel_init();\r
-\r
-       tet_printf ("The return value is %d\n", returnStatus);\r
-\r
-       TET_CHECK_EQUAL(returnStatus,TAPI_API_SUCCESS);\r
-       if(returnStatus==TAPI_API_SUCCESS)\r
-               tet_printf("utc_tapi_init_01 pass\n");\r
-       returnStatus = tel_deinit();\r
-\r
-}\r
-\r
-/** @} */\r
-\r
diff --git a/TC/telephony_TC/common/unit/uts_tel_init.h b/TC/telephony_TC/common/unit/uts_tel_init.h
deleted file mode 100644 (file)
index c6421c3..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#ifndef  _UTC_TAPI_INIT_EVENT_\r
-#define  _UTC_TAPI_INIT_EVENT_\r
-\r
-void utc_tel_init_01();\r
-\r
-static void startup();\r
-\r
-static void cleanup();\r
-\r
-#endif  //_UTC_TAPI_INIT_EVENT_\r
diff --git a/TC/telephony_TC/common/unit/uts_tel_register_event.c b/TC/telephony_TC/common/unit/uts_tel_register_event.c
deleted file mode 100644 (file)
index 375d568..0000000
+++ /dev/null
@@ -1,215 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-#include <tet_api.h>\r
-#include <ITapiSim.h>\r
-#include <TapiCommon.h>\r
-#include "tapi_common.h"\r
-#include "tet_macro.h"\r
-#include "uts_tel_register_event.h"\r
-\r
-/* Initialize TCM data structures */\r
-static void startup();\r
-static void cleanup();\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tapi_register_event_01, 1},\r
-//     {utc_tapi_register_event_02, 2},\r
-//     {utc_tapi_register_event_03, 3},\r
-       {utc_tapi_register_event_04, 4},\r
-       {utc_tapi_register_event_05, 5},\r
-       {NULL, 0}\r
-};\r
-\r
-/*\r
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////\r
-*/\r
-// Prototype : User must add function body\r
-gboolean g_timeout_callback (void *data);\r
-\r
-// GMainLoop global handler\r
-GMainLoop *nw_context_loop = NULL;\r
-\r
-void G_MAIN_LOOP_CLOSE()\r
-{\r
-    g_main_loop_quit(nw_context_loop);\r
-}\r
-\r
-int G_MAIN_LOOP_RUN(int sec)\r
-{\r
-       nw_context_loop = g_main_loop_new (NULL, FALSE);\r
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);\r
-       g_main_loop_run (nw_context_loop);\r
-\r
-       return 0;\r
-}\r
-\r
-// Global variable for user data\r
-static int gAsyncResult; //user defined data : Async callback is called or not\r
-\r
-// G_MAIN Utility : time out callback function\r
-gboolean g_timeout_callback (void *data)\r
-{\r
-       gAsyncResult = FALSE;\r
-       tet_printf("[SIM APP][TIME OUT] g_timeout called .Close g_main_roop()");\r
-       G_MAIN_LOOP_CLOSE();\r
-       return FALSE;\r
-}\r
-\r
-\r
-/* Startup & Clean function : It is not test code, only for\r
-   initialize and finalize test module\r
-*/\r
-static int gStartupSuccess = FALSE;\r
-static unsigned int subscription_id = 0;\r
-\r
-static void startup()\r
-{\r
-    tet_infoline("utc_tapi_register_event Test Start\n");\r
-\r
-       if ( tel_init() == TAPI_API_SUCCESS)\r
-       {\r
-\r
-               gStartupSuccess = TRUE;\r
-\r
-       } else {\r
-               tet_infoline("startup fail. tel_init() failed");\r
-       }\r
-\r
-    return;\r
-}\r
-\r
-\r
-static void cleanup()\r
-{\r
-    tet_infoline("utc_tapi_update_register_event Test Finished\n");\r
-\r
-    if (gStartupSuccess == TRUE)\r
-       {\r
-               tel_deregister_event(subscription_id);\r
-       }\r
-       tel_deinit();\r
-\r
-    return;\r
-}\r
-\r
-int register_app_callback(TelTapiEvent_t *Event)\r
-{\r
-               tet_printf("utc_tapi_register_event_01  - call back called\n");\r
-               return TRUE;\r
-}\r
-\r
-\r
-\r
-void utc_tapi_register_event_01()\r
-{\r
-\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-\r
-       returnStatus = tel_register_event(TAPI_EVENT_CLASS_DATA,&subscription_id,(TelAppCallback)register_app_callback,NULL);\r
-\r
-       tet_printf ("The return value is %d\n", returnStatus);\r
-\r
-       TET_CHECK_EQUAL(returnStatus , TAPI_API_SUCCESS);\r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-               tet_printf("utc_tapi_register_event_01 pass\n");\r
-\r
-}\r
-\r
-/*\r
-void utc_tapi_register_event_02()\r
-{\r
-\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       returnStatus = tel_register_event(TAPI_EVENT_CALL_SETUP_CNF - 1,&subscription_id,(TelAppCallback)register_app_callback,NULL);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-\r
-       printf ("The return value is %d\n", returnStatus);\r
-\r
-       TET_CHECK_EQUAL(returnStatus,TAPI_EVENT_CLASS_UNKNOWN);\r
-       if(returnStatus == TAPI_EVENT_CLASS_UNKNOWN)\r
-               printf("utc_tapi_register_event_02 pass\n");\r
-\r
-}\r
-\r
-\r
-void utc_tapi_register_event_03()\r
-{\r
-\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       returnStatus = tel_register_event((int)NULL,&subscription_id,(TelAppCallback)register_app_callback,NULL);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-\r
-       printf ("The return value is %d\n", returnStatus);\r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-               tet_result(TET_FAIL);\r
-       \r
-       tet_result(TET_PASS);\r
-       printf("utc_tapi_register_event_03 pass\n");\r
-\r
-}\r
-*/\r
-void utc_tapi_register_event_04()\r
-{\r
-\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-\r
-       returnStatus = tel_register_event(TAPI_EVENT_CALL_SETUP_CNF,NULL,(TelAppCallback)register_app_callback,NULL);\r
-       tet_printf ("The return value is %d\n", returnStatus);\r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-               tet_result(TET_FAIL);\r
-       \r
-       tet_result(TET_PASS);\r
-       tet_printf("utc_tapi_register_event_04 pass\n");\r
-\r
-}\r
-\r
-void utc_tapi_register_event_05()\r
-{\r
-\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-\r
-       returnStatus = tel_register_event(TAPI_EVENT_CALL_SETUP_CNF ,&subscription_id,(TelAppCallback)NULL,NULL);\r
-\r
-       tet_printf ("The return value is %d\n", returnStatus);\r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-               tet_result(TET_FAIL);\r
-       \r
-       tet_result(TET_PASS);\r
-       tet_printf("utc_tapi_register_event_05 pass\n");\r
-\r
-}\r
-\r
-/** @} */\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
diff --git a/TC/telephony_TC/common/unit/uts_tel_register_event.h b/TC/telephony_TC/common/unit/uts_tel_register_event.h
deleted file mode 100644 (file)
index d1442f6..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-\r
-\r
-#ifndef  _UTC_TAPI_REGISTER_EVENT_\r
-#define  _UTC_TAPI_REGISTER_EVENT_\r
-\r
-extern TS_UINT g_CallHandle;\r
-\r
-void utc_tapi_register_event_01();\r
-\r
-void utc_tapi_register_event_02();\r
-void utc_tapi_register_event_03();\r
-void utc_tapi_register_event_04();\r
-void utc_tapi_register_event_05();\r
-\r
-static void startup();\r
-\r
-static void cleanup();\r
-\r
-\r
-#endif  //_UTC_TAPI_REGISTER_EVENT_\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
diff --git a/TC/telephony_TC/common/unit/uts_tel_request_tunnel.c b/TC/telephony_TC/common/unit/uts_tel_request_tunnel.c
deleted file mode 100644 (file)
index 232b215..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#include <stdio.h>\r
-#include <stdlib.h>\r
-#include <string.h>\r
-#include <tet_api.h>\r
-#include <TapiCommon.h>\r
-#include "tet_macro.h"\r
-#include "uts_tel_request_tunnel.h"\r
-\r
-/* Initialize TCM data structures */\r
-static void startup();\r
-static void cleanup();\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tapi_request_tunnel_01, 1},\r
-       {utc_tapi_request_tunnel_02, 2},\r
-       {NULL, 0}\r
-};\r
-\r
-\r
-static void startup()\r
-{\r
\r
-}\r
-\r
-static void cleanup()\r
-{\r
-\r
-}\r
-\r
-void utc_tapi_request_tunnel_01()\r
-{\r
-\r
-       int  ret = TAPI_API_SUCCESS;\r
-       int req_id;\r
-\r
-       ret = tel_request_tunnel(NULL, &req_id);\r
-\r
-       tet_printf ("tel_request_tunnel return=%d\n", ret);\r
-\r
-       TET_CHECK_NOT_EQUAL(ret , TAPI_API_SUCCESS);\r
-}\r
-\r
-\r
-void utc_tapi_request_tunnel_02()\r
-{\r
-       int  ret = TAPI_API_SUCCESS;\r
-       int req_id;\r
-       TelTunnelInfo_t tunnel_info;\r
-\r
-       ret = tel_request_tunnel(&tunnel_info, NULL);\r
-\r
-       tet_printf ("tel_request_tunnel return=%d\n", ret);\r
-\r
-       TET_CHECK_NOT_EQUAL(ret , TAPI_API_SUCCESS);\r
-\r
-}\r
-\r
-/** @} */\r
diff --git a/TC/telephony_TC/common/unit/uts_tel_request_tunnel.h b/TC/telephony_TC/common/unit/uts_tel_request_tunnel.h
deleted file mode 100644 (file)
index 3de3efd..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-\r
-\r
-#ifndef  _UTC_TAPI_REQUEST_TUNNEL_\r
-#define  _UTC_TAPI_REQUEST_TUNNEL_\r
-\r
-void utc_tapi_request_tunnel_01();\r
-void utc_tapi_request_tunnel_02();\r
-\r
-static void startup();\r
-static void cleanup();\r
-\r
-\r
-#endif  //_UTC_TAPI_REGISTER_EVENT_\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
diff --git a/TC/telephony_TC/gprs/unit/gprs_common.c b/TC/telephony_TC/gprs/unit/gprs_common.c
deleted file mode 100644 (file)
index c03ddc7..0000000
+++ /dev/null
@@ -1,194 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "gprs_common.h"
-
-GMainLoop *nw_context_loop = NULL;
-
-static unsigned int subscription_id[16] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
-int expected_event;
-bool async_response = false;
-
-void G_MAIN_LOOP_CLOSE()
-{
-       g_main_loop_quit(nw_context_loop);
-}
-
-gboolean g_timeout_callback(void * data)
-{
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       nw_context_loop = g_main_loop_new(NULL, FALSE);
-       g_timeout_add_seconds(sec, g_timeout_callback, NULL);
-       g_main_loop_run(nw_context_loop);
-
-       return 0;
-}
-
-//static int  ps_app_callback (int group, int action, void* data, int length)
-void ps_app_callback(TelTapiEvent_t *TapiEvent)
-{
-       int eventClass;
-       int eventType;
-       int requestId;
-       int status;
-       void *EventData = NULL;
-
-       eventClass = TapiEvent->EventClass;
-       eventType = TapiEvent->EventType;
-       requestId = TapiEvent->RequestId;
-       status = TapiEvent->Status;
-       EventData = TapiEvent->pData;
-
-       printf("- expected event=0x%x received event=0x%x\n", expected_event, eventType);
-       if (eventType == expected_event) {
-               async_response = true;
-               g_main_loop_quit(nw_context_loop);
-       }
-
-       return;
-
-}
-
-void print_all_subsciption_ids()
-{
-       int i = 0;
-       for (i = 0; i < 16; i++) {
-               printf("subscription_id[%02d] has value %d \n", i, subscription_id[i]);
-       }
-}
-
-TapiResult_t register_all_events()
-{
-       TapiResult_t api_err = TAPI_API_SUCCESS;
-
-       api_err = tel_register_event(TAPI_EVENT_PS_BTDUN_PINCONTROL_NOTI, &subscription_id[0], (TelAppCallback) &ps_app_callback, NULL);
-       api_err = tel_register_event(TAPI_EVENT_PS_CALL_STATISTICS, &subscription_id[1], (TelAppCallback) &ps_app_callback, NULL);
-       //api_err = tel_register_event(TAPI_EVENT_PS_CALL_STATUS_RSP, &subscription_id[2], (TelAppCallback)&ps_app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_PS_ERROR_IND, &subscription_id[4], (TelAppCallback) &ps_app_callback, NULL);
-       api_err = tel_register_event(TAPI_EVENT_PS_HSDPA_STATUS_NOTI, &subscription_id[5], (TelAppCallback) &ps_app_callback, NULL);
-       //api_err = tel_register_event(TAPI_EVENT_PS_NETWORK_STATUS_RSP, &subscription_id[6], (TelAppCallback)&ps_app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_PS_PDP_ACT_IPCONFIG_INFO, &subscription_id[7], (TelAppCallback) &ps_app_callback, NULL);
-       api_err = tel_register_event(TAPI_EVENT_PS_PDP_ACT_RSP, &subscription_id[8], (TelAppCallback) &ps_app_callback, NULL);
-       //api_err = tel_register_event(TAPI_EVENT_PS_PDP_ADDRESS_RSP, &subscription_id[9], (TelAppCallback)&ps_app_callback,NULL);
-       //api_err = tel_register_event(TAPI_EVENT_PS_PDP_CONTEXTINFO_RSP, &subscription_id[10], (TelAppCallback)&ps_app_callback,NULL);
-       //api_err = tel_register_event(TAPI_EVENT_PS_PDP_DEACT_IND, &subscription_id[11], (TelAppCallback)&ps_app_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_PS_PDP_DEACT_RSP, &subscription_id[12], (TelAppCallback) &ps_app_callback, NULL);
-       //api_err = tel_register_event(TAPI_EVENT_PS_QOS_3G_PROFILE_RSP, &subscription_id[13], (TelAppCallback)&ps_app_callback,NULL);
-       //api_err = tel_register_event(TAPI_EVENT_PS_QOS_PROFILE_RSP, &subscription_id[14], (TelAppCallback)&ps_app_callback,NULL);
-       //api_err = tel_register_event(TAPI_EVENT_PS_STATUS, &subscription_id[15], (TelAppCallback)&ps_app_callback,NULL);
-
-       print_all_subsciption_ids();
-       return api_err;
-}
-
-TapiResult_t deregister_all()
-{
-       TapiResult_t api_err = TAPI_API_SUCCESS;
-
-       api_err = tel_deregister_event(subscription_id[0]);
-       api_err = tel_deregister_event(subscription_id[1]);
-       //api_err = tel_deregister_event(subscription_id[2]);
-       api_err = tel_deregister_event(subscription_id[4]);
-       api_err = tel_deregister_event(subscription_id[5]);
-       //api_err = tel_deregister_event(subscription_id[6]);
-       api_err = tel_deregister_event(subscription_id[7]);
-       api_err = tel_deregister_event(subscription_id[8]);
-       //api_err = tel_deregister_event(subscription_id[9]);
-       //api_err = tel_deregister_event(subscription_id[10]);
-       //api_err = tel_deregister_event(subscription_id[11]);
-       api_err = tel_deregister_event(subscription_id[12]);
-       //api_err = tel_deregister_event(subscription_id[13]);
-       //api_err = tel_deregister_event(subscription_id[14]);
-       //api_err = tel_deregister_event(subscription_id[15]);
-
-       return api_err;
-
-}
-
-TapiResult_t temp_gprs_session_activate()
-{
-       TapiResult_t ret_status;
-       tapi_ps_net_start_req_t start_req;
-       int request_id = 0;
-
-       TEST_DEBUG("- Temp gprs activation starts\n");
-
-       memset(&start_req, 0, sizeof(tapi_ps_net_start_req_t));
-
-       start_req.cont_id = CONTEXT_ID;
-       strncpy(start_req.pdp_info.apn, APN_ADDRESS, TAPI_PDP_APN_LEN_MAX);
-
-       ret_status = tel_activate_gprs_pdp(&start_req, &request_id);
-
-       printf("- return value = %d\n", ret_status);
-
-       if (TAPI_API_SUCCESS == ret_status) {
-               printf("- temp gprs mode Started successfully \n");
-       }
-       else {
-               printf("- temp gprs mode not started \n");
-       }
-
-       expected_event = TAPI_EVENT_PS_PDP_ACT_RSP;
-
-       G_MAIN_LOOP_RUN(10);
-
-       TEST_DEBUG("- Temp gprs activation ends\n");
-
-       return ret_status;
-}
-
-TapiResult_t temp_gprs_session_deactivate(int contId)
-{
-       TapiResult_t ret_status;
-       tapi_ps_net_stop_req_t end_req;
-       int request_id = 0;
-
-       TEST_DEBUG("- Temp gprs deactivation starts\n");
-
-       memset(&end_req, 0, sizeof(tapi_ps_net_stop_req_t));
-
-       end_req.cont_id = contId;
-
-       ret_status = tel_deactivate_gprs_pdp(&end_req, &request_id);
-
-       printf("- return value = %d\n", ret_status);
-
-       if (TAPI_API_SUCCESS == ret_status) {
-               printf("- temp gprs mode ended successfully\n");
-       }
-       else {
-               printf("- temp gprs mode not ended \n");
-       }
-
-       expected_event = TAPI_EVENT_PS_PDP_DEACT_RSP;
-
-       G_MAIN_LOOP_RUN(10);
-
-       TEST_DEBUG("- Temp gprs deactivation ends\n");
-
-       return ret_status;
-}
-
diff --git a/TC/telephony_TC/gprs/unit/gprs_common.h b/TC/telephony_TC/gprs/unit/gprs_common.h
deleted file mode 100644 (file)
index 68ed369..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#ifndef _GPRS_COMMON_H_
-#define _GPRS_COMMON_H_
-
-#include <stdlib.h>
-#include <signal.h>
-#include <errno.h>
-#include "string.h"
-#include "assert.h"
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <glib.h>
-#include <pthread.h>
-#include <stdio.h>
-#include "ITapiPS.h"
-#include <tet_api.h>
-#include "tet_macro.h"
-#include <gconf/gconf-client.h>
-#include <TapiCommon.h>
-
-#define APN_ADDRESS "web.vodafone.de"
-#define CONTEXT_ID     1
-
-#define APN_ADDRESS_2 "web.vodafone.de"
-#define CONTEXT_ID_2   2
-
-
-#define TLOG_HEADER(fmt, args...) printf("\e[1;7m<%s:%4d> " fmt "\e[0m\n", __FILE__, __LINE__, ##args);
-#define TLOG_INFO(fmt, args...)   printf("<%s:%4d> " fmt "\n", __FILE__, __LINE__, ##args);
-
-#define TIME_DELAY 5000
-#define TEST_DEBUG(fmt, args...)       \
-       printf("[%s %s:%d]\n" fmt "\n",__FILE__, __FUNCTION__,  __LINE__, ##args); 
-
-#ifndef false
-       #define false 0
-#endif
-#ifndef true
-       #define true  !0
-#endif
-#ifndef bool    
-       #define bool  char
-#endif
-
-extern void  ps_app_callback  (TelTapiEvent_t *TapiEvent);
-extern TapiResult_t register_all_events();
-extern TapiResult_t deregister_all();
-extern void G_MAIN_LOOP_CLOSE();
-extern int G_MAIN_LOOP_RUN(int);
-
-
-extern TapiResult_t temp_gprs_session_deactivate();
-extern TapiResult_t temp_gprs_session_activate();
-
-#define TET_CHECK_TEMP(x1, y...) \
-       do { \
-               TapiResult_t err = y;\
-               if (err != (x1)) \
-               { \
-                       tet_printf("[line %d] Expected Result: %d  Actual Result: %d",__LINE__, x1,y); \
-                       printf("- FAIL. [line %d] Expected Result: %d  Actual Result: %d\n",__LINE__, x1,y); \
-                       tet_result(TET_FAIL); \
-                       return;\
-               } \
-       } while(0)
-
-
-#endif  //_GPRS_COMMON_H_
diff --git a/TC/telephony_TC/gprs/unit/makefile b/TC/telephony_TC/gprs/unit/makefile
deleted file mode 100644 (file)
index 68ddeed..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-CC=gcc -Wall
-
-LB1  =  gprs_common
-TS1  =  uts_tel_activate_gprs_pdp
-TS2  =  uts_tel_control_gprs_btdun_pin
-TS3  =  uts_tel_deactivate_gprs_pdp
-
-LIBS =$(LB1).o
-LIBS += `pkg-config --libs  gconf-2.0 glib-2.0 dbus-1 dbus-glib-1 gthread-2.0 tapi`
-LIBS +=$(TET_ROOT)/lib/tet3/tcm.o
-LIBS +=-L$(TET_ROOT)/lib/tet3 -lapi
-
-INCS  =  -I. `pkg-config --cflags  gconf-2.0 glib-2.0 dbus-1 dbus-glib-1 gthread-2.0 tapi`
-INCS  += -I$(TET_ROOT)/inc/tet3
-
-CFLAGS += $(INCS) -D__arm__ -D_ARM_TOUCH -DTELEPHONY_TIMER
-CC +=$(CFLAGS)
-LDFLAGS = $(LIBS)
-
-#ifeq ($(ARCH),target)
-#CC += -g -mabi=aapcs-linux
-#endif
-
-all : $(LB1) $(TS1) $(TS2) $(TS3)
-
-clean :
-       rm -rf *~ *.o tet_lock tet_captured $(LB1) $(TS1) $(TS2) $(TS3)
-
-$(LB1): $(LB1).c
-       $(CC) -c $(LB1).c
-
-$(TS1): $(TS1).c $(LB1)
-       $(CC) -o $(TS1) $(TS1).c $(LDFLAGS)
-
-$(TS2): $(TS2).c $(LB1)
-       $(CC) -o $(TS2) $(TS2).c $(LDFLAGS)
-
-$(TS3): $(TS3).c $(LB1)
-       $(CC) -o $(TS3) $(TS3).c $(LDFLAGS)
diff --git a/TC/telephony_TC/gprs/unit/tet_macro.h b/TC/telephony_TC/gprs/unit/tet_macro.h
deleted file mode 100644 (file)
index 17c574c..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef TET_MACRO_H
-#define TET_MACRO_H
-
-//#define true TET_PASS 
-//#define false TET_FAIL
-//#define printf tet_printf 
-
-//#define MT_FAIL(x) tet_result(TET_FAIL)
-#define TET_CHECK(x) if(x) tet_result(TET_PASS); else tet_result(TET_FAIL)
-#define TET_CHECK_EQUAL(x,y) if ((x)==(y)) tet_result(TET_PASS);  else tet_result(TET_FAIL)
-#define TET_CHECK_NOT_EQUAL(x,y) if ((x)!=(y)) tet_result(TET_PASS);  else tet_result(TET_FAIL)
-
-////modified by Aakash Manik aakash.manik@samsung.com on 08_04_08
-
-#define TET_CHECK_MESSAGE(x,y) if ((y)==(TRUE)) tet_result(TET_PASS); else {tet_result(TET_FAIL); tet_printf(x);} 
-#define TET_CHECK_EQUAL_MESSAGE(x,y,z) if ((y)==(z)) tet_result(TET_PASS);  else {tet_result(TET_FAIL); tet_printf(x);}
-#define TET_CHECK_NOT_EQUAL_MESSAGE(x,y,z) if ((y)!=(z)) tet_result(TET_PASS);  else {tet_result(TET_FAIL); tet_printf(x);}
-
-////modified by Aakash Manik aakash.manik@samsung.com on 08_04_08
-
-#endif
-
diff --git a/TC/telephony_TC/gprs/unit/tet_scen b/TC/telephony_TC/gprs/unit/tet_scen
deleted file mode 100644 (file)
index a2c9d59..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-
-all
-       "Starting Full Test Suite"
-
-       /gprs/unit/uts_tapi_gprs_start
-       /gprs/unit/uts_tapi_gprs_pdp_deactivation_set
-       /gprs/unit/uts_tapi_gprs_pdp_btdunpincontrol_get
-
-       "Completed Full Test Suite"
-
-# EOF
diff --git a/TC/telephony_TC/gprs/unit/tslist b/TC/telephony_TC/gprs/unit/tslist
deleted file mode 100644 (file)
index a670f3d..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-/gprs/unit/uts_tel_activate_gprs_pdp
-/gprs/unit/uts_tel_control_gprs_btdun_pin
-/gprs/unit/uts_tel_deactivate_gprs_pdp
diff --git a/TC/telephony_TC/gprs/unit/uts_tel_activate_gprs_pdp.c b/TC/telephony_TC/gprs/unit/uts_tel_activate_gprs_pdp.c
deleted file mode 100644 (file)
index a4b9af7..0000000
+++ /dev/null
@@ -1,268 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-//add includes
-
-
-#include "uts_tel_activate_gprs_pdp.h"
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-extern int expected_event;
-extern bool async_response;
-
-static void startup()
-{
-       TLOG_HEADER("STARTUP");
-
-       TapiResult_t ret_status;
-
-       ret_status = tel_init();
-       if (ret_status != TAPI_API_SUCCESS)     
-       {       
-               printf("TelTapiInit() Failed ret_status = %d \n", ret_status);
-       }
-
-       register_all_events();
-
-       tel_register_app_name("org.samsung.test");
-
-       TLOG_INFO(" - GPRS active session deactivate");
-
-       ret_status = temp_gprs_session_deactivate(CONTEXT_ID);
-       if (ret_status == TAPI_API_SUCCESS)
-       {
-               TLOG_INFO("- GPRS active session ended successfully");
-       }
-       else
-       {
-               TLOG_INFO("- GPRS active session not ended");
-       }
-}
-
-static void cleanup()
-{
-       TLOG_HEADER("CLEANUP");
-
-       TapiResult_t  ret_status;
-
-       deregister_all();
-
-       ret_status = tel_deinit();
-       if (ret_status != TAPI_API_SUCCESS)     
-       {       
-               printf("TelTapiDeInit() Failed ret_status = %d \n", ret_status);        
-       }
-}
-
-
-#if 0
-/**
- * @brief This tests 
- * @par ID: UTC_TAPI_GPRS_START_00
- * @param [in]  *net_start_req_info
- * @param [in]  pRequestID
- * @code       
- * @endcode
- * @param [out]  *net_start_req_info
- * @param [out]  pRequestID
- * @return TapiResult_t
- */    
-void utc_tel_activate_gprs_pdp_00()
-{
-       TLOG_HEADER("TEST START [%s]", __FUNCTION__);
-       TLOG_INFO(" - setting the valid gprs mode");
-
-       TapiResult_t ret_status ;
-       tapi_ps_net_start_req_t start_req;
-       int request_id = 0;
-
-       async_response = false;//initialize
-
-       memset(&start_req, 0, sizeof(tapi_ps_net_start_req_t));
-       start_req.cont_id = CONTEXT_ID;
-       strncpy(start_req.pdp_info.apn , APN_ADDRESS, TAPI_PDP_APN_LEN_MAX);
-
-       ret_status = tel_activate_gprs_pdp(&start_req, &request_id);
-       if (TAPI_API_SUCCESS == ret_status)
-       {
-               TLOG_INFO(" - GPRS mode started successfully");
-       }
-       else
-       {
-               TLOG_INFO(" - GPRS mode not started");
-       }
-
-       TET_CHECK_EQUAL(TAPI_API_SUCCESS, ret_status);
-       tet_infoline("utc_tel_activate_gprs_pdp_00 pass");
-
-       expected_event = TAPI_EVENT_PS_PDP_ACT_RSP;
-       TLOG_INFO(" - expected_event is TAPI_EVENT_PS_PDP_ACT_RSP(%d)", expected_event);
-       TLOG_INFO(" - ... waiting ... ");
-
-       G_MAIN_LOOP_RUN(80);
-       TET_CHECK_TEMP(true, async_response);   
-       tet_result(TET_PASS);
-
-       ret_status = temp_gprs_session_deactivate(CONTEXT_ID);
-       if(TAPI_API_SUCCESS == ret_status)
-       {
-               TLOG_INFO(" - GPRS active session ended succesfully");
-       }
-       else
-       {
-               TLOG_INFO(" - GPRS active session not ended");
-       }
-
-       TLOG_HEADER("TEST END [%s]\n", __FUNCTION__);
-}
-#endif
-
-/**
- * @brief This tests 
- * @par ID: UTC_TAPI_GPRS_START_01
- * @param [in]  *net_start_req_info
- * @param [in]  pRequestID
- * @code       
- * @endcode
- * @param [out]  *net_start_req_info
- * @param [out]  pRequestID
- * @return TapiResult_t
- */    
-void utc_tel_activate_gprs_pdp_00()
-{
-       TLOG_HEADER("TEST START [%s]", __FUNCTION__);
-       TLOG_INFO(" - setting the invalid(net_start_req_info) gprs mode");
-
-       TapiResult_t ret_status ;
-       tapi_ps_net_start_req_t start_req;
-       int request_id = 0;
-
-       async_response = false;//initialize
-
-       memset(&start_req, 0, sizeof(tapi_ps_net_start_req_t));
-       start_req.cont_id = CONTEXT_ID;
-       strncpy(start_req.pdp_info.apn , APN_ADDRESS, TAPI_PDP_APN_LEN_MAX);
-
-       ret_status = tel_activate_gprs_pdp(NULL, &request_id);
-       if(TAPI_API_INVALID_PTR == ret_status)
-       {
-               TLOG_INFO(" - GPRS mode start api invalid NULL case pass");
-       }
-       else
-       {
-               TLOG_INFO(" - GPRS mode NULL check failed");
-       }
-
-       TET_CHECK_EQUAL(TAPI_API_INVALID_PTR, ret_status);
-       tet_infoline("utc_tel_activate_gprs_pdp_01 pass");
-
-       TLOG_HEADER("TEST END [%s]\n", __FUNCTION__);
-}
-
-/**
- * @brief This tests 
- * @par ID: UTC_TAPI_GPRS_START_02
- * @param [in]  *net_start_req_info
- * @param [in]  pRequestID
- * @code       
- * @endcode
- * @param [out]  *net_start_req_info
- * @param [out]  pRequestID
- * @return TapiResult_t
- */    
-void utc_tel_activate_gprs_pdp_01()
-{
-       TLOG_HEADER("TEST START [%s]", __FUNCTION__);
-       TLOG_INFO(" - setting the invalid(pRequestID) gprs mode");
-
-       TapiResult_t ret_status ;
-       tapi_ps_net_start_req_t start_req;
-       //int request_id=0;
-       async_response = false;//initialize
-
-       memset(&start_req, 0, sizeof(tapi_ps_net_start_req_t));
-
-       start_req.cont_id = CONTEXT_ID;
-       strncpy(start_req.pdp_info.apn , APN_ADDRESS, TAPI_PDP_APN_LEN_MAX);
-
-       ret_status = tel_activate_gprs_pdp(&start_req, NULL);
-       if (TAPI_API_INVALID_PTR == ret_status)
-       {
-               TLOG_INFO(" - GPRS mode started api invalid NULL case pass");
-       }
-       else
-       {
-               TLOG_INFO(" - GPRS mode NULL check failed");
-       }
-
-       TET_CHECK_EQUAL(TAPI_API_INVALID_PTR, ret_status);
-       tet_infoline("utc_tel_activate_gprs_pdp_02 pass");
-
-       TLOG_HEADER("TEST END [%s]\n", __FUNCTION__);
-}
-
-/*
- * @brief This tests 
- * @par ID: UTC_TAPI_GPRS_START_03
- * @param [in]  *net_start_req_info
- * @param [in]  pRequestID
- * @code       
- * @endcode
- * @param [out]  *net_start_req_info
- * @param [out]  pRequestID
- * @return TapiResult_t
- */    
-void utc_tel_activate_gprs_pdp_02()
-{
-       TLOG_HEADER("TEST START [%s]", __FUNCTION__);
-       TLOG_INFO(" - setting the invalid(auth_type) gprs mode");
-
-       TapiResult_t ret_status;
-       tapi_ps_net_start_req_t start_req;
-       int request_id = 0;
-
-       async_response = false;//initialize
-
-       memset(&start_req, 0, sizeof(tapi_ps_net_start_req_t));
-       start_req.cont_id = CONTEXT_ID;
-       strncpy(start_req.pdp_info.apn , APN_ADDRESS, TAPI_PDP_APN_LEN_MAX);
-       start_req.pdp_info.auth_type = TAPI_PDP_AUTH_NONE - 1;
-
-       ret_status = tel_activate_gprs_pdp(&start_req, &request_id);
-       if (TAPI_API_INVALID_INPUT == ret_status)
-       {
-               TLOG_INFO(" - GPRS mode start api invalid input cass pass");
-       }
-       else
-       {
-               TLOG_INFO(" - GPRS mode invalid enum check failed");
-       }
-
-       TET_CHECK_EQUAL(TAPI_API_INVALID_INPUT, ret_status);
-       tet_infoline("utc_tel_activate_gprs_pdp_03 pass");
-
-       TLOG_HEADER("TEST END [%s]\n", __FUNCTION__);
-}
-
-/** @} */
diff --git a/TC/telephony_TC/gprs/unit/uts_tel_activate_gprs_pdp.h b/TC/telephony_TC/gprs/unit/uts_tel_activate_gprs_pdp.h
deleted file mode 100644 (file)
index 2322fe6..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "gprs_common.h"
-
-#ifndef  _UTC_TAPI_GPRS_START_
-#define  _UTC_TAPI_GPRS_START_
-
-void utc_tel_activate_gprs_pdp_00();
-void utc_tel_activate_gprs_pdp_01();
-void utc_tel_activate_gprs_pdp_02();
-
-static void startup();
-static void cleanup();
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_activate_gprs_pdp_00, 1},
-       {utc_tel_activate_gprs_pdp_01, 2},
-       {utc_tel_activate_gprs_pdp_02, 3},
-       {NULL, 0}
-       };
-
-#endif  //_UTC_TAPI_GPRS_START_
diff --git a/TC/telephony_TC/gprs/unit/uts_tel_control_gprs_btdun_pin.c b/TC/telephony_TC/gprs/unit/uts_tel_control_gprs_btdun_pin.c
deleted file mode 100644 (file)
index 7151802..0000000
+++ /dev/null
@@ -1,400 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-//add includes
-
-
-#include "uts_tel_control_gprs_btdun_pin.h"
-
-void (*tet_startup)() = startup;
-void (*tet_cleanup)() = cleanup;
-
-extern int expected_event;
-extern bool async_response;
-
-static void startup()
-{
-       TapiResult_t ret_status;
-
-       ret_status = tel_init();
-
-       if (ret_status != TAPI_API_SUCCESS) {
-               printf("TelTapiInit() Failed ret_status = %d \n", ret_status);
-       }
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-}
-
-static void cleanup()
-{
-       TapiResult_t ret_status;
-
-       deregister_all();
-       ret_status = tel_deinit();
-
-       if (ret_status != TAPI_API_SUCCESS) {
-               printf("TelTapiDeInit() Failed ret_status = %d \n", ret_status);
-       }
-}
-
-/**
- * @brief This tests 
- * @par ID: UTC_TAPI_GPRS_PDP_BTDUNPINCONTROL_GET_00
- * @param [in]  pincontrol
- * @param [in]  pRequestID
- * @code       
- * @endcode
- * @param [out]  pincontrol
- * @param [out]  pRequestID
- * @return TapiResult_t
- */
-void utc_tel_control_gprs_btdun_pin_00()
-{
-       TEST_DEBUG("########     TEST utc_tel_control_gprs_btdun_pin_00 START    ###########");
-
-       TapiResult_t ret_status;
-       int request_id = 0;
-       tapi_ps_btdun_pincontrol bt_control;
-       async_response = false;//initialize
-
-       memset(&bt_control, 0, sizeof(tapi_ps_btdun_pincontrol));
-
-       /* NORMAL CASE */
-       bt_control.signal = GPRS_DATA_SIGNAL_DTR;
-       bt_control.status = GPRS_SIGNAL_STATUS_OFF;
-
-       ret_status = tel_control_gprs_btdun_pin(bt_control, &request_id);
-
-       printf("- return value = %d\n", ret_status);
-
-       TET_CHECK_EQUAL(TAPI_API_SUCCESS, ret_status);
-       tet_infoline("utc_tel_control_gprs_btdun_pin_00 pass");
-       expected_event = TAPI_EVENT_PS_BTDUN_PINCONTROL_NOTI;
-       printf("- The expected_event is TAPI_EVENT_PS_BTDUN_PINCONTROL_NOTI(%d)\n", expected_event);
-
-       G_MAIN_LOOP_RUN(10);
-       TET_CHECK_TEMP(true, async_response);
-       tet_result(TET_PASS);
-
-       TEST_DEBUG("########     TEST utc_tel_control_gprs_btdun_pin_00 ENDS    ###########\n");
-}
-
-/**
- * @brief This tests 
- * @par ID: UTC_TAPI_GPRS_PDP_BTDUNPINCONTROL_GET_01
- * @param [in]  pincontrol
- * @param [in]  pRequestID
- * @code       
- * @endcode
- * @param [out]  pincontrol
- * @param [out]  pRequestID
- * @return TapiResult_t
- */
-void utc_tel_control_gprs_btdun_pin_01()
-{
-       TEST_DEBUG("########     TEST utc_tel_control_gprs_btdun_pin_01 START    ###########");
-
-       TapiResult_t ret_status;
-       int request_id = 0;
-       tapi_ps_btdun_pincontrol bt_control;
-       async_response = false;//initialize
-
-       memset(&bt_control, 0, sizeof(tapi_ps_btdun_pincontrol));
-
-       /* NORMAL CASE */
-       bt_control.signal = GPRS_DATA_SIGNAL_RTS;
-       bt_control.status = GPRS_SIGNAL_STATUS_ON;
-
-       ret_status = tel_control_gprs_btdun_pin(bt_control, &request_id);
-
-       printf("- return value = %d\n", ret_status);
-
-       TET_CHECK_EQUAL(TAPI_API_SUCCESS, ret_status);
-       tet_infoline("utc_tel_control_gprs_btdun_pin_01 pass");
-       expected_event = TAPI_EVENT_PS_BTDUN_PINCONTROL_NOTI;
-       printf("- The expected_event is TAPI_EVENT_PS_BTDUN_PINCONTROL_NOTI(%d)\n", expected_event);
-
-       G_MAIN_LOOP_RUN(10);
-       TET_CHECK_TEMP(true, async_response);
-       tet_result(TET_PASS);
-
-       TEST_DEBUG("########     TEST utc_tel_control_gprs_btdun_pin_01 ENDS    ###########\n");
-}
-
-/**
- * @brief This tests 
- * @par ID: UTC_TAPI_GPRS_PDP_BTDUNPINCONTROL_GET_02
- * @param [in]  pincontrol
- * @param [in]  pRequestID
- * @code       
- * @endcode
- * @param [out]  pincontrol
- * @param [out]  pRequestID
- * @return TapiResult_t
- */
-void utc_tel_control_gprs_btdun_pin_02()
-{
-       TEST_DEBUG("########     TEST utc_tel_control_gprs_btdun_pin_02 START    ###########");
-
-       TapiResult_t ret_status;
-       int request_id = 0;
-       tapi_ps_btdun_pincontrol bt_control;
-       async_response = false;//initialize
-
-       memset(&bt_control, 0, sizeof(tapi_ps_btdun_pincontrol));
-
-       /* BAD CASE - GPRS_DATA_SIGNAL_RI not allowed */
-       bt_control.signal = GPRS_DATA_SIGNAL_RI;
-       bt_control.status = GPRS_SIGNAL_STATUS_ON;
-
-       ret_status = tel_control_gprs_btdun_pin(bt_control, &request_id);
-
-       printf("- return value = %d\n", ret_status);
-
-       TET_CHECK_EQUAL(TAPI_API_SUCCESS, ret_status);
-       tet_infoline("utc_tel_control_gprs_btdun_pin_02 pass");
-       expected_event = TAPI_EVENT_PS_BTDUN_PINCONTROL_NOTI;
-       printf("- The expected_event is TAPI_EVENT_PS_BTDUN_PINCONTROL_NOTI(%d)\n", expected_event);
-
-       G_MAIN_LOOP_RUN(10);
-       TET_CHECK_TEMP(false, async_response);
-       tet_result(TET_PASS);
-
-       TEST_DEBUG("########     TEST utc_tel_control_gprs_btdun_pin_02 ENDS    ###########\n");
-}
-
-/**
- * @brief This tests 
- * @par ID: UTC_TAPI_GPRS_PDP_BTDUNPINCONTROL_GET_03
- * @param [in]  pincontrol
- * @param [in]  pRequestID
- * @code       
- * @endcode
- * @param [out]  pincontrol
- * @param [out]  pRequestID
- * @return TapiResult_t
- */
-void utc_tel_control_gprs_btdun_pin_03()
-{
-       TEST_DEBUG("########     TEST utc_tel_control_gprs_btdun_pin_03 START    ###########");
-
-       TapiResult_t ret_status;
-       //int request_id=0;
-       tapi_ps_btdun_pincontrol bt_control;
-       async_response = false;//initialize
-
-       memset(&bt_control, 0, sizeof(tapi_ps_btdun_pincontrol));
-
-       bt_control.signal = GPRS_DATA_SIGNAL_RI;
-       bt_control.status = GPRS_SIGNAL_STATUS_ON;
-
-       printf("- gprs btdunpincontrol null case check\n");
-
-       ret_status = tel_control_gprs_btdun_pin(bt_control, NULL);
-
-       printf("- return value = %d\n", ret_status);
-
-       TET_CHECK_EQUAL(TAPI_API_INVALID_PTR, ret_status);
-       tet_infoline("utc_tel_control_gprs_btdun_pin_03 pass");
-       //expected_event = TAPI_EVENT_PS_BTDUN_PINCONTROL_NOTI;
-       //printf("The expected_event is TAPI_EVENT_PS_BTDUN_PINCONTROL_NOTI(%d)\n",expected_event);
-
-       //G_MAIN_LOOP_RUN(10);
-       //TET_CHECK_TEMP(true, async_response);
-       //tet_result(TET_PASS);
-
-       TEST_DEBUG("########     TEST utc_tel_control_gprs_btdun_pin_03 ENDS    ###########\n");
-}
-
-/**
- * @brief This tests 
- * @par ID: UTC_TAPI_GPRS_PDP_BTDUNPINCONTROL_GET_04
- * @param [in]  pincontrol
- * @param [in]  pRequestID
- * @code       
- * @endcode
- * @param [out]  pincontrol
- * @param [out]  pRequestID
- * @return TapiResult_t
- */
-void utc_tel_control_gprs_btdun_pin_04()
-{
-       TEST_DEBUG("########     TEST utc_tel_control_gprs_btdun_pin_04 START    ###########");
-
-       TapiResult_t ret_status;
-       int request_id = 0;
-       tapi_ps_btdun_pincontrol bt_control;
-       async_response = false;//initialize
-
-       memset(&bt_control, 0, sizeof(tapi_ps_btdun_pincontrol));
-
-       bt_control.signal = GPRS_SIGNAL_DCD - 1;
-       bt_control.status = GPRS_SIGNAL_STATUS_ON;
-
-       printf("- gprs btdunpincontrol invalid input case check\n");
-
-       ret_status = tel_control_gprs_btdun_pin(bt_control, &request_id);
-
-       printf("- return value = %d\n", ret_status);
-
-       TET_CHECK_EQUAL(TAPI_API_INVALID_INPUT, ret_status);
-       tet_infoline("utc_tel_control_gprs_btdun_pin_04 pass");
-       //expected_event = TAPI_EVENT_PS_BTDUN_PINCONTROL_NOTI;
-       //printf("The expected_event is TAPI_EVENT_PS_BTDUN_PINCONTROL_NOTI(%d)\n",expected_event);
-
-       //G_MAIN_LOOP_RUN(10);
-       //TET_CHECK_TEMP(true, async_response);
-       //tet_result(TET_PASS);
-
-       TEST_DEBUG("########     TEST utc_tel_control_gprs_btdun_pin_04 ENDS    ###########\n");
-}
-
-/**
- * @brief This tests 
- * @par ID: UTC_TAPI_GPRS_PDP_BTDUNPINCONTROL_GET_05
- * @param [in]  pincontrol
- * @param [in]  pRequestID
- * @code       
- * @endcode
- * @param [out]  pincontrol
- * @param [out]  pRequestID
- * @return TapiResult_t
- */
-void utc_tel_control_gprs_btdun_pin_05()
-{
-
-       TEST_DEBUG("########     TEST utc_tel_control_gprs_btdun_pin_05 START    ###########");
-
-       TapiResult_t ret_status;
-       int request_id = 0;
-       tapi_ps_btdun_pincontrol bt_control;
-       async_response = false;//initialize
-
-       memset(&bt_control, 0, sizeof(tapi_ps_btdun_pincontrol));
-
-       bt_control.signal = GPRS_SIGNAL_DCD;
-       bt_control.status = GPRS_SIGNAL_STATUS_OFF - 1;
-
-       printf("- gprs btdunpincontrol invalid input case check\n");
-
-       ret_status = tel_control_gprs_btdun_pin(bt_control, &request_id);
-
-       printf("- return value = %d\n", ret_status);
-
-       TET_CHECK_EQUAL(TAPI_API_INVALID_INPUT, ret_status);
-       tet_infoline("utc_tel_control_gprs_btdun_pin_05 pass");
-       //expected_event = TAPI_EVENT_PS_BTDUN_PINCONTROL_NOTI;
-       //printf("The expected_event is TAPI_EVENT_PS_BTDUN_PINCONTROL_NOTI(%d)\n",expected_event);
-
-       //G_MAIN_LOOP_RUN(10);
-       //TET_CHECK_TEMP(true, async_response);
-       //tet_result(TET_PASS);
-
-       TEST_DEBUG("########     TEST utc_tel_control_gprs_btdun_pin_05 ENDS    ###########\n");
-}
-
-/**
- * @brief This tests 
- * @par ID: UTC_TAPI_GPRS_PDP_BTDUNPINCONTROL_GET_06
- * @param [in]  pincontrol
- * @param [in]  pRequestID
- * @code       
- * @endcode
- * @param [out]  pincontrol
- * @param [out]  pRequestID
- * @return TapiResult_t
- */
-void utc_tel_control_gprs_btdun_pin_06()
-{
-       TEST_DEBUG("########     TEST utc_tel_control_gprs_btdun_pin_06 START    ###########");
-
-       TapiResult_t ret_status;
-       int request_id = 0;
-       tapi_ps_btdun_pincontrol bt_control;
-       async_response = false;//initialize
-
-       memset(&bt_control, 0, sizeof(tapi_ps_btdun_pincontrol));
-
-       bt_control.signal = GPRS_DATA_SIGNAL_RI + 1;
-       bt_control.status = GPRS_SIGNAL_STATUS_ON;
-
-       printf("- gprs btdunpincontrol invalid input case check\n");
-
-       ret_status = tel_control_gprs_btdun_pin(bt_control, &request_id);
-
-       printf("- return value = %d\n", ret_status);
-
-       TET_CHECK_EQUAL(TAPI_API_INVALID_INPUT, ret_status);
-       tet_infoline("utc_tel_control_gprs_btdun_pin_06 pass");
-       //expected_event = TAPI_EVENT_PS_BTDUN_PINCONTROL_NOTI;
-       //printf("The expected_event is TAPI_EVENT_PS_BTDUN_PINCONTROL_NOTI(%d)\n",expected_event);
-
-       //G_MAIN_LOOP_RUN(10);
-       //TET_CHECK_TEMP(true, async_response);
-       //tet_result(TET_PASS);
-
-       TEST_DEBUG("########     TEST utc_tel_control_gprs_btdun_pin_06 ENDS    ###########\n");
-}
-
-/**
- * @brief This tests 
- * @par ID: UTC_TAPI_GPRS_PDP_BTDUNPINCONTROL_GET_07
- * @param [in]  pincontrol
- * @param [in]  pRequestID
- * @code       
- * @endcode
- * @param [out]  pincontrol
- * @param [out]  pRequestID
- * @return TapiResult_t
- */
-void utc_tel_control_gprs_btdun_pin_07()
-{
-       TEST_DEBUG("########     TEST utc_tel_control_gprs_btdun_pin_07 START    ###########");
-
-       TapiResult_t ret_status;
-       int request_id = 0;
-       tapi_ps_btdun_pincontrol bt_control;
-       async_response = false;//initialize
-
-       memset(&bt_control, 0, sizeof(tapi_ps_btdun_pincontrol));
-
-       bt_control.signal = 0x03;
-       bt_control.status = GPRS_SIGNAL_STATUS_ON;
-
-       printf("- gprs btdunpincontrol invalid input case check\n");
-
-       ret_status = tel_control_gprs_btdun_pin(bt_control, &request_id);
-
-       printf("- return value = %d\n", ret_status);
-
-       TET_CHECK_EQUAL(TAPI_API_INVALID_INPUT, ret_status);
-       tet_infoline("utc_tel_control_gprs_btdun_pin_07 pass");
-       //expected_event = TAPI_EVENT_PS_BTDUN_PINCONTROL_NOTI;
-       //printf("The expected_event is TAPI_EVENT_PS_BTDUN_PINCONTROL_NOTI(%d)\n",expected_event);
-
-       //G_MAIN_LOOP_RUN(10);
-       //TET_CHECK_TEMP(true, async_response);
-       //tet_result(TET_PASS);
-
-       TEST_DEBUG("########     TEST utc_tel_control_gprs_btdun_pin_07 ENDS    ###########\n");
-}
-
-/** @} */
diff --git a/TC/telephony_TC/gprs/unit/uts_tel_control_gprs_btdun_pin.h b/TC/telephony_TC/gprs/unit/uts_tel_control_gprs_btdun_pin.h
deleted file mode 100644 (file)
index c31dac8..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "gprs_common.h"
-
-#ifndef  _UTC_TAPI_GPRS_PDP_BTDUNPINCONTROL_GET_
-#define  _UTC_TAPI_GPRS_PDP_BTDUNPINCONTROL_GET_
-
-void utc_tel_control_gprs_btdun_pin_00();
-
-void utc_tel_control_gprs_btdun_pin_01();
-
-void utc_tel_control_gprs_btdun_pin_02();
-
-void utc_tel_control_gprs_btdun_pin_03();
-
-void utc_tel_control_gprs_btdun_pin_04();
-
-void utc_tel_control_gprs_btdun_pin_05();
-
-void utc_tel_control_gprs_btdun_pin_06();
-
-void utc_tel_control_gprs_btdun_pin_07();
-
-static void startup();
-
-static void cleanup();
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_control_gprs_btdun_pin_00, 1},
-       {utc_tel_control_gprs_btdun_pin_01, 2},
-       {utc_tel_control_gprs_btdun_pin_02, 3},
-       {utc_tel_control_gprs_btdun_pin_03, 4},
-       {utc_tel_control_gprs_btdun_pin_04, 5},
-       {utc_tel_control_gprs_btdun_pin_05, 6},
-       {utc_tel_control_gprs_btdun_pin_06, 7},
-       {utc_tel_control_gprs_btdun_pin_07, 8},
-       {NULL, 0}
-};
-
-
-
-#endif  //_UTC_TAPI_GPRS_PDP_BTDUNPINCONTROL_GET_
diff --git a/TC/telephony_TC/gprs/unit/uts_tel_deactivate_gprs_pdp.c b/TC/telephony_TC/gprs/unit/uts_tel_deactivate_gprs_pdp.c
deleted file mode 100644 (file)
index f2e4148..0000000
+++ /dev/null
@@ -1,320 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-
-//add includes
-
-
-#include "uts_tel_deactivate_gprs_pdp.h"
-
-
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-extern int expected_event;
-extern bool async_response;
-
-static void startup()
-{
-       TLOG_HEADER("STARTUP");
-
-       TapiResult_t ret_status;
-
-       ret_status = tel_init();
-       if (ret_status != TAPI_API_SUCCESS)     
-       {       
-               printf("TelTapiInit() Failed ret_status = %d\n", ret_status);   
-       }
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-}
-
-static void cleanup()
-{
-       TLOG_HEADER("CLEANUP");
-
-       TapiResult_t ret_status ;
-
-       deregister_all();       
-
-       ret_status = tel_deinit();
-       if (ret_status != TAPI_API_SUCCESS)     
-       {       
-               printf("TelTapiDeInit() Failed ret_status = %d \n", ret_status);
-       }
-}
-
-
-#if 0
-/**
- * @brief This tests 
- * @par ID: UTC_TAPI_GPRS_PDP_DEACTIVATION_SET_00
- * @param [in]  *net_stop_req_info
- * @param [in]  pRequestID
- * @code       
- * @endcode
- * @param [out]  *net_stop_req_info
- * @param [out]  pRequestID
- * @return TapiResult_t
-*/     
-void utc_tel_deactivate_gprs_pdp_01()
-{
-       TLOG_HEADER("TEST START [%s]", __FUNCTION__);
-
-       TapiResult_t ret_status ;
-       tapi_ps_net_stop_req_t end_req;
-       int request_id = 0;
-
-       async_response = false;//initialize
-
-       if (TAPI_API_SUCCESS == temp_gprs_session_activate())
-       {
-               TLOG_INFO(" - temp gprs mode started succesfully");
-
-               memset(&end_req, 0, sizeof(tapi_ps_net_stop_req_t));
-               end_req.cont_id = CONTEXT_ID;
-
-               ret_status = tel_deactivate_gprs_pdp(&end_req, &request_id);
-               if (TAPI_API_SUCCESS == ret_status)
-               {
-                       TLOG_INFO(" - gprs activate session ended succesfully");
-               }
-               else
-               {
-                       TLOG_INFO(" - gprs active session not ended");
-               }
-
-               TET_CHECK_EQUAL(TAPI_API_SUCCESS, ret_status);
-               tet_infoline("utc_tel_deactivate_gprs_pdp_00 pass");
-               expected_event = TAPI_EVENT_PS_PDP_DEACT_RSP;
-
-               TLOG_INFO(" - The expected_event is TAPI_EVENT_PS_PDP_DEACT_RSP(%d)\n", expected_event);
-
-               G_MAIN_LOOP_RUN(80);
-               TET_CHECK_TEMP(true, async_response);   
-               tet_result(TET_PASS);
-       }
-       else
-       {
-               TLOG_INFO(" - temp gprs mode not started");
-       }
-
-       TLOG_HEADER("TEST END [%s]\n", __FUNCTION__);
-}
-#endif
-
-/**
- * @brief This tests 
- * @par ID: UTC_TAPI_GPRS_PDP_DEACTIVATION_SET_01
- * @param [in]  *net_stop_req_info
- * @param [in]  pRequestID
- * @code       
- * @endcode
- * @param [out]  *net_stop_req_info
- * @param [out]  pRequestID
- * @return TapiResult_t
- */    
-void utc_tel_deactivate_gprs_pdp_01()
-{
-       TLOG_HEADER("TEST START [%s]", __FUNCTION__);
-       TLOG_INFO(" - temp gprs session end api NULL case");
-
-       TapiResult_t ret_status;
-       int request_id = 0;
-
-       async_response = false;//initialize
-
-       ret_status = tel_deactivate_gprs_pdp(NULL, &request_id);
-       if (TAPI_API_INVALID_PTR == ret_status)
-       {
-               printf("/n/******************  gprs end api null case pass **************************\\n");
-       }
-       else
-       {
-               printf("/n/******************  gprs end api null case failed  **************************\\n");
-       }
-
-
-       TET_CHECK_EQUAL(TAPI_API_INVALID_PTR, ret_status);
-       tet_infoline("utc_tel_deactivate_gprs_pdp_01 pass");
-       //expected_event = TAPI_EVENT_PS_PDP_DEACT_RSP;
-       //printf("The expected_event is TAPI_EVENT_PS_PDP_DEACT_RSP(%d)\n",expected_event);
-
-       //G_MAIN_LOOP_RUN(10);
-       //TET_CHECK_TEMP(true, async_response); 
-       //tet_result(TET_PASS);
-
-       TLOG_HEADER("TEST END [%s]\n", __FUNCTION__);
-}
-
-/**
- * @brief This tests 
- * @par ID: UTC_TAPI_GPRS_PDP_DEACTIVATION_SET_02
- * @param [in]  *net_stop_req_info
- * @param [in]  pRequestID
- * @code       
- * @endcode
- * @param [out]  *net_stop_req_info
- * @param [out]  pRequestID
- * @return TapiResult_t
- */    
-void utc_tel_deactivate_gprs_pdp_02()
-{
-       TLOG_HEADER("TEST START [%s]", __FUNCTION__);
-
-       TapiResult_t  ret_status ;
-       tapi_ps_net_stop_req_t end_req;
-
-       async_response = false;//initialize
-
-
-       printf("/n/****************** temp  gprs session end api Null case **************************\\n");
-
-       end_req.cont_id = CONTEXT_ID;
-
-       ret_status = tel_deactivate_gprs_pdp(&end_req, NULL);
-       if (TAPI_API_INVALID_PTR == ret_status)
-       {
-               printf("/n/******************  gprs end api null case pass **************************\\n");
-       }
-       else
-       {
-               printf("/n/******************  gprs end api null case failed  **************************\\n");
-       }
-
-
-       TET_CHECK_EQUAL(TAPI_API_INVALID_PTR, ret_status);
-       tet_infoline("utc_tel_deactivate_gprs_pdp_02 pass");
-       //expected_event = TAPI_EVENT_PS_PDP_DEACT_RSP;
-       //printf("The expected_event is TAPI_EVENT_PS_PDP_DEACT_RSP(%d)\n",expected_event);
-
-       //G_MAIN_LOOP_RUN(10);
-       //TET_CHECK_TEMP(true, async_response); 
-       //tet_result(TET_PASS);
-
-       TLOG_HEADER("TEST END [%s]\n", __FUNCTION__);
-}
-
-/**
- * @brief This tests 
- * @par ID: UTC_TAPI_GPRS_PDP_DEACTIVATION_SET_04
- * @param [in]  *net_stop_req_info
- * @param [in]  pRequestID
- * @code       
- * @endcode
- * @param [out]  *net_stop_req_info
- * @param [out]  pRequestID
- * @return TapiResult_t
- */    
-void utc_tel_deactivate_gprs_pdp_03()
-{
-       TLOG_HEADER("TEST START [%s]", __FUNCTION__);
-
-       TapiResult_t  ret_status ;
-       tapi_ps_net_stop_req_t end_req;
-       int request_id=0;
-
-       async_response = false;//initialize
-
-
-       printf("/n/****************** temp  gprs session end api invalid enum case **************************\\n");
-
-       end_req.cont_id = CONTEXT_ID;
-       end_req.pdp_info.auth_type = TAPI_PDP_AUTH_MAX; 
-
-       ret_status = tel_deactivate_gprs_pdp(&end_req,&request_id);
-       if (TAPI_API_INVALID_INPUT == ret_status)
-       {
-               printf("/n/******************  gprs end api invalid enum case pass **************************\\n");
-       }
-       else
-       {
-               printf("/n/******************  gprs end api invalid enum case failed  **************************\\n");
-       }
-
-
-       TET_CHECK_EQUAL(TAPI_API_INVALID_INPUT, ret_status);
-       tet_infoline("utc_tel_deactivate_gprs_pdp_04 pass");
-       //expected_event = TAPI_EVENT_PS_PDP_DEACT_RSP;
-       //printf("The expected_event is TAPI_EVENT_PS_PDP_DEACT_RSP(%d)\n",expected_event);
-
-       //G_MAIN_LOOP_RUN(10);
-       //TET_CHECK_TEMP(true, async_response); 
-       //tet_result(TET_PASS);
-
-
-       TLOG_HEADER("TEST END [%s]\n", __FUNCTION__);
-}
-
-/**
- * @brief This tests 
- * @par ID: UTC_TAPI_GPRS_PDP_DEACTIVATION_SET_05
- * @param [in]  *net_stop_req_info
- * @param [in]  pRequestID
- * @code       
- * @endcode
- * @param [out]  *net_stop_req_info
- * @param [out]  pRequestID
- * @return TapiResult_t
- */    
-void utc_tel_deactivate_gprs_pdp_04()
-{
-       TLOG_HEADER("TEST START [%s]", __FUNCTION__);
-
-       TapiResult_t  ret_status ;
-       tapi_ps_net_stop_req_t end_req;
-       int request_id=0;
-
-       async_response = false;//initialize
-
-
-       printf("/n/****************** temp  gprs session not started to check api **************************\\n");
-
-       end_req.cont_id = CONTEXT_ID;
-       end_req.pdp_info.auth_type = TAPI_PDP_AUTH_NONE-1;      
-
-       ret_status = tel_deactivate_gprs_pdp(&end_req, &request_id);
-       if (TAPI_API_SUCCESS != ret_status)
-       {
-               printf("/n/******************  gprs end api invalid server case pass **************************\\n");
-       }
-       else
-       {
-               printf("/n/******************  gprs end api invalid server case failed  **************************\\n");
-       }
-
-
-       TET_CHECK_EQUAL(TAPI_API_INVALID_INPUT, ret_status);
-       tet_infoline("utc_tel_deactivate_gprs_pdp_05 pass");
-       //expected_event = TAPI_EVENT_PS_PDP_DEACT_RSP;
-       //printf("The expected_event is TAPI_EVENT_PS_PDP_DEACT_RSP(%d)\n",expected_event);
-
-       //G_MAIN_LOOP_RUN(10);
-       //TET_CHECK_TEMP(true, async_response); 
-       //tet_result(TET_PASS);
-
-
-       TLOG_HEADER("TEST END [%s]\n", __FUNCTION__);
-}
-/** @} */
diff --git a/TC/telephony_TC/gprs/unit/uts_tel_deactivate_gprs_pdp.h b/TC/telephony_TC/gprs/unit/uts_tel_deactivate_gprs_pdp.h
deleted file mode 100644 (file)
index c4119e0..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "gprs_common.h"
-
-#ifndef  _UTC_TAPI_GPRS_PDP_DEACTIVATION_SET_
-#define  _UTC_TAPI_GPRS_PDP_DEACTIVATION_SET_
-
-void utc_tel_deactivate_gprs_pdp_01();
-void utc_tel_deactivate_gprs_pdp_02();
-void utc_tel_deactivate_gprs_pdp_03();
-void utc_tel_deactivate_gprs_pdp_04();
-
-static void startup();
-static void cleanup();
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_deactivate_gprs_pdp_01, 1},
-       {utc_tel_deactivate_gprs_pdp_02, 2},
-       {utc_tel_deactivate_gprs_pdp_03, 3},
-       {utc_tel_deactivate_gprs_pdp_04, 4},
-       {NULL, 0}
-       };
-
-#endif  //_UTC_TAPI_GPRS_PDP_DEACTIVATION_SET_
diff --git a/TC/telephony_TC/misc/unit/async_util.c b/TC/telephony_TC/misc/unit/async_util.c
deleted file mode 100644 (file)
index 2e2c519..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "misc_callback_util.h"
-#include "async_util.h"
-
-static void G_MAIN_TIMER_HANDLER(int sgi);
-
-// Global variable for G_MAIN system
-static int gEventHandle=0;
-static GMainLoop * context_loop = NULL;
-static EvtAlarmCb gpAlarm_Handler = NULL;
-static unsigned int gSubscription_id;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(context_loop);
-}
-
-void G_MAIN_TIMER_HANDLER(int sgi)
-{
-    if (gpAlarm_Handler)
-       gpAlarm_Handler(sgi);
-    else
-    {
-       fprintf(stderr, "SIGALRM received. But user handler not registered. Close g_main_loop()");
-       G_MAIN_LOOP_CLOSE();
-    }
-}
-
-void G_MAIN_LOOP_RUN(int sec)
-{
-    (void) signal(SIGALRM, G_MAIN_TIMER_HANDLER);
-    alarm(sec);
-    context_loop = g_main_loop_new(NULL, FALSE);
-    g_main_loop_run(context_loop);
-    alarm(0);
-}
diff --git a/TC/telephony_TC/misc/unit/async_util.h b/TC/telephony_TC/misc/unit/async_util.h
deleted file mode 100644 (file)
index 7927b72..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _ASYNC_UTIL_H_
-#define _ASYNC_UTIL_H_
-
-#include "TapiEvent.h"
-
-
-typedef void (*EvtAlarmCb) (int sgi);
-TS_BOOL gAsyncResult;
-
-void G_MAIN_LOOP_RUN(int sec);
-void G_MAIN_LOOP_CLOSE();
-
-#endif  //_ASYNC_UTIL_H_
diff --git a/TC/telephony_TC/misc/unit/makefile b/TC/telephony_TC/misc/unit/makefile
deleted file mode 100644 (file)
index 09e4d66..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-CC=gcc -Wall
-
-TS1  =  uts_tapi_misc_NAM_info_get
-TS2  =  uts_tapi_misc_NAM_info_set
-TS3  =  uts_tapi_misc_me_serial_num_get
-TS4  =  uts_tapi_misc_timezone_getinfo
-TS5  =  uts_tapi_misc_timezone_setinfo
-
-LIBS  = `pkg-config --libs  glib-2.0 gconf-2.0 dbus-1 dbus-glib-1 gthread-2.0 tapi`
-LIBS +=$(TET_ROOT)/lib/tet3/tcm.o
-LIBS +=-L$(TET_ROOT)/lib/tet3 -lapi
-       
-INCS  =  -I. `pkg-config --cflags  glib-2.0 gconf-2.0 dbus-1 dbus-glib-1 gthread-2.0 tapi`
-INCS  += -I$(TET_ROOT)/inc/tet3 
-
-CFLAGS += $(INCS) -D__arm__ -D_ARM_TOUCH -DTELEPHONY_TIMER 
-CC +=$(CFLAGS)
-LDFLAGS = $(LIBS)
-
-#ifeq ($(ARCH),target)
-#CC += -g -mabi=aapcs-linux
-#endif
-
-all : $(TS1)  $(TS2) $(TS3) $(TS4) $(TS5)
-
-clean :
-       rm -rf *~ *.o tet_lock tet_captured $(TS1)  $(TS2) $(TS3) $(TS4) $(TS5) 
-
-$(TS1): $(TS1).c
-       $(CC) -o $(TS1) $(TS1).c misc_callback_util.c  $(LDFLAGS)
-$(TS2): $(TS2).c
-       $(CC) -o $(TS2) $(TS2).c misc_callback_util.c  $(LDFLAGS)
-
-$(TS3): $(TS3).c
-       $(CC) -o $(TS3) $(TS3).c misc_callback_util.c  $(LDFLAGS)
-
-$(TS4): $(TS4).c
-       $(CC) -o $(TS4) $(TS4).c misc_callback_util.c  $(LDFLAGS)
-
-$(TS5): $(TS5).c
-       $(CC) -o $(TS5) $(TS5).c misc_callback_util.c  $(LDFLAGS)
-
diff --git a/TC/telephony_TC/misc/unit/misc_callback_util.c b/TC/telephony_TC/misc/unit/misc_callback_util.c
deleted file mode 100644 (file)
index c9231ca..0000000
+++ /dev/null
@@ -1,141 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#include "misc_callback_util.h"\r
-\r
-\r
-static unsigned int subscription_id[6]={0,0,0,0,0,0};\r
-\r
-/**\r
-* @file     misc_callback_util.c\r
-* @brief     This is the implementation file for misc callback utility APIs\r
-* @version   [09-03-04] Initial Creation V0.1\r
-*/\r
-\r
-\r
-GMainLoop *main_loop = NULL;\r
-\r
-void  misc_Callback (TelTapiEvent_t * TapiEvent)\r
-{\r
-\r
-       int                     eventClass;\r
-       int                     eventType;\r
-       int                             requestId;\r
-       int                             status;\r
-       void                    *EventData = NULL;\r
-\r
-       eventClass = TapiEvent->EventClass;\r
-       eventType = TapiEvent->EventType;\r
-       requestId = TapiEvent->RequestId;\r
-       status = TapiEvent->Status;\r
-       EventData = TapiEvent->pData;\r
-\r
-       printf("\nClass:[%d], Event Type:[%d], RequestId:[%d], Status:[%d] \n", eventClass, eventType , requestId, status );\r
-\r
-       if( EventData==NULL)\r
-       {\r
-               printf("\n******  EventData is NULL.........   ******\n");\r
-       }\r
-\r
-       switch(eventClass)\r
-       {\r
-                       case TAPI_EVENT_CLASS_MISC:\r
-                               switch(eventType)\r
-                               {\r
-                                       case TAPI_EVENT_MISC_NITZ_GETCNF :\r
-                                               printf("***  TAPI_EVENT_MISC_NITZ_GETCNF received : %x ****\n", eventType);\r
-                                               break;\r
-\r
-                                       case TAPI_EVENT_MISC_NITZ_NOTIFY :\r
-                                               printf("***  TAPI_EVENT_MISC_NITZ_NOTIFY received : %x ****\n", eventType);\r
-                                               break;\r
-\r
-                                       case TAPI_EVENT_MISC_NITZ_IND :\r
-                                               printf("***  TAPI_EVENT_MISC_NITZ_IND received : %x ****\n", eventType);\r
-                                               break;\r
-\r
-                                       default:\r
-                                               printf("*** MISC Default Event  %x ****\n", eventType);\r
-                                               break;\r
-\r
-                               }\r
-\r
-                               break;\r
-\r
-                       default:\r
-                               printf("*** Other TAPI EVENT received : class : %x ****\n", eventClass);\r
-                               break;\r
-       }\r
-\r
-}\r
-\r
-\r
-gboolean\r
-TimeOutFun (void *data)\r
-{\r
-       g_main_loop_quit (main_loop);\r
-       printf ("Exit from this callback\n");\r
-       return FALSE;\r
-}\r
-\r
-int gmain_loop_for_tapi_events(int delay)\r
-{\r
-       main_loop = g_main_loop_new (NULL, FALSE);\r
-       g_timeout_add (delay, TimeOutFun, NULL);\r
-       g_main_loop_run (main_loop);\r
-\r
-       return 0;\r
-}\r
-\r
-void print_all_subsciption_ids()\r
-{\r
-       int i=0;\r
-       for(i=0;i<3;i++)\r
-       {\r
-               printf("\n subscription_id[%d] has value %d \n",i,subscription_id[i]);\r
-       }\r
-}\r
-\r
-TapiResult_t register_all_events()\r
-{\r
-       TapiResult_t api_err = TAPI_API_SUCCESS;\r
-\r
-       api_err = tel_register_event(TAPI_EVENT_MISC_NITZ_GETCNF, &subscription_id[0], (TelAppCallback)misc_Callback, NULL);\r
-       api_err = tel_register_event(TAPI_EVENT_MISC_NITZ_NOTIFY, &subscription_id[1], (TelAppCallback)misc_Callback, NULL);\r
-       api_err = tel_register_event(TAPI_EVENT_MISC_NITZ_IND, &subscription_id[2], (TelAppCallback)misc_Callback, NULL);\r
-       print_all_subsciption_ids();\r
-\r      return 0;
-}\r
-\r
-\r
- TapiResult_t deregister_all()\r
-{\r
-       tel_deregister_event(subscription_id[0]);\r
-       tel_deregister_event(subscription_id[1]);\r
-       tel_deregister_event(subscription_id[2]);\r
-       return 0;
-}\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
diff --git a/TC/telephony_TC/misc/unit/misc_callback_util.h b/TC/telephony_TC/misc/unit/misc_callback_util.h
deleted file mode 100644 (file)
index bf6a6b4..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-#ifndef _MISC_CALLBACK_UTIL_H_\r
-#define _MISC_CALLBACK_UTIL_H_\r
-\r
-#include <stdlib.h>\r
-#include <signal.h>\r
-#include <errno.h>\r
-#include "string.h"\r
-#include "assert.h"\r
-#include <sys/types.h>\r
-#include <sys/stat.h>\r
-#include <fcntl.h>\r
-#include <unistd.h>\r
-#include <glib.h>\r
-#include <pthread.h>\r
-#include <stdio.h>\r
-
-#include <ITapiMisc.h>
-#include "tet_api.h"
-#include "tet_macro.h"
-#include <ITapiCall.h>
-#include <TapiCommon.h>
-#include <TapiEvent.h>
-#include <TelErr.h>
-#include "async_util.h"
-
-extern void  misc_Callback (TelTapiEvent_t * TapiEvent);
-extern TapiResult_t register_all_events();
-extern  TapiResult_t deregister_all();
-void print_all_subsciption_ids();
-void misc_Callback(TelTapiEvent_t *TapiEvent);
-
-extern int gmain_loop_for_tapi_events(int delay);
-extern gboolean TimeOutFun (void *data);
-
-#endif //_MISC_CALLBACK_UTIL_H_
diff --git a/TC/telephony_TC/misc/unit/tet_macro.h b/TC/telephony_TC/misc/unit/tet_macro.h
deleted file mode 100644 (file)
index 89744c0..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#ifndef TET_MACRO_H\r
-#define TET_MACRO_H\r
-\r
-#define TET_CHECK(x) if(x) tet_result(TET_PASS); else tet_result(TET_FAIL)\r
-#define TET_CHECK_EQUAL(x,y) if ((x)==(y)) tet_result(TET_PASS);  else tet_result(TET_FAIL)\r
-#define TET_CHECK_NOT_EQUAL(x,y) if ((x)!=(y)) tet_result(TET_PASS);  else tet_result(TET_FAIL)\r
-\r
-#define TET_CHECK_MESSAGE(x,y) if ((y)==(TRUE)) tet_result(TET_PASS); else {tet_result(TET_FAIL); tet_printf(x);}\r
-#define TET_CHECK_EQUAL_MESSAGE(x,y,z) if ((y)==(z)) tet_result(TET_PASS);  else {tet_result(TET_FAIL); tet_printf(x);}\r
-#define TET_CHECK_NOT_EQUAL_MESSAGE(x,y,z) if ((y)!=(z)) tet_result(TET_PASS);  else {tet_result(TET_FAIL); tet_printf(x);}\r
-\r
-#endif\r
-\r
diff --git a/TC/telephony_TC/misc/unit/tslist b/TC/telephony_TC/misc/unit/tslist
deleted file mode 100644 (file)
index 2c10bec..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-/misc/unit/uts_tapi_misc_NAM_info_set
-/misc/unit/uts_tapi_misc_NAM_info_get
-/misc/unit/uts_tapi_misc_me_serial_num_get
-/misc/unit/uts_tapi_misc_timezone_getinfo
-
diff --git a/TC/telephony_TC/misc/unit/uts_tapi_misc_NAM_info_get.c b/TC/telephony_TC/misc/unit/uts_tapi_misc_NAM_info_get.c
deleted file mode 100644 (file)
index 31d6b0d..0000000
+++ /dev/null
@@ -1,159 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#include "uts_tapi_misc_NAM_info_get.h"\r
-\r
-static void startup();\r
-static void cleanup();\r
-\r
-void (*tet_startup)() = startup;\r
-void (*tet_cleanup)() = cleanup;\r
-\r
-static TapiResult_t gStartupSuccess;\r
-\r
-static void startup() {\r
-       gStartupSuccess = tel_init();\r
-       if (gStartupSuccess != TAPI_API_SUCCESS) {\r
-               printf("TelTapiInit() Failed gStartupSuccess = %d \n", gStartupSuccess);\r
-       }\r
-       register_all_events();\r
-}\r
-\r
-static void cleanup() {\r
-       if (gStartupSuccess == TAPI_API_SUCCESS) {\r
-               //               G_MAIN_CLOSE();\r
-       }\r
-       deregister_all();\r
-       tel_deinit();\r
-       return;\r
-}\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- * @param [in]  timezone_valid\r
- * @code\r
- * @endcode\r
- * @param [out]  timezone_valid\r
- * @return TapiResult_t\r
- */\r
-\r
-void utc_tapi_misc_NAM_info_get_001() {\r
-\r
-       TapiResult_t returnStatus;\r
-       TS_WORD nam_info_mask = 0x0008;// Auto NAM\r
-       TelMiscNamIndex_t nam_index = TAPI_MISC_NAM_1;\r
-       int case_result = 1;\r
-\r
-       gmain_loop_for_tapi_events(10000);\r
-       returnStatus = tel_get_misc_nam_info(nam_info_mask, nam_index);\r
-       // G_MAIN_LOOP_RUN(5);\r
-       gmain_loop_for_tapi_events(10000);\r
-\r
-       printf("The return value is %d\n", returnStatus);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS)\r
-               ;\r
-\r
-       if (returnStatus == TAPI_API_SUCCESS)\r
-               printf("utc_tapi_misc_NAM_info_get_001 request successful\n");\r
-       else\r
-               case_result = 0;\r
-\r
-       //expected_event = TAPI_EVENT_MISC_GET_NAM_INFO_CNF;\r
-       gmain_loop_for_tapi_events(100);\r
-\r
-       if (case_result)\r
-               tet_result(TET_PASS);\r
-\r
-       printf("\n\n\n\n\n########     TEST utc_tapi_misc_NAM_info_get_001 ENDS    ###########\n");\r
-}\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- * @param [in]  timezone_valid\r
- * @code\r
- * @endcode\r
- * @param [out]  timezone_valid\r
- * @return TapiResult_t\r
- */\r
-\r
-void utc_tapi_misc_NAM_info_get_002() {\r
-\r
-       TapiResult_t returnStatus;\r
-       TS_WORD nam_info_mask = -1;\r
-       TelMiscNamIndex_t nam_index = TAPI_MISC_NAM_1;\r
-       int case_result = 1;\r
-\r
-       gmain_loop_for_tapi_events(5000);\r
-       returnStatus = tel_get_misc_nam_info(NULL, nam_index);\r
-       // G_MAIN_LOOP_RUN(5);\r
-       gmain_loop_for_tapi_events(5000);\r
-\r
-       printf("The return value is %d\n", returnStatus);\r
-       //printf ("The pRequestId value is %d\n",flag);\r
-\r
-       if (returnStatus == TAPI_API_SUCCESS) {\r
-               tet_result(TET_FAIL);\r
-               tet_printf("utc_tapi_misc_Nam_info_get_002 failed\n");\r
-       }\r
-       tet_result(TET_PASS);\r
-\r
-       printf("\n\n\n\n\n########     TEST utc_tapi_misc_NAM_info_get_002 ENDS    ###########\n");\r
-}\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- * @param [in]  timezone_valid\r
- * @code\r
- * @endcode\r
- * @param [out]  timezone_valid\r
- * @return TapiResult_t\r
- */\r
-\r
-void utc_tapi_misc_NAM_info_get_003() {\r
-\r
-       TapiResult_t returnStatus;\r
-       TS_WORD nam_info_mask = 0x0008;// Auto NAM\r
-       int nam_index = -1;\r
-       int case_result = 1;\r
-\r
-       gmain_loop_for_tapi_events(5000);\r
-       returnStatus = tel_get_misc_nam_info(nam_info_mask, nam_index);\r
-       // G_MAIN_LOOP_RUN(5);\r
-       gmain_loop_for_tapi_events(5000);\r
-\r
-       printf("The return value is %d\n", returnStatus);\r
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT)\r
-               ;\r
-\r
-       if (returnStatus == TAPI_API_INVALID_INPUT)\r
-               printf("utc_tapi_misc_NAM_info_get_003 request successful\n");\r
-       else\r
-               case_result = 0;\r
-\r
-       if (case_result)\r
-               tet_result(TET_PASS);\r
-\r
-       printf("\n\n\n\n\n########     TEST utc_tapi_misc_NAM_info_get_003 ENDS    ###########\n");\r
-}\r
-/** @} */\r
diff --git a/TC/telephony_TC/misc/unit/uts_tapi_misc_NAM_info_get.h b/TC/telephony_TC/misc/unit/uts_tapi_misc_NAM_info_get.h
deleted file mode 100644 (file)
index e159e42..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "misc_callback_util.h"
-
-#ifndef  _UTC_TAPI_MISC_NAM_INFO_GET_
-#define  _UTC_TAPI_MISC_NAM_INFO_GET_
-
-
-void utc_tapi_misc_NAM_info_get_001();
-void utc_tapi_misc_NAM_info_get_002();
-void utc_tapi_misc_NAM_info_get_003();
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tapi_misc_NAM_info_get_001, 1},
-       {utc_tapi_misc_NAM_info_get_002, 2},
-       {utc_tapi_misc_NAM_info_get_003, 2},
-       {NULL, 0}
-};
-
-
-
-#endif //_UTC_TAPI_MISC_NAM_INFO_GET_
diff --git a/TC/telephony_TC/misc/unit/uts_tapi_misc_NAM_info_set.c b/TC/telephony_TC/misc/unit/uts_tapi_misc_NAM_info_set.c
deleted file mode 100644 (file)
index b8c65e7..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#include "uts_tapi_misc_NAM_info_set.h"\r
-\r
-static void startup();\r
-static void cleanup();\r
-\r
-void (*tet_startup)() = startup;\r
-void (*tet_cleanup)() = cleanup;\r
-\r
-static TapiResult_t gStartupSuccess;\r
-\r
-/* Startup & Clean function : It is not test code, only for\r
- initialize and finalize test module */\r
-\r
-static void startup() {\r
-       gStartupSuccess = tel_init();\r
-       if (gStartupSuccess != TAPI_API_SUCCESS) {\r
-               printf("TelTapiInit() Failed gStartupSuccess = %d \n", gStartupSuccess);\r
-       }\r
-       register_all_events();\r
-}\r
-\r
-static void cleanup() {\r
-       if (gStartupSuccess == TAPI_API_SUCCESS) {\r
-               //               G_MAIN_CLOSE();\r
-       }\r
-       deregister_all();\r
-       tel_deinit();\r
-       return;\r
-}\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- * @param [in]  *timezone_info\r
- * @code\r
- * @endcode\r
- * @param [out]  *timezone_info\r
- * @return TapiResult_t\r
- */\r
-\r
-void utc_tapi_misc_NAM_info_set_001() {\r
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;\r
-       TelMiscNamInfo_t *nam_info = { 0, };\r
-       /*\r
-        nam_info->nam_info_mask = ;\r
-        nam_info->nam_total = ;\r
-        nam_info->nam_current_index = ;\r
-        nam_info->nam_req_index = ;\r
-        nam_info->nam_auto = ;\r
-        memcpy (,&nam_info->nam_mcc,TAPI_MISC_MCC_LEN_MAX);\r
-        memcpy (,&nam_info->nam_mnc,TAPI_MISC_MCC_LEN_MAX);\r
-        memcpy (,&nam_info->nam_min,TAPI_MISC_MIN_LEN_MAX);\r
-        memcpy (,&nam_info->nam_mdn,TAPI_MISC_MDN_LEN_MAX);\r
-        memcpy (,&nam_info->nam_name,TAPI_MISC_NAME_LEN_MAX);\r
-        */\r
-       gmain_loop_for_tapi_events(10000);\r
-       returnStatus = tel_set_misc_nam_info(&nam_info);\r
-\r
-       //G_MAIN_LOOP_RUN(5);\r
-       gmain_loop_for_tapi_events(10000);\r
-       printf("The return value is %d\n", returnStatus);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS)\r
-               ;\r
-\r
-       if (returnStatus == TAPI_API_SUCCESS)\r
-               printf("utc_tapi_misc_NAM_info_set_001 pass\n");\r
-\r
-}\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- * @param [in]  *timezone_info\r
- * @code\r
- * @endcode\r
- * @param [out]  *timezone_info\r
- * @return TapiResult_t\r
- */\r
-void utc_tapi_misc_NAM_info_set_002() {\r
-\r
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;\r
-       TelMiscNamInfo_t *nam_info = { 0, };\r
-\r
-       gmain_loop_for_tapi_events(10000);\r
-       returnStatus = tel_set_misc_nam_info(NULL);\r
-       //G_MAIN_LOOP_RUN(5);\r
-       gmain_loop_for_tapi_events(10000);\r
-       printf("The return value is %d\n", returnStatus);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR)\r
-               ;\r
-       if (returnStatus == TAPI_API_INVALID_PTR)\r
-               printf("utc_tapi_misc_NAM_info_set_002 pass\n");\r
-\r
-}\r
-/** @} */\r
diff --git a/TC/telephony_TC/misc/unit/uts_tapi_misc_NAM_info_set.h b/TC/telephony_TC/misc/unit/uts_tapi_misc_NAM_info_set.h
deleted file mode 100644 (file)
index 2800f3f..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
-* @file
-* @brief       This is a suite of unit test cases to test Telephony misc API function
-* @author      Sagar Aggarwal  (a.sagar@samsung.com)
-* @version     Initial Creation
-* @date        2009.03.04
-*/
-
-#include "misc_callback_util.h"
-
-#ifndef  _UTC_TAPI_MISC_NAM_INFO_SET_
-#define  _UTC_TAPI_MISC_NAM_INFO_SET_
-
-void utc_tapi_misc_NAM_info_set_001();
-void utc_tapi_misc_NAM_info_set_002();
-
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tapi_misc_NAM_info_set_001, 1},
-       {utc_tapi_misc_NAM_info_set_002, 2},
-       {NULL, 0}
-};
-
-#endif // _UTC_TAPI_MISC_NAM_INFO_SET_
diff --git a/TC/telephony_TC/misc/unit/uts_tapi_misc_me_serial_num_get.c b/TC/telephony_TC/misc/unit/uts_tapi_misc_me_serial_num_get.c
deleted file mode 100644 (file)
index 888baad..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-void utc_tapi_misc_me_serial_num_get_001() {\r
-\r
-       int returnStatus;\r
-       TelMiscSNIndexType_t index_type = TAPI_MISC_ME_MEID;\r
-       TelMiscSNInformation sn_info;\r
-       int case_result = 1;\r
-\r
-       gmain_loop_for_tapi_events(10000);\r
-       returnStatus = tel_get_misc_me_sn(index_type, &sn_info);\r
-       // G_MAIN_LOOP_RUN(5);\r
-       gmain_loop_for_tapi_events(10000);\r
-\r
-       printf("The return value is %d\n", returnStatus);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);\r
-\r
-       if (returnStatus == TAPI_API_SUCCESS)\r
-               printf("utc_tapi_misc_me_serial_num_get_001 request successful\n");\r
-       else\r
-               case_result = 0;\r
-\r
-       expected_event = TAPI_EVENT_MISC_SERIAL_NUMBER_IND;\r
-       gmain_loop_for_tapi_events(10000);\r
-\r
-       if (case_result)\r
-               tet_result(TET_PASS);\r
-\r
-       printf("\n\n\n\n\n########     TEST utc_tapi_misc_me_serial_num_get_001 ENDS    ###########\n");\r
-}\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- * @param [in]  timezone_valid\r
- * @code\r
- * @endcode\r
- * @param [out]  timezone_valid\r
- * @return int\r
- */\r
-\r
-void utc_tapi_misc_me_serial_num_get_002() {\r
-\r
-       int returnStatus;\r
-       int index_type = -1;\r
-       int case_result = 1;\r
-       TelMiscSNInformation sn_info;\r
-\r
-       gmain_loop_for_tapi_events(5000);\r
-       returnStatus = tel_get_misc_me_sn(index_type, &sn_info);\r
-       // G_MAIN_LOOP_RUN(5);\r
-       gmain_loop_for_tapi_events(5000);\r
-\r
-       printf("The return value is %d\n", returnStatus);\r
-\r
-       if (returnStatus == TAPI_API_SUCCESS) {\r
-               tet_result(TET_FAIL);\r
-               printf("\nTEST utc_tapi_misc_me_serial_num_get_002 Failed    \n");\r
-       }\r
-\r
-       tet_result(TET_PASS);\r
-\r
-       printf("\n\n\n\n\n########     TEST utc_tapi_misc_me_serial_num_get_002 ENDS    ###########\n");\r
-}\r
-/** @} */\r
diff --git a/TC/telephony_TC/misc/unit/uts_tapi_misc_me_serial_num_get.h b/TC/telephony_TC/misc/unit/uts_tapi_misc_me_serial_num_get.h
deleted file mode 100644 (file)
index 565187b..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "misc_callback_util.h"
-
-#ifndef  _UTC_TAPI_MISC_ME_SERIAL_NUM_GET_
-#define  _UTC_TAPI_MISC_ME_SERIAL_NUM_GET_
-
-
-void utc_tapi_misc_me_serial_num_get_001();
-void utc_tapi_misc_me_serial_num_get_002();
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tapi_misc_me_serial_num_get_001, 1},
-       {utc_tapi_misc_me_serial_num_get_002, 2},
-       {NULL, 0}
-};
-
-
-
-#endif //_UTC_TAPI_MISC_ME_SERIAL_NUM_GET_
diff --git a/TC/telephony_TC/misc/unit/uts_tapi_misc_timezone_getinfo.c b/TC/telephony_TC/misc/unit/uts_tapi_misc_timezone_getinfo.c
deleted file mode 100644 (file)
index 432beed..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#include "uts_tapi_misc_timezone_getinfo.h"\r
-\r
-\r
-static void startup();\r
-static void cleanup();\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tapi_misc_timezone_getinfo_001, 1},\r
-       {NULL, 0}\r
-};\r
-\r
-\r
-static int gStartupSuccess;\r
-\r
-void alarm_received(int sgi)\r
-{\r
-       gAsyncResult = FALSE;\r
-       printf("Signal [SIGALARM] Received. Close g_main_loop()");\r
-//     G_MAIN_LOOP_CLOSE();\r
-}\r
-\r
-\r
-/* Startup & Clean function : It is not test code, only for\r
-   initialize and finalize test module */\r
-\r
-static void startup()\r
-{\r
-       gStartupSuccess =  tel_init();\r
-       if(gStartupSuccess != TAPI_API_SUCCESS)\r
-       {\r
-               printf("tel_init() Failed gStartupSuccess = %d \n",gStartupSuccess);\r
-       }\r
-\r
-       register_all_events();\r
-\r
-}\r
-\r
-static void cleanup()\r
-{\r
-       if (gStartupSuccess == TAPI_API_SUCCESS)\r
-               {\r
-               //       G_MAIN_CLOSE();\r
-               }\r
-       deregister_all();\r
-       tel_deinit();\r
-       return;\r
-\r
-}\r
-\r
-\r
-\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  UTC_TAPI_MISC_TIMEZONE_GETINFO_001\r
- * @param [in]  *timezone_info\r
- * @code\r
- * @endcode\r
- * @param [out]  *timezone_info\r
- * @return int\r
-*/\r
-\r
-\r
-void utc_tapi_misc_timezone_getinfo_001()\r
-{\r
-\r
-       int  returnStatus = TAPI_API_SUCCESS;\r
-       gmain_loop_for_tapi_events(5000);\r
-       returnStatus = tel_get_misc_timezone_info();\r
-       gmain_loop_for_tapi_events(5000);\r
-\r
-       printf ("The return value is %d\n", returnStatus);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);\r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-               printf("utc_tapi_misc_timezone_getinfo_001 pass\n");\r
-\r
-\r
-}\r
-\r
-\r
-/** @} */\r
diff --git a/TC/telephony_TC/misc/unit/uts_tapi_misc_timezone_getinfo.h b/TC/telephony_TC/misc/unit/uts_tapi_misc_timezone_getinfo.h
deleted file mode 100644 (file)
index 7f3be9f..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-#ifndef  _UTC_TAPI_MISC_TIMEZONE_GETINFO_\r
-#define  _UTC_TAPI_MISC_TIMEZONE_GETINFO_\r
-\r
-#include "misc_callback_util.h"\r
-\r
-void utc_tapi_misc_timezone_getinfo_001();\r
-\r
-#endif // _UTC_TAPI_MISC_TIMEZONE_GETINFO_\r
diff --git a/TC/telephony_TC/misc/unit/uts_tapi_misc_timezone_setinfo.c b/TC/telephony_TC/misc/unit/uts_tapi_misc_timezone_setinfo.c
deleted file mode 100644 (file)
index fdab033..0000000
+++ /dev/null
@@ -1,138 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#include "uts_tapi_misc_timezone_setinfo.h"\r
-\r
-\r
-static void startup();\r
-static void cleanup();\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tapi_misc_timezone_setinfo_001, 1},\r
-       {utc_tapi_misc_timezone_setinfo_002, 2},\r
-       {NULL, 0}\r
-};\r
-\r
-\r
-static TapiResult_t gStartupSuccess;\r
-\r
-void alarm_received(int sgi)\r
-{\r
-       gAsyncResult = FALSE;\r
-       printf("Signal [SIGALARM] Received. Close g_main_loop()");\r
-//     G_MAIN_LOOP_CLOSE();\r
-}\r
-\r
-\r
-/* Startup & Clean function : It is not test code, only for\r
-   initialize and finalize test module */\r
-\r
-static void startup()\r
-{\r
-\r
-       gStartupSuccess =  TelTapiInit();\r
-       if(gStartupSuccess != TAPI_API_SUCCESS)\r
-       {\r
-               printf("TelTapiInit() Failed gStartupSuccess = %d \n",gStartupSuccess);\r
-       }\r
-       register_all_events();\r
-\r
-}\r
-\r
-static void cleanup()\r
-{\r
-       if (gStartupSuccess == TAPI_API_SUCCESS)\r
-               {\r
-               //       G_MAIN_CLOSE();\r
-               }\r
-       deregister_all();\r
-       TelTapiDeInit();\r
-       return;\r
-\r
-}\r
-\r
-\r
-\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  UTC_TAPI_MISC_TIMEZONE_SETINFO_001\r
- * @param [in]  *timezone_info\r
- * @code\r
- * @endcode\r
- * @param [out]  *timezone_info\r
- * @return TapiResult_t\r
-*/\r
-\r
-\r
-void utc_tapi_misc_timezone_setinfo_001()\r
-{\r
-\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       tapi_misc_time_zone_info_type timezone_info = {0,};\r
-       timezone_info.daylight_valid=1;\r
-       timezone_info.year=10;\r
-       timezone_info.month=1;\r
-       timezone_info.day=1;\r
-       timezone_info.hour=1;\r
-       timezone_info.minute=1;\r
-       timezone_info.second=1;\r
-       timezone_info.time_zone=36;\r
-       timezone_info.time_zone_valid=TAPI_MISC_NITZ_RTC_BKUP_PHONE;\r
-       timezone_info.daylight_adjust=TAPI_MISC_NITZ_NOADJUST;\r
-       timezone_info.day_of_week =TAPI_MISC_NITZ_DOW_FRI;\r
-       \r
-       gmain_loop_for_tapi_events(5000);\r
-       returnStatus = tapi_misc_timezone_setinfo(&timezone_info);\r
-       gmain_loop_for_tapi_events(5000);\r
-\r
-       printf ("The return value is %d\n", returnStatus);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);\r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-               printf("utc_tapi_misc_timezone_setinfo_001 pass\n");\r
-\r
-\r
-}\r
-\r
-\r
-\r
-void utc_tapi_misc_timezone_setinfo_002()\r
-{\r
-\r
-       TapiResult_t  returnStatus = 1;\r
-       TelTapiDeInit();\r
-       gmain_loop_for_tapi_events(5000);\r
-       //De-initializing Tapi for invalid test case\r
-       returnStatus = tapi_misc_timezone_setinfo(NULL);\r
-       gmain_loop_for_tapi_events(5000);\r
-\r
-       printf ("The return value is %d\n", returnStatus);\r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-       {\r
-               tet_result(TET_FAIL);\r
-       }\r
-       tet_result(TET_PASS);\r
-}\r
-\r
-/** @} */\r
diff --git a/TC/telephony_TC/misc/unit/uts_tapi_misc_timezone_setinfo.h b/TC/telephony_TC/misc/unit/uts_tapi_misc_timezone_setinfo.h
deleted file mode 100644 (file)
index c69e210..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#include "misc_callback_util.h"\r
-\r
-#ifndef  _UTC_TAPI_MISC_TIMEZONE_SETINFO_\r
-#define  _UTC_TAPI_MISC_TIMEZONE_SETINFO_\r
-\r
-void utc_tapi_misc_timezone_setinfo_001();\r
-void utc_tapi_misc_timezone_setinfo_002();\r
-\r
-#endif // _UTC_TAPI_MISC_TIMEZONE_SETINFO_\r
diff --git a/TC/telephony_TC/network/README b/TC/telephony_TC/network/README
deleted file mode 100644 (file)
index 803feff..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-=================================================================================
-*                                    README                                     *
-=================================================================================
-
-1. The Telephony Network Test Script directory (TestCases) includes:
-
-       Telephony-framework/network/
-               |-- README                                    ; This file
-               `-- Unit                                      ; contains Unit TCs
-                   |-- makefile
-                   |-- tslist
-                   `-- Unit test case source codes
-       2 directories, 58 files
-       
-
-2. The $(TEST_ROOT) directory must includes following files:
-
-       /$(TEST_ROOT)
-               |-- _export_tet_host.sh
-               |-- _export_tet_target.sh
-               |-- build-target.sh
-               |-- exec-target.sh
-               |-- tet_code
-               |-- tet_scen
-               |-- tetbuild.cfg
-               |-- tetclean.cfg
-               |-- tetexec.cfg
-               |-- telephony-framework
-               `-- ...(elipsis)
-
-=================================================================================
-*                                Preconditions                                  *
----------------------------------------------------------------------------------
-|  Before Testing Email Module, you should check the following conditions       |
-=================================================================================
-
-1. Prepare a vaild SIM card that supports GPRS.
-
-
-       
-=================================================================================
-*                                   Build                                       *
-=================================================================================
-       1) Place the Email Test Case package (TestCases) under $(TEST_ROOT)/telephony-framework.
-       
-       2) Host computer must have two type of TETware .
-               . A TETware built with 'arm-linux-gcc' for target testing
-               . A TETware built with 'gcc' for simulator testing
-               
-       3) Change directory to $(TEST_ROOT) folder.
-       
-       4) Modify the environment variable settings in "_export_tet_host.sh" file.
-               # TET_INSTALL_DIR=/home/share/tet3.7a                   ; specify your TETware path
-               # TET_TAR_PATH=/tetware-target
-               # TET_SIMULATOR_PATH=/tetware-simulator
-               
-       5) Make sure that all the header files, libraries and binaries are stored under LD_LIBRARY_PATH and PKG_CONFIG_PATH.
-       
-                               
-       6) Build.
-               # ./build-tar-host
-
-=================================================================================
-*                                    Execute                                    *
-=================================================================================
-       1) Mount NFS shares.
-       
-       2) Change directory to $(TEST_ROOT) folder.
-       
-       3) EModify the environment variable settings in "_export_tet_target.sh" file.
-               # TET_INSTALL_DIR=/mnt/nfs/tet3.7a              ; specify your TETware path
-               # TET_TAR_PATH=/tetware-target
-               
-       4) Make sure that all the header files, libraries and binaries are stored under LD_LIBRARY_PATH and PKG_CONFIG_PATH.
-       
-       5) Execute. It takes maximum 1 minute.
-               # ./exec-tar-target
-
-=================================================================================
-*                                  Change log                                   *
-=================================================================================
-1. 18-Dec-2008
-       - Initial draft.
-       
-=================================================================================
-*                                      NOTE                                     *
-=================================================================================
-1. In order to ensure successful working of the Test Scripts, please ensure that all of the IPKG files are installed normally.
-2. Testing Email Module can be executed under target system environment (not simulator).
-
-
diff --git a/TC/telephony_TC/network/unit/makefile b/TC/telephony_TC/network/unit/makefile
deleted file mode 100644 (file)
index 2fa3cbf..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-CC=gcc -Wall
-
-COMM = tel_tapi_nw_common
-TS1 = uts_tel_get_network_band
-TS2 = uts_tel_get_network_hybrid_in_cdma
-TS3 = uts_tel_get_network_preferred_plmn
-TS4 = uts_tel_get_network_roaming
-TS5 = uts_tel_get_network_selection_mode
-TS6 = uts_tel_get_network_service_domain
-TS7 = uts_tel_search_network
-TS8 =  uts_tel_set_network_band
-TS10 = uts_tel_set_network_hybrid_in_cdma
-TS11 = uts_tel_set_network_preferred_plmn
-TS13 = uts_tel_set_network_roaming
-TS14 = uts_tel_set_network_service_domain
-TS15 = uts_tel_select_network_automatic
-TS16 = uts_tel_set_network_mode
-TS17 = uts_tel_get_network_mode
-TS18 = uts_tel_select_network_manual
-
-LIBS  = `pkg-config --libs  glib-2.0 gconf-2.0 dbus-1 dbus-glib-1 gthread-2.0 tapi`
-
-LIBS +=$(TET_ROOT)/lib/tet3/tcm.o
-LIBS +=-L$(TET_ROOT)/lib/tet3 -lapi
-       
-INCS  =  -I. `pkg-config --cflags  glib-2.0 gconf-2.0 dbus-1 dbus-glib-1 gthread-2.0 tapi`
-INCS  += -I$(TET_ROOT)/inc/tet3
-INCS  += -I../include
-
-CFLAGS += $(INCS) -D__arm__ -D_ARM_TOUCH -DTELEPHONY_TIMER
-CC +=$(CFLAGS)
-LDFLAGS = $(LIBS)
-
-all : $(TS1) $(TS2) $(TS3) $(TS4) $(TS5) $(TS6) $(TS7) $(TS8) $(TS10) $(TS11) $(TS13) $(TS14) $(TS15) $(TS16) $(TS17) $(TS18)
-
-clean :
-       rm -rf *~ *.o tet_lock tet_captured $(TS1) $(TS2) $(TS3) $(TS4) $(TS5) $(TS6) $(TS7) $(TS8) $(TS10) $(TS11) $(TS13) $(TS14) $(TS15) $(TS16) $(TS17) $(TS18)
-
-$(TS1): $(TS1).c
-       $(CC) -o $(TS1) tel_tapi_nw_common.c $(TS1).c  $(LDFLAGS)
-
-$(TS2): $(TS2).c
-       $(CC) -o $(TS2) tel_tapi_nw_common.c $(TS2).c  $(LDFLAGS)
-
-$(TS3): $(TS3).c
-       $(CC) -o $(TS3) tel_tapi_nw_common.c $(TS3).c  $(LDFLAGS)
-
-$(TS4): $(TS4).c
-       $(CC) -o $(TS4) tel_tapi_nw_common.c $(TS4).c  $(LDFLAGS)
-
-$(TS5): $(TS5).c
-       $(CC) -o $(TS5) tel_tapi_nw_common.c $(TS5).c  $(LDFLAGS)
-
-$(TS6): $(TS6).c
-       $(CC) -o $(TS6) tel_tapi_nw_common.c $(TS6).c  $(LDFLAGS)
-
-$(TS7): $(TS7).c
-       $(CC) -o $(TS7) tel_tapi_nw_common.c $(TS7).c  $(LDFLAGS)
-
-$(TS8): $(TS8).c
-       $(CC) -o $(TS8) tel_tapi_nw_common.c $(TS8).c  $(LDFLAGS)
-
-$(TS10): $(TS10).c
-       $(CC) -o $(TS10) tel_tapi_nw_common.c $(TS10).c  $(LDFLAGS)
-
-$(TS11): $(TS11).c
-       $(CC) -o $(TS11) tel_tapi_nw_common.c $(TS11).c  $(LDFLAGS)
-
-$(TS13): $(TS13).c
-       $(CC) -o $(TS13) tel_tapi_nw_common.c $(TS13).c  $(LDFLAGS)
-
-$(TS14): $(TS14).c
-       $(CC) -o $(TS14) tel_tapi_nw_common.c $(TS14).c  $(LDFLAGS)
-$(TS15): $(TS15).c
-       $(CC) -o $(TS15) tel_tapi_nw_common.c $(TS15).c  $(LDFLAGS)
-
-$(TS16): $(TS16).c
-       $(CC) -o $(TS16) tel_tapi_nw_common.c $(TS16).c  $(LDFLAGS)
-
-$(TS17): $(TS17).c
-       $(CC) -o $(TS17) tel_tapi_nw_common.c $(TS17).c  $(LDFLAGS)
-
-$(TS18): $(TS18).c
-       $(CC) -o $(TS18) tel_tapi_nw_common.c $(TS18).c  $(LDFLAGS)
diff --git a/TC/telephony_TC/network/unit/tel_tapi_nw_common.c b/TC/telephony_TC/network/unit/tel_tapi_nw_common.c
deleted file mode 100644 (file)
index f74e8fb..0000000
+++ /dev/null
@@ -1,537 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <tet_api.h>
-#include "tel_tapi_nw_common.h"
-
-TelNetworkList_t gNetworkList = { 0, };
-GMainLoop *mainloop;
-
-void GetNetworkInfoCB(void *data)
-{
-       TelNetworkInfo_t tNetworkInfo;
-       memcpy(&tNetworkInfo, data, sizeof(TelNetworkInfo_t));
-
-       printf("GetNetworkInfoCB() : PLMN is %ld\n", tNetworkInfo.SysId.SysId);
-       printf("GetNetworkInfoCB() : PLMN is %s\n", tNetworkInfo.SysId.szSystemName);
-
-       if (tNetworkInfo.SysId.bPlmnForbidden == TRUE) {
-               printf("GetNetworkInfoCB(): Network Forbidden\n");
-       }
-
-       if (tNetworkInfo.SysId.bHome == TRUE) {
-               printf("GetNetworkInfoCB(): Home Network \n");
-       }
-
-       if (tNetworkInfo.bRoaming == TRUE) {
-               printf("GetNetworkInfoCB(): Roaming Network \n");
-       }
-
-       /*SystemType*/
-       switch (tNetworkInfo.SysId.SystemType) {
-               case TAPI_NETWORK_SYSTEM_GSM:
-                       printf("SystemType: TAPI_NETWORK_SYSTEM_GSM\n");
-                       break;
-
-               case TAPI_NETWORK_SYSTEM_UMTS:
-                       printf("SystemType: TAPI_NETWORK_SYSTEM_UMTS\n");
-                       break;
-
-               case TAPI_NETWORK_SYSTEM_GPRS:
-                       printf("SystemType: TAPI_NETWORK_SYSTEM_GPRS\n");
-                       break;
-
-               default:
-                       printf("SystemType: Other than GSM,GPRS,UMTS System type \n");
-                       break;
-       }
-
-       /*ServiceType*/
-       switch (tNetworkInfo.SysId.ServiceType) {
-               case TAPI_NETWORK_SERVICE_TYPE_COMBINED:
-                       printf("ServiceType: TAPI_NETWORK_SERVICE_TYPE_COMBINED\n");
-                       break;
-
-               case TAPI_NETWORK_SERVICE_TYPE_CS:
-                       printf("ServiceType: TAPI_NETWORK_SERVICE_TYPE_CS\n");
-                       break;
-
-               case TAPI_NETWORK_SERVICE_TYPE_PS:
-                       printf("ServiceType: TAPI_NETWORK_SERVICE_TYPE_PS\n");
-                       break;
-
-               default:
-                       printf("ServiceType: TAPI_NETWORK_SERVICE_TYPE_NO_SVE\n");
-                       break;
-       }
-
-       /*NetworkMode*/
-       switch (tNetworkInfo.SysId.NetworkMode) {
-               case TAPI_NETWORK_MODE_AUTOMATIC:
-                       printf("NetworkMode: TAPI_NETWORK_MODE_AUTOMATIC\n");
-                       break;
-
-               case TAPI_NETWORK_MODE_GSM:
-                       printf("NetworkMode: TAPI_NETWORK_MODE_GSM\n");
-                       break;
-
-               case TAPI_NETWORK_MODE_CDMA:
-                       printf("NetworkMode: TAPI_NETWORK_MODE_CDMA\n");
-                       break;
-
-               case TAPI_NETWORK_MODE_EMERGENCY:
-                       printf("NetworkMode: TAPI_NETWORK_MODE_EMERGENCY\n");
-                       break;
-
-               case TAPI_NETWORK_MODE_WCDMA:
-                       printf("NetworkMode: TAPI_NETWORK_MODE_WCDMA\n");
-                       break;
-
-               case TAPI_NETWORK_MODE_WLAN:
-                       printf("NetworkMode: TAPI_NETWORK_MODE_WLAN\n");
-                       break;
-
-               default:
-                       printf("NetworkMode: UnKnown\n");
-                       break;
-       }
-
-       /*service level */
-       switch (tNetworkInfo.ServiceLevel) {
-               case TAPI_NETWORK_SERVICE_LEVEL_NO:
-                       printf("ServiceLevel: TAPI_NETWORK_SERVICE_LEVEL_NO\n");
-                       break;
-
-               case TAPI_NETWORK_SERVICE_LEVEL_EMERGENCY:
-                       printf("ServiceLevel: TAPI_NETWORK_SERVICE_LEVEL_EMERGENCY\n");
-                       break;
-
-               case TAPI_NETWORK_SERVICE_LEVEL_FULL:
-                       printf("ServiceLevel: TAPI_NETWORK_SERVICE_LEVEL_FULL\n");
-                       break;
-
-               case TAPI_NETWORK_SERVICE_LEVEL_SEARCH:
-                       printf("ServiceLevel: TAPI_NETWORK_SERVICE_LEVEL_SEARCH\n");
-                       break;
-
-               default:
-                       printf("ServiceLevel: Unknown value\n");
-                       break;
-       }
-}
-
-void SearchNetworkCB(void *data)
-{
-       TelNetworkList_t tmpNetworkList;
-       int idx = 0;
-
-       memcpy(&tmpNetworkList, data, sizeof(TelNetworkList_t));
-       memcpy(&gNetworkList, data, sizeof(TelNetworkList_t));
-
-       printf("[PHONE CLIENT] ReceiveNetworkList() - entryCount:[%d]\n", tmpNetworkList.NumOfNwAvailable);
-
-       for (idx = 0; idx < tmpNetworkList.NumOfNwAvailable; idx++) {
-               printf("[PHONE CLIENT] NetworkList.systemList[idx].SysId =>%ld\n", tmpNetworkList.SystemList[idx].SysId);
-       }
-
-       if (tmpNetworkList.SystemList[0].ServiceType == TAPI_NETWORK_SERVICE_TYPE_COMBINED) {
-               printf("TAPI_NETWORK_SERVICE_TYPE_COMBINED\n");
-       }
-       else if (tmpNetworkList.SystemList[0].ServiceType == TAPI_NETWORK_SERVICE_TYPE_CS) {
-               printf("TAPI_NETWORK_SERVICE_TYPE_CS\n");
-       }
-       else if (tmpNetworkList.SystemList[0].ServiceType == TAPI_NETWORK_SERVICE_TYPE_PS) {
-               printf("TAPI_NETWORK_SERVICE_TYPE_PS\n");
-       }
-}
-
-void SelectNetworkCB(void *data)
-{
-       TelNetworkInfo_t tNetworkInfo;
-       memcpy(&tNetworkInfo, data, sizeof(TelNetworkInfo_t));
-
-       printf("SelectNetworkCB() : PLMN is %ld\n", tNetworkInfo.SysId.SysId);
-
-       if (tNetworkInfo.SysId.bPlmnForbidden == TRUE) {
-               printf("SelectNetworkCB(): Network Forbidden\n");
-       }
-
-       if (tNetworkInfo.SysId.bHome == TRUE) {
-               printf("SelectNetworkCB(): Home Network \n");
-       }
-
-       if (tNetworkInfo.bRoaming == TRUE) {
-               printf("SelectNetworkCB(): Roaming Network \n");
-       }
-
-
-       /*SystemType*/
-       switch (tNetworkInfo.SysId.SystemType) {
-               case TAPI_NETWORK_SYSTEM_GSM:
-                       printf("SystemType: TAPI_NETWORK_SYSTEM_GSM\n");
-                       break;
-
-               case TAPI_NETWORK_SYSTEM_UMTS:
-                       printf("SystemType: TAPI_NETWORK_SYSTEM_UMTS\n");
-                       break;
-
-               case TAPI_NETWORK_SYSTEM_GPRS:
-                       printf("SystemType: TAPI_NETWORK_SYSTEM_GPRS\n");
-                       break;
-
-               default:
-                       printf("SystemType: Other than GSM,GPRS,UMTS System type \n");
-                       break;
-       }
-
-
-       /*ServiceType*/
-       switch (tNetworkInfo.SysId.ServiceType) {
-               case TAPI_NETWORK_SERVICE_TYPE_COMBINED:
-                       printf("ServiceType: TAPI_NETWORK_SERVICE_TYPE_COMBINED\n");
-                       break;
-
-               case TAPI_NETWORK_SERVICE_TYPE_CS:
-                       printf("ServiceType: TAPI_NETWORK_SERVICE_TYPE_CS\n");
-                       break;
-
-               case TAPI_NETWORK_SERVICE_TYPE_PS:
-                       printf("ServiceType: TAPI_NETWORK_SERVICE_TYPE_PS\n");
-                       break;
-
-               default:
-                       printf("ServiceType: TAPI_NETWORK_SERVICE_TYPE_NO_SVE\n");
-                       break;
-       }
-
-
-       /*NetworkMode*/
-       switch (tNetworkInfo.SysId.NetworkMode) {
-               case TAPI_NETWORK_MODE_AUTOMATIC:
-                       printf("NetworkMode: TAPI_NETWORK_MODE_AUTOMATIC\n");
-                       break;
-
-               case TAPI_NETWORK_MODE_GSM:
-                       printf("NetworkMode: TAPI_NETWORK_MODE_GSM\n");
-                       break;
-
-               case TAPI_NETWORK_MODE_CDMA:
-                       printf("NetworkMode: TAPI_NETWORK_MODE_CDMA\n");
-                       break;
-
-               case TAPI_NETWORK_MODE_EMERGENCY:
-                       printf("NetworkMode: TAPI_NETWORK_MODE_EMERGENCY\n");
-                       break;
-
-               case TAPI_NETWORK_MODE_WCDMA:
-                       printf("NetworkMode: TAPI_NETWORK_MODE_WCDMA\n");
-                       break;
-
-               case TAPI_NETWORK_MODE_WLAN:
-                       printf("NetworkMode: TAPI_NETWORK_MODE_WLAN\n");
-                       break;
-
-               default:
-                       printf("NetworkMode: UnKnown\n");
-                       break;
-       }
-
-       /*service level */
-       switch (tNetworkInfo.ServiceLevel) {
-               case TAPI_NETWORK_SERVICE_LEVEL_NO:
-                       printf("ServiceLevel: TAPI_NETWORK_SERVICE_LEVEL_NO\n");
-                       break;
-
-               case TAPI_NETWORK_SERVICE_LEVEL_EMERGENCY:
-                       printf("ServiceLevel: TAPI_NETWORK_SERVICE_LEVEL_EMERGENCY\n");
-                       break;
-
-               case TAPI_NETWORK_SERVICE_LEVEL_FULL:
-                       printf("ServiceLevel: TAPI_NETWORK_SERVICE_LEVEL_FULL\n");
-                       break;
-
-               case TAPI_NETWORK_SERVICE_LEVEL_SEARCH:
-                       printf("ServiceLevel: TAPI_NETWORK_SERVICE_LEVEL_SEARCH\n");
-                       break;
-
-               default:
-                       printf("ServiceLevel: Unknown value\n");
-                       break;
-       }
-}
-
-
-void GetSelectionModeCB(void *data)
-{
-       TelNetworkSelectionMode_t tSelectionMode;
-       memcpy(&tSelectionMode, data, sizeof(TelNetworkSelectionMode_t));
-
-       if (tSelectionMode == TAPI_NETWORK_SELECTIONMODE_AUTOMATIC) {
-               printf("GetSelectionModeCB(): TAPI_NETWORK_SELECTIONMODE_AUTOMATIC\n");
-       }
-       else if (tSelectionMode == TAPI_NETWORK_SELECTIONMODE_MANUAL) {
-               printf("GetSelectionModeCB(): TAPI_NETWORK_SELECTIONMODE_MANUAL\n");
-       }
-       else {
-               printf("GetSelectionModeCB()???");
-       }
-}
-
-int tapi_callback(const TelTapiEvent_t *tapievent, void *data)
-{
-       int tmp;
-       int i = 0;
-       TelNetworkRadioInfo_t radioInfo;
-
-       tmp = tapievent->RequestId;
-
-       //tapievent->RequestId =  tapievent->Status;
-       //tapievent->Status = tapievent->EventType;
-       //tapievent->EventType = tmp;
-       tet_printf("\n Inside tapi_callback \n");
-       tet_printf("Request iD is %d\n", tapievent->RequestId);
-       tet_printf("Status  is %d\n", tapievent->Status);
-       tet_printf("Event type  is %d\n", tapievent->EventType);
-
-       if (tapievent->EventClass != TAPI_EVENT_CLASS_NETWORK) {
-               return FALSE;
-       }
-
-       switch (tapievent->EventType) {
-               case TAPI_EVENT_NETWORK_RADIO_INFO_IND:
-                       printf("\n$$$$$$ TAPI_EVENT_NETWORK_RADIO_INFO_IND $$$$$$ \n");
-
-                       memcpy(&radioInfo, tapievent->pData, sizeof(TelNetworkRadioInfo_t));
-
-                       printf("\n Radio InfoRssiBar:[%d] \n", radioInfo.RssiBar);
-                       printf("\n Radio InfoRxLevel:[%d] \n", radioInfo.RxLevel);
-                       printf("\n Radio InfoRxQuality:[%d] \n", radioInfo.RxQuality);
-
-                       break;
-
-               case TAPI_EVENT_NETWORK_CHANGE_IND:
-                       printf("\n$$$$$$ TAPI_EVENT_NETWORK_CHANGE_IND $$$$$$ \n");
-
-                       if (tapievent->pData != NULL)
-                               SelectNetworkCB(tapievent->pData);
-                       else
-                               printf("Event Data is NULL\n");
-
-                       break;
-
-               case TAPI_EVENT_NETWORK_GETSELECTIONMODE_CNF:
-                       printf("\n$$$$$$ TAPI_EVENT_NETWORK_GETSELECTIONMODE_CNF $$$$$$ \n");
-
-                       if (tapievent->pData != NULL)
-                               GetSelectionModeCB(tapievent->pData);
-                       else
-                               printf("Event Data is NULL\n");
-
-                       break;
-
-               case TAPI_EVENT_NETWORK_SETNWMODE_CNF:
-                       printf("\n$$$$$$ TAPI_EVENT_NETWORK_SETNWMODE_CNF $$$$$$ \n");
-                       break;
-
-               case TAPI_EVENT_NETWORK_SETNWBAND_CNF:
-                       printf("\n$$$$$$ TAPI_EVENT_NETWORK_SETNWBAND_CNF $$$$$$ \n");
-                       break;
-
-               case TAPI_EVENT_NETWORK_SETSERVICEDOMAIN_CNF:
-                       printf("\n$$$$$$ TAPI_EVENT_NETWORK_SETSERVICEDOMAIN_CNF $$$$$$ \n");
-                       break;
-
-               case TAPI_EVENT_NETWORK_SEARCH_CNF:
-                       printf("\n$$$$$$ TAPI_EVENT_NETWORK_SEARCH_CNF $$$$$$ \n");
-
-                       if (tapievent->pData != NULL) {
-                               TelNetworkList_t networlist;
-                               memcpy(&networlist, tapievent->pData, sizeof(TelNetworkList_t));
-                               //memcpy(&gNetworkList, 0, sizeof(TelNetworkList_t));
-                               memcpy(&gNetworkList, tapievent->pData, sizeof(TelNetworkList_t));
-                               printf("\n Network Count:[%d] \n", networlist.NumOfNwAvailable);
-                               for (i = 0; i < networlist.NumOfNwAvailable; i++) {
-                                       printf("Network Name:[%ld] \n", networlist.SystemList[i].SysId);
-                                       printf("Network Name:[%c] \n", networlist.SystemList[i].szSystemName[0]);
-                                       printf("System Type:[%d] \n", networlist.SystemList[i].SystemType);
-                                       printf("Service Type:[%d] \n", networlist.SystemList[i].ServiceType);
-                                       printf("Home PLMN:[%d] \n", networlist.SystemList[i].bHome);
-                                       printf("Forbidden PLMN:[%d] \n", networlist.SystemList[i].bPlmnForbidden);
-                               }
-                       }
-                       else {
-                               printf("Event Data is NULL\n");
-                       }
-
-                       break;
-
-               case TAPI_EVENT_NETWORK_SELECT_CNF:
-                       printf("\n$$$$$$ TAPI_EVENT_NETWORK_SELECT_CNF $$$$$$ \n");
-
-                       if (tapievent->pData != NULL)
-                               GetNetworkInfoCB(tapievent->pData);
-                       else
-                               printf("Event Data is NULL\n");
-
-                       break;
-
-               case TAPI_EVENT_NETWORK_GETPREFFEREDPLMN_CNF:
-                       printf("\n$$$$$$ TAPI_EVENT_NETWORK_GETPREFFPLMN_CNF $$$$$$ \n");
-
-                       if (tapievent->pData != NULL) {
-                               TelNetworkPrefferedPlmnList_t preff_plmn_list;
-                               memcpy(&preff_plmn_list, tapievent->pData, sizeof(TelNetworkPrefferedPlmnList_t));
-                               unsigned char plmn_count;
-                               unsigned char counter;
-                               plmn_count = preff_plmn_list.NumOfPreffPlmns;
-                               counter = 0;
-                               while (counter < plmn_count) {
-                                       printf(" INDEX:[%d]\n", preff_plmn_list.PreffPlmnRecord[counter].Index);
-                                       printf(" PLMN ID:[%s]\n", preff_plmn_list.PreffPlmnRecord[counter].Plmn);
-                                       printf(" SYSTEM TYPE:[%d]\n", preff_plmn_list.PreffPlmnRecord[counter].SystemType);
-                                       printf("\n");
-                                       counter++;
-                               }
-                       }
-                       else {
-                               printf("Event Data is NULL\n");
-                       }
-
-                       break;
-
-               case TAPI_EVENT_NETWORK_GETNWBAND_CNF:
-                       printf("\n$$$$$$ TAPI_EVENT_NETWORK_GETNWBAND_CNF $$$$$$ \n");
-
-                       if (tapievent->pData != NULL) {
-                               TelNetworkBand_t band_type;
-                               memcpy(&band_type, tapievent->pData, sizeof(TelNetworkBand_t));
-                               printf("\n BAND TYPE:[%d] \n", band_type);
-                               if (band_type == TAPI_NETWORK_BAND_TYPE_GSM)
-                                       printf("\n$$$$$$ TAPI_NETWORK_BAND_TYPE_GSM $$$$$$ \n");
-
-                       }
-                       else {
-                               printf("Event Data is NULL\n");
-                       }
-
-                       break;
-
-               case TAPI_EVENT_NETWORK_GETSERVICEDOMAIN_CNF:
-                       printf("\n$$$$$$ TAPI_EVENT_NETWORK_GETSERVICEDOMAIN_CNF $$$$$$ \n");
-
-                       if (tapievent->pData != NULL) {
-                               TelNetworkServiceDomain_t service_type;
-                               memcpy(&service_type, tapievent->pData, sizeof(TelNetworkServiceDomain_t));
-                               printf("\n SERVICE DOMAIN:[%d] \n", service_type);
-
-                               if (service_type == TAPI_NETWORK_SERVICE_DOMAIN_PS)
-                                       printf("\n$$$$$$TAPI_NETWORK_SERVICE_DOMAIN_PS$$$$$$ \n");
-                               else if (service_type == TAPI_NETWORK_SERVICE_DOMAIN_CS)
-                                       printf("\n$$$$$$TAPI_NETWORK_SERVICE_DOMAIN_CS$$$$$$ \n");
-                               else if (service_type == TAPI_NETWORK_SERVICE_DOMAIN_AUTOMATIC)
-                                       printf("\n$$$$$$ TAPI_NETWORK_SERVICE_DOMAIN_AUTOMATIC$$$$$$ \n");
-                               else if (service_type == TAPI_NETWORK_SERVICE_DOMAIN_COMBINED)
-                                       printf("\n$$$$$$ TAPI_NETWORK_SERVICE_DOMAIN_COMBINED \n");
-                       }
-                       else {
-                               printf("Event Data is NULL\n");
-                       }
-
-                       break;
-
-               case TAPI_EVENT_NETWORK_GETNWMODE_CNF:
-                       printf("\n$$$$$$ TAPI_EVENT_NETWORK_GETNWMODE_CNF $$$$$$ \n");
-
-                       if (tapievent->pData != NULL) {
-                               TelNetworkMode_t network_mode;
-                               memcpy(&network_mode, tapievent->pData, sizeof(TelNetworkMode_t));
-                               printf("\n NETWORK MODE:[%d] \n", network_mode);
-                               if (network_mode == TAPI_NETWORK_MODE_AUTOMATIC)
-                                       printf("\n$$$$$$ TAPI_NETWORK_MODE_AUTOMATIC $$$$$$ \n");
-                               else if (network_mode == TAPI_NETWORK_MODE_GSM)
-                                       printf("\n$$$$$$ TAPI_NETWORK_MODE_GSM $$$$$$ \n");
-                               else if (network_mode == TAPI_NETWORK_MODE_WCDMA)
-                                       printf("\n$$$$$$ TAPI_NETWORK_MODE_WCDMA $$$$$$ \n");
-                       }
-                       else {
-                               printf("Event Data is NULL\n");
-                       }
-
-                       break;
-
-               case TAPI_EVENT_NETWORK_LOCATIONCELLINFO_IND:
-                       printf("\n$$$$$$ TAPI_EVENT_NETWORK_LOCANDCELLINFO $$$$$$ \n");
-
-                       if (tapievent->pData != NULL) {
-                               TelNetworkLocationCellInfo_t network_loc_cell_info;
-                               memcpy(&network_loc_cell_info, tapievent->pData, sizeof(TelNetworkLocationCellInfo_t));
-                               printf("\n LAC:[%d] \n", network_loc_cell_info.LocationAreaCode);
-                               printf("\n CID:[%ld] \n", network_loc_cell_info.CellId);
-                       }
-                       else {
-                               printf("Event Data is NULL\n");
-                       }
-
-                       break;
-
-               case TAPI_EVENT_NETWORK_SETPREFFEREDPLMN_CNF:
-                       printf("\n$$$$$$ TAPI_EVENT_NETWORK_SETPREFPLMN_CNF $$$$$$ \n");
-                       break;
-
-               case TAPI_EVENT_NETWORK_SPN_INFO:
-                       printf("\n$$$$$$ TAPI_EVENT_NETWORK_SPN_INFO $$$$$$ \n");
-
-                       if (tapievent->pData != NULL) {
-                               TelNetworkSpnMccMncInfo_t short_network_name;
-                               int ret_val = 0;
-                               char short_net_name[20];
-
-                               memcpy(&short_network_name, tapievent->pData, sizeof(TelNetworkSpnMccMncInfo_t));
-                               fprintf(stderr, "SERVICE PROVIDER NAME ####     [%s]     ####\n", short_network_name.short_network_name);
-                               fprintf(stderr, "MCC ####       [%d] ####       MNC #### [%d]\n", short_network_name.mcc, short_network_name.mnc);
-
-                               printf("ret val from status to get network name=%d", ret_val);
-                               printf("NETWORK NAME FORM STATUS = %s \n", short_net_name);
-                       }
-                       break;
-
-               default:
-                       printf("\n$$$$$$ UNKNOWN Event has Received $$$$$$ \n");
-                       break;
-       }
-
-       return TRUE;
-}
-
-gboolean TimeOutFunc(void *data)
-{
-       g_main_loop_quit(mainloop);
-       printf("out of loop\n");
-       return FALSE;
-}
-
-int gmain_loop_for_tapi_events()
-{
-       mainloop = g_main_loop_new(NULL, FALSE);
-       g_timeout_add(3000, TimeOutFunc, NULL);
-       g_main_loop_run(mainloop);
-       printf("receive_tapi_event:finish\n");
-       return 0;
-}
diff --git a/TC/telephony_TC/network/unit/tel_tapi_nw_common.h b/TC/telephony_TC/network/unit/tel_tapi_nw_common.h
deleted file mode 100644 (file)
index c38f9b3..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <TelNetwork.h>
-#include <glib.h>
-
-#define TET_CHECK(x1, y...) \
- { \
-   TapiResult_t err = y;\
-   if (err != (x1)) \
-        { \
-                tet_printf("%s[%d] : test fail. error code =%d ",__FILE__,__LINE__, err); \
-                tet_result(TET_FAIL); \
-                return;\
-        } \
- }
-
-extern void GetNetworkInfoCB(void *);
-extern void SearchNetworkCB(void *);
-extern void SelectNetworkCB(void *);
-extern void GetSelectionModeCB(void *);
-extern int gmain_loop_for_tapi_events(void);
-extern int tapi_callback(const TelTapiEvent_t *tapievent, void *data);
-
diff --git a/TC/telephony_TC/network/unit/tslist b/TC/telephony_TC/network/unit/tslist
deleted file mode 100644 (file)
index 402583d..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-/network/unit/uts_tel_get_network_band
-/network/unit/uts_tel_get_network_preferred_plmn
-/network/unit/uts_tel_get_network_selection_mode
-/network/unit/uts_tel_get_network_service_domain
-/network/unit/uts_tel_search_network
-/network/unit/uts_tel_set_network_band
-/network/unit/uts_tel_set_network_service_domain
-/network/unit/uts_tel_get_network_mode
-/network/unit/uts_tel_select_network_automatic
-/network/unit/uts_tel_select_network_manual
-/network/unit/uts_tel_set_network_mode
diff --git a/TC/telephony_TC/network/unit/uts_tel_get_network_band.c b/TC/telephony_TC/network/unit/uts_tel_get_network_band.c
deleted file mode 100644 (file)
index 34a76ef..0000000
+++ /dev/null
@@ -1,144 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include <tet_api.h>
-#include <ITapiNetwork.h>
-
-#include "tel_tapi_nw_common.h"
-#include "uts_tel_get_network_band.h"
-
-TS_UINT subscription_id = 0, subscription_id1 = 0;
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup)() = startup;
-void (*tet_cleanup)() = cleanup;
-struct tet_testlist tet_testlist[] = { { utc_tel_get_network_band_01, 1 }, { utc_tel_get_network_band_02, 2 }, { NULL, 0 } };
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module
- */
-static void startup()
-{
-       int api_err = TAPI_API_SUCCESS;
-       tet_infoline("utc_tel_get_network_band, Test Start\n");
-
-       api_err = tel_init();
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("tel_init Failed api_err = %d \n", api_err);
-       }
-
-       api_err = tel_register_event(TAPI_EVENT_NETWORK_GETNWBAND_CNF, &subscription_id1, tapi_callback, NULL);
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed api_err = %d \n", api_err);
-       }
-       printf("after TapiCommonRegisterEvent sub id is %d api_err is %d\n", subscription_id1, api_err);
-
-       tel_register_app_name("org.samsung.test");
-       return;
-}
-
-static void cleanup()
-{
-       tet_infoline("utc_tel_get_network_band, Test Finished\n");
-       tel_deregister_event(subscription_id1);
-       tel_deinit();
-       return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
- * @brief This tests tel_get_network_band() API in normal conditions
- * @par ID:
- * utc_tel_get_network_band_01
- * @code
-
-               BandMode = TAPI_NETWORK_BAND_MODE_PREFERRED;
-               Band = TAPI_NETWORK_BAND_TYPE_ANY;
-               ret_val = tel_get_network_band(BandMode, Band, &pRequestId);
-               ret_val = tel_get_network_band(&pRequestId);
-
-* @endcode
-* @param [out] pRequestId
-* @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-void utc_tel_get_network_band_01()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = TAPI_NETWORK_BAND_MODE_PREFERRED;
-       Band = TAPI_NETWORK_BAND_TYPE_ANY;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_get_network_band_01 Test\n");
-       /*Setting the network Band*/
-       ret_val = tel_get_network_band(&pRequestId);
-       /*************************/
-
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_get_network_band_01 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_get_network_band() API in abnormal conditions
- * @par ID:
- * utc_tel_get_network_band_02
- * @code
-
-               pRequestId = NULL;
-               ret_val = tel_get_network_band(&pRequestId);
-* @endcode
-* @param [out] pRequestId
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_get_network_band_02()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       int *pRequestId;
-
-       pRequestId = NULL;
-
-       tet_infoline("utc_tel_get_network_band_02 Test\n");
-
-       ret_val = tel_get_network_band(pRequestId);
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_val);
-
-       tet_infoline("utc_tel_get_network_band_02 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/network/unit/uts_tel_get_network_band.h b/TC/telephony_TC/network/unit/uts_tel_get_network_band.h
deleted file mode 100644 (file)
index 69f646f..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-static void startup();\r
-static void cleanup();\r
-\r
-static void utc_tel_get_network_band_01();\r
-static void utc_tel_get_network_band_02();\r
-\r
-/** @} */\r
diff --git a/TC/telephony_TC/network/unit/uts_tel_get_network_hybrid_in_cdma.c b/TC/telephony_TC/network/unit/uts_tel_get_network_hybrid_in_cdma.c
deleted file mode 100644 (file)
index 7f73ab0..0000000
+++ /dev/null
@@ -1,188 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <tet_api.h>
-#include <ITapiNetwork.h>
-#include "tel_tapi_nw_common.h"
-#include "uts_tel_get_network_hybrid_in_cdma.h"
-
-TS_UINT subscription_id = 0, subscription_id1 = 0;
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_network_hybrid_in_cdma_01, 1},
-       {utc_tel_get_network_hybrid_in_cdma_02, 2},
-       {utc_tel_get_network_hybrid_in_cdma_03, 3},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module
- */
-void callback(TelTapiEvent_t *event)
-{
-       if (event->EventClass != TAPI_EVENT_CLASS_NETWORK)
-               return;
-
-       if (event->EventType == TAPI_EVENT_NETWORK_GET_CDMA_HYBRID_MODE_CNF) {
-               printf("\n$$$$$$ TAPI_EVENT_NETWORK_GET_CDMA_HYBRID_MODE_CNF $$$$$$ \n");
-       }
-}
-
-static void startup()
-{
-       TapiResult_t api_err = TAPI_API_SUCCESS;
-       tet_infoline("utc_tel_tapi_nw_set_network_mode_func, Test Start\n");
-
-       api_err = tel_init();
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("tel_init Failed api_err = %d \n", api_err);
-       }
-
-       api_err = tel_register_event(TAPI_EVENT_NETWORK_GET_CDMA_HYBRID_MODE_CNF, &subscription_id1, (TelAppCallback) &callback, NULL);
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed api_err = %d \n", api_err);
-       }
-       printf("after TapiCommonRegisterEvent sub id is %d api_err is %d\n", subscription_id1, api_err);
-
-       tel_register_app_name("org.samsung.test");
-       return;
-}
-
-static void cleanup()
-{
-       tet_infoline("utc_tel_tapi_nw_set_network_mode_func, Test Finished\n");
-       tel_deregister_event(subscription_id1);
-       tel_deinit();
-       return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
- * @brief This tests TelTapiNwSetNetworkMode() API in normal conditions
- * @par ID:
- * utc_tel_tapi_nw_set_network_mode_func_01
- * @param [in] NwMode
- * @code
-
-               NwMode = TAPI_NETWORK_MODE_EMERGENCY;
-               pRequestId = -1;
-
-* @endcode
-* @param [out] pRequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-void utc_tel_get_network_hybrid_in_cdma_01()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       ///TelNetworkMode_t NwMode;
-       int pRequestId;
-
-       //NwMode = TAPI_NETWORK_MODE_EMERGENCY;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_get_network_hybrid_in_cdma_01 Test\n");
-
-       ret_val = tel_get_network_hybrid_in_cdma(&pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_get_network_hybrid_in_cdma_01 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests TelTapiNwSetNetworkMode() API in normal conditions
- * @par ID:
- * utc_tel_tapi_nw_set_network_mode_func_02
- * @param [in] NwMode
- * @code
-
-               NwMode = TAPI_NETWORK_MODE_AUTOMATIC;
-               pRequestId = -1;
-
-* @endcode
-* @param [out] pRequestId
-* @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-*/
-void utc_tel_get_network_hybrid_in_cdma_02()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkMode_t NwMode;
-       int pRequestId;
-
-       NwMode = TAPI_NETWORK_MODE_AUTOMATIC;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_get_network_hybrid_in_cdma_02 Test\n");
-
-       ret_val = tel_get_network_hybrid_in_cdma(&pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_get_network_hybrid_in_cdma_02 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests TelTapiNwSetNetworkMode() API in normal conditions
- * @par ID:
- * utc_tel_tapi_nw_set_network_mode_func_03
- * @param [in] NwMode
- * @code
-
- NwMode = TAPI_NETWORK_MODE_CDMA;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_get_network_hybrid_in_cdma_03()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       //pRequestId = NULL;
-
-       tet_infoline("utc_tel_get_network_hybrid_in_cdma_03 Test\n");
-
-       ret_val = tel_get_network_hybrid_in_cdma(NULL);
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_val);
-
-       tet_infoline("utc_tel_get_network_hybrid_in_cdma_03 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-
-/** @} */
diff --git a/TC/telephony_TC/network/unit/uts_tel_get_network_hybrid_in_cdma.h b/TC/telephony_TC/network/unit/uts_tel_get_network_hybrid_in_cdma.h
deleted file mode 100644 (file)
index 4ce5d3b..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-static void startup();\r
-static void cleanup();\r
-static void utc_tel_get_network_hybrid_in_cdma_01(void);\r
-static void utc_tel_get_network_hybrid_in_cdma_02(void);\r
-static void utc_tel_get_network_hybrid_in_cdma_03(void);\r
-\r
-/** @} */\r
-\r
-\r
diff --git a/TC/telephony_TC/network/unit/uts_tel_get_network_mode.c b/TC/telephony_TC/network/unit/uts_tel_get_network_mode.c
deleted file mode 100644 (file)
index 89563b7..0000000
+++ /dev/null
@@ -1,137 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include <tet_api.h>
-#include <ITapiNetwork.h>
-
-#include "tel_tapi_nw_common.h"
-#include "uts_tel_get_network_mode.h"
-
-TS_UINT subscription_id = 0, subscription_id1 = 0;
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_network_mode_01, 1},
-       {utc_tel_get_network_mode_02, 2},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module
- */
-static void startup()
-{
-       int api_err = TAPI_API_SUCCESS;
-       tet_infoline("utc_tel_get_network_mode, Test Start\n");
-
-       api_err = tel_init();
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("tel_init Failed api_err = %d \n", api_err);
-       }
-
-       api_err = tel_register_event(TAPI_EVENT_NETWORK_GETNWMODE_CNF, &subscription_id1, (TelAppCallback) tapi_callback, NULL);
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed api_err = %d \n", api_err);
-       }
-
-       printf("after TapiCommonRegisterEvent sub id is %d api_err is %d\n", subscription_id1, api_err);
-
-       tel_register_app_name("org.samsung.test");
-       return;
-}
-
-static void cleanup()
-{
-       tet_infoline("utc_tel_get_network_mode, Test Finished\n");
-       tel_deregister_event(subscription_id1);
-       tel_deinit();
-       return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
- * @brief This tests tel_get_network_mode() API in normal conditions
- * @par ID:
- * utc_tel_get_network_mode_01
- * @code
-
-               NwMode = TAPI_NETWORK_MODE_EMERGENCY;
-               pRequestId = -1;
-
-* @endcode
-* @param [out] pRequestId
-* @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-*/
-void utc_tel_get_network_mode_01()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       int pRequestId = -1;
-
-       tet_infoline("utc_tel_get_network_mode_01 Test\n");
-       /*Setting of Network Mode*/
-       /*************************/
-       ret_val = tel_get_network_mode(&pRequestId);
-
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_get_network_mode_01 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_get_network_mode() API in abnormal conditions
- * @par ID:
- * utc_tel_get_network_mode_02
- * @code
-
-               pRequestId = NULL;
-
-* @endcode
-* @param [out] pRequestId
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_get_network_mode_02()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       tet_infoline("utc_tel_get_network_mode_02 Test\n");
-
-       ret_val = tel_get_network_mode(NULL);
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_val);
-
-       tet_infoline("utc_tel_get_network_mode_02 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/network/unit/uts_tel_get_network_mode.h b/TC/telephony_TC/network/unit/uts_tel_get_network_mode.h
deleted file mode 100644 (file)
index 2c93772..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-static void startup();\r
-static void cleanup();\r
-\r
-static void utc_tel_get_network_mode_01();\r
-static void utc_tel_get_network_mode_02();\r
-\r
-/** @} */\r
-\r
diff --git a/TC/telephony_TC/network/unit/uts_tel_get_network_preferred_plmn.c b/TC/telephony_TC/network/unit/uts_tel_get_network_preferred_plmn.c
deleted file mode 100644 (file)
index 1cef006..0000000
+++ /dev/null
@@ -1,146 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-#include <tet_api.h>
-#include <ITapiNetwork.h>
-
-#include "tel_tapi_nw_common.h"
-#include "uts_tel_get_network_preferred_plmn.h"
-
-TS_UINT subscription_id = 0, subscription_id1 = 0;
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_network_preferred_plmn_01, 1},
-       {utc_tel_get_network_preferred_plmn_02, 2},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module
- */
-static void startup()
-{
-       int api_err = TAPI_API_SUCCESS;
-       tet_infoline("utc_tel_get_network_preferred_plmn, Test Start\n");
-
-       api_err = tel_init();
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("tel_init Failed api_err = %d \n", api_err);
-       }
-
-       api_err = tel_register_event(TAPI_EVENT_NETWORK_GETPREFFEREDPLMN_CNF, &subscription_id1, tapi_callback, NULL);
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed api_err = %d \n", api_err);
-       }
-       printf("after TapiCommonRegisterEvent sub id is %d api_err is %d\n", subscription_id1, api_err);
-
-       tel_register_app_name("org.samsung.test");
-       return;
-}
-
-static void cleanup()
-{
-       tet_infoline("utc_tel_get_network_preferred_plmn, Test Finished\n");
-       tel_deregister_event(subscription_id1);
-       tel_deinit();
-       return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
- * @brief This tests tel_get_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_get_network_preferred_plmn_01
- * @code
-
-               Operation = TAPI_NETWORK_PREF_PLMN_ADD;
-               PreffPlmnInfo.Index = 23;
-               memcpy(PreffPlmnInfo.Plmn,"VF",2);
-               PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GPRS;
-               pRequestId = -1;
-
-* @endcode
-* @param [out] pRequestId
-* @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-*/
-void utc_tel_get_network_preferred_plmn_01()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_ADD;
-       PreffPlmnInfo.Index = 23;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "VF", 2);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GPRS;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_get_network_preferred_plmn_01 Test\n");
-
-       /*Setting of Preferred PLMN*/
-       ret_val = tel_get_network_preferred_plmn(&pRequestId);
-       /***************************/
-
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_get_network_preferred_plmn_01 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_get_network_preferred_plmn() API in abnormal conditions
- * @par ID:
- * utc_tel_get_network_preferred_plmn_02
- * @code
-
- pRequestId = NULL;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_PTR
- */
-void utc_tel_get_network_preferred_plmn_02()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       tet_infoline("utc_tel_get_network_preferred_plmn_02 Test\n");
-
-       ret_val = tel_get_network_preferred_plmn(NULL);
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_val);
-
-       tet_infoline("utc_tel_get_network_preferred_plmn_02 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/network/unit/uts_tel_get_network_preferred_plmn.h b/TC/telephony_TC/network/unit/uts_tel_get_network_preferred_plmn.h
deleted file mode 100644 (file)
index 272653d..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-static void startup();\r
-static void cleanup();\r
-\r
-static void utc_tel_get_network_preferred_plmn_01();\r
-static void utc_tel_get_network_preferred_plmn_02();\r
-\r
-/** @} */\r
-\r
-\r
-\r
-\r
diff --git a/TC/telephony_TC/network/unit/uts_tel_get_network_roaming.c b/TC/telephony_TC/network/unit/uts_tel_get_network_roaming.c
deleted file mode 100644 (file)
index 93290b9..0000000
+++ /dev/null
@@ -1,149 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include <tet_api.h>
-#include <ITapiNetwork.h>
-
-#include "tel_tapi_nw_common.h"
-#include "uts_tel_get_network_roaming.h"
-
-TS_UINT subscription_id = 0, subscription_id1 = 0;
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_network_roaming_01, 1},
-       {utc_tel_get_network_roaming_02, 2},
-       {NULL, 0}
-};
-
-void callback(TelTapiEvent_t *event)
-{
-       if (event->EventClass != TAPI_EVENT_CLASS_NETWORK)
-               return;
-
-       if (event->EventType == TAPI_EVENT_NETWORK_GET_ROAMING_MODE_CNF) {
-               printf("\n$$$$$$ TAPI_EVENT_NETWORK_GET_ROAMING_MODE_CNF $$$$$$ \n");
-       }
-
-}
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module
- */
-static void startup()
-{
-       TapiResult_t api_err = TAPI_API_SUCCESS;
-       tet_infoline("utc_tel_tapi_nw_get_network_mode_func, Test Start\n");
-
-       api_err = tel_init();
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("tel_init Failed api_err = %d \n", api_err);
-       }
-       api_err = tel_register_event(TAPI_EVENT_NETWORK_GET_ROAMING_MODE_CNF, &subscription_id1, (TelAppCallback) &callback, NULL);
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed api_err = %d \n", api_err);
-       }
-       printf("after TapiCommonRegisterEvent sub id is %d api_err is %d\n", subscription_id1, api_err);
-
-       tel_register_app_name("org.samsung.test");
-       return;
-}
-
-static void cleanup()
-{
-       tet_infoline("utc_tel_get_network_roaming, Test Finished\n");
-       tel_deregister_event(subscription_id1);
-       tel_deinit();
-       return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
- * @brief This tests tel_get_network_roaming() API in normal conditions
- * @par ID:
- * utc_tel_get_network_roaming_01
- * @code
-
-               RoamingMode = TAPI_NETWORK_MODE_EMERGENCY;
-               pRequestId = -1;
-
-* @endcode
-* @param [out] pRequestId
-* @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-*/
-void utc_tel_get_network_roaming_01()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       int pRequestId;
-
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_get_network_roaming_01 Test\n");
-       /*Setting of roaming Mode*/
-       ret_val = tel_get_network_roaming(&pRequestId);
-       /*************************/
-
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_get_network_roaming_01 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_get_network_roaming() API in abnormal conditions
- * @par ID:
- * utc_tel_get_network_roaming_02
- * @code
-
-               pRequestId = NULL;
-
-* @endcode
-* @param [out] pRequestId
-* @return TAPI_API_INVALID_PTR
-*/
-
-void utc_tel_get_network_roaming_02()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       tet_infoline("utc_tel_get_network_roaming_02 Test\n");
-
-       ret_val = tel_get_network_roaming(NULL);
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_val);
-
-       tet_infoline("utc_tel_get_network_roaming_02 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/network/unit/uts_tel_get_network_roaming.h b/TC/telephony_TC/network/unit/uts_tel_get_network_roaming.h
deleted file mode 100644 (file)
index 527f07a..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-static void startup();\r
-static void cleanup();\r
-static void utc_tel_get_network_roaming_01();\r
-static void utc_tel_get_network_roaming_02();\r
-\r
-/** @} */\r
-\r
diff --git a/TC/telephony_TC/network/unit/uts_tel_get_network_selection_mode.c b/TC/telephony_TC/network/unit/uts_tel_get_network_selection_mode.c
deleted file mode 100644 (file)
index 04d508a..0000000
+++ /dev/null
@@ -1,142 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include <tet_api.h>
-#include <ITapiNetwork.h>
-
-#include "tel_tapi_nw_common.h"
-#include "uts_tel_get_network_selection_mode.h"
-
-TS_UINT subscription_id = 0, subscription_id1 = 0;
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_network_selection_mode_01, 1},
-       {utc_tel_get_network_selection_mode_02, 2},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module
- */
-static void startup()
-{
-       TapiResult_t api_err = TAPI_API_SUCCESS;
-       tet_infoline("utc_tel_get_network_selection_mode, Test Start\n");
-
-       api_err = tel_init();
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("tel_init Failed api_err = %d \n", api_err);
-       }
-
-       api_err = tel_register_event(TAPI_EVENT_NETWORK_GETSELECTIONMODE_CNF, &subscription_id1, tapi_callback, NULL);
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed api_err = %d \n", api_err);
-       }
-       printf("after TapiCommonRegisterEvent sub id is %d api_err is %d\n", subscription_id1, api_err);
-
-       tel_register_app_name("org.samsung.test");
-       return;
-}
-
-static void cleanup()
-{
-       tet_infoline("utc_tel_get_network_selection_mode, Test Finished\n");
-       tel_deregister_event(subscription_id1);
-       tel_deinit();
-       return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
- * @brief This tests tel_get_network_selection_mode() API in normal conditions
- * @par ID:
- * utc_tel_get_network_selection_mode_01
- * @code
-
-               pRequestId = -1;
-               NwSelectionMode = TAPI_NETWORK_SELECTIONMODE_AUTOMATIC;
-               ret_val = TelTapiNwSetSelectionMode(NwSelectionMode, &pRequestId);
-
-* @endcode
-* @param [out] pRequestId
-* @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-*/
-void utc_tel_get_network_selection_mode_01()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       int pRequestId;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_get_network_selection_mode_01 Test\n");
-
-       printf("Value of ret-val while setting the value ==== %d\n", ret_val);
-
-       /***************************/
-       ret_val = tel_get_network_selection_mode(&pRequestId);
-       printf("Value of ret-val while getting the value ==== %d\n", ret_val);
-
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_get_network_selection_mode_01 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_get_network_selection_mode() API in abnormal conditions
- * @par ID:
- * utc_tel_get_network_selection_mode_02
- * @code
-
-               pRequestId = NULL;
-
-* @endcode
-* @param [out] pRequestId
-* @return TAPI_API_INVALID_PTR
-*/
-
-void utc_tel_get_network_selection_mode_02()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       tet_infoline("utc_tel_get_network_selection_mode_02 Test\n");
-
-       ret_val = tel_get_network_selection_mode(NULL);
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_val);
-
-       tet_infoline("utc_tel_get_network_selection_mode_02 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/network/unit/uts_tel_get_network_selection_mode.h b/TC/telephony_TC/network/unit/uts_tel_get_network_selection_mode.h
deleted file mode 100644 (file)
index 24649d1..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-static void startup();\r
-static void cleanup();\r
-\r
-static void utc_tel_get_network_selection_mode_01();\r
-static void utc_tel_get_network_selection_mode_02();\r
-\r
-/** @} */\r
-\r
-\r
-\r
-\r
-\r
diff --git a/TC/telephony_TC/network/unit/uts_tel_get_network_service_domain.c b/TC/telephony_TC/network/unit/uts_tel_get_network_service_domain.c
deleted file mode 100644 (file)
index a8e5e55..0000000
+++ /dev/null
@@ -1,140 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include <tet_api.h>
-#include <ITapiNetwork.h>
-
-#include "tel_tapi_nw_common.h"
-#include "uts_tel_get_network_service_domain.h"
-
-TS_UINT subscription_id = 0, subscription_id1 = 0;
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_network_service_domain_01, 1},
-       {utc_tel_get_network_service_domain_02, 2},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module
- */
-static void startup()
-{
-       TapiResult_t api_err = TAPI_API_SUCCESS;
-       tet_infoline("utc_tel_get_network_service_domain, Test Start\n");
-
-       api_err = tel_init();
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("tel_init Failed api_err = %d \n", api_err);
-       }
-
-       api_err = tel_register_event(TAPI_EVENT_NETWORK_GETSERVICEDOMAIN_CNF, &subscription_id1, tapi_callback, NULL);
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed api_err = %d \n", api_err);
-       }
-       printf("after TapiCommonRegisterEvent sub id is %d api_err is %d\n", subscription_id1, api_err);
-
-       tel_register_app_name("org.samsung.test");
-       return;
-}
-
-static void cleanup()
-{
-       tet_infoline("utc_tel_get_network_service_domain, Test Finished\n");
-       tel_deregister_event(subscription_id1);
-       tel_deinit();
-       return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
- * @brief This tests tel_get_network_service_domain() API in normal conditions
- * @par ID:
- * utc_tel_get_network_service_domain_01
- * @code
-
-               pRequestId = -1;
-               ServiceDomain = TAPI_NETWORK_SERVICE_DOMAIN_COMBINED;
-               ret_val = tel_get_network_service_domain(ServiceDomain, &pRequestId);
-
-* @endcode
-* @param [out] pRequestId
-* @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-*/
-void utc_tel_get_network_service_domain_01()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       int pRequestId;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_get_network_service_domain_01 Test\n");
-
-       /*Setting of Service Domain*/
-       /***************************/
-       ret_val = tel_get_network_service_domain(&pRequestId);
-
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_get_network_service_domain_01 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_get_network_service_domain() API in abnormal conditions
- * @par ID:
- * utc_tel_get_network_service_domain_02
- * @code
-
-               pRequestId = NULL;
-
-* @endcode
-* @param [out] pRequestId
-* @return TAPI_API_INVALID_PTR
-*/
-
-void utc_tel_get_network_service_domain_02()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       tet_infoline("utc_tel_get_network_service_domain_02 Test\n");
-
-       ret_val = tel_get_network_service_domain(NULL);
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_val);
-
-       tet_infoline("utc_tel_get_network_service_domain_02 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/network/unit/uts_tel_get_network_service_domain.h b/TC/telephony_TC/network/unit/uts_tel_get_network_service_domain.h
deleted file mode 100644 (file)
index 0bb361b..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-\r
-static void startup();\r
-static void cleanup();\r
-\r
-static void utc_tel_get_network_service_domain_01();\r
-static void utc_tel_get_network_service_domain_02();\r
-\r
-/** @} */\r
-\r
-\r
-\r
-\r
-\r
-\r
diff --git a/TC/telephony_TC/network/unit/uts_tel_search_network.c b/TC/telephony_TC/network/unit/uts_tel_search_network.c
deleted file mode 100644 (file)
index fae2bed..0000000
+++ /dev/null
@@ -1,137 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include <tet_api.h>
-#include <ITapiNetwork.h>
-
-#include "tel_tapi_nw_common.h"
-#include "uts_tel_search_network.h"
-
-TS_UINT subscription_id = 0, subscription_id1 = 0;
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_search_network_01, 1},
-       {utc_tel_search_network_02, 2},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module
- */
-static void startup()
-{
-       TapiResult_t api_err = TAPI_API_SUCCESS;
-
-       tet_infoline("utc_tel_search_network, Test Start\n");
-
-       api_err = tel_init();
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("tel_init Failed api_err = %d \n", api_err);
-       }
-
-       api_err = tel_register_event(TAPI_EVENT_NETWORK_SEARCH_CNF, &subscription_id1, tapi_callback, NULL);
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed api_err = %d \n", api_err);
-       }
-       printf("after TapiCommonRegisterEvent sub id is %d api_err is %d\n", subscription_id1, api_err);
-
-       tel_register_app_name("org.samsung.test");
-       return;
-}
-
-static void cleanup()
-{
-       tet_infoline("utc_tel_search_network, Test Finished\n");
-       tel_deregister_event(subscription_id1);
-       tel_deinit();
-       return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
- * @brief This tests tel_search_network() API in normal conditions
- * @par ID:
- * utc_tel_search_network_01
- * @code
-
-               pRequestId = -1;
-               ret_val = tel_search_network(&pRequestId);
-
-* @endcode
-* @param [out] pRequestId
-* @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-*/
-void utc_tel_search_network_01()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       int pRequestId;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_search_network_01 Test\n");
-
-       ret_val = tel_search_network(&pRequestId);
-
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_search_network_01 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_search_network() API in abnormal conditions
- * @par ID:
- * utc_tel_search_network_02
- * @code
-
-               pRequestId = NULL;
-
-* @endcode
-* @param [out] pRequestId
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_search_network_02()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       tet_infoline("utc_tel_search_network_02 Test\n");
-
-       ret_val = tel_search_network(NULL);
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_val);
-
-       tet_infoline("utc_tel_search_network_02 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/network/unit/uts_tel_search_network.h b/TC/telephony_TC/network/unit/uts_tel_search_network.h
deleted file mode 100644 (file)
index 7e3b5c0..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-static void startup();\r
-static void cleanup();\r
-\r
-static void utc_tel_search_network_01();\r
-static void utc_tel_search_network_02();\r
-\r
-/** @} */\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
diff --git a/TC/telephony_TC/network/unit/uts_tel_select_network_automatic.c b/TC/telephony_TC/network/unit/uts_tel_select_network_automatic.c
deleted file mode 100644 (file)
index 42a5d7a..0000000
+++ /dev/null
@@ -1,168 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <tet_api.h>
-#include <ITapiNetwork.h>
-
-#include "uts_tel_select_network_automatic.h"
-#include "tel_tapi_nw_common.h"
-
-TS_UINT subscription_id = 0, subscription_id1 = 0;
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_select_network_automatic_01, 1},
-       {utc_tel_select_network_automatic_02, 2},
-       {NULL, 0}
-};
-
-void callback(TelTapiEvent_t *event)
-{
-       if (event->EventClass != TAPI_EVENT_CLASS_NETWORK)
-               return;
-
-       if (event->EventType == TAPI_EVENT_NETWORK_SELECT_CNF) {
-               printf("\n$$$$$$ TAPI_EVENT_NETWORK_SELECT_CNF $$$$$$ \n");
-       }
-
-}
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module
- */
-static void startup()
-{
-       int api_err = TAPI_API_SUCCESS;
-
-       tet_infoline("utc_tel_select_network_automatic, Test Start\n");
-
-       api_err = tel_init();
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("tel_init Failed api_err = %d \n", api_err);
-       }
-       api_err = tel_register_event(TAPI_EVENT_NETWORK_SELECT_CNF, &subscription_id1, (TelAppCallback) &callback, NULL);
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed api_err = %d \n", api_err);
-       }
-       printf("after TapiCommonRegisterEvent sub id is %d api_err is %d\n", subscription_id1, api_err);
-
-       tel_register_app_name("org.samsung.test");
-       return;
-}
-
-static void cleanup()
-{
-       tet_infoline("utc_tel_select_network_automatic, Test Finished\n");
-       tel_deregister_event(subscription_id1);
-       tel_deinit();
-       return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
- * @brief This tests tel_select_network_automatic() API in normal conditions
- * @par ID:
- * utc_tel_select_network_automatic_01
- * @code
-
-               pSystemId -> SystemType = TAPI_NETWORK_SYSTEM_GSM;
-               pSystemId -> ServiceType = TAPI_NETWORK_SERVICE_TYPE_COMBINED;
-               pSystemId -> SysIdFormat = TAPI_NETWORK_SYSID_FORMAT_PLMN;
-               pSystemId -> NetworkMode = TAPI_NETWORK_MODE_AUTOMATIC;
-               pSystemId -> SysId = 12345;
-               pSystemId -> bPlmnForbidden = FALSE;
-               pSystemId -> bHome = TRUE;
-               pSystemId -> bEquivalentPlmn = TRUE;
-               pSystemId -> bNetworkIdentityAvail = TRUE;
-               pSystemId -> bNetworkTimeAvail = TRUE;
-               pSystemId -> bNetworkTimeZoneAvail = TRUE;
-               pSystemId -> bNetworkDlsAvail = TRUE;
-               memcpy(pSystemId -> szSystemName, "XO", 2);
-               memcpy(pSystemId -> szSpn, "Vodafone", 9);
-               pSystemId -> NetworkTimeZone.Year = 1970;
-               pSystemId -> NetworkTimeZone.Month = 01;
-               pSystemId -> NetworkTimeZone.Day = 01;
-               pSystemId -> NetworkTimeZone.Hour = 01;
-               pSystemId -> NetworkTimeZone.Minute = 01;
-               pSystemId -> NetworkTimeZone.Second = 01;
-               pSystemId -> NetworkTimeZone.DaylightSave = TAPI_NETWORK_DLS_ADJ_NO_ADJUSTMENT;
-               pSystemId -> bMncIncludesPcsDigit = TRUE;
-               ret_val = TelTapiNwSelectNetwork(pSystemId, &pRequestId);
-               ret_val = tel_select_network_automatic(&pRequestId);
-* @endcode
-* @param [out] pRequestId
-* @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-*/
-void utc_tel_select_network_automatic_01()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       int pRequestId;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_select_network_automatic_01 Test\n");
-       /* Selection of Network done*/
-       /*************************/
-       ret_val = tel_select_network_automatic(&pRequestId);
-
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_select_network_automatic_01 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_select_network_automatic() API in abnormal conditions
- * @par ID:
- * utc_tel_select_network_automatic_02
- * @code
-
-               pRequestId = NULL;
-               ret_val = tel_select_network_automatic(&pRequestId);
-* @endcode
-* @param [out] pRequestId
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_select_network_automatic_02()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       tet_infoline("utc_tel_select_network_automatic_02 Test\n");
-
-       ret_val = tel_select_network_automatic(NULL);
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_val);
-
-       tet_infoline("utc_tel_select_network_automatic_02 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/network/unit/uts_tel_select_network_automatic.h b/TC/telephony_TC/network/unit/uts_tel_select_network_automatic.h
deleted file mode 100644 (file)
index 1e8a100..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-static void startup();\r
-static void cleanup();\r
-\r
-static void utc_tel_select_network_automatic_01();\r
-static void utc_tel_select_network_automatic_02();\r
-\r
-/** @} */\r
-\r
-\r
-\r
diff --git a/TC/telephony_TC/network/unit/uts_tel_select_network_manual.c b/TC/telephony_TC/network/unit/uts_tel_select_network_manual.c
deleted file mode 100644 (file)
index 897bbf6..0000000
+++ /dev/null
@@ -1,187 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <tet_api.h>
-#include <ITapiNetwork.h>
-
-#include "uts_tel_select_network_manual.h"
-#include "tel_tapi_nw_common.h"
-
-TS_UINT subscription_id = 0, subscription_id1 = 0;
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_select_network_manual_01, 1},
-       {utc_tel_select_network_manual_02, 2},
-       {NULL, 0}
-};
-
-void callback(TelTapiEvent_t *event)
-{
-       if (event->EventClass != TAPI_EVENT_CLASS_NETWORK)
-               return;
-
-       if (event->EventType == TAPI_EVENT_NETWORK_SELECT_CNF) {
-               printf("\n$$$$$$ TAPI_EVENT_NETWORK_SELECT_CNF $$$$$$ \n");
-       }
-}
-
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module
- */
-static void startup()
-{
-       TapiResult_t api_err = TAPI_API_SUCCESS;
-
-       tet_infoline("utc_tel_select_network_manual, Test Start\n");
-
-       api_err = tel_init();
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("tel_init Failed api_err = %d \n", api_err);
-       }
-       api_err = tel_register_event(TAPI_EVENT_NETWORK_SELECT_CNF, &subscription_id1, (TelAppCallback) &callback, NULL);
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed api_err = %d \n", api_err);
-       }
-       printf("after TapiCommonRegisterEvent sub id is %d api_err is %d\n", subscription_id1, api_err);
-
-       tel_register_app_name("org.samsung.test");
-       return;
-}
-
-static void cleanup()
-{
-       tet_infoline("utc_tel_select_network_manual, Test Finished\n");
-       tel_deregister_event(subscription_id1);
-       tel_deinit();
-       return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
- * @brief This tests tel_select_network_manual() API in normal conditions
- * @par ID:
- * utc_tel_select_network_manual_01
- * @code
-
-               pSystemId -> SystemType = TAPI_NETWORK_SYSTEM_GSM;
-               pSystemId -> ServiceType = TAPI_NETWORK_SERVICE_TYPE_COMBINED;
-               pSystemId -> SysIdFormat = TAPI_NETWORK_SYSID_FORMAT_PLMN;
-               pSystemId -> NetworkMode = TAPI_NETWORK_MODE_AUTOMATIC;
-               pSystemId -> SysId = 12345;
-               pSystemId -> bPlmnForbidden = FALSE;
-               pSystemId -> bHome = TRUE;
-               pSystemId -> bEquivalentPlmn = TRUE;
-               pSystemId -> bNetworkIdentityAvail = TRUE;
-               pSystemId -> bNetworkTimeAvail = TRUE;
-               pSystemId -> bNetworkTimeZoneAvail = TRUE;
-               pSystemId -> bNetworkDlsAvail = TRUE;
-               memcpy(pSystemId -> szSystemName, "XO", 2);
-               memcpy(pSystemId -> szSpn, "Vodafone", 9);
-               pSystemId -> NetworkTimeZone.Year = 1970;
-               pSystemId -> NetworkTimeZone.Month = 01;
-               pSystemId -> NetworkTimeZone.Day = 01;
-               pSystemId -> NetworkTimeZone.Hour = 01;
-               pSystemId -> NetworkTimeZone.Minute = 01;
-               pSystemId -> NetworkTimeZone.Second = 01;
-               pSystemId -> NetworkTimeZone.DaylightSave = TAPI_NETWORK_DLS_ADJ_NO_ADJUSTMENT;
-               pSystemId -> bMncIncludesPcsDigit = TRUE;
-               ret_val = tel_select_network_manual(pSystemId, &pRequestId);
-               ret_val = tel_select_network_manual(&pRequestId);
-* @endcode
-* @param [out] pRequestId
-* @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-*/
-void utc_tel_select_network_manual_01()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-       unsigned int Plmn = 40405;
-       int pRequestId;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_select_network_manual_01 Test\n");
-       /* Selection of Network done*/
-       /*************************/
-       ret_val = tel_select_network_manual(Plmn, &pRequestId);
-
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_select_network_manual_01 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_select_network_manual() API in abnormal conditions
- * @par ID:
- * utc_tel_select_network_manual_02
- * @code
-
-               pRequestId = NULL;
-               ret_val = tel_select_network_manual(&pRequestId);
-* @endcode
-* @param [out] pRequestId
-* @return TAPI_API_INVALID_PTR
- */
-void utc_tel_select_network_manual_02()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       unsigned int Plmn = 1;
-
-       tet_infoline("utc_tel_select_network_manual_02 Test\n");
-
-       ret_val = tel_select_network_manual(Plmn, NULL);
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_val);
-
-       tet_infoline("utc_tel_select_network_manual_02 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-void utc_tel_select_network_manual_03()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       unsigned int Plmn = -1;
-
-       tet_infoline("utc_tel_select_network_manual_02 Test\n");
-
-       ret_val = tel_select_network_manual(Plmn, NULL);
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_val);
-
-       tet_infoline("utc_tel_select_network_manual_03 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/network/unit/uts_tel_select_network_manual.h b/TC/telephony_TC/network/unit/uts_tel_select_network_manual.h
deleted file mode 100644 (file)
index da4160b..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-static void startup();\r
-static void cleanup();\r
-\r
-static void utc_tel_select_network_manual_01();\r
-static void utc_tel_select_network_manual_02();\r
-\r
-/** @} */\r
-\r
-\r
-\r
diff --git a/TC/telephony_TC/network/unit/uts_tel_set_network_band.c b/TC/telephony_TC/network/unit/uts_tel_set_network_band.c
deleted file mode 100644 (file)
index ae24ee8..0000000
+++ /dev/null
@@ -1,1303 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <tet_api.h>
-#include <ITapiNetwork.h>
-
-#include "tel_tapi_nw_common.h"
-#include "uts_tel_set_network_band.h"
-
-TS_UINT subscription_id = 0, subscription_id1 = 0;
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_set_network_band_01, 1},
-       {utc_tel_set_network_band_02, 2},
-       {utc_tel_set_network_band_03, 3},
-       {utc_tel_set_network_band_04, 4},
-       {utc_tel_set_network_band_05, 5},
-       {utc_tel_set_network_band_06, 6},
-       {utc_tel_set_network_band_07, 7},
-       {utc_tel_set_network_band_08, 8},
-       {utc_tel_set_network_band_09, 9},
-       {utc_tel_set_network_band_10, 10},
-       {utc_tel_set_network_band_11, 11},
-       {utc_tel_set_network_band_12, 12},
-       {utc_tel_set_network_band_13, 13},
-       {utc_tel_set_network_band_14, 14},
-       {utc_tel_set_network_band_15, 15},
-       {utc_tel_set_network_band_16, 16},
-       {utc_tel_set_network_band_17, 17},
-       {utc_tel_set_network_band_18, 18},
-       {utc_tel_set_network_band_19, 19},
-       {utc_tel_set_network_band_20, 20},
-       {utc_tel_set_network_band_21, 21},
-       {utc_tel_set_network_band_22, 22},
-       {utc_tel_set_network_band_23, 23},
-       {utc_tel_set_network_band_24, 24},
-       {utc_tel_set_network_band_25, 25},
-       {utc_tel_set_network_band_26, 26},
-       {utc_tel_set_network_band_27, 27},
-       {utc_tel_set_network_band_28, 28},
-       {utc_tel_set_network_band_29, 29},
-       {utc_tel_set_network_band_30, 30},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
- */
-static void startup()
-{
-       TapiResult_t api_err = TAPI_API_SUCCESS;
-       tet_infoline("utc_tel_set_network_band, Test Start\n");
-
-       api_err = tel_init();
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("tel_init Failed api_err = %d \n", api_err);
-       }
-
-       api_err = tel_register_event(TAPI_EVENT_NETWORK_SETNWBAND_CNF, &subscription_id1, tapi_callback, NULL);
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed api_err = %d \n", api_err);
-       }
-       printf("after TapiCommonRegisterEvent sub id is %d api_err is %d\n", subscription_id1, api_err);
-
-       tel_register_app_name("org.samsung.test");
-       return;
-}
-
-static void cleanup()
-{
-       tet_infoline("utc_tel_set_network_band, Test Finished\n");
-       tel_deregister_event(subscription_id1);
-       tel_deinit();
-       return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
- * @brief This tests tel_set_network_band() API in normal conditions
- * @par ID:
- * utc_tel_set_network_band_01
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
-               BandMode = TAPI_NETWORK_BAND_MODE_PREFERRED;
-               Band = TAPI_NETWORK_BAND_TYPE_ANY;
-               pRequestId = -1;
-
-* @endcode
-* @param [out] pRequestId
-* @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-*/
-void utc_tel_set_network_band_01()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = TAPI_NETWORK_BAND_MODE_PREFERRED;
-       Band = TAPI_NETWORK_BAND_TYPE_ANY;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_band_01 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_01 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API in normal conditions
- * @par ID:
- * utc_tel_set_network_band_02
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = TAPI_NETWORK_BAND_MODE_PREFERRED;
- Band = TAPI_NETWORK_BAND_TYPE_GSM850;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-
-void utc_tel_set_network_band_02()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int *pRequestId;
-
-       BandMode = TAPI_NETWORK_BAND_MODE_PREFERRED;
-       Band = TAPI_NETWORK_BAND_TYPE_GSM850;
-       pRequestId = NULL;
-
-       tet_infoline("utc_tel_set_network_band_02 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, pRequestId);
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_02 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API in normal conditions
- * @par ID:
- * utc_tel_set_network_band_03
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = TAPI_NETWORK_BAND_MODE_PREFERRED;
- Band = TAPI_NETWORK_BAND_TYPE_GSM_900_1800;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-
-void utc_tel_set_network_band_03()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = TAPI_NETWORK_BAND_MODE_PREFERRED;
-       Band = TAPI_NETWORK_BAND_TYPE_GSM_900_1800;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_band_03 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_03 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API in normal conditions
- * @par ID:
- * utc_tel_set_network_band_04
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = TAPI_NETWORK_BAND_MODE_PREFERRED;
- Band = TAPI_NETWORK_BAND_TYPE_GSM1900;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-
-void utc_tel_set_network_band_04()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = TAPI_NETWORK_BAND_MODE_PREFERRED;
-       Band = TAPI_NETWORK_BAND_TYPE_GSM1900;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_band_04 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_04 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API in normal conditions
- * @par ID:
- * utc_tel_set_network_band_05
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = TAPI_NETWORK_BAND_MODE_PREFERRED;
- Band = TAPI_NETWORK_BAND_TYPE_GSM;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-
-void utc_tel_set_network_band_05()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int *pRequestId;
-
-       BandMode = TAPI_NETWORK_BAND_MODE_PREFERRED;
-       Band = TAPI_NETWORK_BAND_TYPE_GSM;
-       pRequestId = NULL;
-
-       tet_infoline("utc_tel_set_network_band_05 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, pRequestId);
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_05 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API in normal conditions
- * @par ID:
- * utc_tel_set_network_band_06
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = TAPI_NETWORK_BAND_MODE_PREFERRED;
- Band = TAPI_NETWORK_BAND_TYPE_WCDMA;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-
-void utc_tel_set_network_band_06()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = TAPI_NETWORK_BAND_MODE_PREFERRED;
-       Band = TAPI_NETWORK_BAND_TYPE_WCDMA;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_band_06 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_06 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API in normal conditions
- * @par ID:
- * utc_tel_set_network_band_07
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = TAPI_NETWORK_BAND_MODE_PREFERRED;
- Band = TAPI_NETWORK_BAND_TYPE_WCDMA850;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-
-void utc_tel_set_network_band_07()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = TAPI_NETWORK_BAND_MODE_PREFERRED;
-       Band = TAPI_NETWORK_BAND_TYPE_WCDMA850;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_band_07 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_07 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API in normal conditions
- * @par ID:
- * utc_tel_set_network_band_08
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = TAPI_NETWORK_BAND_MODE_PREFERRED;
- Band = TAPI_NETWORK_BAND_TYPE_WCDMA1900;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-
-void utc_tel_set_network_band_08()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = TAPI_NETWORK_BAND_MODE_PREFERRED;
-       Band = TAPI_NETWORK_BAND_TYPE_WCDMA1900;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_band_08 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_08 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API in normal conditions
- * @par ID:
- * utc_tel_set_network_band_09
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = TAPI_NETWORK_BAND_MODE_PREFERRED;
- Band = TAPI_NETWORK_BAND_TYPE_WCDMA2100;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-
-void utc_tel_set_network_band_09()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = TAPI_NETWORK_BAND_MODE_PREFERRED;
-       Band = TAPI_NETWORK_BAND_TYPE_WCDMA2100;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_band_09 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_09 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API when one of the argument is invalid
- * @par ID:
- * utc_tel_set_network_band_10
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = TAPI_NETWORK_BAND_MODE_PREFERRED;
- Band = -1;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-
-void utc_tel_set_network_band_10()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = TAPI_NETWORK_BAND_MODE_PREFERRED;
-       Band = -1;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_band_10 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_10 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API in normal conditions
- * @par ID:
- * utc_tel_set_network_band_11
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = TAPI_NETWORK_BAND_MODE_ONLY;
- Band = TAPI_NETWORK_BAND_TYPE_ANY;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-
-void utc_tel_set_network_band_11()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = TAPI_NETWORK_BAND_MODE_ONLY;
-       Band = TAPI_NETWORK_BAND_TYPE_ANY;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_band_11 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_11 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API in normal conditions
- * @par ID:
- * utc_tel_set_network_band_12
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = TAPI_NETWORK_BAND_MODE_ONLY;
- Band = TAPI_NETWORK_BAND_TYPE_GSM850;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-
-void utc_tel_set_network_band_12()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int *pRequestId;
-
-       BandMode = TAPI_NETWORK_BAND_MODE_ONLY;
-       Band = TAPI_NETWORK_BAND_TYPE_GSM850;
-       pRequestId = NULL;
-
-       tet_infoline("utc_tel_set_network_band_12 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, pRequestId);
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_12 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API in normal conditions
- * @par ID:
- * utc_tel_set_network_band_13
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = TAPI_NETWORK_BAND_MODE_ONLY;
- Band = TAPI_NETWORK_BAND_TYPE_GSM_900_1800;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-
-void utc_tel_set_network_band_13()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = TAPI_NETWORK_BAND_MODE_ONLY;
-       Band = TAPI_NETWORK_BAND_TYPE_GSM_900_1800;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_band_13 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_13 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API in normal conditions
- * @par ID:
- * utc_tel_set_network_band_14
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = TAPI_NETWORK_BAND_MODE_ONLY;
- Band = TAPI_NETWORK_BAND_TYPE_GSM1900;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-
-void utc_tel_set_network_band_14()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = TAPI_NETWORK_BAND_MODE_ONLY;
-       Band = TAPI_NETWORK_BAND_TYPE_GSM1900;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_band_14 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_14 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API in normal conditions
- * @par ID:
- * utc_tel_set_network_band_15
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = TAPI_NETWORK_BAND_MODE_ONLY;
- Band = TAPI_NETWORK_BAND_TYPE_GSM;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-
-void utc_tel_set_network_band_15()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int *pRequestId;
-
-       BandMode = TAPI_NETWORK_BAND_MODE_ONLY;
-       Band = TAPI_NETWORK_BAND_TYPE_GSM;
-       pRequestId = NULL;
-
-       tet_infoline("utc_tel_set_network_band_15 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, pRequestId);
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_15 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API in normal conditions
- * @par ID:
- * utc_tel_set_network_band_16
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = TAPI_NETWORK_BAND_MODE_ONLY;
- Band = TAPI_NETWORK_BAND_TYPE_WCDMA;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-
-void utc_tel_set_network_band_16()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = TAPI_NETWORK_BAND_MODE_ONLY;
-       Band = TAPI_NETWORK_BAND_TYPE_WCDMA;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_band_16 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_16 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API in normal conditions
- * @par ID:
- * utc_tel_set_network_band_17
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = TAPI_NETWORK_BAND_MODE_ONLY;
- Band = TAPI_NETWORK_BAND_TYPE_WCDMA850;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-
-void utc_tel_set_network_band_17()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = TAPI_NETWORK_BAND_MODE_ONLY;
-       Band = TAPI_NETWORK_BAND_TYPE_WCDMA850;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_band_17 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_17 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API in normal conditions
- * @par ID:
- * utc_tel_set_network_band_18
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = TAPI_NETWORK_BAND_MODE_ONLY;
- Band = TAPI_NETWORK_BAND_TYPE_WCDMA1900;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-
-void utc_tel_set_network_band_18()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = TAPI_NETWORK_BAND_MODE_ONLY;
-       Band = TAPI_NETWORK_BAND_TYPE_WCDMA1900;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_band_18 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_18 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API in normal conditions
- * @par ID:
- * utc_tel_set_network_band_19
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = TAPI_NETWORK_BAND_MODE_ONLY;
- Band = TAPI_NETWORK_BAND_TYPE_WCDMA2100;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-
-void utc_tel_set_network_band_19()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = TAPI_NETWORK_BAND_MODE_ONLY;
-       Band = TAPI_NETWORK_BAND_TYPE_WCDMA2100;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_band_19 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_19 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API when one of the argument is invalid
- * @par ID:
- * utc_tel_set_network_band_20
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = TAPI_NETWORK_BAND_MODE_ONLY;
- Band = -1;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-
-void utc_tel_set_network_band_20()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = TAPI_NETWORK_BAND_MODE_ONLY;
-       Band = -1;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_band_20 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_20 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API when one of the argument is invalid
- * @par ID:
- * utc_tel_set_network_band_21
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = -1;
- Band = TAPI_NETWORK_BAND_TYPE_ANY;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-
-void utc_tel_set_network_band_21()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = -1;
-       Band = TAPI_NETWORK_BAND_TYPE_ANY;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_band_21 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_21 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API when one of the argument is invalid
- * @par ID:
- * utc_tel_set_network_band_22
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = -1;
- Band = TAPI_NETWORK_BAND_TYPE_GSM850;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-
-void utc_tel_set_network_band_22()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = -1;
-       Band = TAPI_NETWORK_BAND_TYPE_GSM850;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_band_22 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_22 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API when one of the argument is invalid
- * @par ID:
- * utc_tel_set_network_band_23
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = -1;
- Band = TAPI_NETWORK_BAND_TYPE_GSM_900_1800;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-
-void utc_tel_set_network_band_23()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = -1;
-       Band = TAPI_NETWORK_BAND_TYPE_GSM_900_1800;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_band_23 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_23 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API when one of the argument is invalid
- * @par ID:
- * utc_tel_set_network_band_24
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = -1;
- Band = TAPI_NETWORK_BAND_TYPE_GSM1900;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-
-void utc_tel_set_network_band_24()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = -1;
-       Band = TAPI_NETWORK_BAND_TYPE_GSM1900;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_band_24 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_24 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API when one of the argument is invalid
- * @par ID:
- * utc_tel_set_network_band_25
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = -1;
- Band = TAPI_NETWORK_BAND_TYPE_GSM;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-
-void utc_tel_set_network_band_25()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = -1;
-       Band = TAPI_NETWORK_BAND_TYPE_GSM;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_band_25 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_25 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API when one of the argument is invalid
- * @par ID:
- * utc_tel_set_network_band_26
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = -1;
- Band = TAPI_NETWORK_BAND_TYPE_WCDMA;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-
-void utc_tel_set_network_band_26()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = -1;
-       Band = TAPI_NETWORK_BAND_TYPE_WCDMA;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_band_26 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_26 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API when one of the argument is invalid
- * @par ID:
- * utc_tel_set_network_band_27
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = -1;
- Band = TAPI_NETWORK_BAND_TYPE_WCDMA850;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-
-void utc_tel_set_network_band_27()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = -1;
-       Band = TAPI_NETWORK_BAND_TYPE_WCDMA850;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_band_27 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_27 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API when one of the argument is invalid
- * @par ID:
- * utc_tel_set_network_band_28
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = -1;
- Band = TAPI_NETWORK_BAND_TYPE_WCDMA1900;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-
-void utc_tel_set_network_band_28()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = -1;
-       Band = TAPI_NETWORK_BAND_TYPE_WCDMA1900;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_band_28 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_28 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API when one of the argument is invalid
- * @par ID:
- * utc_tel_set_network_band_29
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = -1;
- Band = TAPI_NETWORK_BAND_TYPE_WCDMA2100;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-
-void utc_tel_set_network_band_29()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = -1;
-       Band = TAPI_NETWORK_BAND_TYPE_WCDMA2100;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_band_29 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_29 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_band() API when both the arguments are invalid
- * @par ID:
- * utc_tel_set_network_band_30
- * @param [in] BandMode
- * @param [in] Band
- * @code
-
- BandMode = -1;
- Band = -1;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-
-void utc_tel_set_network_band_30()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkBandPreferred_t BandMode;
-       TelNetworkBand_t Band;
-       int pRequestId;
-
-       BandMode = -1;
-       Band = -1;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_band_30 Test\n");
-
-       ret_val = tel_set_network_band(BandMode, Band, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_band_30 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/network/unit/uts_tel_set_network_band.h b/TC/telephony_TC/network/unit/uts_tel_set_network_band.h
deleted file mode 100644 (file)
index 9cbf6f3..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-static void startup();\r
-static void cleanup();\r
-static void utc_tel_set_network_band_01(void);\r
-static void utc_tel_set_network_band_02(void);\r
-static void utc_tel_set_network_band_03(void);\r
-static void utc_tel_set_network_band_04(void);\r
-static void utc_tel_set_network_band_05(void);\r
-static void utc_tel_set_network_band_06(void);\r
-static void utc_tel_set_network_band_07(void);\r
-static void utc_tel_set_network_band_08(void);\r
-static void utc_tel_set_network_band_09(void);\r
-static void utc_tel_set_network_band_10(void);\r
-static void utc_tel_set_network_band_11(void);\r
-static void utc_tel_set_network_band_12(void);\r
-static void utc_tel_set_network_band_13(void);\r
-static void utc_tel_set_network_band_14(void);\r
-static void utc_tel_set_network_band_15(void);\r
-static void utc_tel_set_network_band_16(void);\r
-static void utc_tel_set_network_band_17(void);\r
-static void utc_tel_set_network_band_18(void);\r
-static void utc_tel_set_network_band_19(void);\r
-static void utc_tel_set_network_band_20(void);\r
-static void utc_tel_set_network_band_21(void);\r
-static void utc_tel_set_network_band_22(void);\r
-static void utc_tel_set_network_band_23(void);\r
-static void utc_tel_set_network_band_24(void);\r
-static void utc_tel_set_network_band_25(void);\r
-static void utc_tel_set_network_band_26(void);\r
-static void utc_tel_set_network_band_27(void);\r
-static void utc_tel_set_network_band_28(void);\r
-static void utc_tel_set_network_band_29(void);\r
-static void utc_tel_set_network_band_30(void);\r
-/** @} */\r
-\r
diff --git a/TC/telephony_TC/network/unit/uts_tel_set_network_hybrid_in_cdma.c b/TC/telephony_TC/network/unit/uts_tel_set_network_hybrid_in_cdma.c
deleted file mode 100644 (file)
index c78f9e3..0000000
+++ /dev/null
@@ -1,217 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#include <tet_api.h>\r
-#include <ITapiNetwork.h>\r
-\r
-#include "tel_tapi_nw_common.h"\r
-#include "uts_tel_set_network_hybrid_in_cdma.h"\r
-\r
-TS_UINT subscription_id = 0, subscription_id1 = 0;\r
-\r
-/* Initialize TCM data structures */\r
-static void startup();\r
-static void cleanup();\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tel_set_network_hybrid_in_cdma_01, 1},\r
-       {utc_tel_set_network_hybrid_in_cdma_02, 2},\r
-       {utc_tel_set_network_hybrid_in_cdma_03, 3},\r
-       {utc_tel_set_network_hybrid_in_cdma_04, 4},\r
-       {NULL, 0}\r
-};\r
-\r
-/* Startup & Clean function : It is not test code, only for\r
-   initialize and finalize test module\r
-*/\r
-void callback(TelTapiEvent_t *event)\r
-{\r
-       if (event->EventClass != TAPI_EVENT_CLASS_NETWORK)\r
-               return;\r
-\r
-       if (event->EventType == TAPI_EVENT_NETWORK_SET_CDMA_HYBRID_MODE_CNF) {\r
-               printf("\n$$$$$$ TAPI_EVENT_NETWORK_SET_ROAMING_MODE_CNF $$$$$$ \n");\r
-       }\r
-}\r
-\r
-static void startup()\r
-{\r
-       int api_err = TAPI_API_SUCCESS;\r
-       tet_infoline("utc_tel_tapi_nw_set_network_mode_func, Test Start\n");\r
-\r
-       api_err = tel_init();\r
-       if (api_err != TAPI_API_SUCCESS) {\r
-               printf("tel_init Failed api_err = %d \n", api_err);\r
-       }\r
-\r
-       api_err = tel_register_event(TAPI_EVENT_NETWORK_SET_CDMA_HYBRID_MODE_CNF, &subscription_id1, (TelAppCallback) &callback, NULL);\r
-       if (api_err != TAPI_API_SUCCESS) {\r
-               printf("TapiCommonRegisterEvent Failed api_err = %d \n", api_err);\r
-       }\r
-       printf("after TapiCommonRegisterEvent sub id is %d api_err is %d\n", subscription_id1, api_err);\r
-\r
-       tel_register_app_name("org.samsung.test");\r
-       return;\r
-}\r
-\r
-static void cleanup()\r
-{\r
-       tet_infoline("utc_tel_tapi_nw_set_network_mode_func, Test Finished\n");\r
-       tel_deregister_event(subscription_id1);\r
-       tel_deinit();\r
-       return;\r
-}\r
-\r
-\r
-/*\r
-  Unit Test Case functions\r
-*/\r
-\r
-/**\r
- * @brief This tests TelTapiNwSetNetworkMode() API in normal conditions\r
- * @par ID:\r
- * utc_tel_tapi_nw_set_network_mode_func_01\r
- * @param [in] NwMode\r
- * @code\r
-\r
-               NwMode = TAPI_NETWORK_MODE_EMERGENCY;\r
-               pRequestId = -1;\r
-\r
-* @endcode\r
-* @param [out] pRequestId\r
-* @return TAPI_API_INVALID_INPUT\r
-*/\r
-void utc_tel_set_network_hybrid_in_cdma_01()\r
-{\r
-       TapiResult_t ret_val = TAPI_API_SUCCESS;\r
-\r
-       int pRequestId = -1;\r
-       tet_infoline("utc_tel_set_network_hybrid_in_cdma_01 Test\n");\r
-\r
-       ret_val = tel_set_network_hybrid_in_cdma(TAPI_NETWORK_CDMA_HYBRID, &pRequestId);\r
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);\r
-\r
-       tet_infoline("utc_tel_set_network_hybrid_in_cdma_01 is passed\n");\r
-       tet_result(TET_PASS);\r
-\r
-       return;\r
-}\r
-\r
-/**\r
- * @brief This tests TelTapiNwSetNetworkMode() API in normal conditions\r
- * @par ID:\r
- * utc_tel_tapi_nw_set_network_mode_func_02\r
- * @param [in] NwMode\r
- * @code\r
-\r
- NwMode = TAPI_NETWORK_MODE_AUTOMATIC;\r
- pRequestId = -1;\r
-\r
- * @endcode\r
- * @param [out] pRequestId\r
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.\r
- */\r
-\r
-void utc_tel_set_network_hybrid_in_cdma_02()\r
-{\r
-       TapiResult_t ret_val = TAPI_API_SUCCESS;\r
-\r
-       TelNetworkMode_t NwMode;\r
-       int pRequestId;\r
-\r
-       NwMode = TAPI_NETWORK_MODE_AUTOMATIC;\r
-       pRequestId = -1;\r
-\r
-       tet_infoline("utc_tel_set_network_hybrid_in_cdma_02 Test\n");\r
-\r
-       ret_val = tel_set_network_hybrid_in_cdma(TAPI_NETWORK_CDMA_EVDO_ONLY, &pRequestId);\r
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);\r
-\r
-       tet_infoline("utc_tel_set_network_hybrid_in_cdma_02 is passed\n");\r
-       tet_result(TET_PASS);\r
-\r
-       return;\r
-}\r
-\r
-/**\r
- * @brief This tests TelTapiNwSetNetworkMode() API in normal conditions\r
- * @par ID:\r
- * utc_tel_tapi_nw_set_network_mode_func_03\r
- * @param [in] NwMode\r
- * @code\r
-\r
- NwMode = TAPI_NETWORK_MODE_CDMA;\r
- pRequestId = -1;\r
-\r
- * @endcode\r
- * @param [out] pRequestId\r
- * @return TAPI_API_INVALID_INPUT\r
- */\r
-\r
-void utc_tel_set_network_hybrid_in_cdma_03()\r
-{\r
-       TapiResult_t ret_val = TAPI_API_SUCCESS;\r
-       int pRequestId;\r
-       pRequestId = -1;\r
-\r
-       tet_infoline("utc_tel_set_network_hybrid_in_cdma_03 Test\n");\r
-\r
-       ret_val = tel_set_network_hybrid_in_cdma(TAPI_NETWORK_CDMA_EVDO_ONLY + 1, &pRequestId);\r
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);\r
-\r
-       tet_infoline("utc_tel_set_network_hybrid_in_cdma_03 is passed\n");\r
-       tet_result(TET_PASS);\r
-\r
-       return;\r
-}\r
-\r
-/**\r
- * @brief This tests TelTapiNwSetNetworkMode() API in normal conditions\r
- * @par ID:\r
- * utc_tel_tapi_nw_set_network_mode_func_04\r
- * @param [in] NwMode\r
- * @code\r
-\r
- NwMode = TAPI_NETWORK_MODE_GSM;\r
- pRequestId = -1;\r
-\r
- * @endcode\r
- * @param [out] pRequestId\r
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.\r
- */\r
-\r
-void utc_tel_set_network_hybrid_in_cdma_04()\r
-{\r
-       TapiResult_t ret_val = TAPI_API_SUCCESS;\r
-\r
-       tet_infoline("utc_tel_set_network_hybrid_in_cdma_04 Test\n");\r
-\r
-       ret_val = tel_set_network_hybrid_in_cdma(TAPI_NETWORK_CDMA_HYBRID, NULL);\r
-\r
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_val);\r
-\r
-       tet_infoline("utc_tel_set_network_hybrid_in_cdma_04 is passed\n");\r
-       tet_result(TET_PASS);\r
-\r
-       return;\r
-}\r
-\r
-/** @} */\r
diff --git a/TC/telephony_TC/network/unit/uts_tel_set_network_hybrid_in_cdma.h b/TC/telephony_TC/network/unit/uts_tel_set_network_hybrid_in_cdma.h
deleted file mode 100644 (file)
index ffaebf0..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-static void startup();\r
-static void cleanup();\r
-\r
-static void utc_tel_set_network_hybrid_in_cdma_01(void);\r
-static void utc_tel_set_network_hybrid_in_cdma_02(void);\r
-static void utc_tel_set_network_hybrid_in_cdma_03(void);\r
-static void utc_tel_set_network_hybrid_in_cdma_04(void);\r
-\r
-\r
-/** @} */\r
-\r
-\r
diff --git a/TC/telephony_TC/network/unit/uts_tel_set_network_mode.c b/TC/telephony_TC/network/unit/uts_tel_set_network_mode.c
deleted file mode 100644 (file)
index bdc0f67..0000000
+++ /dev/null
@@ -1,146 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <tet_api.h>
-#include <ITapiNetwork.h>
-
-#include "tel_tapi_nw_common.h"
-#include "uts_tel_set_network_mode.h"
-
-TS_UINT subscription_id = 0, subscription_id1 = 0;
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_set_network_mode_01, 1},
-       {utc_tel_set_network_mode_02, 2},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module
- */
-static void startup()
-{
-       TapiResult_t api_err = TAPI_API_SUCCESS;
-       tet_infoline("utc_tel_set_network_mode, Test Start\n");
-
-       api_err = tel_init();
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("tel_init Failed api_err = %d \n", api_err);
-       }
-
-       api_err = tel_register_event(TAPI_EVENT_NETWORK_SETNWMODE_CNF, &subscription_id1, (TelAppCallback) tapi_callback, NULL);
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed api_err = %d \n", api_err);
-       }
-       printf("after TapiCommonRegisterEvent sub id is %d api_err is %d\n", subscription_id1, api_err);
-
-       tel_register_app_name("org.samsung.test");
-       return;
-}
-
-static void cleanup()
-{
-       tet_infoline("utc_tel_set_network_mode, Test Finished\n");
-       tel_deregister_event(subscription_id1);
-       tel_deinit();
-       return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
- * @brief This tests tel_set_network_mode() API in normal conditions
- * @par ID:
- * utc_tel_set_network_mode_01
- * @param [in] NwMode
- * @code
-
-               NwMode = TAPI_NETWORK_MODE_EMERGENCY;
-               pRequestId = -1;
-
-* @endcode
-* @param [out] pRequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-void utc_tel_set_network_mode_01()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkMode_t NwMode;
-       int pRequestId;
-
-       NwMode = TAPI_NETWORK_MODE_EMERGENCY;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_mode_01 Test\n");
-
-       ret_val = tel_set_network_mode(NwMode, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_mode_01 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_mode() API in normal conditions
- * @par ID:
- * utc_tel_set_network_mode_02
- * @param [in] NwMode
- * @code
-
- NwMode = TAPI_NETWORK_MODE_AUTOMATIC;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-
-void utc_tel_set_network_mode_02()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkMode_t NwMode;
-       int pRequestId;
-
-       NwMode = TAPI_NETWORK_MODE_AUTOMATIC;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_mode_02 Test\n");
-
-       ret_val = tel_set_network_mode(NwMode, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_mode_02 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-/** @} */
diff --git a/TC/telephony_TC/network/unit/uts_tel_set_network_mode.h b/TC/telephony_TC/network/unit/uts_tel_set_network_mode.h
deleted file mode 100644 (file)
index 4bb969d..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-static void startup();\r
-static void cleanup();\r
-\r
-static void utc_tel_set_network_mode_01(void);\r
-static void utc_tel_set_network_mode_02(void);\r
-\r
-/** @} */\r
diff --git a/TC/telephony_TC/network/unit/uts_tel_set_network_preferred_plmn.c b/TC/telephony_TC/network/unit/uts_tel_set_network_preferred_plmn.c
deleted file mode 100644 (file)
index 76486e2..0000000
+++ /dev/null
@@ -1,1843 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <tet_api.h>
-#include <ITapiNetwork.h>
-
-#include "tel_tapi_nw_common.h"
-#include "uts_tel_set_network_preferred_plmn.h"
-
-TS_UINT subscription_id = 0, subscription_id1 = 0;
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_set_network_preferred_plmn_01, 1},
-       //{utc_tel_set_network_preferred_plmn_02, 2},
-       //{utc_tel_set_network_preferred_plmn_03, 3},
-       {utc_tel_set_network_preferred_plmn_04, 4},
-       {utc_tel_set_network_preferred_plmn_05, 3},
-       {utc_tel_set_network_preferred_plmn_06, 6},
-       {utc_tel_set_network_preferred_plmn_07, 7},
-       {utc_tel_set_network_preferred_plmn_08, 8},
-       {utc_tel_set_network_preferred_plmn_09, 9},
-       {utc_tel_set_network_preferred_plmn_10, 10},
-       {utc_tel_set_network_preferred_plmn_11, 11},
-       //{utc_tel_set_network_preferred_plmn_12, 12},
-       //{utc_tel_set_network_preferred_plmn_13, 13},
-       {utc_tel_set_network_preferred_plmn_14, 14},
-       {utc_tel_set_network_preferred_plmn_15, 15},
-       {utc_tel_set_network_preferred_plmn_16, 16},
-       {utc_tel_set_network_preferred_plmn_17, 17},
-       {utc_tel_set_network_preferred_plmn_18, 18},
-       {utc_tel_set_network_preferred_plmn_19, 19},
-       {utc_tel_set_network_preferred_plmn_20, 20},
-       {utc_tel_set_network_preferred_plmn_21, 21},
-       //{utc_tel_set_network_preferred_plmn_22, 22},
-       //{utc_tel_set_network_preferred_plmn_23, 23},
-       {utc_tel_set_network_preferred_plmn_24, 24},
-       {utc_tel_set_network_preferred_plmn_25, 25},
-       {utc_tel_set_network_preferred_plmn_26, 26},
-       {utc_tel_set_network_preferred_plmn_27, 27},
-       {utc_tel_set_network_preferred_plmn_28, 28},
-       {utc_tel_set_network_preferred_plmn_29, 29},
-       {utc_tel_set_network_preferred_plmn_30, 30},
-       {utc_tel_set_network_preferred_plmn_31, 31},
-       //{utc_tel_set_network_preferred_plmn_32, 32},
-       //{utc_tel_set_network_preferred_plmn_33, 33},
-       {utc_tel_set_network_preferred_plmn_34, 34},
-       {utc_tel_set_network_preferred_plmn_35, 35},
-       {utc_tel_set_network_preferred_plmn_36, 36},
-       {utc_tel_set_network_preferred_plmn_37, 37},
-       {utc_tel_set_network_preferred_plmn_38, 38},
-       {utc_tel_set_network_preferred_plmn_39, 39},
-       {utc_tel_set_network_preferred_plmn_40, 40},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module
- */
-static void startup()
-{
-       int api_err = TAPI_API_SUCCESS;
-       tet_infoline("utc_tel_set_network_preferred_plmn, Test Start\n");
-
-       api_err = tel_init();
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("tel_init Failed api_err = %d \n", api_err);
-       }
-       api_err = tel_register_event(TAPI_EVENT_NETWORK_SETPREFFEREDPLMN_CNF, &subscription_id1, (TelAppCallback) tapi_callback, NULL);
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed api_err = %d \n", api_err);
-       }
-       printf("after TapiCommonRegisterEvent sub id is %d api_err is %d\n", subscription_id1, api_err);
-
-       tel_register_app_name("org.samsung.test");
-       return;
-}
-
-static void cleanup()
-{
-       tet_infoline("utc_tel_set_network_preferred_plmn, Test Finished\n");
-       tel_deregister_event(subscription_id1);
-       tel_deinit();
-       return;
-}
-
-/*
-  Unit Test Case functions
-*/
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API for invalid inputs
- * @par ID:
- * utc_tel_set_network_preferred_plmn_01
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
-               Operation = TAPI_NETWORK_PREF_PLMN_ADD;
-               PreffPlmnInfo.Index = 244;
-               memcpy(PreffPlmnInfo.Plmn,"40411",5);
-               PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_NO_SRV;
-               pRequestId = -1;
-
-* @endcode
-* @param [out] pRequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-void utc_tel_set_network_preferred_plmn_01()
-{
-       int ret_val = TAPI_API_SUCCESS;
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_ADD;
-       PreffPlmnInfo.Index = 244;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_NO_SRV; /*Test for invalid value*/
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_01 Test\n");
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_01 is passed\n");
-       tet_result(TET_PASS);
-       return;
-}
-
-#if 0
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_02
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_ADD;
- PreffPlmnInfo.Index = 245;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_CDMA;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-
-void utc_tel_set_network_preferred_plmn_02()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_ADD;
-       PreffPlmnInfo.Index = 245;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn,"40411",5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_CDMA;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_02 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_02 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_03
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_ADD;
- PreffPlmnInfo.Index = 246;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_TDMA;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-
-void utc_tel_set_network_preferred_plmn_03()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_ADD;
-       PreffPlmnInfo.Index = 246;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn,"40411",5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_TDMA;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_03 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_03 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-#endif
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_04
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_ADD;
- PreffPlmnInfo.Index = 247;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GSM;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-void utc_tel_set_network_preferred_plmn_04()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_ADD;
-       PreffPlmnInfo.Index = 247;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GSM;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_04 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_04 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_05
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_ADD;
- PreffPlmnInfo.Index = 248;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GPRS;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-void utc_tel_set_network_preferred_plmn_05()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_ADD;
-       PreffPlmnInfo.Index = 248;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GPRS;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_05 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_05 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_06
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_ADD;
- PreffPlmnInfo.Index = 249;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_EGPRS;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-void utc_tel_set_network_preferred_plmn_06()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_ADD;
-       PreffPlmnInfo.Index = 249;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_EGPRS;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_06 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_06 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_07
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_ADD;
- PreffPlmnInfo.Index = 250;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_PCS1900;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_network_preferred_plmn_07()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_ADD;
-       PreffPlmnInfo.Index = 250;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_PCS1900;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_07 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_07 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_08
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_ADD;
- PreffPlmnInfo.Index = 251;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_UMTS;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-void utc_tel_set_network_preferred_plmn_08()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_ADD;
-       PreffPlmnInfo.Index = 251;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_UMTS;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_08 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_08 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_09
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_ADD;
- PreffPlmnInfo.Index = 252;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GSM_AND_UMTS;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-void utc_tel_set_network_preferred_plmn_09()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_ADD;
-       PreffPlmnInfo.Index = 252;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GSM_AND_UMTS;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_09 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_09 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_10
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_ADD;
- PreffPlmnInfo.Index = 253;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_HSDPA;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_network_preferred_plmn_10()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_ADD;
-       PreffPlmnInfo.Index = 253;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_HSDPA;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_10 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_10 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API with invalid inputs
- * @par ID:
- * utc_tel_set_network_preferred_plmn_11
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_EDIT;
- PreffPlmnInfo.Index = 244;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_NO_SRV;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_network_preferred_plmn_11()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_EDIT;
-       PreffPlmnInfo.Index = 244;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_NO_SRV; /*Test for invalid value*/
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_11 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_11 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_12
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
-               Operation = TAPI_NETWORK_PREF_PLMN_EDIT;
-               PreffPlmnInfo.Index = 245;
-               memcpy(PreffPlmnInfo.Plmn,"40411",5);
-               PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_CDMA;
-               pRequestId = -1;
-
-* @endcode
-* @param [out] pRequestId
-* @return TAPI_API_INVALID_INPUT
- */
-#if 0
-void utc_tel_set_network_preferred_plmn_12()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_EDIT;
-       PreffPlmnInfo.Index = 245;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn,"40411",5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_CDMA;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_12 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_12 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_13
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_EDIT;
- PreffPlmnInfo.Index = 246;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_TDMA;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-
-void utc_tel_set_network_preferred_plmn_13()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_EDIT;
-       PreffPlmnInfo.Index = 246;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn,"40411",5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_TDMA;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_13 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_13 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-#endif
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_14
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_EDIT;
- PreffPlmnInfo.Index = 247;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GSM;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-void utc_tel_set_network_preferred_plmn_14()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_EDIT;
-       PreffPlmnInfo.Index = 247;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GSM;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_14 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_14 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_15
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_EDIT;
- PreffPlmnInfo.Index = 248;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GPRS;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-void utc_tel_set_network_preferred_plmn_15()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_EDIT;
-       PreffPlmnInfo.Index = 248;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GPRS;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_15 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_15 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_16
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_EDIT;
- PreffPlmnInfo.Index = 249;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_EGPRS;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-void utc_tel_set_network_preferred_plmn_16()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_EDIT;
-       PreffPlmnInfo.Index = 249;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_EGPRS;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_16 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_16 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_17
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_EDIT;
- PreffPlmnInfo.Index = 250;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_PCS1900;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_network_preferred_plmn_17()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_EDIT;
-       PreffPlmnInfo.Index = 250;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_PCS1900;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_17 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_17 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_18
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_EDIT;
- PreffPlmnInfo.Index = 251;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_UMTS;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-void utc_tel_set_network_preferred_plmn_18()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_EDIT;
-       PreffPlmnInfo.Index = 251;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_UMTS;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_18 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_18 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_19
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_EDIT;
- PreffPlmnInfo.Index = 252;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GSM_AND_UMTS;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-void utc_tel_set_network_preferred_plmn_19()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_EDIT;
-       PreffPlmnInfo.Index = 252;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GSM_AND_UMTS;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_19 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_19 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_20
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_EDIT;
- PreffPlmnInfo.Index = 253;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_HSDPA;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_network_preferred_plmn_20()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_EDIT;
-       PreffPlmnInfo.Index = 253;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_HSDPA;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_20 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_20 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API with invalid inputs
- * @par ID:
- * utc_tel_set_network_preferred_plmn_21
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_DELETE;
- PreffPlmnInfo.Index = 244;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_NO_SRV;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_network_preferred_plmn_21()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_DELETE;
-       PreffPlmnInfo.Index = 244;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_NO_SRV; /*Test for invalid value*/
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_21 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_21 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-#if 0
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_22
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_DELETE;
- PreffPlmnInfo.Index = 245;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_CDMA;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-
-void utc_tel_set_network_preferred_plmn_22()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_DELETE;
-       PreffPlmnInfo.Index = 245;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn,"40411",5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_CDMA;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_22 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_22 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_23
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_DELETE;
- PreffPlmnInfo.Index = 246;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_TDMA;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-
-void utc_tel_set_network_preferred_plmn_23()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_DELETE;
-       PreffPlmnInfo.Index = 246;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn,"40411",5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_TDMA;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_23 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_23 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-#endif
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_24
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_DELETE;
- PreffPlmnInfo.Index = 247;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GSM;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-void utc_tel_set_network_preferred_plmn_24()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_DELETE;
-       PreffPlmnInfo.Index = 247;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GSM;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_24 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_24 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_25
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_DELETE;
- PreffPlmnInfo.Index = 248;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GPRS;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-void utc_tel_set_network_preferred_plmn_25()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_DELETE;
-       PreffPlmnInfo.Index = 248;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GPRS;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_25 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_25 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_26
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_DELETE;
- PreffPlmnInfo.Index = 249;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_EGPRS;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-void utc_tel_set_network_preferred_plmn_26()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_DELETE;
-       PreffPlmnInfo.Index = 249;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_EGPRS;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_26 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_26 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_26
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_DELETE;
- PreffPlmnInfo.Index = 250;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_PCS1900;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_network_preferred_plmn_27()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_DELETE;
-       PreffPlmnInfo.Index = 250;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_PCS1900;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_27 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_27 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_28
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_DELETE;
- PreffPlmnInfo.Index = 251;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_UMTS;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-void utc_tel_set_network_preferred_plmn_28()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_DELETE;
-       PreffPlmnInfo.Index = 251;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_UMTS;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_28 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_28 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_29
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_DELETE;
- PreffPlmnInfo.Index = 252;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GSM_AND_UMTS;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-void utc_tel_set_network_preferred_plmn_29()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_DELETE;
-       PreffPlmnInfo.Index = 252;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GSM_AND_UMTS;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_29 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_29 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API in normal conditions
- * @par ID:
- * utc_tel_set_network_preferred_plmn_30
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = TAPI_NETWORK_PREF_PLMN_DELETE;
- PreffPlmnInfo.Index = 253;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_HSDPA;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_network_preferred_plmn_30()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = TAPI_NETWORK_PREF_PLMN_DELETE;
-       PreffPlmnInfo.Index = 253;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_HSDPA;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_30 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_30 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API with invalid input
- * @par ID:
- * utc_tel_set_network_preferred_plmn_31
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = -1;
- PreffPlmnInfo.Index = 23;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_NO_SRV;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_network_preferred_plmn_31()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = -1;/*invalid input*/
-       PreffPlmnInfo.Index = 23;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_NO_SRV;/*Invalid input*/
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_31 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_31 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-#if 0
-/**
- * @brief This tests tel_set_network_preferred_plmn() API with invalid input
- * @par ID:
- * utc_tel_set_network_preferred_plmn_32
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = -1;
- PreffPlmnInfo.Index = 23;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_CDMA;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-
-void utc_tel_set_network_preferred_plmn_32()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = -1;/*invalid input*/
-       PreffPlmnInfo.Index = 23;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn,"40411",5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_CDMA;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_32 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_32 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API with invalid input
- * @par ID:
- * utc_tel_set_network_preferred_plmn_33
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = -1;
- PreffPlmnInfo.Index = 23;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_TDMA;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-
-void utc_tel_set_network_preferred_plmn_33()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = -1;/*invalid input*/
-       PreffPlmnInfo.Index = 23;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn,"40411",5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_TDMA;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_33 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_33 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-#endif
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API with invalid input
- * @par ID:
- * utc_tel_set_network_preferred_plmn_34
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = -1;
- PreffPlmnInfo.Index = 23;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GSM;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_network_preferred_plmn_34()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = -1;/*invalid input*/
-       PreffPlmnInfo.Index = 23;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GSM;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_34 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_34 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API with invalid input
- * @par ID:
- * utc_tel_set_network_preferred_plmn_35
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = -1;
- PreffPlmnInfo.Index = 23;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GPRS;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_network_preferred_plmn_35()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = -1;/*invalid input*/
-       PreffPlmnInfo.Index = 23;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GPRS;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_35 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_35 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API with invalid input
- * @par ID:
- * utc_tel_set_network_preferred_plmn_36
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = -1;
- PreffPlmnInfo.Index = 23;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_EGPRS;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_network_preferred_plmn_36()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = -1;/*invalid input*/
-       PreffPlmnInfo.Index = 23;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_EGPRS;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_36 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_36 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API with invalid input
- * @par ID:
- * utc_tel_set_network_preferred_plmn_37
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = -1;
- PreffPlmnInfo.Index = 23;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_PCS1900;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_network_preferred_plmn_37()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = -1;/*invalid input*/
-       PreffPlmnInfo.Index = 23;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_PCS1900;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_37 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_37 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API with invalid input
- * @par ID:
- * utc_tel_set_network_preferred_plmn_38
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = -1;
- PreffPlmnInfo.Index = 23;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_UMTS;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_network_preferred_plmn_38()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = -1;/*invalid input*/
-       PreffPlmnInfo.Index = 23;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_UMTS;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_38 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_38 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API with invalid input
- * @par ID:
- * utc_tel_set_network_preferred_plmn_39
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = -1;
- PreffPlmnInfo.Index = 23;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GSM_AND_UMTS;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_network_preferred_plmn_39()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = -1;/*invalid input*/
-       PreffPlmnInfo.Index = 23;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_GSM_AND_UMTS;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_39 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_39 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_preferred_plmn() API with invalid input
- * @par ID:
- * utc_tel_set_network_preferred_plmn_40
- * @param [in] Operation
- * @param [in] PreffPlmnInfo
- * @code
-
- Operation = -1;
- PreffPlmnInfo.Index = 23;
- memcpy(PreffPlmnInfo.Plmn,"40411",5);
- PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_HSDPA;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_network_preferred_plmn_40()
-{
-       int ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkPrefferedPlmnOp_t Operation;
-       TelNetworkPrefferedPlmnInfo_t PreffPlmnInfo;
-       int pRequestId;
-
-       Operation = -1;/*invalid input*/
-       PreffPlmnInfo.Index = 23;/*Some value between 0 and 255*/
-       memcpy(PreffPlmnInfo.Plmn, "40411", 5);
-       PreffPlmnInfo.SystemType = TAPI_NETWORK_SYSTEM_HSDPA;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_40 Test\n");
-
-       ret_val = tel_set_network_preferred_plmn(Operation, &PreffPlmnInfo, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_preferred_plmn_40 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-/** @} */
diff --git a/TC/telephony_TC/network/unit/uts_tel_set_network_preferred_plmn.h b/TC/telephony_TC/network/unit/uts_tel_set_network_preferred_plmn.h
deleted file mode 100644 (file)
index 4f017bf..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-static void startup();\r
-static void cleanup();\r
-\r
-static void utc_tel_set_network_preferred_plmn_01(void);\r
-//static void utc_tel_set_network_preferred_plmn_02(void);\r
-//static void utc_tel_set_network_preferred_plmn_03(void);\r
-static void utc_tel_set_network_preferred_plmn_04(void);\r
-static void utc_tel_set_network_preferred_plmn_05(void);\r
-static void utc_tel_set_network_preferred_plmn_06(void);\r
-static void utc_tel_set_network_preferred_plmn_07(void);\r
-static void utc_tel_set_network_preferred_plmn_08(void);\r
-static void utc_tel_set_network_preferred_plmn_09(void);\r
-static void utc_tel_set_network_preferred_plmn_10(void);\r
-static void utc_tel_set_network_preferred_plmn_11(void);\r
-//static void utc_tel_set_network_preferred_plmn_12(void);\r
-//static void utc_tel_set_network_preferred_plmn_13(void);\r
-static void utc_tel_set_network_preferred_plmn_14(void);\r
-static void utc_tel_set_network_preferred_plmn_15(void);\r
-static void utc_tel_set_network_preferred_plmn_16(void);\r
-static void utc_tel_set_network_preferred_plmn_17(void);\r
-static void utc_tel_set_network_preferred_plmn_18(void);\r
-static void utc_tel_set_network_preferred_plmn_19(void);\r
-static void utc_tel_set_network_preferred_plmn_20(void);\r
-static void utc_tel_set_network_preferred_plmn_21(void);\r
-//static void utc_tel_set_network_preferred_plmn_22(void);\r
-//static void utc_tel_set_network_preferred_plmn_23(void);\r
-static void utc_tel_set_network_preferred_plmn_24(void);\r
-static void utc_tel_set_network_preferred_plmn_25(void);\r
-static void utc_tel_set_network_preferred_plmn_26(void);\r
-static void utc_tel_set_network_preferred_plmn_27(void);\r
-static void utc_tel_set_network_preferred_plmn_28(void);\r
-static void utc_tel_set_network_preferred_plmn_29(void);\r
-static void utc_tel_set_network_preferred_plmn_30(void);\r
-static void utc_tel_set_network_preferred_plmn_31(void);\r
-//static void utc_tel_set_network_preferred_plmn_32(void);\r
-//static void utc_tel_set_network_preferred_plmn_33(void);\r
-static void utc_tel_set_network_preferred_plmn_34(void);\r
-static void utc_tel_set_network_preferred_plmn_35(void);\r
-static void utc_tel_set_network_preferred_plmn_36(void);\r
-static void utc_tel_set_network_preferred_plmn_37(void);\r
-static void utc_tel_set_network_preferred_plmn_38(void);\r
-static void utc_tel_set_network_preferred_plmn_39(void);\r
-static void utc_tel_set_network_preferred_plmn_40(void);\r
-\r
-\r
-/** @} */\r
-\r
-\r
-\r
-\r
-\r
diff --git a/TC/telephony_TC/network/unit/uts_tel_set_network_roaming.c b/TC/telephony_TC/network/unit/uts_tel_set_network_roaming.c
deleted file mode 100644 (file)
index 41a09f1..0000000
+++ /dev/null
@@ -1,233 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <tet_api.h>
-#include <ITapiNetwork.h>
-
-#include "tel_tapi_nw_common.h"
-#include "uts_tel_set_network_roaming.h"
-
-TS_UINT subscription_id = 0, subscription_id1 = 0;
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_set_network_roaming_01, 1},
-       {utc_tel_set_network_roaming_02, 2},
-       {utc_tel_set_network_roaming_03, 3},
-       {utc_tel_set_network_roaming_04, 4},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module
- */
-void callback(TelTapiEvent_t *event)
-{
-       if (event->EventClass != TAPI_EVENT_CLASS_NETWORK)
-               return;
-
-       if (event->EventType == TAPI_EVENT_NETWORK_SET_ROAMING_MODE_CNF) {
-               printf("\n$$$$$$ TAPI_EVENT_NETWORK_SET_ROAMING_MODE_CNF $$$$$$ \n");
-       }
-
-}
-
-static void startup()
-{
-       TapiResult_t api_err = TAPI_API_SUCCESS;
-       tet_infoline("utc_tel_set_network_roaming, Test Start\n");
-
-       api_err = tel_init();
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("tel_init Failed api_err = %d \n", api_err);
-       }
-
-       api_err = tel_register_event(TAPI_EVENT_NETWORK_SET_ROAMING_MODE_CNF, &subscription_id1, (TelAppCallback) &callback, NULL);
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed api_err = %d \n", api_err);
-       }
-       printf("after TapiCommonRegisterEvent sub id is %d api_err is %d\n", subscription_id1, api_err);
-
-       tel_register_app_name("org.samsung.test");
-       return;
-}
-
-static void cleanup()
-{
-       tet_infoline("utc_tel_set_network_roaming, Test Finished\n");
-       tel_deregister_event(subscription_id1);
-       tel_deinit();
-       return;
-}
-
-
-/*
- Unit Test Case functions
- */
-
-/**
- * @brief This tests tel_set_network_roaming() API in normal conditions
- * @par ID:
- * utc_tel_tapi_nw_set_network_mode_func_01
- * @param [in] NwMode
- * @code
-
- RoamingMode = TAPI_NETWORK_MODE_EMERGENCY;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_network_roaming_01()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkRoamingMode_t RoamingMode;
-       int pRequestId;
-
-       RoamingMode.pref_net_type = TAPI_NETWORK_PREF_NET_TYPE_AUTOMATIC;
-       RoamingMode.prl_pref_only = TAPI_NETWORK_PRL_PREF_ONLY_ON;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_roaming_01 Test\n");
-
-       ret_val = tel_set_network_roaming(&RoamingMode, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_roaming_01 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_roaming() API in normal conditions
- * @par ID:
- * utc_tel_tapi_nw_set_network_mode_func_02
- * @param [in] NwMode
- * @code
-
- //RoamingMode = TAPI_NETWORK_MODE_AUTOMATIC;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-void utc_tel_set_network_roaming_02()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkRoamingMode_t RoamingMode;
-       int pRequestId;
-
-       RoamingMode.pref_net_type = TAPI_NETWORK_PREF_NET_TYPE_AUTOMATIC_A;
-       RoamingMode.prl_pref_only = TAPI_NETWORK_PRL_PREF_ONLY_ON;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_roaming_02 Test\n");
-
-       ret_val = tel_set_network_roaming(&RoamingMode, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_roaming_02 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_roaming() API in normal conditions
- * @par ID:
- * utc_tel_set_network_roaming_03
- * @param [in] NwMode
- * @code
-
- //NwMode = TAPI_NETWORK_MODE_CDMA;
- pRequestId = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_network_roaming_03()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkRoamingMode_t RoamingMode;
-       int pRequestId;
-
-       RoamingMode.pref_net_type = TAPI_NETWORK_PREF_NET_TYPE_ROAM_ONLY;
-       RoamingMode.prl_pref_only = TAPI_NETWORK_PRL_PREF_ONLY_NONE + 1;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_roaming_03 Test\n");
-
-       ret_val = tel_set_network_roaming(&RoamingMode, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_tapi_nw_set_network_mode_func_03 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_roaming() API in normal conditions
- * @par ID:
- * utc_tel_set_network_roaming_04
- * @param [in] NwMode
- * @code
-
-               //RoamingMode = TAPI_NETWORK_MODE_GSM;
-               pRequestId = -1;
-
-* @endcode
-* @param [out] pRequestId
-* @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-*/
-void utc_tel_set_network_roaming_04()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkRoamingMode_t RoamingMode;
-       RoamingMode.pref_net_type = TAPI_NETWORK_PREF_NET_TYPE_HOME_ONLY;
-       RoamingMode.prl_pref_only = TAPI_NETWORK_PRL_PREF_ONLY_ON;
-
-       //RoamingMode = TAPI_NETWORK_MODE_GSM;
-
-       tet_infoline("utc_tel_set_network_roaming_04 Test\n");
-
-       ret_val = tel_set_network_roaming(&RoamingMode, NULL);
-       TET_CHECK(TAPI_API_INVALID_PTR, ret_val);
-       if (ret_val == TAPI_API_INVALID_PTR) {
-               tet_infoline("utc_tel_set_network_roaming_04 is passed\n");
-               tet_result(TET_PASS);
-       }
-
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/network/unit/uts_tel_set_network_roaming.h b/TC/telephony_TC/network/unit/uts_tel_set_network_roaming.h
deleted file mode 100644 (file)
index 3f349a7..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-static void startup();\r
-static void cleanup();\r
-\r
-static void utc_tel_set_network_roaming_01(void);\r
-static void utc_tel_set_network_roaming_02(void);\r
-static void utc_tel_set_network_roaming_03(void);\r
-static void utc_tel_set_network_roaming_04(void);\r
-\r
-\r
-\r
-/** @} */\r
-\r
-\r
diff --git a/TC/telephony_TC/network/unit/uts_tel_set_network_service_domain.c b/TC/telephony_TC/network/unit/uts_tel_set_network_service_domain.c
deleted file mode 100644 (file)
index 05f4fd7..0000000
+++ /dev/null
@@ -1,250 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include <tet_api.h>
-#include <ITapiNetwork.h>
-
-#include "tel_tapi_nw_common.h"
-#include "uts_tel_set_network_service_domain.h"
-
-TS_UINT subscription_id = 0, subscription_id1 = 0;
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_set_network_service_domain_01, 1},
-       {utc_tel_set_network_service_domain_02, 2},
-       {utc_tel_set_network_service_domain_03, 3},
-       {utc_tel_set_network_service_domain_04, 4},
-       {utc_tel_set_network_service_domain_05, 5},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module
- */
-static void startup()
-{
-       TapiResult_t api_err = TAPI_API_SUCCESS;
-       tet_infoline("utc_tel_set_network_service_domain, Test Start\n");
-
-       api_err = tel_init();
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("tel_init Failed api_err = %d \n", api_err);
-       }
-
-       api_err = tel_register_event(TAPI_EVENT_NETWORK_SETSERVICEDOMAIN_CNF, &subscription_id1, tapi_callback, NULL);
-       if (api_err != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed api_err = %d \n", api_err);
-       }
-       printf("after TapiCommonRegisterEvent sub id is %d api_err is %d\n", subscription_id1, api_err);
-
-       tel_register_app_name("org.samsung.test");
-       return;
-}
-
-static void cleanup()
-{
-       tet_infoline("utc_tel_set_network_service_domain, Test Finished\n");
-       tel_deregister_event(subscription_id1);
-       tel_deinit();
-       return;
-}
-
-
-/*
- Unit Test Case functions
- */
-
-/**
- * @brief This tests tel_set_network_service_domain() API in normal conditions
- * @par ID:
- * utc_tel_set_network_service_domain_01
- * @param [in] ServiceDomain
- * @code
-
- pRequestId = -1;
- ServiceDomain = TAPI_NETWORK_SERVICE_DOMAIN_COMBINED;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-void utc_tel_set_network_service_domain_01()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkServiceDomain_t ServiceDomain;
-       int pRequestId;
-       pRequestId = -1;
-       ServiceDomain = TAPI_NETWORK_SERVICE_DOMAIN_COMBINED;
-
-       tet_infoline("utc_tel_set_network_service_domain_01 Test\n");
-
-       ret_val = tel_set_network_service_domain(ServiceDomain, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_service_domain_01 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_service_domain() API in normal conditions
- * @par ID:
- * utc_tel_set_network_service_domain_02
- * @param [in] ServiceDomain
- * @code
-
- pRequestId = -1;
- ServiceDomain = TAPI_NETWORK_SERVICE_DOMAIN_PS;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-void utc_tel_set_network_service_domain_02()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkServiceDomain_t ServiceDomain;
-       int pRequestId;
-       pRequestId = -1;
-       ServiceDomain = TAPI_NETWORK_SERVICE_DOMAIN_PS;
-
-       tet_infoline("utc_tel_set_network_service_domain_02 Test\n");
-
-       ret_val = tel_set_network_service_domain(ServiceDomain, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_service_domain_02 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_service_domain() API in normal conditions
- * @par ID:
- * utc_tel_set_network_service_domain_03
- * @param [in] ServiceDomain
- * @code
-
- pRequestId = -1;
- ServiceDomain = TAPI_NETWORK_SERVICE_DOMAIN_CS;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-void utc_tel_set_network_service_domain_03()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkServiceDomain_t ServiceDomain;
-       int pRequestId;
-       pRequestId = -1;
-       ServiceDomain = TAPI_NETWORK_SERVICE_DOMAIN_CS;
-
-       tet_infoline("utc_tel_set_network_service_domain_03 Test\n");
-
-       ret_val = tel_set_network_service_domain(ServiceDomain, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_service_domain_03 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_service_domain() API in normal conditions
- * @par ID:
- * utc_tel_set_network_service_domain_04
- * @param [in] ServiceDomain
- * @code
-
- pRequestId = -1;
- ServiceDomain = TAPI_NETWORK_SERVICE_DOMAIN_AUTOMATIC;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-void utc_tel_set_network_service_domain_04()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkServiceDomain_t ServiceDomain;
-       int pRequestId;
-       pRequestId = -1;
-       ServiceDomain = TAPI_NETWORK_SERVICE_DOMAIN_AUTOMATIC;
-
-       tet_infoline("utc_tel_set_network_service_domain_04 Test\n");
-
-       ret_val = tel_set_network_service_domain(ServiceDomain, &pRequestId);
-       TET_CHECK(TAPI_API_SUCCESS, ret_val);
-
-       tet_infoline("utc_tel_set_network_service_domain_04 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_network_service_domain() API with invalid input
- * @par ID:
- * utc_tel_set_network_service_domain_05
- * @param [in] ServiceDomain
- * @code
-
- pRequestId = -1;
- ServiceDomain = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS - indicating that the operation has completed successfully.
- */
-void utc_tel_set_network_service_domain_05()
-{
-       TapiResult_t ret_val = TAPI_API_SUCCESS;
-
-       TelNetworkServiceDomain_t ServiceDomain;
-       ServiceDomain = -1;
-       int pRequestId;
-       pRequestId = -1;
-
-       tet_infoline("utc_tel_set_network_service_domain_05 Test\n");
-
-       ret_val = tel_set_network_service_domain(ServiceDomain, &pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, ret_val);
-
-       tet_infoline("utc_tel_set_network_service_domain_05 is passed\n");
-       tet_result(TET_PASS);
-
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/network/unit/uts_tel_set_network_service_domain.h b/TC/telephony_TC/network/unit/uts_tel_set_network_service_domain.h
deleted file mode 100644 (file)
index 345833d..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-static void startup();\r
-static void cleanup();\r
-static void utc_tel_set_network_service_domain_01(void);\r
-static void utc_tel_set_network_service_domain_02(void);\r
-static void utc_tel_set_network_service_domain_03(void);\r
-static void utc_tel_set_network_service_domain_04(void);\r
-static void utc_tel_set_network_service_domain_05(void);\r
-\r
-\r
-/** @} */\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
diff --git a/TC/telephony_TC/power/unit/makefile b/TC/telephony_TC/power/unit/makefile
deleted file mode 100644 (file)
index 4265475..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-CC=gcc -Wall
-
-LB1  =  power_common
-TS1  =  uts_tel_process_power_command
-TS2  =  uts_tel_set_flight_mode
-TS3  =  uts_tapi_power_reboot_modem
-TS4  =  
-TS5  =   
-TS6  =  
-TS7  =  
-
-LIBS =$(LB1).o
-LIBS += `pkg-config --libs  gconf-2.0 glib-2.0 dbus-1 dbus-glib-1 gthread-2.0 tapi` 
-LIBS +=$(TET_ROOT)/lib/tet3/tcm_s.o
-LIBS +=-L$(TET_ROOT)/lib/tet3 -ltcm_s
-LIBS +=-L$(TET_ROOT)/lib/tet3 -lapi_s
-
-INCS  += -I$(TET_ROOT)/inc/tet3 
-INCS  +=  -I. `pkg-config --cflags  gconf-2.0 glib-2.0 dbus-1 dbus-glib-1 gthread-2.0 tapi`
-
-#ifeq ($(ARCH),target)
-#CC += -g -mabi=aapcs-linux
-#endif
-
-CFLAGS = $(INCS) -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -DWITHOUT_APP_MGR 
-CFLAGS += -D_TETWARE_MODE_ -D_XO_TELEPHONY_INTEGRATION_
-CFLAGS += -DXO20_EVENT_DELIVERY_MODIFICATION
-CC +=$(CFLAGS)
-LDFLAGS = $(LIBS)
-
-
-all : $(LB1)  $(TS1)  $(TS2) $(TS3)  $(TS4)  $(TS5)  $(TS6) $(TS7)
-clean :
-       rm -rf *~ *.o tet_lock tet_captured $(LB1)  $(TS1)  $(TS2) $(TS3)  $(TS4)  $(TS5)  $(TS6) $(TS7)
-
-$(LB1): $(LB1).c
-       $(CC) -c $(LB1).c
-
-
-$(TS1): $(TS1).c $(LB1)
-       $(CC) -o $(TS1) $(TS1).c  $(LDFLAGS)
-$(TS2): $(TS2).c $(LB1)
-       $(CC) -o $(TS2) $(TS2).c  $(LDFLAGS)
-$(TS3): $(TS3).c $(LB1)
-       $(CC) -o $(TS3) $(TS3).c  $(LDFLAGS)
-$(TS4): $(TS4).c $(LB1)
-       $(CC) -o $(TS4) $(TS4).c  $(LDFLAGS)
-$(TS5): $(TS5).c $(LB1)
-       $(CC) -o $(TS5) $(TS5).c  $(LDFLAGS)
-$(TS6): $(TS6).c $(LB1)
-       $(CC) -o $(TS6) $(TS6).c  $(LDFLAGS)
-$(TS7): $(TS7).c $(LB1)
-       $(CC) -o $(TS7) $(TS7).c  $(LDFLAGS)
-
diff --git a/TC/telephony_TC/power/unit/power_common.c b/TC/telephony_TC/power/unit/power_common.c
deleted file mode 100644 (file)
index abb7301..0000000
+++ /dev/null
@@ -1,229 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "power_common.h"
-#include <TapiCommon.h>
-#define TIME_DELAY 5000
-GMainLoop *g_main_loop = NULL;
-
-static unsigned int subscription_id[5]={0,0,0,0,0};
-int expected_event;
-bool async_response = false;
-
-
-void G_MAIN_LOOP_CLOSE()
-{
-       g_main_loop_quit(g_main_loop);
-}
-
-gboolean g_timeout_callback(void * data)
-{
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       g_main_loop = g_main_loop_new(NULL, FALSE);
-       g_timeout_add_seconds(sec, g_timeout_callback, NULL);
-       g_main_loop_run(g_main_loop);
-
-       return 0;
-}
-
-void print_events(int event) {
-
-       printf("\n event in prnt_events function %d\n", event);
-
-       switch (event) {
-       case TAPI_EVENT_NETTEXT_GET_COUNT_CNF: /**<     This event is returned in response to Get Number of messages stored in SIM*/
-       case TAPI_EVENT_NETTEXT_SENTSTATUS_CNF: /**<    This event is returned in response to SMS  message sent*/
-       case TAPI_EVENT_NETTEXT_GET_PARAM_CNF: /**<     This event is returned in response to NetText Get parameters*/
-       case TAPI_EVENT_NETTEXT_DELETE_STATUS_CNF: /**< This confirmation event is a returned indicating the delete message e status*/
-       case TAPI_EVENT_NETTEXT_SAVE_STATUS_CNF: /**<   This confirmation event is a returned indicating the Save SMS into SIM status*/
-       case TAPI_EVENT_NETTEXT_SET_REQUEST_CNF: /**<   This event is returned as a confirmation for SET nettext APIs*/
-       case TAPI_EVENT_NETTEXT_GET_CB_CONFIG_CNF: /**< This event is returned with Get CB configuration details*/
-       case TAPI_EVENT_NETTEXT_GET_SMSBEARER_CNF: /**< This event is returned as a response to get preferred bearer used for SMS Transport*/
-       case TAPI_EVENT_NETTEXT_DELIVERY_REPORT_CNF:/**<        This event is returned in response to send delivery report*/
-       case TAPI_EVENT_NETTEXT_INCOM_IND: /**< This is an unsolicited Incoming SMS Event*/
-       case TAPI_EVENT_NETTEXT_CB_INCOM_IND: /**<      This is an unsolicited Incoming cell broadcast message*/
-       case TAPI_EVENT_NETTEXT_MEMORY_STATUS_IND: /**< This event is an unsolicited event indicating SIM memory status */
-       case TAPI_EVENT_NETTEXT_DEVICE_READY_IND: /**< Device Ready indication */
-       case TAPI_EVENT_NETTEXT_PARAM_COUNT_IND: /**< Param count indication */
-               /* Events related on Network Messages  */
-       case TAPI_EVENT_NETWORK_GETNWBAND_CNF: //=  TAPI_EVENT_CLASS_NETWORK<<8:                /**<0x0300:     This event indicates the Network Band has been identified and returned*/
-       case TAPI_EVENT_NETWORK_SETNWBAND_CNF: /**<     This event indicates the Network Band has been set*/
-       case TAPI_EVENT_NETWORK_GETSERVICEDOMAIN_CNF: /**<      This event confirms the request to get the service domain */
-       case TAPI_EVENT_NETWORK_SETSERVICEDOMAIN_CNF: /**<      This event confirms the request to set the service domain */
-       case TAPI_EVENT_NETWORK_CANCELMANUALSELECTION_CNF: /**< This event is returned on cancellation of manual network selection from network list*/
-       case TAPI_EVENT_NETWORK_CANCELMANUALSEARCH_CNF: /**<    This event is returned on cancellation of manual network search*/
-       case TAPI_EVENT_NETWORK_GETNWORDER_CNF: /**<    This event is returned on getting network order*/
-       case TAPI_EVENT_NETWORK_SETNWORDER_CNF: /**<    This event is returned on setting network order*/
-       case TAPI_EVENT_NETWORK_GETNWMODE_CNF:/**<      This event is returned on getting network mode*/
-       case TAPI_EVENT_NETWORK_SETNWMODE_CNF: /**<     This event is returned on setting network mode*/
-       case TAPI_EVENT_NETWORK_SELECT_CNF: /**<        This confirmation event is returned when user manually selected a network from list for Network selection */
-       case TAPI_EVENT_NETWORK_SEARCH_CNF: /**<        This event is returned as confirmation for manual Network search with the available network list*/
-       case TAPI_EVENT_NETWORK_GETSELECTIONMODE_CNF: /**<      This event is returned on getting network selection mode*/
-       case TAPI_EVENT_SS_BARRING_CNF: //=  TAPI_EVENT_CLASS_SS<<8:   /**<0x0400:      This confirmation event is sent when Barring activation/deactivation is requested*/
-       case TAPI_EVENT_SS_BARRING_CHANGEPASS_CNF: /**< This event is returned as Barring password change confirmation*/
-       case TAPI_EVENT_SS_BARRING_QUERYSTATUS_CNF: /**<        This event is returned  as Barring status query confirmation*/
-       case TAPI_EVENT_SS_FORWARD_CNF: /**<    This event is returned as confirmation for Forward Activation/Deactivation/Registration/Erasure */
-       case TAPI_EVENT_SS_FORWARD_QUERYSTATUS_CNF: /**<        This event is returned as confirmation for Forward Status query confirmation*/
-       case TAPI_EVENT_SS_WAITING_CNF: /**<    This event is returned as confirmation for Call waiting activation/deactivation*/
-       case TAPI_EVENT_SS_WAITING_QUERYSTATUS_CNF: /**<        This event is returned as Call waiting status query confirmation*/
-       case TAPI_EVENT_SS_USSD_CNF: /**<       This event is returned as USSD send confirmation*/
-       case TAPI_EVENT_SS_USSD_IND: /**<       This is an unsolicited USSD indication*/
-       case TAPI_EVENT_SS_CLI_QUERYSTATUS_CNF: /**<    This event is indicated to the Application for CLI service interrogation*/
-       case TAPI_EVENT_SS_REL_COMP_MSG_NOTIFY: /**<    This event is indicated to the Application when tapi receives Release complete message notification for any SS transactions*/
-       case TAPI_EVENT_SS_AOC_RSP: /**<This event is used to send the aoc information */
-       case TAPI_EVENT_SS_SET_AOC_CNF: /**<This event is used to send the confirmation for setting aoc values */
-       case TAPI_EVENT_SS_BARRING_TYPE_IND: /**<This event is used to send the barring type while making an MO call */
-       {
-               printf("here sound starts");
-               break;
-       }
-#if 0
-               case TAPI_EVENT_SOUND_VOLUMECTRL_RSP ://=  TAPI_EVENT_CLASS_SOUND<<8:         /**<     */
-               case TAPI_EVENT_SOUND_USRCONFIGURATIONCTRL_RSP: /**<     */
-               case TAPI_EVENT_SOUND_ERROR_IND: /**<     */
-               case TAPI_EVENT_SOUND_AUDIOPATHCTRL_NOTI: /**<     */
-               case TAPI_EVENT_SOUND_AUDIOSOURCECTRL_NOTI: /**<     */
-               case TAPI_EVENT_SOUND_MICMUTECTRL_RSP: /**<     */
-               case TAPI_EVENT_SOUND_MICGAINCTRL_RSP: /**<     */
-#endif
-               /*SAT events*/
-#if 0
-               case TAPI_IMEI_CMLAIND ://=  TAPI_EVENT_CLASS_IMEI<<8:          /**<0x0E00:*/
-               {
-                       printf("here TAPI_IMEI_CMLAIND starts");
-                       break;
-               }
-               case TAPI_IMEI_COMPAREITEM: /**<     */
-               {
-                       printf("here TAPI_IMEI_COMPAREITEM starts");
-                       break;
-               }
-#endif
-#if 0
-               case TAPI_GPS_EVENT_START_SESSION_RESP: //=  TAPI_EVENT_CLASS_GPS<<8:           /**<0x0F00:     Start session response event type.              */
-               case TAPI_GPS_EVENT_OPTION_SET_RESP: /**<       GPS option set response  event type.            */
-#if 0 //remove_telephony_dpram_read
-               case TAPI_GPS_EVENT_NMEA_DATA_IND: /**< NMEA Data indication event type.                */
-#endif
-               case TAPI_GPS_EVENT_CLOSE_SESSION_RESP: /**<    Close session response event type */
-
-               case TAPI_GPS_EVENT_XTRA_ENABLE_SET_RESP: /**<     */
-               case TAPI_GPS_EVENT_XTRA_AUTODL_ENABLE_SET_RESP: /**<     */
-               case TAPI_GPS_EVENT_XTRA_CLIENT_INIT_DL_RESP: /**<     */
-               case TAPI_GPS_EVENT_XTRA_SET_TIME_INFO_RESP: /**<     */
-               case TAPI_GPS_EVENT_XTRA_QUERY_DATA_VALIDITY_RESP: /**<     */
-
-               case TAPI_GPS_EVENT_AGPS_SSL_SET_RESP: /**<     */
-               case TAPI_GPS_EVENT_AGPS_BEARER_SET_RESP: /**<     */
-
-               case TAPI_GPS_EVENT_XTRA_TIME_NOTI: /**<        XTRA Time info notification event type.         */
-               case TAPI_GPS_EVENT_XTRA_DOWNLOAD_NOTI: /**<    XTRA  download data notification event type.            */
-               case TAPI_GPS_EVENT_XTRA_DATA_VALIDITY_NOTI: /**<       XTRA  DATA Validity notification.               */
-               case TAPI_GPS_EVENT_XTRA_QUERY_DATA_VALIDITY_NOTI: /**< XTRA  DATA Validity notification for the Query.         */
-               case TAPI_GPS_EVENT_XTRA_DATA_INJECTION_NOTI: /**<      XTRA  DATA Status injection notification.               */
-
-               case TAPI_GPS_EVENT_AGPS_PDP_CONNECTION_IND: /**<       .               */
-
-               case TAPI_GPS_EVENT_AGPS_SSL_GET_RESPONSE: /**<     */
-
-               case TAPI_GPS_EVENT_DEVSTATE_NOTI: /**< Device state notification event type .          */
-               case TAPI_GPS_EVENT_DEVSTATE_RESP: /**< Device state response type.             */
-               case TAPI_GPS_EVENT_VERIFICATION_IND: /**<      Verification indication event type.             */
-               case TAPI_GPS_EVENT_SUPL_NOTI: /**<     SUPL Notification event type .          */
-#endif
-
-               /*      All please add your events if any: above this one       */
-       case TAPI_EVENT_TYPE_MAX:/**< Event Max */
-       {
-               printf("here max starts");
-               break;
-       }
-
-       default: {
-               printf("\n in the default case of print_events \n");
-               break;
-       }
-       }
-}
-
-void power_app_callback(TelTapiEvent_t *TapiEvent) {
-       int eventClass;
-       int eventType;
-       int requestId;
-       int status;
-       void *EventData = NULL;
-
-       eventClass = TapiEvent->EventClass;
-       eventType = TapiEvent->EventType;
-       requestId = TapiEvent->RequestId;
-       status = TapiEvent->Status;
-       EventData = TapiEvent->pData;
-       printf(" app _callback is called \n");
-
-       print_events((int) eventType);
-       printf("\n event came in power_callback [%d] \n", eventType);
-       printf("\n expected event is  in callback [%d] \n", expected_event);
-
-       switch (eventClass) {
-       default:
-               TEST_DEBUG("##Undefined Power Event received")
-               ;
-               break;
-       }
-
-       if (eventType == expected_event) {
-               g_main_loop_quit(g_main_loop);
-               async_response = true;
-       }
-       return;
-}
-
-void print_all_subsciption_ids() {
-       int i = 0;
-       for (i = 0; i < 2; i++) {
-               printf("\n subscription_id[%d] has value %d \n", i, subscription_id[i]);
-       }
-}
-
-TapiResult_t register_all_events() {
-       TapiResult_t api_err = -1;
-
-       api_err = tel_register_event(TAPI_EVENT_POWER_FLIGHT_MODE_RESP,
-                       &subscription_id[0], (TelAppCallback) &power_app_callback, NULL);
-       api_err = tel_register_event(TAPI_EVENT_POWER_PHONE_OFF,
-                       &subscription_id[1], (TelAppCallback) &power_app_callback, NULL);
-
-       print_all_subsciption_ids();
-       return api_err;
-}
-
-TapiResult_t deregister_all() {
-       TapiResult_t api_err = -1;
-
-       api_err = tel_deregister_event(subscription_id[0]);
-       api_err = tel_deregister_event(subscription_id[1]);
-       return api_err;
-
-}
diff --git a/TC/telephony_TC/power/unit/power_common.h b/TC/telephony_TC/power/unit/power_common.h
deleted file mode 100644 (file)
index ecbb8dc..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef _POWER_COMMON_H_
-#define _POWER_COMMON_H_
-
-#include <stdlib.h>
-#include <signal.h>
-#include <errno.h>
-#include "string.h"
-#include "assert.h"
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <glib.h>
-#include <pthread.h>
-#include <stdio.h>
-
-#include <TapiEvent.h>
-#include <ITapiPower.h>
-#include <TelPower.h>
-#include <tet_api.h>
-#include "tet_macro.h"
-#include <TapiCommon.h>
-
-#define TIME_DELAY 5000
-#define TEST_DEBUG(fmt, args...)       \
-       printf("[%s %s:%d]\n" fmt "\n",__FILE__, __FUNCTION__,  __LINE__, ##args); 
-
-
-#ifndef false
-       #define false 0
-#endif
-#ifndef true
-       #define true  !0
-#endif
-#ifndef bool    
-       #define bool  char
-#endif
-
-extern void  power_app_callback  (TelTapiEvent_t *TapiEvent);
-void print_events(int event);
-extern TapiResult_t register_all_events();
-extern TapiResult_t deregister_all();
-extern void G_MAIN_LOOP_CLOSE();
-extern int G_MAIN_LOOP_RUN(int);
-
-
-#define TET_CHECK_TEMP(x1, y...) \
-do { \
-   TapiResult_t err = y;\
-   if (err != (x1)) \
-       { \
-       tet_printf("[line %d] Expected Result: %d  Actual Result: %d",__LINE__, x1,y); \
-               tet_result(TET_FAIL); \
-               return;\
-       } \
- } while(0)
-
-
-#endif  //_POWER_COMMON_H_
diff --git a/TC/telephony_TC/power/unit/tet_macro.h b/TC/telephony_TC/power/unit/tet_macro.h
deleted file mode 100644 (file)
index 9c5909e..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef TET_MACRO_H
-#define TET_MACRO_H
-
-#define TET_CHECK(x) if(x) tet_result(TET_PASS); else tet_result(TET_FAIL)
-#define TET_CHECK_EQUAL(x,y) if ((x)==(y)) tet_result(TET_PASS);  else tet_result(TET_FAIL)
-#define TET_CHECK_NOT_EQUAL(x,y) if ((x)!=(y)) tet_result(TET_PASS);  else tet_result(TET_FAIL)
-
-#define TET_CHECK_MESSAGE(x,y) if ((y)==(TRUE)) tet_result(TET_PASS); else {tet_result(TET_FAIL); tet_printf(x);} 
-#define TET_CHECK_EQUAL_MESSAGE(x,y,z) if ((y)==(z)) tet_result(TET_PASS);  else {tet_result(TET_FAIL); tet_printf(x);}
-#define TET_CHECK_NOT_EQUAL_MESSAGE(x,y,z) if ((y)!=(z)) tet_result(TET_PASS);  else {tet_result(TET_FAIL); tet_printf(x);}
-
-#endif
diff --git a/TC/telephony_TC/power/unit/tslist b/TC/telephony_TC/power/unit/tslist
deleted file mode 100644 (file)
index 2a67ad5..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#/power/unit/uts_tel_process_power_command
-#/power/unit/uts_tapi_power_get_phone_power_status
-/power/unit/uts_tel_set_flight_mode
-/power/unit/uts_tapi_power_reboot_modem
-#/power/unit/uts_tapi_display_get_icon_info
-#/power/unit/uts_tapi_power_battery_compansation_set
-#/power/unit/uts_tapi_power_charger_indication_set
-
diff --git a/TC/telephony_TC/power/unit/uts_tapi_display_get_icon_info.c b/TC/telephony_TC/power/unit/uts_tapi_display_get_icon_info.c
deleted file mode 100644 (file)
index 7e6c0b6..0000000
+++ /dev/null
@@ -1,321 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include "uts_tapi_display_get_icon_info.h"
-
-
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tapi_display_get_icon_info_00, 1},
-       {utc_tapi_display_get_icon_info_01, 2},
-       {utc_tapi_display_get_icon_info_02, 3},
-       {utc_tapi_display_get_icon_info_03, 4},
-       {utc_tapi_display_get_icon_info_04, 5},
-       {NULL, 0}
-       };
-
-extern int expected_event;
-extern bool async_response;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-
-
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)      
-               {       
-                       printf("TelTapiInit() Failed ret_status = %d \n",ret_status);   
-               }
-
-       register_all_events();
-
-       tel_register_app_name("org.samsung.test");
-}
-
-static void cleanup()
-{
-       TapiResult_t  ret_status ;
-
-       deregister_all();       
-       ret_status = tel_deinit();
-
-       
-       if(ret_status != TAPI_API_SUCCESS)      
-       {       
-               printf("TelTapiDeInit() Failed ret_status = %d \n",ret_status); 
-       }
-}
-
-
-
-
-
-/**
- * @brief This tests 
- * @par ID: utc_tapi_display_get_icon_info_00
- * @param [in]  tapi_display_get_icon_req_type_t
- * @code       
- * @endcode
- * @return TapiResult_t
-*/     
-
-
-void utc_tapi_display_get_icon_info_00()
-{
-
-
-               TEST_DEBUG("\n TEST utc_tapi_display_get_icon_info_00 \n");
-               
-               TapiResult_t  ret_status ;
-
-               async_response = false;//initialize
-               
-               ret_status = tapi_display_get_icon_info(TAPI_DISPLAY_GET_ICON_RSSI);
-               
-               printf("/n return value = %d\n",ret_status);
-               
-               if(TAPI_API_SUCCESS == ret_status)
-               {
-                       printf("/n/******************  get icon  info api successful **************************\\n");
-               }
-               else
-               {
-                       printf("/n/******************    get icon  info api   case  failed **************************\\n");
-               }
-
-               TET_CHECK_EQUAL(TAPI_API_SUCCESS, ret_status);
-               tet_infoline("utc_tapi_display_get_icon_info_00 pass");
-               expected_event = TAPI_EVENT_DISPLAY_ICON_INFO_IND;
-               printf("The expected_event is TAPI_EVENT_DISPLAY_ICON_INFO_IND(%d)\n",expected_event);
-
-               printf("\n\n value of asyn_response %d",async_response);
-               G_MAIN_LOOP_RUN(10);
-               tet_result(TET_PASS);
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tapi_display_get_icon_info_00 ENDS    ###########\n");
-
-
-}
-
-
-
-/**
- * @brief This tests 
- * @par ID: utc_tapi_display_get_icon_info_01
- * @param [in]  tapi_display_get_icon_req_type_t
- * @code       
- * @endcode
- * @return TapiResult_t
-*/     
-
-
-void utc_tapi_display_get_icon_info_01()
-{
-
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tapi_display_get_icon_info_01 START    ###########\n");
-               
-               TapiResult_t  ret_status ;
-
-               async_response = false;//initialize
-               
-               ret_status = tapi_display_get_icon_info(TAPI_DISPLAY_GET_ICON_ACT);
-               
-               printf("/n return value = %d\n",ret_status);
-               
-               if(TAPI_API_SUCCESS == ret_status)
-               {
-                       printf("/n/******************  get icon  info api successful **************************\\n");
-               }
-               else
-               {
-                       printf("/n/******************    get icon  info api   case  failed **************************\\n");
-               }
-
-               TET_CHECK_EQUAL(TAPI_API_SUCCESS, ret_status);
-               tet_infoline("utc_tapi_display_get_icon_info_01 pass");
-               expected_event = TAPI_EVENT_DISPLAY_ICON_INFO_IND;
-               printf("The expected_event is TAPI_EVENT_DISPLAY_ICON_INFO_IND(%d)\n",expected_event);
-
-               printf("\n\n value of asyn_response %d",async_response);
-               G_MAIN_LOOP_RUN(10);
-               tet_result(TET_PASS);
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tapi_display_get_icon_info_01 ENDS    ###########\n");
-
-}
-
-
-
-/**
- * @brief This tests 
- * @par ID: utc_tapi_display_get_icon_info_02
- * @param [in]  tapi_display_get_icon_req_type_t
- * @code       
- * @endcode
- * @return TapiResult_t
-*/     
-
-
-void utc_tapi_display_get_icon_info_02()
-{
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tapi_display_get_icon_info_02 START    ###########\n");
-               
-               TapiResult_t  ret_status ;
-
-               async_response = false;//initialize
-               
-               ret_status = tapi_display_get_icon_info(TAPI_DISPLAY_GET_ICON_ALL);
-               
-               printf("/n return value = %d\n",ret_status);
-               
-               if(TAPI_API_SUCCESS == ret_status)
-               {
-                       printf("/n/******************  get icon  info api successful **************************\\n");
-               }
-               else
-               {
-                       printf("/n/******************    get icon  info api   case  failed **************************\\n");
-               }
-
-               TET_CHECK_EQUAL(TAPI_API_SUCCESS, ret_status);
-               tet_infoline("utc_tapi_display_get_icon_info_02 pass");
-               expected_event = TAPI_EVENT_DISPLAY_ICON_INFO_IND;
-               printf("The expected_event is TAPI_EVENT_DISPLAY_ICON_INFO_IND(%d)\n",expected_event);
-
-               printf("\n\n value of asyn_response %d",async_response);
-               G_MAIN_LOOP_RUN(10);
-               tet_result(TET_PASS);
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tapi_display_get_icon_info_02 ENDS    ###########\n");
-
-
-
-}
-
-
-
-
-
-/**
- * @brief This tests 
- * @par ID: utc_tapi_display_get_icon_info_03
- * @param [in]  tapi_display_get_icon_req_type_t
- * @code       
- * @endcode
- * @return TapiResult_t
-*/     
-
-
-void utc_tapi_display_get_icon_info_03()
-{
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tapi_display_get_icon_info_03 START    ###########\n");
-               
-               TapiResult_t  ret_status ;
-
-               async_response = false;//initialize
-               
-               ret_status = tapi_display_get_icon_info(TAPI_DISPLAY_GET_ICON_RSSI - 1);
-               
-               printf("/n return value = %d\n",ret_status);
-               
-               if(TAPI_API_INVALID_INPUT == ret_status)
-               {
-                       printf("/n/******************  get icon  info api invalid input case successful **************************\\n");
-               }
-               else
-               {
-                       printf("/n/******************    get icon  info api invalid input case failed **************************\\n");
-               }
-
-               TET_CHECK_EQUAL(TAPI_API_INVALID_INPUT, ret_status);
-               tet_infoline("utc_tapi_display_get_icon_info_03 pass");
-expected_event = TAPI_EVENT_DISPLAY_ICON_INFO_IND;
-printf("The expected_event is TAPI_EVENT_DISPLAY_ICON_INFO_IND(%d)\n",expected_event);
-
-G_MAIN_LOOP_RUN(10);
-tet_result(TET_PASS);
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tapi_display_get_icon_info_03 ENDS    ###########\n");
-
-
-}
-
-
-
-
-
-/**
- * @brief This tests 
- * @par ID: utc_tapi_display_get_icon_info_04
- * @param [in]  tapi_display_get_icon_req_type_t
- * @code       
- * @endcode
- * @return TapiResult_t
-*/     
-
-
-void utc_tapi_display_get_icon_info_04()
-{
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tapi_display_get_icon_info_04 START    ###########\n");
-               
-               TapiResult_t  ret_status ;
-
-               async_response = false;//initialize
-               
-               ret_status = tapi_display_get_icon_info(TAPI_DISPLAY_GET_ICON_ALL + 1);
-               
-               printf("/n return value = %d\n",ret_status);
-               
-               if(TAPI_API_INVALID_INPUT == ret_status)
-               {
-                       printf("/n/******************  get icon  info api invalid input case successful **************************\\n");
-               }
-               else
-               {
-                       printf("/n/******************    get icon  info api invalid input case failed **************************\\n");
-               }
-
-               TET_CHECK_EQUAL(TAPI_API_INVALID_INPUT, ret_status);
-               tet_infoline("utc_tapi_display_get_icon_info_04 pass");
-       expected_event = TAPI_EVENT_DISPLAY_ICON_INFO_IND;
-       printf("The expected_event is TAPI_EVENT_DISPLAY_ICON_INFO_IND(%d)\n",expected_event);
-
-G_MAIN_LOOP_RUN(10);
-       tet_result(TET_PASS);
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tapi_display_get_icon_info_04 ENDS    ###########\n");
-
-
-
-}
-
-
-
-
-
-/** @} */
diff --git a/TC/telephony_TC/power/unit/uts_tapi_display_get_icon_info.h b/TC/telephony_TC/power/unit/uts_tapi_display_get_icon_info.h
deleted file mode 100644 (file)
index e067040..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-
-/**
-* @file    uts_tapi_display_get_icon_info.h
-* @brief       This is a suite of unit test cases to test Telephony Power API function
-* @author      Sagar Aggarwal  (a.sagar@samsung.com)
-* @version     Initial Creation 
-* @date                [2009-05-13]
-*/
-
-
-
-#include "power_common.h"
-
-
-#ifndef  _UTC_TAPI_POWER_DISPLAY_GET_INFO_
-#define  _UTC_TAPI_POWER_DISPLAY_GET_INFO_
-
-
-void utc_tapi_display_get_icon_info_00();
-
-void utc_tapi_display_get_icon_info_01();
-
-void utc_tapi_display_get_icon_info_02();
-
-void utc_tapi_display_get_icon_info_03();
-
-void utc_tapi_display_get_icon_info_04();
-
-static void startup();
-
-static void cleanup();
-
-
-
-
-#endif  //_UTC_TAPI_POWER_DISPLAY_GET_INFO_
diff --git a/TC/telephony_TC/power/unit/uts_tapi_power_get_phone_power_status.c b/TC/telephony_TC/power/unit/uts_tapi_power_get_phone_power_status.c
deleted file mode 100644 (file)
index c8a70b2..0000000
+++ /dev/null
@@ -1,202 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/** 
-* @ingroup Telephony_API TelephonyAPI
-* @addtogroup POWER power
-*/
-
-/**
-* @ingroup  POWER power
-* @addtogroup UTS_POWER Unit
-*/
-
-/**
-* @ingroup  UTS_POWER Unit
-* @addtogroup UTS_TAPI_POWER_GET_PHONE_POWER_STATUS tapi_power_get_phone_power_status
-* @{
-*/
-
-
-
-/**
-* @file    tapi_power_get_phone_power_status.c
-* @brief       This is a suite of unit test cases to test Telephony power API function
-* @author      Sagar Aggarwal  (a.sagar@samsung.com)
-* @version     Initial Creation 
-* @date                [2009-05-13]
-*/
-
-
-//add includes
-
-
-#include "uts_tapi_power_get_phone_power_status.h"
-
-
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-
-extern TelTapiEventType_t expected_event;
-extern bool async_response;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-
-
-       ret_status = TelTapiInit();
-
-       if(ret_status != TAPI_API_SUCCESS)      
-               {       
-                       printf("TelTapiInit() Failed ret_status = %d \n",ret_status);   
-               }
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-
-}
-
-static void cleanup()
-{
-       TapiResult_t  ret_status ;
-
-       deregister_all();       
-       ret_status = TelTapiDeInit();
-
-       
-       if(ret_status != TAPI_API_SUCCESS)      
-       {       
-               printf("TelTapiDeInit() Failed ret_status = %d \n",ret_status); 
-       }
-}
-
-
-
-
-
-/**
- * @brief This tests 
- * @par ID: UTC_TAPI_POWER_GET_PHONE_POWER_STATUS_00
- * @param [out]  tapi_power_phone_power_status_t
- * @code       
- * @endcode
- * @return TapiResult_t
-*/     
-
-
-void utc_tapi_power_get_phone_power_status_00()
-{
-
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tapi_power_get_phone_power_status_00 START    ###########\n");
-               
-               TapiResult_t  ret_status ;
-
-               async_response = false;//initialize
-               tapi_power_phone_power_status_t status = 0; 
-       
-               ret_status = tapi_power_get_phone_power_status(&status);
-               
-               printf("/n return value = %d\n",ret_status);
-               
-               if(TAPI_API_SUCCESS == ret_status)
-               {
-                       printf("/n/******************  get power mode api successfully **************************\\n");
-               }
-               else
-               {
-                       printf("/n/******************    get power mode api  not started **************************\\n");
-               }
-
-               TET_CHECK_EQUAL(TAPI_API_SUCCESS, ret_status);
-               tet_infoline("utc_tapi_power_get_phone_power_status_00 pass");
-               expected_event = TAPI_EVENT_POWER_BATT_STAT_IND;
-               printf("The expected_event is TAPI_EVENT_POWER_BATT_STAT_IND(%d)\n",expected_event);
-
-               printf("\n\n value of asyn_response %d",async_response);
-               G_MAIN_LOOP_RUN(10);
-       //      TET_CHECK_TEMP(true, async_response);   
-               tet_result(TET_PASS);
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tapi_power_get_phone_power_status_00 ENDS    ###########\n");
-
-
-
-}
-
-
-
-/**
- * @brief This tests 
- * @par ID: UTC_TAPI_POWER_GET_PHONE_POWER_STATUS_01
- * @param [out]  tapi_power_phone_power_status_t
- * @code       
- * @endcode
- * @return TapiResult_t
-*/     
-
-
-void utc_tapi_power_get_phone_power_status_01()
-{
-
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tapi_power_get_phone_power_status_01 START    ###########\n");
-               
-               TapiResult_t  ret_status ;
-
-               async_response = false;//initialize
-               tapi_power_phone_power_status_t status = 0; 
-       
-               ret_status = tapi_power_get_phone_power_status(NULL);
-               
-               printf("/n return value = %d\n",ret_status);
-               
-               if(TAPI_API_INVALID_PTR == ret_status)
-               {
-                       printf("/n/******************  get power mode api null case successful **************************\\n");
-               }
-               else
-               {
-                       printf("/n/******************    get power mode api  null case  failed **************************\\n");
-               }
-
-               TET_CHECK_EQUAL(TAPI_API_INVALID_PTR, ret_status);
-               tet_infoline("utc_tapi_power_get_phone_power_status_01 pass");
-       //      expected_event = TAPI_EVENT_POWER_BATT_STAT_IND;
-       //      printf("The expected_event is TAPI_EVENT_POWER_BATT_STAT_IND(%d)\n",expected_event);
-
-               //G_MAIN_LOOP_RUN(10);
-               //TET_CHECK_TEMP(true, async_response); 
-               //tet_result(TET_PASS);
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tapi_power_get_phone_power_status_01 ENDS    ###########\n");
-
-
-}
-
-
-
-
-
-
-/** @} */
diff --git a/TC/telephony_TC/power/unit/uts_tapi_power_get_phone_power_status.h b/TC/telephony_TC/power/unit/uts_tapi_power_get_phone_power_status.h
deleted file mode 100644 (file)
index 9ed556d..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
-* @file    uts_tapi_power_get_phone_power_status.h
-* @brief       This is a suite of unit test cases to test Telephony power API function
-* @author      Sagar Aggarwal  (a.sagar@samsung.com)
-* @version     Initial Creation 
-* @date                [2009-05-13]
-*/
-
-
-
-#include "power_common.h"
-#include <TapiCommon.h>
-
-#ifndef  _UTC_TAPI_POWER_STATUS_
-#define  _UTC_TAPI_POWER_STATUS_
-
-
-
-void utc_tapi_power_get_phone_power_status_00();
-
-void utc_tapi_power_get_phone_power_status_01();
-
-
-static void startup();
-
-static void cleanup();
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tapi_power_get_phone_power_status_00, 1},
-       {utc_tapi_power_get_phone_power_status_01, 2},
-       {NULL, 0}
-       };
-
-
-
-#endif  //_UTC_TAPI_POWER_STATUS_
diff --git a/TC/telephony_TC/power/unit/uts_tapi_power_reboot_modem.c b/TC/telephony_TC/power/unit/uts_tapi_power_reboot_modem.c
deleted file mode 100644 (file)
index 85fec1f..0000000
+++ /dev/null
@@ -1,154 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/** 
-* @ingroup Telephony_API TelephonyAPI
-* @addtogroup POWER power
-*/
-
-/**
-* @ingroup  POWER power
-* @addtogroup UTS_POWER Unit
-*/
-
-/**
-* @ingroup  UTS_POWER Unit
-* @addtogroup UTS_TAPI_POWER_FLIGHT_MODE tapi_power_flight_mode
-* @{
-*/
-
-
-
-//add includes
-
-
-#include "uts_tapi_power_reboot_modem.h"
-
-
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-
-extern int expected_event;
-extern bool async_response;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-
-
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)      
-               {       
-                       printf("TelTapiInit() Failed ret_status = %d \n",ret_status);   
-               }
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-
-}
-
-static void cleanup()
-{
-       TapiResult_t  ret_status ;
-
-       deregister_all();       
-       ret_status = tel_deinit();
-
-       
-       if(ret_status != TAPI_API_SUCCESS)      
-       {       
-               printf("TelTapiDeInit() Failed ret_status = %d \n",ret_status); 
-       }
-}
-
-
-
-
-void utc_tapi_power_reboot_modem_01()
-{
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tapi_reboot_modem_01 START    ###########\n");
-               
-               TapiResult_t  ret_status ;
-
-               async_response = false;//initialize
-               
-               ret_status = tel_reset_modem();
-               
-               printf("/n return value = %d\n",ret_status);
-               
-               if(TAPI_API_SUCCESS == ret_status)
-               {
-                       printf("/n/******************  reboot modem api successful **************************\\n");
-               }
-               else
-               {
-                       printf("/n/******************   reboot modem api  case  failed **************************\\n");
-               }
-
-               TET_CHECK_EQUAL(TAPI_API_SUCCESS, ret_status);
-               tet_infoline("utc_tapi_power_reboot_modem pass");
-
-               G_MAIN_LOOP_RUN(10);
-               //TET_CHECK_TEMP(true, async_response); 
-               tet_result(TET_PASS);
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tapi_power_reboot_modem 01 ENDS    ###########\n");
-
-
-}
-
-void utc_tapi_power_reboot_modem_02()
-{
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tapi_reboot_modem_02 START    ###########\n");
-               
-               TapiResult_t  ret_status ;
-
-               async_response = false;//initialize
-               tel_init();     
-       //Calling rebooting of Modem after DeInitializing of Tapi       
-               ret_status = tel_reset_modem();
-               
-               printf("/n return value = %d\n",ret_status);
-               
-               if(TAPI_API_SUCCESS != ret_status)
-               {
-                       printf("/n/******************  reboot modem invalid api successful **************************\\n");
-               }
-               else
-               {
-                       printf("/n/******************   reboot modem api  case  failed **************************\\n");
-               }
-
-               TET_CHECK_EQUAL(TAPI_API_SUCCESS, ret_status);
-               tet_infoline("utc_tapi_power_reboot_modem pass");
-
-               G_MAIN_LOOP_RUN(10);
-               //TET_CHECK_TEMP(true, async_response); 
-               tet_result(TET_PASS);
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tapi_power_reboot_modem 01 ENDS    ###########\n");
-
-
-}
diff --git a/TC/telephony_TC/power/unit/uts_tapi_power_reboot_modem.h b/TC/telephony_TC/power/unit/uts_tapi_power_reboot_modem.h
deleted file mode 100644 (file)
index 8d4af3b..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "power_common.h"
-
-
-#ifndef  _UTC_TAPI_POWER_REBOOT_MODEM_
-#define  _UTC_TAPI_POWER_REBOOT_MODEM_
-
-
-void utc_tapi_power_reboot_modem_01();
-void utc_tapi_power_reboot_modem_02();
-
-
-static void startup();
-
-static void cleanup();
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tapi_power_reboot_modem_01, 1},
-       {utc_tapi_power_reboot_modem_02, 2},
-       {NULL, 0}
-       };
-
-
-
-#endif  //_UTC_TAPI_POWER_FLIGHT_MODE_
diff --git a/TC/telephony_TC/power/unit/uts_tel_process_power_command.c b/TC/telephony_TC/power/unit/uts_tel_process_power_command.c
deleted file mode 100644 (file)
index a7ce88d..0000000
+++ /dev/null
@@ -1,309 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/** 
-* @ingroup Telephony_API TelephonyAPI
-* @addtogroup POWER power
-*/
-
-/**
-* @ingroup  POWER power
-* @addtogroup UTS_POWER Unit
-*/
-
-/**
-* @ingroup  UTS_POWER Unit
-* @addtogroup UTS_tel_process_power_command tel_process_power_command
-* @{
-*/
-
-
-
-/**
-* @file    uts_tel_process_power_command.c
-* @brief       This is a suite of unit test cases to test Telephony power API function
-* @author      Sagar Aggarwal  (a.sagar@samsung.com)
-* @version     Initial Creation 
-* @date                [2009-05-13]
-*/
-
-
-
-//add includes
-
-
-#include "uts_tel_process_power_command.h"
-
-#include "/usr/include/telephony/sec-ext/tapi/include/ITapiPower.h"
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-
-extern int expected_event;
-extern bool async_response;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-
-
-       ret_status = tel_init();
-
-       if(ret_status != TAPI_API_SUCCESS)      
-               {       
-                       printf("TelTapiInit() Failed ret_status = %d \n",ret_status);   
-               }
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-
-}
-
-static void cleanup()
-{
-       TapiResult_t  ret_status ;
-
-       deregister_all();       
-       ret_status = tel_deinit();
-
-       
-       if(ret_status != TAPI_API_SUCCESS)      
-       {       
-               printf("TelTapiDeInit() Failed ret_status = %d \n",ret_status); 
-       }
-}
-
-
-
-/**
- * @brief This tests 
- * @par ID: UTS_tel_process_power_command_00
- * @param [in]  tapi_power_phone_cmd_t
- * @code       
- * @endcode
- * @return TapiResult_t
-*/     
-
-
-void utc_tel_process_power_command_00()
-{
-
-
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tel_process_power_command_00 START    ###########\n");
-               
-               TapiResult_t  ret_status ;
-
-               async_response = false;//initialize
-
-       
-               ret_status = tel_process_power_command(TAPI_PHONE_POWER_OFF);
-               
-               printf("/n return value = %d\n",ret_status);
-               
-               if(TAPI_API_SUCCESS == ret_status)
-               {
-                       printf("/n/******************  power on off mode Started successfully **************************\\n");
-               }
-               else
-               {
-                       printf("/n/******************   power on off  mode not started **************************\\n");
-               }
-
-               TET_CHECK_EQUAL(TAPI_API_SUCCESS, ret_status);
-               tet_infoline("utc_tel_process_power_command_00 pass");
-               expected_event = TAPI_EVENT_POWER_PHONE_OFF;
-               printf("The expected_event is TAPI_EVENT_POWER_PHONE_OFF(%d)\n",expected_event);
-
-               printf("\n\n value of asyn_response %d",async_response);
-               G_MAIN_LOOP_RUN(10);
-               //TET_CHECK_TEMP(true, async_response); 
-               tet_result(TET_PASS);
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tel_process_power_command_00 ENDS    ###########\n");
-
-
-
-}
-
-
-
-/**
- * @brief This tests 
- * @par ID: UTS_tel_process_power_command_01
- * @param [in]  tapi_power_phone_cmd_t
- * @code       
- * @endcode
- * @return TapiResult_t
-*/     
-
-
-void utc_tel_process_power_command_01()
-{
-
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tel_process_power_command_01 START    ###########\n");
-               
-               TapiResult_t  ret_status ;
-
-               async_response = false;//initialize
-
-               tel_process_power_command(TAPI_PHONE_POWER_OFF);
-               sleep(5);
-               ret_status = tel_process_power_command(TAPI_PHONE_POWER_ON);
-               
-               printf("/n return value = %d\n",ret_status);
-               
-               if(TAPI_API_SUCCESS == ret_status  ||  TAPI_API_MODEM_ALREADY_ON == ret_status)
-               {
-                       printf("/n/******************  power on off mode Started successfully **************************\\n");
-                       tet_result(TET_PASS);
-               }
-               else
-               {
-                       printf("/n/******************   power on off  mode not started **************************\\n");
-               }
-
-               TET_CHECK_EQUAL(TAPI_API_SUCCESS, ret_status);
-               tet_infoline("utc_tel_process_power_command_01 pass");
-               expected_event = TAPI_EVENT_POWER_PHONE_OFF;
-               printf("The expected_event is TAPI_EVENT_POWER_PHONE_OFF(%d)\n",expected_event);
-               printf("\n\n value of asyn_response %d",async_response);
-
-               G_MAIN_LOOP_RUN(10);
-       //      TET_CHECK_TEMP(true, async_response);   
-               tet_result(TET_PASS);
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tel_process_power_command_01 ENDS    ###########\n");
-
-
-
-}
-
-
-
-
-/**
- * @brief This tests 
- * @par ID: UTS_tel_process_power_command_02
- * @param [in]  tapi_power_phone_cmd_t
- * @code       
- * @endcode
- * @return TapiResult_t
-*/     
-
-
-void utc_tel_process_power_command_02()
-{
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tel_process_power_command_02 START    ###########\n");
-               
-               TapiResult_t  ret_status ;
-
-               async_response = false;//initialize
-
-       
-               ret_status = tel_process_power_command(TAPI_PHONE_POWER_OFF -1);
-               
-               printf("/n return value = %d\n",ret_status);
-               
-               if(TAPI_API_INVALID_INPUT == ret_status)
-               {
-                       printf("/n/******************  power on off mode invalid input pass **************************\\n");
-               }
-               else
-               {
-                       printf("/n/******************   power on off  mode  invalid input case failed  **************************\\n");
-               }
-
-               TET_CHECK_EQUAL(TAPI_API_INVALID_INPUT, ret_status);
-               tet_infoline("utc_tel_process_power_command_02 pass");
-               //expected_event = TAPI_EVENT_POWER_PHONE_OFF;
-               //printf("The expected_event is TAPI_EVENT_POWER_PHONE_OFF(%d)\n",expected_event);
-
-               //G_MAIN_LOOP_RUN(10);
-               //TET_CHECK_TEMP(true, async_response); 
-               //tet_result(TET_PASS);
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tel_process_power_command_02 ENDS    ###########\n");
-
-
-
-}
-
-
-
-
-/**
- * @brief This tests 
- * @par ID: UTS_tel_process_power_command_03
- * @param [in]  tapi_power_phone_cmd_t
- * @code       
- * @endcode
- * @return TapiResult_t
-*/     
-
-
-void utc_tel_process_power_command_03()
-{
-
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tel_process_power_command_03 START    ###########\n");
-               
-               TapiResult_t  ret_status ;
-
-               async_response = false;//initialize
-
-       
-               ret_status = tel_process_power_command(TAPI_PHONE_POWER_ON +1);
-               
-               printf("/n return value = %d\n",ret_status);
-               
-               if(TAPI_API_INVALID_INPUT == ret_status)
-               {
-                       printf("/n/******************  power on off mode invalid input pass **************************\\n");
-               }
-               else
-               {
-                       printf("/n/******************   power on off  mode  invalid input case failed  **************************\\n");
-               }
-
-               TET_CHECK_EQUAL(TAPI_API_INVALID_INPUT, ret_status);
-               tet_infoline("utc_tel_process_power_command_03 pass");
-               //expected_event = TAPI_EVENT_POWER_PHONE_OFF;
-               //printf("The expected_event is TAPI_EVENT_POWER_PHONE_OFF(%d)\n",expected_event);
-
-               //G_MAIN_LOOP_RUN(10);
-               //TET_CHECK_TEMP(true, async_response); 
-               //tet_result(TET_PASS);
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tel_process_power_command_03 ENDS    ###########\n");
-
-
-
-}
-
-
-
-
-
-
-/** @} */
diff --git a/TC/telephony_TC/power/unit/uts_tel_process_power_command.h b/TC/telephony_TC/power/unit/uts_tel_process_power_command.h
deleted file mode 100644 (file)
index c581f1d..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
-* @file    uts_tel_process_power_command.h
-* @brief       This is a suite of unit test cases to test Telephony power API function
-* @author      Sagar Aggarwal  (a.sagar@samsung.com)
-* @version     Initial Creation 
-* @date                [2009-05-13]
-*/
-
-
-
-#include "power_common.h"
-
-
-#ifndef  _UTC_TAPI_POWER_ONOFF_
-#define  _UTC_TAPI_POWER_ONOFF_
-
-
-
-void utc_tel_process_power_command_00();
-
-
-
-void utc_tel_process_power_command_01();
-
-
-
-void utc_tel_process_power_command_02();
-
-
-
-void utc_tel_process_power_command_03();
-
-static void startup();
-
-static void cleanup();
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_process_power_command_00, 1},
-       {utc_tel_process_power_command_01, 2},
-       {utc_tel_process_power_command_02, 3},
-       {utc_tel_process_power_command_03, 4},
-       {NULL, 0}
-       };
-
-
-
-#endif  //_UTC_TAPI_POWER_ONOFF_
diff --git a/TC/telephony_TC/power/unit/uts_tel_set_flight_mode.c b/TC/telephony_TC/power/unit/uts_tel_set_flight_mode.c
deleted file mode 100644 (file)
index f04aff0..0000000
+++ /dev/null
@@ -1,253 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/** 
- * @ingroup Telephony_API TelephonyAPI
- * @addtogroup POWER power
- */
-
-/**
- * @ingroup  POWER power
- * @addtogroup UTS_POWER Unit
- */
-
-/**
- * @ingroup  UTS_POWER Unit
- * @addtogroup UTS_TAPI_POWER_FLIGHT_MODE tel_set_flight_mode
- * @{
- */
-
-/**
- * @file    uts_tel_set_flight_mode.c
- * @brief      This is a suite of unit test cases to test Telephony power API function
- * @author     Sagar Aggarwal  (a.sagar@samsung.com)
- * @version    Initial Creation
- * @date               [2009-05-13]
- */
-
-#include "uts_tel_set_flight_mode.h"
-#include "ITapiPower.h"
-
-void (*tet_startup)() = startup;
-void (*tet_cleanup)() = cleanup;
-
-extern int expected_event;
-extern bool async_response;
-
-static void startup() {
-       TapiResult_t ret_status;
-
-       ret_status = tel_init();
-
-       if (ret_status != TAPI_API_SUCCESS) {
-               printf("TelTapiInit() Failed ret_status = %d \n", ret_status);
-       }
-
-       register_all_events();
-       tel_register_app_name("org.samsung.test");
-
-}
-
-static void cleanup() {
-       TapiResult_t ret_status;
-
-       deregister_all();
-       ret_status = tel_deinit();
-
-       if (ret_status != TAPI_API_SUCCESS) {
-               printf("TelTapiDeInit() Failed ret_status = %d \n", ret_status);
-       }
-}
-
-/**
- * @brief This tests 
- * @par ID: UTC_TAPI_POWER_FLIGHT_MODE_00
- * @param [in]  tel_set_flight_mode_type_t
- * @code       
- * @endcode
- * @return TapiResult_t
- */
-
-void utc_tel_set_flight_mode_00() {
-
-       TEST_DEBUG("\n\n\n\n\n########     TEST utc_tel_set_flight_mode_00 START    ###########\n");
-
-       TapiResult_t ret_status;
-
-       async_response = false;//initialize
-
-       ret_status = tel_set_flight_mode(TAPI_POWER_FLIGHT_MODE_ENTER);
-
-       printf("/n return value = %d\n", ret_status);
-
-       if (TAPI_API_SUCCESS == ret_status) {
-               printf(
-                               "/n/******************  set flight mode api successful **************************\\n");
-       } else {
-               printf(
-                               "/n/******************     set flight mode api  case  failed **************************\\n");
-       }
-
-       TET_CHECK_EQUAL(TAPI_API_SUCCESS, ret_status)
-               ;
-       tet_infoline("utc_tel_set_flight_mode_00 pass");
-       expected_event = TAPI_EVENT_POWER_FLIGHT_MODE_RESP;
-       printf("The expected_event is TAPI_EVENT_POWER_FLIGHT_MODE_RESP(%d)\n",
-                       expected_event);
-
-       printf("\n\n value of asyn_response %d", async_response);
-       G_MAIN_LOOP_RUN(10);
-       //TET_CHECK_TEMP(true, async_response);
-       tet_result(TET_PASS);
-
-       TEST_DEBUG("\n\n\n\n\n########     TEST utc_tel_set_flight_mode_00 ENDS    ###########\n");
-
-}
-
-/**
- * @brief This tests 
- * @par ID: UTC_TAPI_POWER_FLIGHT_MODE_01
- * @param [in]  tel_set_flight_mode_type_t
- * @code       
- * @endcode
- * @return TapiResult_t
- */
-
-void utc_tel_set_flight_mode_01() {
-
-       TEST_DEBUG("\n\n\n\n\n########     TEST utc_tel_set_flight_mode_01 START    ###########\n");
-
-       TapiResult_t ret_status;
-
-       async_response = false;//initialize
-
-       ret_status = tel_set_flight_mode(TAPI_POWER_FLIGHT_MODE_LEAVE);
-
-       printf("/n return value = %d\n", ret_status);
-
-       if (TAPI_API_SUCCESS == ret_status) {
-               printf(
-                               "/n/******************  set flight mode api successful **************************\\n");
-       } else {
-               printf(
-                               "/n/******************     set flight mode api  case  failed **************************\\n");
-       }
-
-       TET_CHECK_EQUAL(TAPI_API_SUCCESS, ret_status)
-               ;
-       tet_infoline("utc_tel_set_flight_mode_01 pass");
-       expected_event = TAPI_EVENT_POWER_FLIGHT_MODE_RESP;
-       printf("The expected_event is TAPI_EVENT_POWER_FLIGHT_MODE_RESP(%d)\n",
-                       expected_event);
-
-       printf("\n\n value of asyn_response %d", async_response);
-       G_MAIN_LOOP_RUN(10);
-       //      TET_CHECK_TEMP(true, async_response);   
-       tet_result(TET_PASS);
-
-       TEST_DEBUG("\n\n\n\n\n########     TEST utc_tel_set_flight_mode_01 ENDS    ###########\n");
-
-}
-
-/**
- * @brief This tests 
- * @par ID: UTC_TAPI_POWER_FLIGHT_MODE_02
- * @param [in]  tel_set_flight_mode_type_t
- * @code       
- * @endcode
- * @return TapiResult_t
- */
-
-void utc_tel_set_flight_mode_02() {
-
-       TEST_DEBUG("\n\n\n\n\n########     TEST utc_tel_set_flight_mode_02 START    ###########\n");
-
-       TapiResult_t ret_status;
-
-       async_response = false;//initialize
-
-       ret_status = tel_set_flight_mode(TAPI_POWER_FLIGHT_MODE_MAX);
-
-       printf("/n return value = %d\n", ret_status);
-
-       if (TAPI_API_INVALID_INPUT == ret_status) {
-               printf(
-                               "/n/******************  set flight mode api invalid input case successful **************************\\n");
-       } else {
-               printf(
-                               "/n/******************     set flight mode api  invalid input case  failed **************************\\n");
-       }
-
-       TET_CHECK_EQUAL(TAPI_API_INVALID_INPUT, ret_status)
-               ;
-       tet_infoline("utc_tel_set_flight_mode_02 pass");
-       //expected_event = TAPI_EVENT_POWER_FLIGHT_MODE_RESP;
-       //printf("The expected_event is TAPI_EVENT_POWER_FLIGHT_MODE_RESP(%d)\n",expected_event);
-
-       //G_MAIN_LOOP_RUN(10);
-       //TET_CHECK_TEMP(true, async_response);
-       //tet_result(TET_PASS);
-       TEST_DEBUG("\n\n\n\n\n########     TEST utc_tel_set_flight_mode_02 ENDS    ###########\n");
-
-}
-
-/**
- * @brief This tests 
- * @par ID: UTC_TAPI_POWER_FLIGHT_MODE_03
- * @param [in]  tel_set_flight_mode_type_t
- * @code       
- * @endcode
- * @return TapiResult_t
- */
-
-void utc_tel_set_flight_mode_03() {
-
-       TEST_DEBUG("\n\n\n\n\n########     TEST utc_tel_set_flight_mode_03 START    ###########\n");
-
-       TapiResult_t ret_status;
-
-       async_response = false;//initialize
-
-       ret_status = tel_set_flight_mode(TAPI_POWER_FLIGHT_MODE_ENTER - 1);
-
-       printf("/n return value = %d\n", ret_status);
-
-       if (TAPI_API_INVALID_INPUT == ret_status) {
-               printf(
-                               "/n/******************  set flight mode api invalid input case successful **************************\\n");
-       } else {
-               printf(
-                               "/n/******************     set flight mode api  invalid input case  failed **************************\\n");
-       }
-
-       TET_CHECK_EQUAL(TAPI_API_INVALID_INPUT, ret_status)
-               ;
-       tet_infoline("utc_tel_set_flight_mode_03 pass");
-       //expected_event = TAPI_EVENT_POWER_FLIGHT_MODE_RESP;
-       //printf("The expected_event is TAPI_EVENT_POWER_FLIGHT_MODE_RESP(%d)\n",expected_event);
-
-       //G_MAIN_LOOP_RUN(10);
-       //TET_CHECK_TEMP(true, async_response);
-       //tet_result(TET_PASS);
-       TEST_DEBUG("\n\n\n\n\n########     TEST utc_tel_set_flight_mode_03 ENDS    ###########\n");
-
-}
-
-/** @} */
diff --git a/TC/telephony_TC/power/unit/uts_tel_set_flight_mode.h b/TC/telephony_TC/power/unit/uts_tel_set_flight_mode.h
deleted file mode 100644 (file)
index 27e9061..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @file    uts_tel_set_flight_mode.h
-* @brief       This is a suite of unit test cases to test Telephony Power API function
-* @author      Sagar Aggarwal  (a.sagar@samsung.com)
-* @version     Initial Creation 
-* @date                [2009-05-13]
-*/
-
-
-
-#include "power_common.h"
-
-
-#ifndef  _UTC_TEL_SET_FLIGHT_MODE_
-#define  _UTC_TEL_SET_FLIGHT_MODE_
-
-
-void utc_tel_set_flight_mode_00();
-
-void utc_tel_set_flight_mode_01();
-
-void utc_tel_set_flight_mode_02();
-
-void utc_tel_set_flight_mode_03();
-
-
-static void startup();
-
-static void cleanup();
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_set_flight_mode_00, 1},
-       {utc_tel_set_flight_mode_01, 2},
-       {utc_tel_set_flight_mode_02, 3},
-       {utc_tel_set_flight_mode_03, 4},
-       {NULL, 0}
-       };
-
-
-
-#endif  //_UTC_tel_set_FLIGHT_MODE_
diff --git a/TC/telephony_TC/power/uts_tapi_power_phone_on_off.c b/TC/telephony_TC/power/uts_tapi_power_phone_on_off.c
deleted file mode 100644 (file)
index 02ecd4b..0000000
+++ /dev/null
@@ -1,309 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/** 
-* @ingroup Telephony_API TelephonyAPI
-* @addtogroup POWER power
-*/
-
-/**
-* @ingroup  POWER power
-* @addtogroup UTS_POWER Unit
-*/
-
-/**
-* @ingroup  UTS_POWER Unit
-* @addtogroup UTS_TAPI_POWER_PHONE_ON_OFF tapi_power_phone_on_off
-* @{
-*/
-
-
-
-/**
-* @file    uts_tapi_power_phone_on_off.c
-* @brief       This is a suite of unit test cases to test Telephony power API function
-* @author      Sagar Aggarwal  (a.sagar@samsung.com)
-* @version     Initial Creation 
-* @date                [2009-05-13]
-*/
-
-
-
-//add includes
-
-
-#include "uts_tapi_power_phone_on_off.h"
-
-
-
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-
-extern TelTapiEventType_t expected_event;
-extern bool async_response;
-
-static void startup()
-{
-       TapiResult_t  ret_status ;
-
-
-       ret_status = TelTapiInit();
-
-       if(ret_status != TAPI_API_SUCCESS)      
-               {       
-                       printf("TelTapiInit() Failed ret_status = %d \n",ret_status);   
-               }
-
-       register_all_events();
-
-}
-
-static void cleanup()
-{
-       TapiResult_t  ret_status ;
-
-       deregister_all();       
-       ret_status = TelTapiDeInit();
-
-       
-       if(ret_status != TAPI_API_SUCCESS)      
-       {       
-               printf("TelTapiDeInit() Failed ret_status = %d \n",ret_status); 
-       }
-}
-
-
-
-/**
- * @brief This tests 
- * @par ID: UTS_TAPI_POWER_PHONE_ON_OFF_00
- * @param [in]  tapi_power_phone_cmd_t
- * @code       
- * @endcode
- * @return TapiResult_t
-*/     
-
-
-void utc_tapi_power_phone_on_off_00()
-{
-
-
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tapi_power_phone_on_off_00 START    ###########\n");
-               
-               TapiResult_t  ret_status ;
-
-               async_response = false;//initialize
-
-       
-               ret_status = tapi_power_phone_on_off(TAPI_PHONE_POWER_OFF);
-               
-               printf("/n return value = %d\n",ret_status);
-               
-               if(TAPI_API_SUCCESS == ret_status)
-               {
-                       printf("/n/******************  power on off mode Started successfully **************************\\n");
-               }
-               else
-               {
-                       printf("/n/******************   power on off  mode not started **************************\\n");
-               }
-
-               TET_CHECK_EQUAL(TAPI_API_SUCCESS, ret_status);
-               tet_infoline("utc_tapi_power_phone_on_off_00 pass");
-               expected_event = TAPI_EVENT_POWER_PHONE_OFF;
-               printf("The expected_event is TAPI_EVENT_POWER_PHONE_OFF(%d)\n",expected_event);
-
-               printf("\n\n value of asyn_response %d",async_response);
-               G_MAIN_LOOP_RUN(10);
-               //TET_CHECK_TEMP(true, async_response); 
-               tet_result(TET_PASS);
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tapi_power_phone_on_off_00 ENDS    ###########\n");
-
-
-
-}
-
-
-
-/**
- * @brief This tests 
- * @par ID: UTS_TAPI_POWER_PHONE_ON_OFF_01
- * @param [in]  tapi_power_phone_cmd_t
- * @code       
- * @endcode
- * @return TapiResult_t
-*/     
-
-
-void utc_tapi_power_phone_on_off_01()
-{
-
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tapi_power_phone_on_off_01 START    ###########\n");
-               
-               TapiResult_t  ret_status ;
-
-               async_response = false;//initialize
-
-               tapi_power_phone_on_off(TAPI_PHONE_POWER_OFF);
-               sleep(5);
-               ret_status = tapi_power_phone_on_off(TAPI_PHONE_POWER_ON);
-               
-               printf("/n return value = %d\n",ret_status);
-               
-               if(TAPI_API_SUCCESS == ret_status  ||  TAPI_API_MODEM_ALREADY_ON == ret_status)
-               {
-                       printf("/n/******************  power on off mode Started successfully **************************\\n");
-                       tet_result(TET_PASS);
-               }
-               else
-               {
-                       printf("/n/******************   power on off  mode not started **************************\\n");
-               }
-
-               TET_CHECK_EQUAL(TAPI_API_SUCCESS, ret_status);
-               tet_infoline("utc_tapi_power_phone_on_off_01 pass");
-               expected_event = TAPI_EVENT_POWER_PHONE_OFF;
-               printf("The expected_event is TAPI_EVENT_POWER_PHONE_OFF(%d)\n",expected_event);
-               printf("\n\n value of asyn_response %d",async_response);
-
-               G_MAIN_LOOP_RUN(10);
-       //      TET_CHECK_TEMP(true, async_response);   
-               tet_result(TET_PASS);
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tapi_power_phone_on_off_01 ENDS    ###########\n");
-
-
-
-}
-
-
-
-
-/**
- * @brief This tests 
- * @par ID: UTS_TAPI_POWER_PHONE_ON_OFF_02
- * @param [in]  tapi_power_phone_cmd_t
- * @code       
- * @endcode
- * @return TapiResult_t
-*/     
-
-
-void utc_tapi_power_phone_on_off_02()
-{
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tapi_power_phone_on_off_02 START    ###########\n");
-               
-               TapiResult_t  ret_status ;
-
-               async_response = false;//initialize
-
-       
-               ret_status = tapi_power_phone_on_off(TAPI_PHONE_POWER_OFF -1);
-               
-               printf("/n return value = %d\n",ret_status);
-               
-               if(TAPI_API_INVALID_INPUT == ret_status)
-               {
-                       printf("/n/******************  power on off mode invalid input pass **************************\\n");
-               }
-               else
-               {
-                       printf("/n/******************   power on off  mode  invalid input case failed  **************************\\n");
-               }
-
-               TET_CHECK_EQUAL(TAPI_API_INVALID_INPUT, ret_status);
-               tet_infoline("utc_tapi_power_phone_on_off_02 pass");
-               //expected_event = TAPI_EVENT_POWER_PHONE_OFF;
-               //printf("The expected_event is TAPI_EVENT_POWER_PHONE_OFF(%d)\n",expected_event);
-
-               //G_MAIN_LOOP_RUN(10);
-               //TET_CHECK_TEMP(true, async_response); 
-               //tet_result(TET_PASS);
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tapi_power_phone_on_off_02 ENDS    ###########\n");
-
-
-
-}
-
-
-
-
-/**
- * @brief This tests 
- * @par ID: UTS_TAPI_POWER_PHONE_ON_OFF_03
- * @param [in]  tapi_power_phone_cmd_t
- * @code       
- * @endcode
- * @return TapiResult_t
-*/     
-
-
-void utc_tapi_power_phone_on_off_03()
-{
-
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tapi_power_phone_on_off_03 START    ###########\n");
-               
-               TapiResult_t  ret_status ;
-
-               async_response = false;//initialize
-
-       
-               ret_status = tapi_power_phone_on_off(TAPI_PHONE_POWER_ON +1);
-               
-               printf("/n return value = %d\n",ret_status);
-               
-               if(TAPI_API_INVALID_INPUT == ret_status)
-               {
-                       printf("/n/******************  power on off mode invalid input pass **************************\\n");
-               }
-               else
-               {
-                       printf("/n/******************   power on off  mode  invalid input case failed  **************************\\n");
-               }
-
-               TET_CHECK_EQUAL(TAPI_API_INVALID_INPUT, ret_status);
-               tet_infoline("utc_tapi_power_phone_on_off_03 pass");
-               //expected_event = TAPI_EVENT_POWER_PHONE_OFF;
-               //printf("The expected_event is TAPI_EVENT_POWER_PHONE_OFF(%d)\n",expected_event);
-
-               //G_MAIN_LOOP_RUN(10);
-               //TET_CHECK_TEMP(true, async_response); 
-               //tet_result(TET_PASS);
-
-               TEST_DEBUG("\n\n\n\n\n########     TEST utc_tapi_power_phone_on_off_03 ENDS    ###########\n");
-
-
-
-}
-
-
-
-
-
-
-/** @} */
diff --git a/TC/telephony_TC/power/uts_tapi_power_phone_on_off.h b/TC/telephony_TC/power/uts_tapi_power_phone_on_off.h
deleted file mode 100644 (file)
index a283ca6..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @file    uts_tapi_power_phone_on_off.h
-* @brief       This is a suite of unit test cases to test Telephony power API function
-* @author      Sagar Aggarwal  (a.sagar@samsung.com)
-* @version     Initial Creation 
-* @date                [2009-05-13]
-*/
-
-
-
-#include "power_common.h"
-
-
-#ifndef  _UTC_TAPI_POWER_ONOFF_
-#define  _UTC_TAPI_POWER_ONOFF_
-
-
-
-void utc_tapi_power_phone_on_off_00();
-
-
-
-void utc_tapi_power_phone_on_off_01();
-
-
-
-void utc_tapi_power_phone_on_off_02();
-
-
-
-void utc_tapi_power_phone_on_off_03();
-
-static void startup();
-
-static void cleanup();
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tapi_power_phone_on_off_00, 1},
-       {utc_tapi_power_phone_on_off_01, 2},
-       {utc_tapi_power_phone_on_off_02, 3},
-       {utc_tapi_power_phone_on_off_03, 4},
-       {NULL, 0}
-       };
-
-
-
-#endif  //_UTC_TAPI_POWER_ONOFF_
diff --git a/TC/telephony_TC/sat/unit/makefile b/TC/telephony_TC/sat/unit/makefile
deleted file mode 100644 (file)
index e184de5..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-CC=gcc -Wall\r
-\r
-LB1 = async_util\r
-LB2 = tet_tapi_util \r
-TS1 = uts_tel_download_sat_event\r
-TS2 = uts_tel_get_sat_main_menu_info\r
-TS3 = uts_tel_select_sat_menu\r
-TS4 = uts_tel_send_sat_app_exec_result\r
-TS5 = uts_tel_send_sat_ui_user_confirm\r
-TS6 = uts_tel_send_ui_display_status\r
-\r
-LIBS  = `pkg-config --libs  gconf-2.0 glib-2.0 dbus-1 dbus-glib-1 gthread-2.0 tapi ` \r
-LIBS +=$(TET_ROOT)/lib/tet3/tcm_s.o\r
-LIBS +=-L$(TET_ROOT)/lib/tet3 -ltcm_s\r
-LIBS +=-L$(TET_ROOT)/lib/tet3 -lapi_s\r
-\r
-INCS  =  -I. `pkg-config --cflags  gconf-2.0 glib-2.0 dbus-1 dbus-glib-1 gthread-2.0 tapi`\r
-INCS  += -I$(TET_ROOT)/inc/tet3\r
-\r
-CFLAGS += $(INCS) -D__arm__ -D_ARM_TOUCH -DTELEPHONY_TIMER\r
-CC +=$(CFLAGS)\r
-LDFLAGS = $(LIBS)\r
-\r
-#ifeq ($(ARCH),target)\r
-#CC += -g -mabi=aapcs-linux\r
-#endif\r
-\r
-all : $(TS1) $(TS2) $(TS3) $(TS4) $(TS5) $(TS6) \r
-\r
-clean :\r
-       rm -rf *~ *.o target i386 tet_lock tet_captured *.pyc *.log .scon*\r
-       rm -rf *~ *.o $(TS1)\r
-       rm -rf *~ *.o $(TS2)\r
-       rm -rf *~ *.o $(TS3)\r
-       rm -rf *~ *.o $(TS4)\r
-       rm -rf *~ *.o $(TS5)\r
-       rm -rf *~ *.o $(TS6)\r
-\r
-\r
-\r
-$(LB1): $(LB1).c\r
-       $(CC) -c $(LB1).c  \r
-\r
-$(LB2): $(LB2).c\r
-       $(CC) -c $(LB2).c  \r
-\r
-$(TS1): $(TS1).c\r
-       $(CC) -o $(TS1) $(TS1).c  $(LDFLAGS)\r
-\r
-$(TS2): $(TS2).c\r
-       $(CC) -o $(TS2) $(TS2).c  $(LDFLAGS)\r
-\r
-$(TS3): $(TS3).c\r
-       $(CC) -o $(TS3) $(TS3).c  $(LDFLAGS)\r
-\r
-$(TS4): $(TS4).c\r
-       $(CC) -o $(TS4) $(TS4).c  $(LDFLAGS)\r
-\r
-$(TS5): $(TS5).c\r
-       $(CC) -o $(TS5) $(TS5).c  $(LDFLAGS)\r
-\r
-$(TS6): $(TS6).c\r
-       $(CC) -o $(TS6) $(TS6).c  $(LDFLAGS)\r
-\r
-\r
-\r
-\r
diff --git a/TC/telephony_TC/sat/unit/tet_macro.h b/TC/telephony_TC/sat/unit/tet_macro.h
deleted file mode 100644 (file)
index b386b3e..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef TET_MACRO_H
-#define TET_MACRO_H
-
-
-#define TET_CHECK(x) if(x) tet_result(TET_PASS); else tet_result(TET_FAIL)
-#define TET_CHECK_EQUAL(x,y) if ((x)==(y)) tet_result(TET_PASS);  else tet_result(TET_FAIL)
-#define TET_CHECK_NOT_EQUAL(x,y) if ((x)!=(y)) tet_result(TET_PASS);  else tet_result(TET_FAIL)
-
-
-#define TET_CHECK_MESSAGE(x,y) if ((y)==(TRUE)) tet_result(TET_PASS); else {tet_result(TET_FAIL); tet_printf(x);}
-#define TET_CHECK_EQUAL_MESSAGE(x,y,z) if ((y)==(z)) tet_result(TET_PASS);  else {tet_result(TET_FAIL); tet_printf(x);}
-#define TET_CHECK_NOT_EQUAL_MESSAGE(x,y,z) if ((y)!=(z)) tet_result(TET_PASS);  else {tet_result(TET_FAIL); tet_printf(x);}
-
-
-#endif
-
diff --git a/TC/telephony_TC/sat/unit/tslist b/TC/telephony_TC/sat/unit/tslist
deleted file mode 100644 (file)
index 19abfcf..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/sat/unit/uts_tel_download_sat_event
-/sat/unit/uts_tel_get_sat_main_menu_info
-/sat/unit/uts_tel_select_sat_menu
-/sat/unit/uts_tel_send_sat_app_exec_result
-/sat/unit/uts_tel_send_sat_ui_user_confirm
-/sat/unit/uts_tel_send_ui_display_status
-
diff --git a/TC/telephony_TC/sat/unit/uts_tel_download_sat_event.c b/TC/telephony_TC/sat/unit/uts_tel_download_sat_event.c
deleted file mode 100644 (file)
index b4ffc7c..0000000
+++ /dev/null
@@ -1,115 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#include <stdio.h>\r
-#include <stdlib.h>\r
-#include <string.h>\r
-\r
-#include <tet_api.h>\r
-#include <ITapiSat.h>\r
-#include "tet_macro.h"\r
-#include "uts_tel_download_sat_event.h"\r
-\r
-static void startup();\r
-static void cleanup();\r
-\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tel_download_sat_event_01, 1},\r
-       {utc_tel_download_sat_event_02, 2},\r
-       {NULL, 0}\r
-};\r
-\r
-\r
-static void startup()\r
-{\r
-    tet_infoline("utc_tel_download_sat_event Test Start\n");\r
-       if ( tel_init() != TAPI_API_SUCCESS)\r
-       {\r
-               tet_infoline("startup fail. tel_init() failed");\r
-       }\r
-    return;\r
-}\r
-\r
-\r
-static void cleanup()\r
-{\r
-    tet_infoline("utc_tel_download_sat_event Test Finished\n");\r
-       if ( tel_deinit() != TAPI_API_SUCCESS)\r
-       {\r
-               tet_infoline("startup fail. tel_deinit() failed");\r
-       }\r
-    return;\r
-}\r
-\r
-\r
-/**\r
- * @test               This case tests BOOL sat_engine_get_main_menu_title(sat_engine_main_menu_title_t* main_menu_title);\r
- * @brief              This function is called by passing main_menu_title = NULL\r
- * @return             TAPI_API_INVALID_PTR\r
- * @param[out] main_menu_title\r
- */\r
-void utc_tel_download_sat_event_01()\r
-{\r
-       int reqId=-1;\r
-       int ret_status;\r
-\r
-       /* Calling tel_download_sat_event API */\r
-       ret_status = tel_download_sat_event(NULL,&reqId);\r
-\r
-       tet_printf("ret_status[%d]\n",ret_status);\r
-\r
-       TET_CHECK(ret_status == TAPI_API_INVALID_PTR);\r
-       if(ret_status == TAPI_API_INVALID_PTR)\r
-               tet_printf("utc_tel_download_sat_event_01 pass\n");\r
-       return;\r
-}\r
-\r
-\r
-/**\r
- * @test               This case tests BOOL sat_engine_get_main_menu_title(sat_engine_main_menu_title_t* main_menu_title);\r
- * @brief              This function is called by passing NULL request ID\r
- * @return             TAPI_API_INVALID_PTR\r
- * @param[out] main_menu_title\r
- */\r
-void utc_tel_download_sat_event_02()\r
-{\r
-       TelSatEventDownloadReqInfo_t  sat_event_info;\r
-       int reqId=-1;\r
-\r
-       /* Test SAT Event Download Envelope Command - Invalid input (NULL pointer) Handling */\r
-\r
-       int ret_status;\r
-\r
-       sat_event_info.eventDownloadType=5;//Idle Screen Available Event\r
-       sat_event_info.u.bIdleScreenAvailable==TRUE;\r
-\r
-       /* Calling tel_download_sat_event API */\r
-       ret_status = tel_download_sat_event(&sat_event_info,NULL);\r
-\r
-       tet_printf("ret_status[%d]\n",ret_status);\r
-       \r
-       TET_CHECK(ret_status == TAPI_API_INVALID_PTR);\r
-       if(ret_status == TAPI_API_INVALID_PTR)\r
-               tet_printf("utc_tel_download_sat_event_02 pass\n");\r
-       return;\r
-}\r
diff --git a/TC/telephony_TC/sat/unit/uts_tel_download_sat_event.h b/TC/telephony_TC/sat/unit/uts_tel_download_sat_event.h
deleted file mode 100644 (file)
index a85ae6d..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#ifndef _UTS_TEL_DOWNLOAD_SAT_EVENT_H_\r
-#define _UTS_TEL_DOWNLOAD_SAT_EVENT_H_\r
-\r
-void utc_tel_download_sat_event_01();\r
-void utc_tel_download_sat_event_02();\r
-\r
-#endif\r
-/** @} */\r
diff --git a/TC/telephony_TC/sat/unit/uts_tel_get_sat_main_menu_info.c b/TC/telephony_TC/sat/unit/uts_tel_get_sat_main_menu_info.c
deleted file mode 100644 (file)
index fa3c87d..0000000
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#include <stdio.h>\r
-#include <stdlib.h>\r
-#include <string.h>\r
-\r
-#include <tet_api.h>\r
-#include <ITapiSat.h>\r
-#include "tet_macro.h"\r
-\r
-#include "uts_tel_get_sat_main_menu_info.h"\r
-\r
-static void startup();\r
-static void cleanup();\r
-\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tel_get_sat_main_menu_info_01, 1},\r
-       {utc_tel_get_sat_main_menu_info_02, 2},         \r
-       {NULL, 0}\r
-};\r
-\r
-\r
-static void startup()\r
-{\r
-    tet_infoline("utc_tel_get_sat_main_menu_info Test Start\n");\r
-       if ( tel_init() != TAPI_API_SUCCESS)\r
-       {\r
-               tet_infoline("startup fail. tel_init() failed");\r
-       }\r
-    return;\r
-}\r
-\r
-\r
-static void cleanup()\r
-{\r
-    tet_infoline("utc_tel_get_sat_main_menu_info Test Finished\n");\r
-       if ( tel_deinit() != TAPI_API_SUCCESS)\r
-       {\r
-               tet_infoline("startup fail. tel_deinit() failed");\r
-       }\r
-    return;\r
-}\r
-\r
-\r
-void utc_tel_get_sat_main_menu_info_01()\r
-{\r
-\r
-    int ret_status=TAPI_API_SUCCESS;\r
-       tet_printf("Get SAT Main MenuInfo 01\n");\r
-     \r
-       /* Calling TelTapiSatGetMainMenuInfo API */\r
-       ret_status = tel_get_sat_main_menu_info (NULL);\r
-       tet_printf("The Return Status of TelTapiSatGetMainMenuInfo 01() is: %d\n", ret_status);\r
-\r
-       TET_CHECK(ret_status == TAPI_API_INVALID_PTR);\r
-       if(ret_status == TAPI_API_INVALID_PTR)\r
-               tet_printf("utc_tel_get_sat_main_menu_info_01 pass\n");\r
-       return;\r
-}\r
-\r
-void utc_tel_get_sat_main_menu_info_02()\r
-{\r
-\r
-    int ret_status=TAPI_API_SUCCESS;\r
-       tet_printf("Get SAT Main MenuInfo 02\n");\r
-\r
-       TelSatSetupMenuInfo_t main_menu ={0,};\r
-     \r
-       /* Calling TelTapiSatGetMainMenuInfo API */\r
-       ret_status = tel_get_sat_main_menu_info (&main_menu);\r
-       tet_printf("The Return Status of tel_get_sat_main_menu_info 02() is: %d\n", ret_status);\r
-\r
-       TET_CHECK(ret_status == TAPI_API_SUCCESS);\r
-       if(ret_status == TAPI_API_SUCCESS)\r
-               tet_printf("utc_tel_get_sat_main_menu_info_02 pass\n");\r
-       return;\r
-}\r
diff --git a/TC/telephony_TC/sat/unit/uts_tel_get_sat_main_menu_info.h b/TC/telephony_TC/sat/unit/uts_tel_get_sat_main_menu_info.h
deleted file mode 100644 (file)
index 7b6dd3e..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#ifndef _UTS_TEL_GET_SAT_MAIN_MENU_INFO_H_\r
-#define _UTS_TEL_GET_SAT_MAIN_MENU_INFO_H_\r
-\r
-void utc_tel_get_sat_main_menu_info_01();\r
-void utc_tel_get_sat_main_menu_info_02();\r
-\r
-#endif\r
-/** @} */\r
-\r
-\r
diff --git a/TC/telephony_TC/sat/unit/uts_tel_select_sat_menu.c b/TC/telephony_TC/sat/unit/uts_tel_select_sat_menu.c
deleted file mode 100644 (file)
index 6a75191..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#include <stdio.h>\r
-#include <stdlib.h>\r
-#include <string.h>\r
-\r
-#include <tet_api.h>\r
-#include <ITapiSat.h>\r
-#include "tet_macro.h"\r
-\r
-#include "uts_tel_select_sat_menu.h"\r
-\r
-static void startup();\r
-static void cleanup();\r
-\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tel_select_sat_menu_01, 1},\r
-       {utc_tel_select_sat_menu_02, 2},\r
-       {NULL, 0}\r
-};\r
-\r
-\r
-static void startup()\r
-{\r
-    tet_infoline("tel_select_sat_menu Test Start\n");\r
-       if ( tel_init() != TAPI_API_SUCCESS)\r
-       {\r
-               tet_infoline("startup fail. tel_init() failed");\r
-       }\r
-    return;\r
-}\r
-\r
-\r
-static void cleanup()\r
-{\r
-    tet_infoline("tel_select_sat_menu Test Finished\n");\r
-       if ( tel_deinit() != TAPI_API_SUCCESS)\r
-       {\r
-               tet_infoline("startup fail. tel_deinit() failed");\r
-       }\r
-    return;\r
-}\r
-\r
-\r
-/**\r
- * @test               This case tests BOOLuts_tapi_sat_menu_selection_envelope(sat_engine_main_menu_title_t* main_menu_title);\r
- * @brief              This function sends the UI display status to sat engine for specific command.\r
- * @return             TRUE.\r
- * @param[out] main_menu_title\r
- */\r
-void utc_tel_select_sat_menu_01()\r
-{\r
-       /* Test SAT Menu Selection Envelope Command - Successful case */\r
-\r
-       int ret_status = TAPI_API_SUCCESS;\r
-       int reqId = -1;\r
-\r
-       /* Calling tel_select_sat_menu API */\r
-       ret_status = tel_select_sat_menu(NULL,&reqId);\r
-       \r
-       TET_CHECK(ret_status == TAPI_API_INVALID_PTR);\r
-}\r
-\r
-\r
-/**\r
- * @test               This case tests BOOLuts_tapi_sat_menu_selection_envelope(sat_engine_main_menu_title_t* main_menu_title);\r
- * @brief              This function is called by passing main_menu_title = NULL\r
- * @return             FALSE\r
- * @param[out] main_menu_title\r
- */\r
-void utc_tel_select_sat_menu_02()\r
-{\r
-       TelSatMenuSelectionReqInfo_t menu_selection_info;\r
-\r
-       menu_selection_info.itemIdentifier =1;\r
-       int ret_status = TAPI_API_SUCCESS;\r
-\r
-       /* Calling tel_select_sat_menu API */\r
-       ret_status = tel_select_sat_menu(&menu_selection_info,NULL);\r
-       TET_CHECK(ret_status == TAPI_API_INVALID_PTR);\r
-}\r
-\r
-\r
-\r
-\r
diff --git a/TC/telephony_TC/sat/unit/uts_tel_select_sat_menu.h b/TC/telephony_TC/sat/unit/uts_tel_select_sat_menu.h
deleted file mode 100644 (file)
index 895851d..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#ifndef _UTS_TEL_SELECT_SAT_MENU_H_\r
-#define _UTS_TEL_SELECT_SAT_MENU_H_\r
-\r
-static void utc_tel_select_sat_menu_01();\r
-static void utc_tel_select_sat_menu_02();\r
-\r
-#endif\r
-/** @} */\r
diff --git a/TC/telephony_TC/sat/unit/uts_tel_send_sat_app_exec_result.c b/TC/telephony_TC/sat/unit/uts_tel_send_sat_app_exec_result.c
deleted file mode 100644 (file)
index 93dc608..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#include <stdio.h>\r
-#include <stdlib.h>\r
-#include <string.h>\r
-\r
-#include <tet_api.h>\r
-#include <ITapiSat.h>\r
-#include "tet_macro.h"\r
-\r
-#include "uts_tel_send_sat_app_exec_result.h"\r
-\r
-static void startup();\r
-static void cleanup();\r
-\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tel_send_sat_app_exec_result_01, 1},\r
-       {utc_tel_send_sat_app_exec_result_02, 2},               \r
-       {NULL, 0}\r
-};\r
-\r
-static void startup()\r
-{\r
-    tet_infoline("utc_tel_send_sat_app_exec_result Test Start\n");\r
-       if ( tel_init() != TAPI_API_SUCCESS)\r
-       {\r
-               tet_infoline("startup fail. tel_init() failed");\r
-       }\r
-    return;\r
-}\r
-\r
-\r
-static void cleanup()\r
-{\r
-    tet_infoline("utc_tel_send_sat_app_exec_result Test Finished\n");\r
-       if ( tel_deinit() != TAPI_API_SUCCESS)\r
-       {\r
-               tet_infoline("startup fail. tel_deinit() failed");\r
-       }\r
-    return;\r
-}\r
-\r
-\r
-/**\r
- * @test               This case tests BOOL sat_engine_get_main_menu_title(sat_engine_main_menu_title_t* main_menu_title);\r
- * @brief              This function sends the UI display status to sat engine for specific command.\r
- * @return             TRUE.\r
- * @param[out] main_menu_title\r
- */\r
-void utc_tel_send_sat_app_exec_result_01()\r
-{\r
-       int ret_status=TAPI_API_SUCCESS;\r
-\r
-       ret_status = tel_send_sat_app_exec_result  (NULL);\r
-\r
-       tet_printf("tel_send_sat_app_exec_result return=%d\n", ret_status);\r
-       \r
-       TET_CHECK(ret_status == TAPI_API_INVALID_PTR);\r
-       return;\r
-}\r
-\r
-void utc_tel_send_sat_app_exec_result_02()\r
-{\r
-       int ret_status=TAPI_API_SUCCESS;\r
-       TelSatAppsRetInfo_t appRetInfo ={0,};\r
-\r
-       appRetInfo.commandType = TAPI_SAT_CMD_TYPE_SEND_DATA;\r
-       appRetInfo.commandId = 0;\r
-\r
-       ret_status = tel_send_sat_app_exec_result(&appRetInfo);\r
-\r
-       tet_printf("tel_send_sat_app_exec_result return=%d\n", ret_status);\r
-       \r
-       TET_CHECK(ret_status == TAPI_API_SERVER_FAILURE);\r
-       return;\r
-}\r
diff --git a/TC/telephony_TC/sat/unit/uts_tel_send_sat_app_exec_result.h b/TC/telephony_TC/sat/unit/uts_tel_send_sat_app_exec_result.h
deleted file mode 100644 (file)
index 296f845..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#ifndef _UTS_TEL_SEND_SAT_APP_EXEC_RESULT_H_\r
-#define _UTS_TEL_SEND_SAT_APP_EXEC_RESULT_H_\r
-\r
-static void utc_tel_send_sat_app_exec_result_01();\r
-static void utc_tel_send_sat_app_exec_result_02();\r
-\r
-#endif\r
-/** @} */\r
diff --git a/TC/telephony_TC/sat/unit/uts_tel_send_sat_ui_user_confirm.c b/TC/telephony_TC/sat/unit/uts_tel_send_sat_ui_user_confirm.c
deleted file mode 100644 (file)
index 470805a..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-#include <stdlib.h>\r
-#include <stdio.h>\r
-#include <string.h>\r
-\r
-#include <tet_api.h>\r
-#include <ITapiSat.h>\r
-#include "tet_macro.h"\r
-\r
-#include "uts_tel_send_sat_ui_user_confirm.h"\r
-\r
-static void startup();\r
-static void cleanup();\r
-\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tel_send_sat_ui_user_confirm_01, 1},\r
-       {utc_tel_send_sat_ui_user_confirm_02, 2},               \r
-       {NULL, 0}\r
-};\r
-\r
-static void startup()\r
-{\r
-    tet_infoline("utc_tel_send_sat_ui_user_confirm Test Start\n");\r
-       if ( tel_init() != TAPI_API_SUCCESS)\r
-       {\r
-               tet_infoline("startup fail. tel_init() failed");\r
-       }\r
-    return;\r
-}\r
-\r
-\r
-static void cleanup()\r
-{\r
-    tet_infoline("utc_tel_send_sat_ui_user_confirm Test Finished\n");\r
-       if ( tel_deinit() != TAPI_API_SUCCESS)\r
-       {\r
-               tet_infoline("startup fail. tel_deinit() failed");\r
-       }\r
-    return;\r
-}\r
-\r
-void utc_tel_send_sat_ui_user_confirm_01()\r
-{\r
-       TapiResult_t ret_status = TAPI_API_SUCCESS;\r
-\r
-       ret_status = tel_send_sat_ui_user_confirm (NULL);\r
-\r
-       tet_printf("utc_tel_send_sat_ui_user_confirm_01 return=%d\n", ret_status);\r
-       TET_CHECK(ret_status == TAPI_API_INVALID_PTR);\r
-       return;\r
-}\r
-\r
-void utc_tel_send_sat_ui_user_confirm_02()\r
-{\r
-       TapiResult_t ret_status = TAPI_API_SUCCESS;\r
-       TelSatUiUserConfirmInfo_t userConfirmData = {0,};\r
-\r
-       userConfirmData.dataLen = -1;\r
-\r
-       ret_status = tel_send_sat_ui_user_confirm(&userConfirmData);\r
-\r
-       tet_printf("utc_tel_send_sat_ui_user_confirm_02 return=%d\n", ret_status);\r
-       TET_CHECK(ret_status == TAPI_API_INVALID_INPUT);\r
-       return;\r
-}\r
diff --git a/TC/telephony_TC/sat/unit/uts_tel_send_sat_ui_user_confirm.h b/TC/telephony_TC/sat/unit/uts_tel_send_sat_ui_user_confirm.h
deleted file mode 100644 (file)
index 4541ae7..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#ifndef _UTS_TEL_SEND_SAT_UI_USER_CONFIRM_H_\r
-#define _UTS_TEL_SEND_SAT_UI_USER_CONFIRM_H_\r
-\r
-void utc_tel_send_sat_ui_user_confirm_01();\r
-void utc_tel_send_sat_ui_user_confirm_02();\r
-\r
-#endif\r
-/** @} */\r
diff --git a/TC/telephony_TC/sat/unit/uts_tel_send_ui_display_status.c b/TC/telephony_TC/sat/unit/uts_tel_send_ui_display_status.c
deleted file mode 100644 (file)
index edc5d27..0000000
+++ /dev/null
@@ -1,125 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#include <stdio.h>\r
-#include <stdlib.h>\r
-#include <string.h>\r
-\r
-#include <tet_api.h>\r
-#include <ITapiSat.h>\r
-#include "tet_macro.h"\r
-\r
-#include "uts_tel_send_ui_display_status.h"\r
-\r
-static void startup();\r
-static void cleanup();\r
-\r
-/* Initialize TCM data structures */\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tel_send_ui_display_status_01, 1},\r
-       {utc_tel_send_ui_display_status_02, 2},\r
-       {utc_tel_send_ui_display_status_03, 3},\r
-       {NULL, 0}\r
-};\r
-\r
-\r
-static void startup()\r
-{\r
-    tet_infoline("utc_tel_send_ui_display_status Test Start\n");\r
-       if ( tel_init() != TAPI_API_SUCCESS)\r
-       {\r
-               tet_infoline("startup fail. tel_init() failed");\r
-       }\r
-    return;\r
-}\r
-\r
-\r
-static void cleanup()\r
-{\r
-    tet_infoline("utc_tel_send_ui_display_status Test Finished\n");\r
-       if ( tel_deinit() != TAPI_API_SUCCESS)\r
-       {\r
-               tet_infoline("startup fail. tel_deinit() failed");\r
-       }\r
-    return;\r
-}\r
-\r
-\r
-/**\r
- * @test               This case tests TapiResult_t TelTapiSatSendUiDisplayStatus(int command_id, sat_engine_ui_display_status status);\r
- * @brief              This function is called by passing invalid command_id = -1\r
- * @return             False\r
- * @param[in]  command_id = -1\r
- * @param[in]  status = TAPI_SAT_DISPLAY_SUCCESS\r
- */\r
-void utc_tel_send_ui_display_status_01()\r
-{\r
-       int ret_val= TAPI_API_SUCCESS;\r
-\r
-       ret_val = tel_send_ui_display_status(-1,TAPI_SAT_DISPLAY_SUCCESS);\r
-\r
-       TET_CHECK(ret_val == TAPI_API_SAT_INVALID_COMMAND_ID);\r
-}\r
-\r
- /**\r
-  * @test              This case tests TapiResult_t TelTapiSatSendUiDisplayStatus(int command_id, sat_engine_ui_display_status status);\r
-  * @brief             This function is called by passing sinvalid status = -1\r
-  * @return            False\r
-  * @param[in] command_id = 1\r
-  * @param[in] status = -1\r
- */\r
-void utc_tel_send_ui_display_status_02()\r
-{\r
-       int  ret_val = TAPI_API_SUCCESS;\r
-\r
-       ret_val = tel_send_ui_display_status(1,TAPI_SAT_DISPLAY_SUCCESS-1);\r
-\r
-       TET_CHECK(ret_val == TAPI_API_INVALID_INPUT);\r
-}\r
-\r
- /**\r
-  * @test              This case tests TapiResult_t TelTapiSatSendUiDisplayStatus(int command_id, sat_engine_ui_display_status status);\r
-  * @brief             This function is called by invalid status = 2\r
-  * @return            False\r
-  * @param[in] command_id = 1\r
-  * @param[in] status = 3\r
- */\r
-void utc_tel_send_ui_display_status_03()\r
-{\r
-        int  ret_val = TAPI_API_SUCCESS;\r
-\r
-       ret_val = tel_send_ui_display_status(1,TAPI_SAT_DISPLAY_FAIL+1);\r
-\r
-       TET_CHECK(ret_val == TAPI_API_INVALID_INPUT);\r
-}\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
diff --git a/TC/telephony_TC/sat/unit/uts_tel_send_ui_display_status.h b/TC/telephony_TC/sat/unit/uts_tel_send_ui_display_status.h
deleted file mode 100644 (file)
index 1ba2228..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#ifndef _UTS_TEL_SEND_UI_DISPLAY_STATUS_H_\r
-#define _UTS_TEL_SEND_UI_DISPLAY_STATUS_H_\r
-\r
-void utc_tel_send_ui_display_status_01();\r
-void utc_tel_send_ui_display_status_02();\r
-void utc_tel_send_ui_display_status_03();\r
-\r
-#endif\r
-/** @} */\r
diff --git a/TC/telephony_TC/sim/README b/TC/telephony_TC/sim/README
deleted file mode 100644 (file)
index c82abd8..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-=================================================================================
-*                                    README                                     *
-=================================================================================
-
-1. The sim Test Script directory (TestCases) includes:
-
-               sim/
-               |-- README                                         ; This file
-               `-- unit                                           ; contains Unit TCs
-                       |-- makefile
-                       |-- tslist
-                       `-- Unit test case source codes
-
-2. The $(TEST_ROOT) directory must includes following files:
-
-       /$(TEST_ROOT)
-               |-- tet_scen
-               |-- tetbuild.cfg
-               |-- tetclean.cfg
-               |-- tetexec.cfg
-               `-- ...(elipsis)
-
-=================================================================================
-*                                Preconditions                                  *
----------------------------------------------------------------------------------
-|  Before Testing telephony-framework/sim Module,                           |      
-|  you should check the following conditions                                    |
-=================================================================================
-
-1. Ready for test 3G sim
-
-2. Check PIN1 code, PIN2 code, PUK1 code, PUK2 code of test sim
-
-3. Update uts header files
-       1) Open sim_common.h
-       2) Modify below macro to your test SIM information
-               PIN1_NORMAL , PIN1_NORMAL : PIN1 code of test sim
-               PIN2_NORMAL , PIN2_NORMAL : PIN2 code of test sim
-               PUK1_CODE : PUK1 code of test sim
-               PUK2_CODE : PUK2 code of test sim
-
-5. Before running tests, SIM card is inserted to tested phone
-       
-=================================================================================
-*                                  Change log                                   *
-=================================================================================
-1. 18-Dec-2008
-       - Initial draft.
-2. 18-Dec-2008
-       - Precondition Update
-3. 6-Oct-2010
-       - Precondition Update
-       
-=================================================================================
-*                                      NOTE                                     *
-=================================================================================
-1. In order to ensure successful working of the Test Scripts, please ensure that all of the IPKG files are installed normally.
-2. Testing SIM Module can be executed under target system environment (not simulator).
-
-
diff --git a/TC/telephony_TC/sim/sim_common.h b/TC/telephony_TC/sim/sim_common.h
deleted file mode 100644 (file)
index 9129bd6..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _SIM_COMMON_H
-#define _SIM_COMMON_H
-
-#include <stdio.h>
-#include <glib.h>
-
-#define SIM_INFO "sim_pw.txt"
-
-#define PIN1_INVALID "999"
-#define PIN2_INVALID "999"
-
-typedef struct {
-       char pin1[5];
-       char pin2[5];
-       char puk1[9];
-       char puk2[9];
-       char wpin1[5];
-       char wpin2[5];
-       char wpuk1[9];
-       char wpuk2[9];
-}sim_info_t;
-
-#endif
diff --git a/TC/telephony_TC/sim/unit/async_util.c b/TC/telephony_TC/sim/unit/async_util.c
deleted file mode 100644 (file)
index c447858..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sim_common.h>
-
-sim_info_t g_si;
-
-int sim_pin_info_setup()
-{
-       FILE * p_file;
-       int f_size;
-       char* p_buf;
-       char* p_str = NULL;
-       size_t result;
-               
-       p_file = fopen("sim_pw.txt","r");
-       if(p_file == NULL)
-               printf("file not found\n");
-       
-       fseek(p_file, 0, SEEK_END);
-       f_size = ftell(p_file);
-       rewind(p_file);
-       
-       //printf("file size[%d]\n",f_size);
-               
-       p_buf = (char*)malloc(sizeof(char)*f_size);
-       if(p_buf == NULL)
-               printf("file is empty or malloc failed\n");
-       
-       result = fread(p_buf,1,f_size,p_file);
-       if(result != f_size)
-               printf("file read error\n");
-       
-       memset(&p_buf[f_size-1],'\0',1);
-               
-       //      printf("file info=%s\n",p_buf);
-       
-       p_str = strstr(p_buf, "pin1:");  
-       if(p_str)sscanf(p_str+5, "%4s", &g_si.pin1[0]); 
-               
-       p_str = strstr(p_buf, "pin2:");  
-       if(p_str)sscanf(p_str+5, "%4s", &g_si.pin2[0]); 
-       
-       p_str = strstr(p_buf, "puk1:");  
-       if(p_str)sscanf(p_str+5, "%8s", &g_si.puk1[0]); 
-       
-       p_str = strstr(p_buf, "puk2:");  
-       if(p_str)sscanf(p_str+5, "%8s", &g_si.puk2[0]); 
-       
-       p_str = strstr(p_buf, "wpin1:");  
-       if(p_str)sscanf(p_str+6, "%4s", &g_si.wpin1[0]); 
-       
-       p_str = strstr(p_buf, "wpin2:");  
-       if(p_str)sscanf(p_str+6, "%4s", &g_si.wpin2[0]); 
-       
-       p_str = strstr(p_buf, "wpuk1:");  
-       if(p_str)sscanf(p_str+6, "%8s", &g_si.wpuk1[0]); 
-       
-       p_str = strstr(p_buf, "wpuk2:");  
-       if(p_str)sscanf(p_str+6, "%8s", &g_si.wpuk2[0]); 
-       
-       g_si.pin1[4]='\0';
-       g_si.pin2[4]='\0';
-       g_si.puk1[8]='\0';
-       g_si.puk2[8]='\0';
-       g_si.wpin1[4]='\0';
-       g_si.wpin2[4]='\0';
-       g_si.wpuk1[8]='\0';
-       g_si.wpuk2[8]='\0';
-               
-       printf("pin1[%s]\n",g_si.pin1);
-       printf("pin2[%s]\n",g_si.pin2);
-       printf("puk1[%s]\n",g_si.puk1);
-       printf("puk2[%s]\n",g_si.puk2);
-       printf("wpin1[%s]\n",g_si.wpin1);
-       printf("wpin2[%s]\n",g_si.wpin2);
-       printf("wpuk1[%s]\n",g_si.wpuk1);
-       printf("wpuk2[%s]\n",g_si.wpuk2);
-       
-       fclose(p_file);
-       free(p_buf);
-       return 0;       
-}
-
diff --git a/TC/telephony_TC/sim/unit/async_util.h b/TC/telephony_TC/sim/unit/async_util.h
deleted file mode 100644 (file)
index f081336..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _ASYNC_UTIL_H_
-#define _ASYNC_UTIL_H_
-
-int sim_pin_info_setup();
-
-#endif
diff --git a/TC/telephony_TC/sim/unit/log b/TC/telephony_TC/sim/unit/log
deleted file mode 100644 (file)
index 652b3ef..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-uts_tapi_get_file_info.c:              if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_FILE_INFO_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tapi_get_file_info.c:                      tet_infoline("startup fail. tel_register_event() failed");
-uts_tapi_get_lock_info.c:              if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_LOCKTYPE_INFO_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tapi_get_lock_info.c:                      tet_infoline("startup fail. tel_register_event() failed");
-uts_tapi_read_sim_file.c:              if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_READ_FILE_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tapi_read_sim_file.c:                      tet_infoline("startup fail. tel_register_event() failed");
-uts_tapi_sim_disable_lock.c:           if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_DISABLE_SIMLOCK_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tapi_sim_disable_lock.c:                   tet_infoline("startup fail. tel_register_event() failed");
-uts_tapi_sim_enable_lock.c:            if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_ENABLE_SIMLOCK_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tapi_sim_enable_lock.c:                    tet_infoline("startup fail. tel_register_event() failed");
-uts_tapi_sim_getlock_personalization_status.c:         if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_STATUS_PERSONALIZATION_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tapi_sim_getlock_personalization_status.c:                 tet_infoline("startup fail. tel_register_event() failed");
-uts_tapi_update_sim_file.c:            if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_UPDATE_FILE_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tapi_update_sim_file.c:                    tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_change_sim_pins.c:             //tel_register_event(TAPI_EVENT_SIM_DISABLE_SEC_CNF,&subscription_id,(TelAppCallback)sim_app_callback);
-uts_tel_change_sim_pins.c:             //tel_register_event(TAPI_EVENT_SIM_CHANGE_PINS_CNF,&subscription_id,(TelAppCallback)sim_app_callback);
-uts_tel_change_sim_pins.c:             //tel_register_event(TAPI_EVENT_SIM_VERIFY_SEC_CNF,&subscription_id,(TelAppCallback)sim_app_callback);
-uts_tel_change_sim_pins.c:             //tel_register_event(TAPI_EVENT_SIM_ENABLE_SEC_CNF,&subscription_id,(TelAppCallback)sim_app_callback);
-uts_tel_change_sim_pins.c:             tel_register_event(TAPI_EVENT_SIM_DISABLE_SEC_CNF,&subscription_id,(TelAppCallback)sim_app_callback);
-uts_tel_change_sim_pins.c:             tel_register_event(TAPI_EVENT_SIM_CHANGE_PINS_CNF,&subscription_id,(TelAppCallback)sim_app_callback);
-uts_tel_change_sim_pins.c:             tel_register_event(TAPI_EVENT_SIM_VERIFY_SEC_CNF,&subscription_id,(TelAppCallback)sim_app_callback);
-uts_tel_change_sim_pins.c:             tel_register_event(TAPI_EVENT_SIM_ENABLE_SEC_CNF,&subscription_id,(TelAppCallback)sim_app_callback);
-uts_tel_delete_sim_pb_record.c:                if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_PB_DELETE_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_delete_sim_pb_record.c:                        tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_disable_sim_fdn.c:             if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_DISABLE_SEC_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_disable_sim_fdn.c:                     tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_disable_sim_security.c:                if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_DISABLE_SEC_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_disable_sim_security.c:                        tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_enable_sim_fdn.c:              if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_ENABLE_SEC_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_enable_sim_fdn.c:                      tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_enable_sim_security.c:         //if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_ENABLE_PIN_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_enable_sim_security.c:         if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_ENABLE_SEC_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_enable_sim_security.c:                 tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_get_sim_indicator_info.c:              if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_SET_INDICATION_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_get_sim_indicator_info.c:                      tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_get_sim_init_info.c:           if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_SET_MAILBOX_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_get_sim_init_info.c:                   tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_get_sim_language.c:            //if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_LOCKTYPE_INFO_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_get_sim_language.c:                    tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_get_sim_mailbox_info.c:                if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_SET_MAILBOX_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_get_sim_mailbox_info.c:                        tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_get_sim_pb_3g_meta_info.c:             if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_PB_CAPABILITY_INFO_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_get_sim_pb_3g_meta_info.c:                     tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_get_sim_pb_count.c:            if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_PB_STORAGE_COUNT_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_get_sim_pb_count.c:                    tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_get_sim_pb_init_info.c:                if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_SET_MAILBOX_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_get_sim_pb_init_info.c:                        tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_get_sim_pb_meta_info.c:                if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_PB_ENTRY_INFO_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_get_sim_pb_meta_info.c:                        tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_lock_sim_personalization.c:            if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_ENABLE_PERS_CNF, &subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_lock_sim_personalization.c:                    tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_read_sim_pb_record.c:          if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_PB_ACCESS_READ_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_read_sim_pb_record.c:                  tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_req_sap_cardreader_status.c:           if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_SAP_CARD_READER_STATUS_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_req_sap_cardreader_status.c:                   tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_req_sap_connection.c:          if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_SAP_CONNECT_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_req_sap_connection.c:                  tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_req_sap_connection_status.c:           if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_SAP_CONNECT_STATUS_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_req_sap_connection_status.c:                   tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_req_sap_power_operation.c:             if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_SAP_SET_SIM_POWER_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_req_sap_power_operation.c:                     tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_req_sap_transfer_apdu.c:               if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_SAP_TRANSFER_APDU_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_req_sap_transfer_apdu.c:                       tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_req_sap_transfer_atr.c:                if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_SAP_TRANSFER_ATR_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_req_sap_transfer_atr.c:                        tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_req_sap_transport_protocol.c:          if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_SAP_SET_PROTOCOL_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_req_sap_transport_protocol.c:                  tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_req_sim_access.c:              if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_SET_MAILBOX_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_req_sim_access.c:                      tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_req_sim_isim_authentication.c:         if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_ISIM_AUTHENTICATION_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_req_sim_isim_authentication.c:                 tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_set_sim_indicator_info.c:              if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_SET_INDICATION_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_set_sim_indicator_info.c:                      tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_set_sim_language.c:            if ( (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_SET_LANGUAGE_CNF,&subscription_id,(TelAppCallback)sim_app_callback, NULL) ) || (TAPI_API_SUCCESS == tel_register_event(TAPI_SIM_PIN_OPERATION_SUCCESS,&subscription_id,(TelAppCallback)sim_app_callback, NULL) ) )
-uts_tel_set_sim_language.c:                    tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_set_sim_mailbox_info.c:                if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_SET_MAILBOX_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_set_sim_mailbox_info.c:                        tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_update_sim_pb_record.c:                if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_PB_UPDATE_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_update_sim_pb_record.c:                        tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_verifiy_sim_pins.c:            if ( (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_VERIFY_SEC_CNF,&subscription_id,(TelAppCallback)sim_app_callback) ) || (TAPI_API_SUCCESS == tel_register_event(TAPI_SIM_PIN_OPERATION_SUCCESS,&subscription_id,(TelAppCallback)sim_app_callback) ) )
-uts_tel_verifiy_sim_pins.c:                    tet_infoline("startup fail. tel_register_event() failed");
-uts_tel_verify_sim_puks.c:             if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_VERIFY_PUK_CNF,&subscription_id,(TelAppCallback)sim_app_callback) )
-uts_tel_verify_sim_puks.c:                     tet_infoline("startup fail. tel_register_event() failed");
diff --git a/TC/telephony_TC/sim/unit/makefile b/TC/telephony_TC/sim/unit/makefile
deleted file mode 100644 (file)
index 5d51641..0000000
+++ /dev/null
@@ -1,206 +0,0 @@
-CC=gcc -Wall
-
-LB1 = async_util
-TS1 = uts_tel_get_sim_type
-TS2 = uts_tel_get_sim_init_info
-TS3 = uts_tel_get_sim_ecc
-TS4 = uts_tel_get_sim_imsi
-TS5 = uts_tel_get_sim_language
-TS6 = uts_tel_set_sim_language
-TS7 = uts_tel_req_sim_access
-TS8 = uts_tel_verify_sim_puks
-TS9 = uts_tel_verifiy_sim_pins
-TS10 = uts_tel_change_sim_pins
-TS11 = uts_tel_disable_sim_security
-TS12 = uts_tel_disable_sim_fdn
-TS13 = uts_tel_enable_sim_security
-TS14 = uts_tel_enable_sim_fdn
-TS15 = uts_tel_get_sim_fdn_status
-TS16 = uts_tel_get_sim_security_status
-TS17 = uts_tel_get_sim_personalization_status
-TS18 = uts_tel_disable_sim_personalization
-TS19 = uts_tel_enable_sim_personalization
-TS20 = uts_tel_get_sim_mailbox_info
-TS21 = uts_tel_get_sim_callforwarding_info
-TS22 = uts_tel_get_sim_messagewaiting_info
-TS23 = uts_tel_get_sim_cphs_info
-TS24 = uts_tel_get_sim_msisdn
-TS25 = uts_tel_get_sim_pb_init_info
-TS26 = uts_tel_get_sim_pb_meta_info
-TS27 = uts_tel_get_sim_pb_3g_meta_info
-TS28 = uts_tel_get_sim_pb_count
-TS29 = uts_tel_read_sim_pb_record
-TS30 = uts_tel_update_sim_pb_record
-TS31 = uts_tel_delete_sim_pb_record
-TS32 = uts_tel_req_sim_isim_authentication
-TS33 = #uts_tel_req_sap_connection
-TS34 = #uts_tel_req_sap_connection_status
-TS35 = #uts_tel_req_sap_transfer_atr
-TS36 = #uts_tel_req_sap_transfer_apdu
-TS37 = #uts_tel_req_sap_transport_protocol
-TS38 = #uts_tel_req_sap_power_operation
-TS39 = #uts_tel_req_sap_cardreader_status
-TS40 =
-TS41 =
-TS42 =
-
-LIBS  = `pkg-config --libs  gconf-2.0 glib-2.0 dbus-1 dbus-glib-1 gthread-2.0 tapi ` 
-LIBS +=$(TET_ROOT)/lib/tet3/tcm.o
-LIBS +=-L$(TET_ROOT)/lib/tet3 -lapi
-
-INCS = -I. `pkg-config --cflags  gconf-2.0 glib-2.0 dbus-1 dbus-glib-1 gthread-2.0 tapi `
-INCS += -I$(TET_ROOT)/inc/tet3 
-INCS += -I../
-
-CFLAGS = $(INCS) -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -DWITHOUT_APP_MGR 
-CFLAGS += -D_TETWARE_MODE_ 
-CC +=$(CFLAGS)
-LDFLAGS = $(LIBS)
-
-#ifeq ($(ARCH),target)
-#CC += -g -mabi=aapcs-linux
-#endif
-
-all :  $(LB1) $(TS1) $(TS2) $(TS3) $(TS4) $(TS5) $(TS6) $(TS7) $(TS8) $(TS9) $(TS10) \
-       $(TS11) $(TS12) $(TS13) $(TS14) $(TS15) $(TS16) $(TS17) $(TS18) $(TS19) $(TS20) \
-       $(TS21) $(TS22) $(TS23) $(TS24) $(TS25) $(TS26) $(TS27) $(TS28) $(TS29) $(TS30) \
-       $(TS31) $(TS32) $(TS33) $(TS34) $(TS35) $(TS36) $(TS37) $(TS38) $(TS39) $(TS40) $(TS41) $(TS42)
-      
-      
-clean :
-       rm -rf *~ *.o target i386 tet_lock tet_captured *.pyc *.log .scon*
-       rm -rf $(TS1) $(TS2) $(TS3) $(TS4) $(TS5) $(TS6) $(TS7) $(TS8) $(TS9) $(TS10)
-       rm -rf $(TS11) $(TS12) $(TS13) $(TS14) $(TS15) $(TS16) $(TS17) $(TS18) $(TS19) $(TS20)
-       rm -rf $(TS21) $(TS22) $(TS23) $(TS24) $(TS25) $(TS26) $(TS27) $(TS28) $(TS29) $(TS30)
-       rm -rf $(TS31) $(TS32) $(TS33) $(TS34) $(TS35) $(TS36) $(TS37) $(TS38) $(TS39) $(TS40) $(TS41) $(TS42)
-
-
-$(LB1): $(LB1).c
-       $(CC) -c $(LB1).c
-
-$(TS1): $(TS1).c $(LB1)
-       $(CC) -o $(TS1) $(TS1).c  $(LDFLAGS) $(LB1).o
-
-$(TS2): $(TS2).c $(LB1)
-       $(CC) -o $(TS2) $(TS2).c  $(LDFLAGS) $(LB1).o
-
-$(TS3): $(TS3).c $(LB1)
-       $(CC) -o $(TS3) $(TS3).c  $(LDFLAGS) $(LB1).o
-
-$(TS4): $(TS4).c $(LB1)
-       $(CC) -o $(TS4) $(TS4).c  $(LDFLAGS) $(LB1).o
-
-$(TS5): $(TS5).c $(LB1)
-       $(CC) -o $(TS5) $(TS5).c  $(LDFLAGS) $(LB1).o
-
-$(TS6): $(TS6).c $(LB1)
-       $(CC) -o $(TS6) $(TS6).c  $(LDFLAGS) $(LB1).o
-
-$(TS7): $(TS7).c $(LB1)
-       $(CC) -o $(TS7) $(TS7).c  $(LDFLAGS) $(LB1).o
-
-$(TS8): $(TS8).c $(LB1)
-       $(CC) -o $(TS8) $(TS8).c  $(LDFLAGS) $(LB1).o
-
-$(TS9): $(TS9).c $(LB1)
-       $(CC) -o $(TS9) $(TS9).c  $(LDFLAGS) $(LB1).o
-
-$(TS10): $(TS10).c $(LB1)
-       $(CC) -o $(TS10) $(TS10).c  $(LDFLAGS) $(LB1).o
-
-$(TS11): $(TS11).c $(LB1)
-       $(CC) -o $(TS11) $(TS11).c  $(LDFLAGS) $(LB1).o
-
-$(TS12): $(TS12).c $(LB1)
-       $(CC) -o $(TS12) $(TS12).c  $(LDFLAGS) $(LB1).o
-
-$(TS13): $(TS13).c $(LB1)
-       $(CC) -o $(TS13) $(TS13).c  $(LDFLAGS) $(LB1).o
-
-$(TS14): $(TS14).c $(LB1)
-       $(CC) -o $(TS14) $(TS14).c  $(LDFLAGS) $(LB1).o
-
-$(TS15): $(TS15).c $(LB1)
-       $(CC) -o $(TS15) $(TS15).c  $(LDFLAGS) $(LB1).o
-
-$(TS16): $(TS16).c $(LB1)
-       $(CC) -o $(TS16) $(TS16).c  $(LDFLAGS) $(LB1).o
-
-$(TS17): $(TS17).c $(LB1)
-       $(CC) -o $(TS17) $(TS17).c  $(LDFLAGS) $(LB1).o
-
-$(TS18): $(TS18).c $(LB1)
-       $(CC) -o $(TS18) $(TS18).c  $(LDFLAGS) $(LB1).o
-
-$(TS19): $(TS19).c $(LB1)
-       $(CC) -o $(TS19) $(TS19).c  $(LDFLAGS) $(LB1).o
-
-$(TS20): $(TS20).c $(LB1)
-       $(CC) -o $(TS20) $(TS20).c  $(LDFLAGS) $(LB1).o
-
-$(TS21): $(TS21).c $(LB1)
-       $(CC) -o $(TS21) $(TS21).c  $(LDFLAGS) $(LB1).o
-
-$(TS22): $(TS22).c $(LB1)
-       $(CC) -o $(TS22) $(TS22).c  $(LDFLAGS) $(LB1).o
-
-$(TS23): $(TS23).c $(LB1)
-       $(CC) -o $(TS23) $(TS23).c  $(LDFLAGS) $(LB1).o
-
-$(TS24): $(TS24).c $(LB1)
-       $(CC) -o $(TS24) $(TS24).c  $(LDFLAGS) $(LB1).o
-
-$(TS25): $(TS25).c $(LB1)
-       $(CC) -o $(TS25) $(TS25).c  $(LDFLAGS) $(LB1).o
-
-$(TS26): $(TS26).c $(LB1)
-       $(CC) -o $(TS26) $(TS26).c  $(LDFLAGS) $(LB1).o
-
-$(TS27): $(TS27).c $(LB1)
-       $(CC) -o $(TS27) $(TS27).c  $(LDFLAGS) $(LB1).o
-
-$(TS28): $(TS28).c $(LB1)
-       $(CC) -o $(TS28) $(TS28).c  $(LDFLAGS) $(LB1).o
-
-$(TS29): $(TS29).c $(LB1)
-       $(CC) -o $(TS29) $(TS29).c  $(LDFLAGS) $(LB1).o
-
-$(TS30): $(TS30).c $(LB1)
-       $(CC) -o $(TS30) $(TS30).c  $(LDFLAGS) $(LB1).o
-
-$(TS31): $(TS31).c $(LB1)
-       $(CC) -o $(TS31) $(TS31).c  $(LDFLAGS) $(LB1).o 
-
-$(TS32): $(TS32).c $(LB1)
-       $(CC) -o $(TS32) $(TS32).c  $(LDFLAGS) $(LB1).o
-
-$(TS33): $(TS33).c $(LB1)
-       $(CC) -o $(TS33) $(TS33).c  $(LDFLAGS) $(LB1).o
-
-$(TS34): $(TS34).c $(LB1)
-       $(CC) -o $(TS34) $(TS34).c  $(LDFLAGS) $(LB1).o
-
-$(TS35): $(TS35).c $(LB1)
-       $(CC) -o $(TS35) $(TS35).c  $(LDFLAGS) $(LB1).o
-
-$(TS36): $(TS36).c $(LB1)
-       $(CC) -o $(TS36) $(TS36).c  $(LDFLAGS) $(LB1).o
-
-$(TS37): $(TS37).c $(LB1)
-       $(CC) -o $(TS37) $(TS37).c  $(LDFLAGS) $(LB1).o
-
-$(TS38): $(TS38).c $(LB1)
-       $(CC) -o $(TS38) $(TS38).c  $(LDFLAGS) $(LB1).o
-
-$(TS39): $(TS39).c $(LB1)
-       $(CC) -o $(TS39) $(TS39).c  $(LDFLAGS) $(LB1).o
-
-$(TS40): $(TS40).c $(LB1)
-       $(CC) -o $(TS40) $(TS40).c  $(LDFLAGS) $(LB1).o
-
-$(TS41): $(TS41).c $(LB1)
-       $(CC) -o $(TS41) $(TS41).c  $(LDFLAGS) $(LB1).o
-
-$(TS42): $(TS42).c $(LB1)
-       $(CC) -o $(TS42) $(TS42).c  $(LDFLAGS) $(LB1).o
-
diff --git a/TC/telephony_TC/sim/unit/sim_pw.txt b/TC/telephony_TC/sim/unit/sim_pw.txt
deleted file mode 100644 (file)
index b7a16a1..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-pin1:1111
-pin2:2222
-puk1:11111111
-puk2:22222222
-wpin1:5555
-wpin2:6666
-wpuk1:77777777
-wpuk2:88888888
diff --git a/TC/telephony_TC/sim/unit/tet_tapi_util.h b/TC/telephony_TC/sim/unit/tet_tapi_util.h
deleted file mode 100644 (file)
index 73156c5..0000000
+++ /dev/null
@@ -1,327 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _TET_TAPI_UTIL_
-#define _TET_TAPI_UTIL_
-
-#include <string.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <TelUtility.h>
-
-#ifndef UINT16
-typedef int UINT16;
-#endif
-
-#ifndef BOOL
-#define BOOL int
-#endif
-#ifndef TRUE
-#define TRUE 1
-#endif
-#ifndef FALSE
-#define FALSE 0
-#endif
-
-#include <TapiCommon.h>
-
-// TET_Error Code string return macro
-typedef struct {
-       TapiResult_t _err_;
-       char * string;
-}TAPI_Error_String;
-
-#define TAPI_ERROR_MAX TAPI_API_MISC_OUTPARAM_NULL+1
-
-
-TAPI_Error_String g_TAPI_ErrorString[200] = {
-
-       /* #################### COMMON START ################ */
-       {TAPI_API_SUCCESS,              "TAPI_API_SUCCESS : No Error occured"},
-       {TAPI_API_INVALID_INPUT,        "TAPI_API_INVALID_INPUT : Input values are not correct in TAPI Library"},
-       {TAPI_API_INVALID_PTR,          "TAPI_API_INVALID_PTR : Invalid pointer"},
-       {TAPI_API_NOT_SUPPORTED,        "TAPI_API_NOT_SUPPORTED: The feature corresponding to requested API is not supported. This may be due to market/network/vendor reasons such as the feature is not available in the network"},
-       {TAPI_API_DEPRICATED,           "TAPI_API_DEPRICATED : This API is deprecated and will be so in future also"},
-       {TAPI_API_SYSTEM_OUT_OF_MEM,    "TAPI_API_SYSTEM_OUT_OF_MEM : Out of memory"},
-       {TAPI_API_SYSTEM_RPC_LINK_DOWN, "TAPI_API_SYSTEM_RPC_LINK_DOWN : RPC link down"},
-       {TAPI_API_MODEM_POWERED_OFF,    "TAPI_API_MODEM_POWERED_OFF : The Modem is powered off"},
-       {TAPI_API_SERVICE_NOT_READY,    "TAPI_API_SERVICE_NOT_READY : Phone was powered on, but yet to receive the power up completed notification"},
-       {TAPI_API_SERVER_FAILURE ,      "TAPI_API_SERVER_FAILURE : error occurred in Telephony server"},
-       {TAPI_API_OEM_PLUGIN_FAILURE ,  "TAPI_API_OEM_PLUGIN_FAILURE  : Plug-in layer failure"},
-       {TAPI_API_TRANSPORT_LAYER_FAILURE, "TAPI_API_TRANSPORT_LAYER_FAILURE"},
-
-       {TAPI_API_INVALID_CALL_HANDLE,  "TAPI_API_INVALID_CALL_HANDLE : Invalid call handle"},
-       {TAPI_API_INVALID_CALL_STATE,   "TAPI_API_INVALID_CALL_STATE : Invalid call state- Newly added. Need to raise a CR for this"},
-
-       {TAPI_API_INVALID_DATA_LEN,     "TAPI_API_INVALID_DATA_LEN : Invalid data length"},
-       {TAPI_API_SIM_NOT_FOUND,        "TAPI_API_SIM_NOT_FOUND : Sim is not present / removed "},
-       {TAPI_API_SIM_BUSY,             "TAPI_API_SIM_BUSY : SIM is busy"},
-       {TAPI_API_SIM_INVALID_CARD_TYPE, "TAPI_API_SIM_INVALID_CARD_TYPE : Sim card is unknown "},
-       {TAPI_API_SIM_CARD_PERMANENT_ERROR, "TAPI_API_SIM_CARD_PERMANENT_ERROR : SIM error/blocked state"},
-       {TAPI_API_SIM_NOT_INITIALIZED,  "TAPI_API_SIM_NOT_INITIALIZED : SIM has not initialized yet (waiting for PIN verifcation, etc)"},
-       {TAPI_API_REQUEST_MAX_IN_PROGRESS, "TAPI_API_REQUEST_MAX_IN_PROGRESS : Maximum number of API Request for the same service are already in progress "},
-       {TAPI_API_OFFLINE_MODE_ERROR,   "TAPI_API_OFFLINE_MODE_ERROR : OEM Telephony Provider is in Offline mode"},
-       {TAPI_EVENT_CLASS_UNKNOWN,      "TAPI_EVENT_CLASS_UNKNOWN : Event class specified is not present in Event Class list"},
-       {TAPI_EVENT_UNKNOWN,            "TAPI_EVENT_UNKNOWN : Event specified is not present in TAPI Unsolicited Event list"},
-       {TAPI_REGISTRATION_OP_FAILED,   "TAPI_REGISTRATION_OP_FAILED : Callback Registration/De-registration failed"},
-       {TAPI_NETTEXT_SCADDRESS_NOT_SET, "TAPI_NETTEXT_SCADDRESS_NOT_SET"},
-       {TAPI_API_OPERATION_FAILED,     "TAPI_API_OPERATION_FAILED"},
-       {TAPI_API_INVALID_OPERATION,    "TAPI_API_INVALID_OPERATION"},
-
-       /* ############## XOCEAN ##################### */
-       {TAPI_API_SYSTEM_RPC_LINK_NOT_EST, "TAPI_API_SYSTEM_RPC_LINK_NOT_EST"},
-       {TAPI_API_API_NOT_SUPPORTED,    "TAPI_API_API_NOT_SUPPORTED"},
-       {TAPI_API_SERVER_LAYER_FAILURE, "TAPI_API_SERVER_LAYER_FAILURE"},
-
-       /* ################### CAL #############################*/
-       {TAPI_API_INVALID_CALL_ID,      "TAPI_API_INVALID_CALL_ID"},
-       {TAPI_API_CALL_CTXT_OVERFLOW,   "TAPI_API_CALL_CTXT_OVERFLOW"},
-       {TAPI_API_COULD_NOT_GET_CALL_CTXT, "TAPI_API_COULD_NOT_GET_CALL_CTXT"},
-       {TAPI_API_CTXT_SEARCH_RET_NON_CALL_CTXT, "TAPI_API_CTXT_SEARCH_RET_NON_CALL_CTXT"},
-       {TAPI_API_COULD_NOT_DESTROY_CTXT,  "TAPI_API_COULD_NOT_DESTROY_CTXT"},
-       {TAPI_API_INVALID_LINE_ID,      "TAPI_API_INVALID_LINE_ID"},
-
-       /*      POWER   */
-       //{TAPI_API_MODEM_ALREADY_ON,  "TAPI_API_MODEM_ALREADY_ON"},
-       //{TAPI_API_MODEM_ALREADY_OFF, "TAPI_API_MODEM_ALREADY_OFF"},
-
-       /* NETTEXT */
-       {TAPI_API_NETTEXT_DEVICE_NOT_READY,     "TAPI_API_NETTEXT_DEVICE_NOT_READY"},
-       {TAPI_API_NETTEXT_SCADDR_NOT_SET,       "TAPI_API_NETTEXT_SCADDR_NOT_SET"},
-       {TAPI_API_NETTEXT_INVALID_DATA_LEN,     "TAPI_API_NETTEXT_INVALID_DATA_LEN"},
-
-#if 0
-       /* SIM  */
-       {TAPI_API_SIM_DEV_CTX_NULL,             "TAPI_API_SIM_DEV_CTX_NULL"},
-       {TAPI_API_SIM_NOT_FOUND,                "TAPI_API_SIM_SIM_NOT_FOUND"},
-       //{TAPI_API_SIM_SIM_NOT_FOUND,          "TAPI_API_SIM_SIM_NOT_FOUND"},
-       {TAPI_API_SIM_SIM_SESSION_FULL,         "TAPI_API_SIM_SIM_SESSION_FULL"},
-       {TAPI_API_SIM_INVALID_APP_ID,           "TAPI_API_SIM_INVALID_APP_ID"},
-       {TAPI_API_SIM_INVALID_SESSION,          "TAPI_API_SIM_INVALID_SESSION"},
-       {TAPI_API_SIM_FILE_TYPE_WRONG,          "TAPI_API_SIM_FILE_TYPE_WRONG"},
-       {TAPI_API_SIM_FILE_ENCODE_FAIL,         "TAPI_API_SIM_FILE_ENCODE_FAIL"},
-       {TAPI_API_SIM_FILE_DECODE_FAIL,         "TAPI_API_SIM_FILE_DECODE_FAIL"},
-       {TAPI_API_SIM_FILE_INVALID_ENCODE_LEN,  "TAPI_API_SIM_FILE_INVALID_ENCODE_LEN"},
-       {TAPI_API_SIM_INVALID_RECORD_NUM,       "TAPI_API_SIM_INVALID_RECORD_NUM"},
-       {TAPI_API_SIM_CASE_NOT_HANDLED,         "TAPI_API_SIM_CASE_NOT_HANDLED"},
-       {TAPI_API_SIM_OEM_UNKNOWN_SIM_CARD,     "TAPI_API_SIM_OEM_UNKNOWN_SIM_CARD"},
-       {TAPI_API_SIM_SEC_UKNOWN_PIN_TYPE,      "TAPI_API_SIM_SEC_UKNOWN_PIN_TYPE"},
-       {TAPI_API_SIM_SEC_INVALID_PIN_TYPE,     "TAPI_API_SIM_SEC_INVALID_PIN_TYPE"},
-       {TAPI_API_SIM_PB_INVALID_STORAGE_TYPE,  "TAPI_API_SIM_PB_INVALID_STORAGE_TYPE"},
-#endif
-       /* Network */
-       {TAPI_API_NETWORK_INVALID_CTXT,         "TAPI_API_NETWORK_INVALID_CTXT"},
-
-       /*Misc */
-       {TAPI_API_MISC_RETURN_NULL,             "TAPI_API_MISC_RETURN_NULL"},
-       {TAPI_API_MISC_VALIDITY_ERROR,          "TAPI_API_MISC_VALIDITY_ERROR"},
-       {TAPI_API_MISC_INPUTPARM_ERROR,         "TAPI_API_MISC_INPUTPARM_ERROR"},
-       {TAPI_API_MISC_OUTPARAM_NULL,           "TAPI_API_MISC_OUTPARAM_NULL"},
-};
-
-
-
-//#define TET_ERROR_TO_STRING(_err_) g_TAPI_ErrorString[(_err_)].string
-static char * nondefined_err = "Non defined error code";
-static const char* TET_ERROR_TO_STRING(TapiResult_t err_code)
-{
-       int index;
-       for( index=0; g_TAPI_ErrorString[index]._err_ != TAPI_ERROR_MAX ; index++)
-       {
-               if (g_TAPI_ErrorString[index]._err_ == err_code || g_TAPI_ErrorString[index]._err_ == TAPI_ERROR_MAX)
-                       return g_TAPI_ErrorString[index].string;
-       }
-       return nondefined_err;
-}
-
-
-// TET_STAMP ******************************************************************************
-#define TET_STAMP_START(log) \
-do {\
-       tet_printf("[*]%s[%d] %s() : %s", __FILE__,__LINE__,__FUNCTION__,log);\
-} while(0)
-
-#define TET_STAMP_PASS() \
-do {\
-       tet_printf("[*]%s[%d] %s() : pass",__FILE__,__LINE__,__FUNCTION__);\
-       tet_result(TET_PASS);\
-} while(0)
-
-#define TET_STAMP_FAIL() \
-do {\
-       tet_printf("[*]%s[%d] %s() : fail",__FILE__,__LINE__,__FUNCTION__);\
-       tet_result(TET_FAIL);\
-} while(0)
-
-#define TET_STAMP(result) \
-do {\
-       tet_printf("[*]%s[%d] %s() TET_STAMP(%d)",__FILE__,__LINE__,__FUNCTION__,result); \
-       tet_result(result);\
-} while(0)
-
-// TET_RESULT Function *********************************************************************
-#define TET_RESULT_EQUAL(result,x1,x2) \
-do { \
-   if ((x1) == (x2)) \
-       { \
-          tet_printf("[*]%s[%d] %s() : %d and %d is equal",__FILE__,__LINE__,__FUNCTION__, x1,x2); \
-          tet_result(result); \
-          if(result==TET_PASS || result==TET_FAIL || result == TET_UNTESTED) return;\
-       } \
- } while(0)
-
-#define TET_RESULT_EQUAL_GOTO(result,label,x1,x2) \
-do { \
-   if ((x1) == (x2)) \
-       { \
-          tet_printf("[*]%s[%d] %s() : %d and %d is equal",__FILE__,__LINE__,__FUNCTION__, x1,x2); \
-          tet_result(result); \
-          goto label;\
-       } \
- } while(0)
-
-#define TET_RESULT_NOT_EQUAL(result,x1,x2) \
-do { \
-   if ((x1) != (x2)) \
-       { \
-          tet_printf("[*]%s[%d] %s() : %d and %d is not equal",__FILE__,__LINE__,__FUNCTION__, x1,x2); \
-          tet_result(result); \
-          if(result==TET_PASS || result==TET_FAIL || result == TET_UNTESTED) return;\
-       } \
- } while(0)
-
-
-#define TET_RESULT_NOT_EQUAL_GOTO(result,label,x1,x2) \
-do { \
-   if ((x1) != (x2)) \
-       { \
-          tet_printf("[*]%s[%d] %s() : %d and %d is not equal",__FILE__,__LINE__,__FUNCTION__, x1,x2); \
-          tet_result(result); \
-          goto label;\
-       } \
- } while(0)
-
-
-// TET_CHECK Macro : TAPI api return value test macro. If it is not TAPI_API_SUCCESS, tet_retult(TET_FAIL) is called
-#define TET_CHECK(x1, y...) \
-do { \
-   TapiResult_t _err_ = y;\
-   if (_err_ != (x1)) \
-       { \
-               tet_printf("[*]%s[%d] %s() : test fail. error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, _err_, TET_ERROR_TO_STRING(_err_) ); \
-               tet_result(TET_FAIL); \
-               return;\
-       } \
- } while(0)
-
-
-#define TET_PRECONDITION(x1, y...) \
-do { \
-   TapiResult_t _err_ = y;\
-   if (_err_ != (x1)) \
-       { \
-               tet_printf("[*]%s[%d] %s : Test precondition fail. error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, _err_, TET_ERROR_TO_STRING(_err_) ); \
-               tet_result(TET_UNTESTED); \
-               return;\
-       } \
- } while(0)
-
-#define TET_PRECONDITION2(x1, x2, y...) \
-do { \
-   TapiResult_t _err_ = y;\
-   if ( !(_err_ == (x1) || _err_ == (x2))) \
-       { \
-               tet_printf("[*]%s[%d] %s : Test precondition fail. error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, _err_, TET_ERROR_TO_STRING(_err_) ); \
-               tet_result(TET_UNTESTED); \
-               return;\
-       } \
- } while(0)
-
-
-#define TET_CHECK_GOTO(x1,label, y...) \
-do { \
-   TapiResult_t _err_ = y;\
-   if (_err_ != (x1)) \
-       { \
-               tet_printf("[*]%s[%d] %s() : test fail. error code =%x [%s] ",__FILE__,__LINE__,__FUNCTION__, _err_, TET_ERROR_TO_STRING(_err_) ); \
-               tet_result(TET_FAIL); \
-               goto label;\
-       } \
- } while(0)
-
-#define TET_PRECONDITION_GOTO(x1,label, y...) \
-do { \
-   TapiResult_t _err_ = y;\
-   if (_err_ != (x1)) \
-       { \
-               tet_printf("[*]%s[%d] %s() : Test precondition fail. error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, _err_, TET_ERROR_TO_STRING(_err_) ); \
-               tet_result(TET_UNTESTED); \
-               goto label;\
-       } \
- } while(0)
-
-#define TET_PRECONDITION2_GOTO(x1,x2,label, y...) \
-do { \
-   TapiResult_t _err_ = y;\
-   if ( !(_err_ == (x1)||_err_ == (x2))) \
-       { \
-               tet_printf("[*]%s[%d] %s() : Test precondition fail. error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, _err_, TET_ERROR_TO_STRING(_err_) ); \
-               tet_result(TET_UNTESTED); \
-               goto label;\
-       } \
- } while(0)
-
-
-#define TET_CHECK2(x1,x2, y...) \
-do { \
-   TapiResult_t _err_ = y;\
-   if (!(_err_ == (x1) || _err_ == (x2))) \
-       { \
-               tet_printf("[*]%s[%d] %s() : test fail. error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, _err_, TET_ERROR_TO_STRING(_err_) ); \
-               tet_result(TET_FAIL); \
-               return;\
-       } \
- } while(0)
-
-#define TET_CHECK2_GOTO(x1,x2, label, y...) \
-do { \
-   TapiResult_t _err_ = y;\
-   if (!(_err_ == (x1) || _err_ == (x2))) \
-       { \
-               tet_printf("[*]%s[%d] %s() : test fail. error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, _err_, TET_ERROR_TO_STRING(_err_) ); \
-               tet_result(TET_FAIL); \
-               goto label;\
-       } \
-   else tet_printf("[*]%s[%d] %s() : test success. error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, _err_, TET_ERROR_TO_STRING(_err_) ); \
- } while(0)
-
-
-#define TET_CHECK3(x1,x2,x3, y...) \
-do { \
-   TapiResult_t _err_ = y;\
-   if (!(_err_ == (x1) || _err_ == (x2) || _err_ == (x3))) \
-       { \
-               tet_printf("[*]%s[%d] %s() : test fail. error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, _err_, TET_ERROR_TO_STRING(_err_) ); \
-               tet_result(TET_FAIL); \
-               return;\
-       } \
- } while(0)
-#endif //_TET_TAPI_UTIL_
diff --git a/TC/telephony_TC/sim/unit/tslist b/TC/telephony_TC/sim/unit/tslist
deleted file mode 100644 (file)
index 6e805b4..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/sim/unit/uts_tel_get_sim_type
-/sim/unit/uts_tel_get_sim_init_info
-/sim/unit/uts_tel_get_sim_ecc
-/sim/unit/uts_tel_get_sim_imsi
-/sim/unit/uts_tel_get_sim_language
-/sim/unit/uts_tel_set_sim_language
-/sim/unit/uts_tel_req_sim_access
-/sim/unit/uts_tel_verify_sim_puks
-/sim/unit/uts_tel_verifiy_sim_pins
-/sim/unit/uts_tel_change_sim_pins
-/sim/unit/uts_tel_disable_sim_security
-/sim/unit/uts_tel_disable_sim_fdn
-/sim/unit/uts_tel_enable_sim_security
-/sim/unit/uts_tel_enable_sim_fdn
-/sim/unit/uts_tel_get_sim_fdn_status
-/sim/unit/uts_tel_get_sim_security_status
-/sim/unit/uts_tel_get_sim_personalization_status
-/sim/unit/uts_tel_disable_sim_personalization
-/sim/unit/uts_tel_enable_sim_personalization
-/sim/unit/uts_tel_get_sim_mailbox_info
-/sim/unit/uts_tel_get_sim_callforwarding_info
-/sim/unit/uts_tel_get_sim_messagewaiting_info
-/sim/unit/uts_tel_get_sim_cphs_info
-/sim/unit/uts_tel_get_sim_msisdn
-/sim/unit/uts_tel_get_sim_pb_init_info
-/sim/unit/uts_tel_get_sim_pb_meta_info
-/sim/unit/uts_tel_get_sim_pb_3g_meta_info
-/sim/unit/uts_tel_get_sim_pb_count
-/sim/unit/uts_tel_read_sim_pb_record
-/sim/unit/uts_tel_update_sim_pb_record
-/sim/unit/uts_tel_delete_sim_pb_record
-/sim/unit/uts_tel_req_sim_isim_authentication
diff --git a/TC/telephony_TC/sim/unit/uts_tel_change_sim_pins.c b/TC/telephony_TC/sim/unit/uts_tel_change_sim_pins.c
deleted file mode 100644 (file)
index f242c23..0000000
+++ /dev/null
@@ -1,700 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_CHANGE_PIN tel_change_sim_pins
-*
-* @brief Unit test code for tel_change_sim_pins()
-* @par Test function Prototype:
-*      TapiResult_t tel_change_sim_pins        (TelSimPinType_t PinType , const char *pOldPinData, const char *pNewPinData, int *pRequestId);
-* @par Test function description:
-*      This function changes PIN code based on the pin type passed along with old pin data and new pin data.
-* @par Important Notes:
-*      Based on Pin status (PIN/UPIN/PUK) is blocked, an unsolicited event TAPI_EVENT_SIM_STATUS_IND is published to Applications
-* @param [in]
-*      PinType  Pin type information.
-* @code
-typedef enum
-{
-    TAPI_SIM_PTYPE_PIN1        = 0x00,         // PIN 1
-    TAPI_SIM_PTYPE_PIN2        = 0x01,         // PIN 2
-    TAPI_SIM_PTYPE_PUK1        = 0x02,         // Puk 1
-    TAPI_SIM_PTYPE_PUK2        = 0x03,         // Puk 2
-    TAPI_SIM_PTYPE_UPIN        = 0x04,         // Universal PIN
-    TAPI_SIM_PTYPE_ADM = 0x05          // Administrator
-} TelSimPinType_t;
-* @endcode
-* @param [in]
-*      pOldPinData  Old pin code, entered by the user. (Null terminated string)
-* @param [in]
-*      pNewPinData  New pin code, entered by the user. (Null terminated string)
-* @param [out] pRequestId
-* \n  Unique identifier for a particular request.
-* \n  Request_id value can be any value from 0 to 255 if the API is returned successfully
-* \n  -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPinInfo_t. \n
-* (Asynchronous return status is indicated by #TelSimPinOperationResult_t.)
-*      - TAPI_EVENT_SIM_DISABLE_PIN_CNF
-*      - TAPI_EVENT_SIM_ENABLE_PIN_CNF
-*      - TAPI_EVENT_SIM_CHANGE_PIN_CNF
-*      - TAPI_EVENT_SIM_UNBLOCK_PIN_CNF
-* @pre
-*      - Before test script compile, you set correct PIN1_NORMAL, PIN2_NORMAL, PIN1_CHANGED, PIN2_CHANGED value on 'tet_tapi_util.h'
-*      - Before test script compile, you set incorrect PIN1_INCORRECT value on 'tet_tapi_util.h'
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tel_change_sim_pins.c
-* @brief       Test for the tel_change_sim_pins() API that is used to change pin1 code
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "uts_tel_change_sim_pins.h"
-#include "sim_common.h"
-#include "async_util.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_change_sim_pins_01, 1},
-       {utc_tel_change_sim_pins_02, 2},
-       {utc_tel_change_sim_pins_03, 3},
-       {utc_tel_change_sim_pins_04, 4},
-       {utc_tel_change_sim_pins_05, 5},
-       {utc_tel_change_sim_pins_06, 6},
-       {utc_tel_change_sim_pins_07, 7},
-       {utc_tel_change_sim_pins_08, 8},
-       {NULL, 0}
-};
-
-/*
-  User Defined Handler
-*/
-// Global variable for user data
-static BOOL gAsyncResult; //user defined data : Async callback is called or not
-static TelSimPinOperationResult_t gSimEventStatus;
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-extern sim_info_t g_si;
-
-
-/*
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////
-*/
-// Prototype : User must add function body
-gboolean g_timeout_callback (void *data);
-
-// GMainLoop global handler
-GMainLoop *sim_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(sim_loop);
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       sim_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);
-       g_main_loop_run (sim_loop);
-       return 0;
-}
-gboolean g_timeout_callback (void *data)
-{
-       gAsyncResult = FALSE;
-       tet_printf("[TIME OUT] g_timeout called .Close g_main_roop()");
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////
-
-
-static int sim_pin_process_for_condition(TelSimPinType_t wish_pin, TelSimPinStatus_t wish_condition)
-{
-    int pRequestId=0;
-       int tapiRet = TAPI_API_SUCCESS;
-       TelSimPinStatus_t pin_status = TAPI_SIM_PIN_STATUS_UNKNOWN;
-       TelSimSecPw_t sec_data;
-       memset(&sec_data, 0x00, sizeof(TelSimSecPw_t));
-       
-       tet_printf("pin[%d]:0-pin1, 1-pin2, wish_condition[%d]: 0-dis, 1- enabled, 2-blocked(puk)",wish_pin, wish_condition);
-
-       tapiRet = tel_get_sim_security_status(wish_pin,&pin_status);
-       if(tapiRet != TAPI_API_SUCCESS)
-       {
-               tet_printf("tel_get_sim_security_status is Failed with tapiRet[%d]", tapiRet);
-               return -1;
-       }
-
-       if(pin_status == TAPI_SIM_PIN_STATUS_DISABLED )
-       {
-               tet_printf("current pin status is TAPI_SIM_PIN_STATUS_DISABLED");
-       }
-       else if(pin_status == TAPI_SIM_PIN_STATUS_ENABLED)
-       {
-               tet_printf("current pin status is TAPI_SIM_PIN_STATUS_ENABLED");
-       }
-       else
-       {
-               tet_printf("current pin status is unhandled status[%d]",pin_status );
-               return -1;
-       }
-
-       if(pin_status == wish_condition )
-       {
-               tet_printf("current pin status is same with wished condition");
-               return 0;
-       }
-       else
-       {
-               tet_printf("current pin status is different with wished condition");    
-               sec_data.type = wish_pin;
-
-               if(wish_pin == TAPI_SIM_PTYPE_PIN1 )
-               {
-                       sec_data.pw_len = strlen(g_si.pin1);
-                       sec_data.pw = (unsigned char*)malloc(sec_data.pw_len);
-                       memcpy(sec_data.pw,g_si.pin1,sec_data.pw_len);
-               }
-               else if(wish_pin == TAPI_SIM_PTYPE_PIN2)
-               {
-                       sec_data.pw_len = strlen(g_si.pin2);
-                       sec_data.pw = (unsigned char*)malloc(sec_data.pw_len);
-                       memcpy(sec_data.pw,g_si.pin2,sec_data.pw_len);
-               }
-
-               gAsyncResult = FALSE;
-               
-               if(wish_condition == TAPI_SIM_PIN_STATUS_DISABLED)
-               {
-                       tet_printf("make pin status with wished condition(TAPI_SIM_PIN_STATUS_DISABLED)");
-
-                       tapiRet = tel_disable_sim_security(&sec_data,&pRequestId);
-               }
-               else if(wish_condition == TAPI_SIM_PIN_STATUS_ENABLED)
-               {
-                       tet_printf("make pin status with wished condition(TAPI_SIM_PIN_STATUS_ENABLED)");               
-                       tapiRet = tel_enable_sim_security(&sec_data,&pRequestId);
-               }
-               else
-               {
-                       tet_printf("Unhandled wish_condition[%d]", wish_condition);
-                       return -1;
-               }
-               
-               if(tapiRet != TAPI_API_SUCCESS)
-               {
-                       tet_printf("tapi return[%d] when en/disabling pin for condition",tapiRet);
-                       return -1;
-               }
-               else
-               {
-                       G_MAIN_LOOP_RUN(3);
-               }
-
-               if(gAsyncResult == TRUE)
-                       return 0;
-               else
-                       return -1;
-       }
-
-       return 0;
-}
-
-
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)
-{
-    tet_printf("\n\n\n***************[SIM APP]Callback data **********************\n");
-    tet_printf("[SIM APP]Reques Id[%d]\n", sim_event->RequestId);
-    tet_printf("[SIM APP]event status [%d]\n", sim_event->Status);
-
-    gAsyncResult = FALSE;
-    switch(sim_event->EventType)
-    {
-           case TAPI_EVENT_SIM_ENABLE_SEC_CNF: //preet: changed TAPI_EVENT_SIM_ENABLE_PIN_CNF to TAPI_EVENT_SIM_ENABLE_SEC_CNF
-        {
-            tet_printf("\n[SIM APP]*****************TAPI_EVENT_SIM_ENABLE_SEC_CNF***************************\n");
-            tet_printf("SIM Enable PIN event status = [%x]\n", sim_event->Status);
-
-            gSimEventStatus = sim_event->Status;
-            if(sim_event->Status == TAPI_SIM_PIN_OPERATION_SUCCESS)
-                gAsyncResult = TRUE;
-            else
-                gAsyncResult = FALSE;
-        }
-        break;
-
-           case TAPI_EVENT_SIM_DISABLE_SEC_CNF:        ////preet: changed TAPI_EVENT_SIM_DISABLE_PIN_CNF to TAPI_EVENT_SIM_DISABLE_SEC_CNF
-        {
-            tet_printf("\n[SIM APP]*****************TAPI_EVENT_SIM_DISABLE_SEC_CNF***************************\n");
-            tet_printf("SIM Disable PIN event status = [%x]\n", sim_event->Status);
-
-            gSimEventStatus = sim_event->Status;
-            if(sim_event->Status == TAPI_SIM_PIN_OPERATION_SUCCESS)
-                  gAsyncResult = TRUE;
-            else
-                gAsyncResult = FALSE;
-        }
-        break;
-
-           case TAPI_EVENT_SIM_CHANGE_PINS_CNF:        //preet: changed TAPI_EVENT_SIM_CHANGE_PIN_CNF to TAPI_EVENT_SIM_CHANGE_PINS_CNF:
-       {
-            tet_printf("\n[GOT THE EVENT]*****TAPI_EVENT_SIM_CHANGE_PINS_CNF:******\n");
-            tet_printf("SIM Change PIN event status = [%x]\n", sim_event->Status);
-
-            gSimEventStatus = sim_event->Status;
-            gAsyncResult = TRUE;
-        }
-        break;
-
-        default:
-        {
-            gSimEventStatus = sim_event->Status;
-            gAsyncResult = FALSE;
-            tet_printf("[SIM APP]Undhandled event type [0x%x]\n",sim_event->EventType);
-            tet_printf("[SIM APP]Undhandled event state [%d]\n",sim_event->Status);
-            break;
-       }
-    }//end switch
-
-    G_MAIN_LOOP_CLOSE();
-    return 0;
-}
-
-
-static void startup()
-{
-    // describe code if you need...
-    tet_infoline("utc_tel_change_sim_pins Test Start\n");
-
-       sim_pin_info_setup();
-
-       if ( tel_init() == TAPI_API_SUCCESS)
-       {
-               tel_register_event(TAPI_EVENT_SIM_DISABLE_SEC_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);
-               tel_register_event(TAPI_EVENT_SIM_CHANGE_PINS_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);
-               tel_register_event(TAPI_EVENT_SIM_VERIFY_SEC_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);
-        tel_register_event(TAPI_EVENT_SIM_ENABLE_SEC_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);
-
-               gStartupSuccess = TRUE;
-       } else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-
-       tel_register_app_name("org.samsung.test");
-
-    return;
-}
-
-static void cleanup()
-{
-       tet_infoline("utc_tel_change_sim_pins Test Finished\n");
-
-    if (gStartupSuccess == TRUE)
-       {
-               tel_deregister_event(subscription_id);
-       }
-       tel_deinit();
-       return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
-* @brief tel_change_sim_pins() API : Negative condition(First parameter is Null)
-* @par ID: UTC_TEL_CHANGE_SIM_PINS_01
-* @param [in] PinType = TAPI_SIM_PTYPE_PIN1
-* @param [in] *pOldPinData = NULL
-* @param [in] *pNewPinData = PIN1_CHANGED
-* @param [out] &pRequestId
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_change_sim_pins_01()
-{
-    TET_STAMP_START("tel_change_sim_pins(),Null parameter check 1");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-    int pRequestId=0;
-
-    TelSimSecPw_t pNewPinData;
-    pNewPinData.type = TAPI_SIM_PTYPE_PIN1;
-    pNewPinData.pw = (unsigned char*)g_si.pin1;
-    pNewPinData.pw_len = strlen(g_si.pin1);
-
-    TET_CHECK(TAPI_API_INVALID_PTR, tel_change_sim_pins(NULL, &pNewPinData, &pRequestId));
-    TET_STAMP_PASS();
-       return;
-}
-
-/**
-* @brief tel_change_sim_pins() API : Negative condition(Second parameter is Null)
-* @par ID: UTC_TEL_CHANGE_SIM_PINS_02
-* @param [in] PinType = TAPI_SIM_PTYPE_PIN1
-* @param [in] *pOldPinData = PIN1_NORMAL
-* @param [in] *pNewPinData = NULL
-* @param [out] &pRequestId
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_change_sim_pins_02()
-{
-    TET_STAMP_START("tel_change_sim_pins(),Null parameter check 2");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-    int pRequestId=0;
-
-    TelSimSecPw_t pOldPinData;
-    pOldPinData.type = TAPI_SIM_PTYPE_PIN1;
-    pOldPinData.pw = (unsigned char*)g_si.pin1;
-    pOldPinData.pw_len = strlen(g_si.pin1);
-
-    TET_CHECK(TAPI_API_INVALID_PTR, tel_change_sim_pins(&pOldPinData,NULL,&pRequestId));
-    TET_STAMP_PASS();
-       return;
-}
-
-/**
-* @brief tel_change_sim_pins() API : Negative condition(Third parameter is Null)
-* @par ID: UTC_TEL_CHANGE_SIM_PINS_03
-* @param [in] PinType = TAPI_SIM_PTYPE_PIN1
-* @param [in] *pOldPinData = PIN1_NORMAL
-* @param [in] *pNewPinData = PIN1_CHANGED
-* @param [out] NULL
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_change_sim_pins_03()
-{
-    TET_STAMP_START("tel_change_sim_pins(), Null parameter check3");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-    TelSimSecPw_t pOldPinData;
-    TelSimSecPw_t pNewPinData;
-
-    pOldPinData.type = TAPI_SIM_PTYPE_PIN1;
-    pOldPinData.pw_len = strlen(g_si.pin1);
-       pOldPinData.pw = (unsigned char*)malloc(pOldPinData.pw_len);
-       memcpy(pOldPinData.pw,g_si.pin1,pOldPinData.pw_len);
-       
-    pNewPinData.type = TAPI_SIM_PTYPE_PIN1;
-    pNewPinData.pw_len = strlen(g_si.pin1);
-       pNewPinData.pw = (unsigned char*)malloc(pNewPinData.pw_len);
-       memcpy(pNewPinData.pw,g_si.pin1,pNewPinData.pw_len);
-
-    TET_CHECK(TAPI_API_INVALID_PTR, tel_change_sim_pins(&pOldPinData, &pNewPinData,NULL));
-    TET_STAMP_PASS();
-       return;
-}
-
-
-/**
-* @brief tel_change_sim_pins() API : Low boundary test
-* @par ID: UTC_TEL_CHANGE_SIM_PINS_04
-* @param [in] PinType = (TelSimPinType_t)TAPI_SIM_PTYPE_PIN1-1;//<-- Invalid pintype
-* @param [in] *pOldPinData = PIN1_NORMAL
-* @param [in] *pNewPinData = PIN1_CHANGED
-* @param [out] &pRequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-void utc_tel_change_sim_pins_04()
-{
-    TET_STAMP_START("invalid pin type 1");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-    int pRequestId=0;
-
-    TelSimSecPw_t pOldPinData;
-    TelSimSecPw_t pNewPinData;
-       
-    pOldPinData.type = TAPI_SIM_PTYPE_PIN1 -1; //INVALID PINTYPE
-    pOldPinData.pw_len = strlen(g_si.pin1);
-       pOldPinData.pw = (unsigned char*)malloc(pOldPinData.pw_len);
-       memcpy(pOldPinData.pw,g_si.pin1,pOldPinData.pw_len);
-       
-    pNewPinData.type = TAPI_SIM_PTYPE_PIN1 -1; //INVALID PINTYPE
-    pNewPinData.pw_len = strlen(g_si.pin1);
-       pNewPinData.pw = (unsigned char*)malloc(pNewPinData.pw_len);
-       memcpy(pNewPinData.pw,g_si.pin1,pNewPinData.pw_len);
-
-    TET_CHECK(TAPI_API_INVALID_INPUT, tel_change_sim_pins (&pOldPinData, &pNewPinData,&pRequestId));
-    TET_STAMP_PASS();
-       return;
-}
-
-/**
-* @brief tel_change_sim_pins() API : Invalid pin type 
-* @par ID: UTC_TEL_CHANGE_SIM_PINS_05
-* @param [in] PinType = (TelSimPinType_t)TAPI_SIM_PTYPE_SIM+1;//<-- Invalid pintype
-* @param [in] *pOldPinData = PIN2_NORMAL
-* @param [in] *pNewPinData = PIN2_CHANGED
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-*/
-void utc_tel_change_sim_pins_05()
-{
-    TET_STAMP_START("Invalid pin type ");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-    int pRequestId=0;
-
-    TelSimSecPw_t pOldPinData;
-    TelSimSecPw_t pNewPinData;
-       
-    pOldPinData.type = TAPI_SIM_PTYPE_SIM +1; //INVALID PINTYPE
-    pOldPinData.pw_len = strlen(g_si.pin1);
-       pOldPinData.pw = (unsigned char*)malloc(pOldPinData.pw_len);
-       memcpy(pOldPinData.pw,g_si.pin1,pOldPinData.pw_len);
-       
-    pNewPinData.type = TAPI_SIM_PTYPE_SIM +1; //INVALID PINTYPE
-    pNewPinData.pw_len = strlen(g_si.pin1);
-       pNewPinData.pw = (unsigned char*)malloc(pNewPinData.pw_len);
-       memcpy(pNewPinData.pw,g_si.pin1,pNewPinData.pw_len);
-
-    TET_CHECK(TAPI_API_INVALID_INPUT,tel_change_sim_pins (&pOldPinData, &pNewPinData,&pRequestId));
-    TET_STAMP_PASS();
-       return;
-}
-
-/**
-* @brief tel_change_sim_pins() API : Positive condition(Change Pin1 coce)
-* @par ID: UTC_TEL_CHANGE_SIM_PINS_06
-* @param [in] PinType = TAPI_SIM_PTYPE_PIN1
-* @param [in] *pOldPinData = PIN1_NORMAL
-* @param [in] *pNewPinData = PIN1_CHANGED
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event received is below and the event data is #TelSimPinInfo_t. \n
-* (Asynchronous return status is indicated by #TelSimPinOperationResult_t.)
-*      - TAPI_EVENT_SIM_CHANGE_PIN_CNF (TAPI_SIM_PIN_OPERATION_SUCCESS)
-*/
-void utc_tel_change_sim_pins_06()
-{
-    TET_STAMP_START("Change pin1 code successfully : Before test, you set correct PIN1_NORMAL value on 'tet_tapi_util.h'");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       int tapiRet = TAPI_API_SUCCESS;
-       int pRequestId=0;
-
-       // Step 1 : enable pin
-    tet_printf("Step 1 : enable pin");
-
-       if( 0 != sim_pin_process_for_condition(TAPI_SIM_PTYPE_PIN1,TAPI_SIM_PIN_STATUS_ENABLED))
-       {
-               tet_printf("condition set is failed!!");
-               return;
-       }
-
-    // Step 2 : now change chv
-    tet_printf("Step 2 : now change chv");
-    TelSimSecPw_t pOldPinData;
-    TelSimSecPw_t pNewPinData;
-    pOldPinData.type = TAPI_SIM_PTYPE_PIN1;
-    pOldPinData.pw_len = strlen(g_si.pin1);
-       pOldPinData.pw = (unsigned char*)malloc(pOldPinData.pw_len);
-       memcpy(pOldPinData.pw,g_si.pin1,pOldPinData.pw_len);
-
-    pNewPinData.type = TAPI_SIM_PTYPE_PIN1;
-    pNewPinData.pw_len = strlen(g_si.pin1);
-       pNewPinData.pw = (unsigned char*)malloc(pNewPinData.pw_len);
-       memcpy(pNewPinData.pw,g_si.pin1,pNewPinData.pw_len);
-
-       tapiRet = tel_change_sim_pins(&pOldPinData, &pNewPinData,&pRequestId);
-       TET_RESULT_NOT_EQUAL_GOTO(TET_FAIL,exit,TAPI_API_SUCCESS,tapiRet);
-
-    tet_printf("after real tc api - wait start");
-
-    G_MAIN_LOOP_RUN(3);
-
-    tet_printf("after real tc api - wait stop");
-
-
-       TET_RESULT_NOT_EQUAL_GOTO(TET_FAIL,exit,gAsyncResult,TRUE); // If gAsyncResult != FALSE, then TET_FAIL and return
-       TET_RESULT_NOT_EQUAL_GOTO(TET_FAIL,exit,TAPI_SIM_PIN_OPERATION_SUCCESS, gSimEventStatus); // If gSimEventStatus != TAPI_SIM_PIN_INCORRECT_PASSWORD, then TET_FAIL and return
-       TET_STAMP_PASS();
-       
-exit:
-       // Step 3 : make default condition
-       tet_printf("Step 3 : disable pin");
-       
-       if( 0 != sim_pin_process_for_condition(TAPI_SIM_PTYPE_PIN1,TAPI_SIM_PIN_STATUS_DISABLED))
-       {
-               tet_printf("condition set is failed!!");
-       }
-       return;
-}
-
-
-/**
-* @brief tel_change_sim_pins() API : Negative condition(Incorrect pin code)
-* @par ID: UTC_TEL_CHANGE_SIM_PINS_07
-* @param [in] PinType = TAPI_SIM_PTYPE_PIN1
-* @param [in] *pOldPinData = PIN1_INCORRECT
-* @param [in] *pNewPinData = PIN1_CHANGED
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event received is below and the event data is #TelSimPinInfo_t. \n
-* (Asynchronous return status is indicated by #TelSimPinOperationResult_t.)
-*      - TAPI_EVENT_SIM_CHANGE_PIN_CNF (TAPI_SIM_PIN_INCORRECT_PASSWORD)
-*/
-void utc_tel_change_sim_pins_07()
-{
-    TET_STAMP_START("Change pin1 code Fail : Before test, you set incorrect PIN1_INCORRECT value on 'tet_tapi_util.h'");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       int tapiRet = TAPI_API_SUCCESS;
-       int pRequestId=0;
-
-       // Step 1 : make proper condition
-    tet_printf("Step 1 : enable pin");
-
-       if( 0 != sim_pin_process_for_condition(TAPI_SIM_PTYPE_PIN1,TAPI_SIM_PIN_STATUS_ENABLED))
-       {
-               tet_printf("condition set is failed!!");
-               return;
-       }
-
-     // Step 2 : now change chv
-    tet_printf("Step 2 : now change chv");
-    TelSimSecPw_t pInvalidPinData;
-    TelSimSecPw_t pNewPinData;
-    pInvalidPinData.type = TAPI_SIM_PTYPE_PIN1;
-    pInvalidPinData.pw_len = strlen(g_si.wpin1);
-       pInvalidPinData.pw = (unsigned char*)malloc(pInvalidPinData.pw_len);
-       memcpy(pInvalidPinData.pw,g_si.wpin1,pInvalidPinData.pw_len);
-
-    pNewPinData.type = TAPI_SIM_PTYPE_PIN1;
-    pNewPinData.pw_len = strlen(g_si.wpin1);
-       pNewPinData.pw = (unsigned char*)malloc(pNewPinData.pw_len);
-       memcpy(pNewPinData.pw,g_si.wpin1,pNewPinData.pw_len);
-
-    gAsyncResult = FALSE;
-
-       tapiRet = tel_change_sim_pins(&pInvalidPinData, &pNewPinData,&pRequestId);
-       TET_RESULT_NOT_EQUAL_GOTO(TET_FAIL,exit,TAPI_API_SUCCESS,tapiRet);
-
-    tet_printf("after real tc api - wait start");
-
-    G_MAIN_LOOP_RUN(3);
-
-    tet_printf("after real tc api - wait stop");
-
-
-    TET_RESULT_NOT_EQUAL_GOTO(TET_FAIL,exit,gAsyncResult,TRUE); // If gAsyncResult != FALSE, then TET_FAIL and return
-    TET_RESULT_NOT_EQUAL_GOTO(TET_FAIL,exit,TAPI_SIM_PIN_INCORRECT_PASSWORD, gSimEventStatus); // If gSimEventStatus != TAPI_SIM_PIN_INCORRECT_PASSWORD, then TET_FAIL and return
-    TET_STAMP_PASS();
-
-exit:
-       // Step 3 : make default condition
-    tet_printf("Step 3 : disable pin");
-
-       if( 0 != sim_pin_process_for_condition(TAPI_SIM_PTYPE_PIN1,TAPI_SIM_PIN_STATUS_DISABLED))
-       {
-               tet_printf("condition set is failed!!");
-       }
-       return;
-}
-
-
-/**
-* @brief tel_change_sim_pins() API : Negative condition(Disable pin and try to change pin1 code)
-* @par ID: UTC_TEL_CHANGE_SIM_PINS_08
-* @pre
-*      If PIN Enable, try to diable PIN. \n
-*      (At the test function 'utc_tel_change_sim_pins_08()' check and disable PIN1 function is coded)
-* @param [in] PinType = TAPI_SIM_PTYPE_PIN1
-* @param [in] *pOldPinData = PIN1_NORMAL
-* @param [in] *pNewPinData = PIN1_CHANGED
-* @param [out] &pRequestId
-* @return TAPI_API_INVALID_OPERATION
-*/
-void utc_tel_change_sim_pins_08()
-{
-    TET_STAMP_START("Disable pin and try to change");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       int pRequestId=0;
-
-       // Step 1 : make proper condition
-    tet_printf("Step 1 : enable pin");
-
-       if( 0 != sim_pin_process_for_condition(TAPI_SIM_PTYPE_PIN1,TAPI_SIM_PIN_STATUS_DISABLED))
-       {
-               tet_printf("condition set is failed!!");
-               return;         
-       }
-
-    // Step 2 : now change chv
-    tet_printf("Step 2 : now change chv");
-    TelSimSecPw_t pOldPinData;
-    TelSimSecPw_t pNewPinData;
-    pOldPinData.type = TAPI_SIM_PTYPE_PIN1;
-    pOldPinData.pw_len = strlen(g_si.pin1);
-       pOldPinData.pw = (unsigned char*)malloc(pOldPinData.pw_len);
-       memcpy(pOldPinData.pw,g_si.pin1,pOldPinData.pw_len);
-
-    pNewPinData.type = TAPI_SIM_PTYPE_PIN1;
-    pNewPinData.pw_len = strlen(g_si.pin1);
-       pNewPinData.pw = (unsigned char*)malloc(pNewPinData.pw_len);
-       memcpy(pNewPinData.pw,g_si.pin1,pNewPinData.pw_len);
-
-    TET_CHECK(TAPI_API_INVALID_OPERATION,tel_change_sim_pins(&pOldPinData, &pNewPinData,&pRequestId));
-    TET_STAMP_PASS();
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_change_sim_pins.h b/TC/telephony_TC/sim/unit/uts_tel_change_sim_pins.h
deleted file mode 100644 (file)
index 4df7873..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TEL_CHANGE_SIM_PINS_H_
-#define _UTS_TEL_CHANGE_SIM_PINS_H_
-
-       static void utc_tel_change_sim_pins_01();
-       static void utc_tel_change_sim_pins_02();
-       static void utc_tel_change_sim_pins_03();
-       static void utc_tel_change_sim_pins_04();
-       static void utc_tel_change_sim_pins_05();
-       static void utc_tel_change_sim_pins_06();
-       static void utc_tel_change_sim_pins_07();
-       static void utc_tel_change_sim_pins_08();
-#endif
diff --git a/TC/telephony_TC/sim/unit/uts_tel_delete_sim_pb_record.c b/TC/telephony_TC/sim/unit/uts_tel_delete_sim_pb_record.c
deleted file mode 100644 (file)
index fc416e8..0000000
+++ /dev/null
@@ -1,463 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_PB_DELETE_RECORD tel_delete_sim_pb_record
-*
-* @brief Unit test code for tel_delete_sim_pb_record()
-* @par Test function Prototype:
-*      TapiResult_t tel_delete_sim_pb_record(TelSimPbFileType_t StorageFileType, unsigned short RecordIndex, int* pRequestId);
-* @par Test function description:
-*      This API is used to delete a SIM phone book record.
-* @par Important Notes:
-*      The index ranges from 1 through to a maximum of 254 for a Linear fixed file and 255 for a cyclic file.
-* @param [in] StorageFileType    Different storage types to be selected in SIM.
-* @param [in]  RecordIndex  Index of the record to be deleted.
-* @param [out] pRequestId   Unique identifier for a particular request.
-*   - request_id value can be any value from 0 to 255 if the API is returned successfully
-*   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbUpdateResp_t. \n
-* (Asynchronous return status is indicated by #TelSimPinOperationResult_t.)
-*      - TAPI_EVENT_SIM_PB_DELETE_CNF
-*      - TAPI_EVENT_SIM_PB_ACCESS_READ_CNF
-* @pre
-*      - Phonebook supported SIM used for test
-*      - SIM Phonebook data backup is required(After test, some phonebook record is deleted)
-* @post
-*      - Restore SIM phonebook data
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tel_delete_sim_pb_record.c
-* @brief       Test for the tel_delete_sim_pb_record() API that is used to access for delete a SIM phonebook record
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "uts_tel_delete_sim_pb_record.h"
-#include "sim_common.h"
-
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_delete_sim_pb_record_01, 1},
-       {utc_tel_delete_sim_pb_record_02, 2},
-       {utc_tel_delete_sim_pb_record_03, 3},
-       {utc_tel_delete_sim_pb_record_04, 4},
-       {utc_tel_delete_sim_pb_record_05, 5},
-       {utc_tel_delete_sim_pb_record_06, 6},
-       {utc_tel_delete_sim_pb_record_07, 7},
-       {utc_tel_delete_sim_pb_record_08, 8},
-       {NULL, 0}
-};
-
-
-
-/*
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////
-*/
-// Prototype : User must add function body
-gboolean g_timeout_callback (void *data);
-
-// GMainLoop global handler
-GMainLoop *nw_context_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(nw_context_loop);
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       //GMainLoop *mainloop;
-       nw_context_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);
-       g_main_loop_run (nw_context_loop);
-
-       return 0;
-}
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////
-
-
-/*
-  User Defined Handler
-*/
-// Global variable for user data
-static BOOL gAsyncResult; //user defined data : Async callback is called or not
-
-// G_MAIN Utility : time out callback function
-gboolean g_timeout_callback (void *data)
-{
-       gAsyncResult = FALSE;
-       tet_printf("[SIM APP][TIME OUT] g_timeout called .Close g_main_roop()");
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-
-
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)
-{
-    tet_printf("\n\n\n***************[SIM APP]Callback data **********************\n");
-    tet_printf("[SIM APP]Reques Id[%d]\n", sim_event->RequestId);
-    tet_printf("[SIM APP]event status [%d]\n", sim_event->Status);
-
-    gAsyncResult = FALSE;
-    BOOL bReceived = FALSE;
-
-    switch(sim_event->EventType)
-      {
-       case TAPI_EVENT_SIM_PB_ACCESS_READ_CNF:
-       {
-                tet_printf("[SIM APP]*****************TAPI_EVENT_SIM_PB_ACCESS_READ_CNF***************************");
-                tet_printf("[SIM APP]SIM PB access read event status = [%x]", sim_event->Status);
-
-                TelSimPbRecordData_t *sim_acces_info = (TelSimPbRecordData_t*)sim_event->pData;
-                tet_printf("[SIM APP]storaget type is [%x]",sim_acces_info->StorageFileType);
-                tet_printf(" SIM phone book access error [%d]", sim_event->Status);
-                tet_printf("********************************************");
-                gAsyncResult = TRUE;
-                bReceived = TRUE;
-        }
-        break;
-
-        case TAPI_EVENT_SIM_PB_DELETE_CNF:
-        {
-                tet_printf("[SIM APP]*****************TAPI_EVENT_SIM_PB_DELETE_CNF***************************");
-                tet_printf("SIM Delete PB event status = [%x]", sim_event->Status);
-
-               // TelSimPbUpdateResp_t *pDeleteResp = (TelSimPbUpdateResp_t*)sim_event->pData;
-               // tet_printf(" Storage File Type [%d]", pDeleteResp->PbStorageInfo.StorageFileType);
-               // tet_printf(" Storage File Index [%d]",  pDeleteResp->PbIndex);
-                tet_printf("*******************************************");
-                gAsyncResult = TRUE;
-                bReceived = TRUE;
-        }
-        break;
-
-        default:
-        {
-            bReceived = TRUE;
-            gAsyncResult = FALSE;
-            tet_printf("Info : TAPI_EVENT_SIM_PB_DELETE_CNF = %d", TAPI_EVENT_SIM_PB_DELETE_CNF);
-            tet_printf("[SIM APP]***************** Undhandled event type [%d] *****************\n",sim_event->EventType);
-            tet_printf("[SIM APP]Undhandled event state [%d]\n",sim_event->Status);
-            break;
-       }
-    }//end switch
-
-    if (bReceived == TRUE)
-      G_MAIN_LOOP_CLOSE();
-
-    return 0;
-}
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-    tet_infoline("utc_tel_read_sim_pb_record Test Start");
-       if ( tel_init() == TAPI_API_SUCCESS)
-       {
-               if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_PB_DELETE_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL) )
-                       gStartupSuccess = TRUE;
-               else
-                       tet_infoline("startup fail. tel_register_event() failed");
-       } else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-       tel_register_app_name("org.samsung.test");
-    return;
-}
-
-
-static void cleanup()
-{
-    tet_infoline("utc_tel_read_sim_pb_record Finished");
-
-    if (gStartupSuccess == TRUE)
-       {
-               tel_deregister_event(subscription_id);
-       }
-       tel_deinit();
-    return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-/**
-* @brief tel_delete_sim_pb_record() API : Negative condition(Low boundary test)
-* @par ID: UTC_TEL_DELETE_SIM_PB_RECORD_01
-* @param [in] StorageFileType = (TelSimPbFileType_t)TAPI_SIM_PB_FDN-1;
-* @param [in] Index = 1
-* @param [out] &pRequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-void utc_tel_delete_sim_pb_record_01()
-{
-       TET_STAMP_START("TAPI_API_INVALID_INPUT test 1");
-       TelSimPbFileType_t StorageFileType = (TelSimPbFileType_t)TAPI_SIM_PB_FDN-1;
-       unsigned short Index=1;
-       int pRequestId=0;
-
-       TET_CHECK(TAPI_API_INVALID_INPUT, tel_delete_sim_pb_record(StorageFileType,Index,&pRequestId));
-       TET_STAMP_PASS();
-       return;
-}
-
-/**
-* @brief tel_delete_sim_pb_record() API : Negative condition(Upper boundary test)
-* @par ID: UTC_TEL_DELETE_SIM_PB_RECORD_02
-* @param [in] StorageFileType = (TelSimPbFileType_t)TAPI_SIM_PB_UNKNOWNN+1;
-* @param [in] Index = 1
-* @param [out] &pRequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-void utc_tel_delete_sim_pb_record_02()
-{
-       TET_STAMP_START("TAPI_API_INVALID_INPUT test 2");
-       TelSimPbFileType_t StorageFileType = (TelSimPbFileType_t)TAPI_SIM_PB_UNKNOWNN+1;
-       unsigned short Index=1;
-       int pRequestId=0;
-
-       TET_CHECK(TAPI_API_INVALID_INPUT, tel_delete_sim_pb_record(StorageFileType,Index,&pRequestId));
-       TET_STAMP_PASS();
-       return;
-}
-
-
-/**
-* @brief tel_delete_sim_pb_record() API : Negative condition(NULL parameter)
-* @par ID: UTC_TEL_DELETE_SIM_PB_RECORD_03
-* @param [in] StorageFileType = TAPI_SIM_PB_FDN
-* @param [in] Index = 1
-* @param [out] &pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_delete_sim_pb_record_03()
-{
-       TET_STAMP_START("TAPI_API_INVALID_INPUT test 3");
-       TelSimPbFileType_t StorageFileType = TAPI_SIM_PB_FDN;
-       unsigned short Index=1;
-
-       TET_CHECK(TAPI_API_INVALID_PTR, tel_delete_sim_pb_record(StorageFileType,Index,NULL));   //<-------------------- Invalid value
-       TET_STAMP_PASS();
-       return; 
-}
-
-
-/**
-* @brief tel_delete_sim_pb_record() API : Positive condition(Delete for a Phonebook FDN record)
-* @par ID: UTC_TEL_DELETE_SIM_PB_RECORD_04
-* @param [in] StorageFileType = TAPI_SIM_PB_FDN
-* @param [in] Index = 1
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbUpdateResp_t. \n
-*      - TAPI_EVENT_SIM_PB_DELETE_CNF
-*/
-void utc_tel_delete_sim_pb_record_04()
-{
-    TET_STAMP_START("StorageFileType=TAPI_SIM_PB_FDN");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-       TapiResult_t ret;
-    TelSimPbFileType_t StorageFileType=TAPI_SIM_PB_FDN;
-    unsigned short Index = 1;
-    int pRequestId=0;
-
-       gAsyncResult =FALSE;
-
-    ret = tel_delete_sim_pb_record(StorageFileType,Index,&pRequestId);
-       
-       G_MAIN_LOOP_RUN(2);
-       
-    TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-    TET_STAMP_PASS();
-       return;
-}
-
-
-/**
-* @brief tel_delete_sim_pb_record() API : Positive condition(Delete for a Phonebook LDN record)
-* @par ID: UTC_TEL_DELETE_SIM_PB_RECORD_05
-* @param [in] StorageFileType = TAPI_SIM_PB_LDN
-* @param [in] Index = 1
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbUpdateResp_t. \n
-*      - TAPI_EVENT_SIM_PB_DELETE_CNF
-*/
-void utc_tel_delete_sim_pb_record_05()
-{
-    TET_STAMP_START("StorageFileType=TAPI_SIM_PB_LDN");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-    TelSimPbFileType_t StorageFileType=TAPI_SIM_PB_LDN;
-    unsigned short Index = 1;
-    int pRequestId=0;
-       TapiResult_t ret;
-
-       gAsyncResult =FALSE;
-       
-       ret = tel_delete_sim_pb_record(StorageFileType,Index,&pRequestId);
-               
-       G_MAIN_LOOP_RUN(2);
-               
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-
-
-/**
-* @brief tel_delete_sim_pb_record() API : Positive condition(Delete for a Phonebook MSISDN record)
-* @par ID: UTC_TEL_DELETE_SIM_PB_RECORD_06
-* @param [in] StorageFileType = TAPI_SIM_PB_MSISDN
-* @param [in] Index = 1
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbUpdateResp_t. \n
-*      - TAPI_EVENT_SIM_PB_DELETE_CNF
-*/
-void utc_tel_delete_sim_pb_record_06()
-{
-    TET_STAMP_START("StorageFileType=TAPI_SIM_PB_MSISDN");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-    TelSimPbFileType_t StorageFileType=TAPI_SIM_PB_MSISDN;
-       unsigned short Index = 1;
-       int pRequestId=0;
-       TapiResult_t ret;
-       
-       gAsyncResult =FALSE;
-               
-       ret = tel_delete_sim_pb_record(StorageFileType,Index,&pRequestId);
-                       
-       G_MAIN_LOOP_RUN(2);
-                       
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-
-/**
-* @brief tel_delete_sim_pb_record() API : Positive condition(Delete for a Phonebook ADN record)
-* @par ID: UTC_TEL_DELETE_SIM_PB_RECORD_07
-* @param [in] StorageFileType = TAPI_SIM_PB_ADN
-* @param [in] Index = 1
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbUpdateResp_t. \n
-*      - TAPI_EVENT_SIM_PB_DELETE_CNF
-*/
-void utc_tel_delete_sim_pb_record_07()
-{
-    TET_STAMP_START("StorageFileType=TAPI_SIM_PB_ADN");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-    TelSimPbFileType_t StorageFileType=TAPI_SIM_PB_ADN;
-       unsigned short Index = 1;
-       int pRequestId=0;
-       TapiResult_t ret;
-       
-       gAsyncResult =FALSE;
-               
-       ret = tel_delete_sim_pb_record(StorageFileType,Index,&pRequestId);
-                       
-       G_MAIN_LOOP_RUN(2);
-                       
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-
-/**
-* @brief tel_delete_sim_pb_record() API : Positive condition(Delete for a Phonebook SDN record)
-* @par ID: UTC_TEL_DELETE_SIM_PB_RECORD_08
-* @param [in] StorageFileType = TAPI_SIM_PB_SDN
-* @param [in] Index = 1
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbUpdateResp_t. \n
-*      - TAPI_EVENT_SIM_PB_DELETE_CNF
-*/
-void utc_tel_delete_sim_pb_record_08()
-{
-    TET_STAMP_START("StorageFileType=TAPI_SIM_PB_SDN");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-    TelSimPbFileType_t StorageFileType=TAPI_SIM_PB_SDN;
-       unsigned short Index = 1;
-       int pRequestId=0;
-       TapiResult_t ret;
-       
-       gAsyncResult =FALSE;
-               
-       ret = tel_delete_sim_pb_record(StorageFileType,Index,&pRequestId);
-                       
-       G_MAIN_LOOP_RUN(2);
-                       
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_delete_sim_pb_record.h b/TC/telephony_TC/sim/unit/uts_tel_delete_sim_pb_record.h
deleted file mode 100644 (file)
index 3f09769..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TEL_DELETE_SIM_PB_RECORD_H_
-#define _UTS_TEL_DELETE_SIM_PB_RECORD_H_
-
-       static void utc_tel_delete_sim_pb_record_01 ();
-       static void utc_tel_delete_sim_pb_record_02 ();
-       static void utc_tel_delete_sim_pb_record_03 ();
-       static void utc_tel_delete_sim_pb_record_04 ();
-       static void utc_tel_delete_sim_pb_record_05 ();
-       static void utc_tel_delete_sim_pb_record_06 ();
-       static void utc_tel_delete_sim_pb_record_07 ();
-       static void utc_tel_delete_sim_pb_record_08 ();
-#endif
diff --git a/TC/telephony_TC/sim/unit/uts_tel_disable_sim_fdn.c b/TC/telephony_TC/sim/unit/uts_tel_disable_sim_fdn.c
deleted file mode 100644 (file)
index 53d5937..0000000
+++ /dev/null
@@ -1,460 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_DISABLE_FDN tel_disable_sim_fdn
-*
-* @brief Unit test code for tel_disable_sim_fdn()
-* @par Test function Prototype:
-*       TapiResult_t   tel_disable_sim_fdn     (const char* pPinData, int *pRequestId);
-* @par Test function description:
-*      This function is used to disable FDN mode
-* @par Important Notes:
- * An unsolicited event TAPI_EVENT_SIM_FDN_STATUS_IND is notified to indicate
- * whenever FDN status is changed(disabled/enabled)
-* @param [in] pPinData
-*   User entered PIN2 data. (NULL terminated string)
-* @param [out] pRequestId
-*   - Unique identifier for a particular request.
-*   - request_id value can be any value from 0 to 255 if the API is returned successfully
-*   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPinInfo_t. \n
-* (Asynchronous return status is indicated by #TelSimPinOperationResult_t.)
-*      - TAPI_EVENT_SIM_DISABLE_FDN_CNF
-*      - TAPI_EVENT_SIM_ENABLE_FDN_CNF
-*      - TAPI_EVENT_SIM_FDN_STATUS_IND
-* @pre
-*      - Before test script compile, you set correct PIN1_NORMAL, PIN2_NORMAL, PIN1_CHANGED, PIN2_CHANGED value on 'tet_tapi_util.h'
-*      - Before test script compile, you set incorrect PIN1_INCORRECT value on 'tet_tapi_util.h'
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tel_disable_sim_fdn.c
-* @brief       Test for the tel_disable_sim_fdn() API that is used to disable FDN mode
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "uts_tel_disable_sim_fdn.h"
-#include "sim_common.h"
-#include "async_util.h"
-
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_disable_sim_fdn_01, 1},
-       {utc_tel_disable_sim_fdn_02, 2},
-       {utc_tel_disable_sim_fdn_03, 3},
-       {utc_tel_disable_sim_fdn_04, 4},
-
-       {NULL, 0}
-};
-
-
-/*
-  User Defined Handler
-*/
-// Global variable for user data
-static BOOL gAsyncResult; //user defined data : Async callback is called or not
-static TelSimPinOperationResult_t gSimEventStatus;
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-extern sim_info_t g_si;
-
-
-/*
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////
-*/
-// Prototype : User must add function body
-gboolean g_timeout_callback (void *data);
-
-// GMainLoop global handler
-GMainLoop *sim_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(sim_loop);
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       sim_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);
-       g_main_loop_run (sim_loop);
-       return 0;
-}
-
-gboolean g_timeout_callback (void *data)
-{
-       gAsyncResult = FALSE;
-       tet_printf("[TIME OUT] g_timeout called .Close g_main_roop()");
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////
-
-
-static int sim_fdn_process_for_condition(int wish_condition)
-{
-    int pRequestId=0;
-       int tapiRet = TAPI_API_SUCCESS;
-       int fdn_status = 0; //dis(0)/enable(1)
-       int pin2_len = 0;
-       char* pin2 = NULL;
-       
-       tet_printf("wish_condition[%d]: 0-dis, 1- enabled",wish_condition);
-
-       tapiRet = tel_get_sim_fdn_status(&fdn_status);
-       if(tapiRet != TAPI_API_SUCCESS)
-       {
-               tet_printf("tel_get_sim_fdn_status is Failed with tapiRet[%d]", tapiRet);
-               return -1;
-       }
-
-       if(fdn_status == 0 )
-       {
-               tet_printf("current fdn status is disable");
-       }
-       else if(fdn_status == 1)
-       {
-               tet_printf("current fdn status is enable");
-       }
-       else
-       {
-               tet_printf("current fdn status is unhandled status[%d]",fdn_status );
-               return -1;
-       }
-
-       if(fdn_status == wish_condition )
-       {
-               tet_printf("current fdn status is same with wished condition");
-               return 0;
-       }
-       else
-       {
-               tet_printf("current fdn status is different with wished condition");
-               
-               pin2_len = strlen(g_si.pin2);
-               pin2 = (char*)malloc(pin2_len);
-               memcpy(pin2,g_si.pin2,pin2_len);
-
-               gAsyncResult = FALSE;
-                       
-               if(wish_condition == 0)
-               {
-                       tet_printf("make fdn status with wished condition - disable");
-
-                       tapiRet = tel_disable_sim_fdn((const unsigned char*)pin2,&pin2_len,&pRequestId);
-               }
-               else if(wish_condition == 1)
-               {
-                       tet_printf("make fdn status with wished condition - enable");           
-                       tapiRet = tel_enable_sim_fdn((const unsigned char*)pin2,&pin2_len,&pRequestId);
-               }
-               else
-               {
-                       tet_printf("Unhandled wish_condition[%d]", wish_condition);
-                       return -1;
-               }
-                       
-               if(tapiRet != TAPI_API_SUCCESS)
-               {
-                       tet_printf("tapi return[%d] when en/disabling fdn for condition",tapiRet);
-                       return -1;
-               }
-               else
-               {
-                       tet_printf("after pre/post condition tc api - wait start");             
-                       G_MAIN_LOOP_RUN(2);
-                       tet_printf("after pre/post condition tc api - wait stop");      
-               }
-
-               if(gAsyncResult == TRUE)
-                       return 0;
-               else
-                       return -1;
-       }
-       return 0;
-}
-
-
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)
-{
-    tet_printf("\n\n\n***************[SIM APP]Callback data **********************\n");
-    tet_printf("[SIM APP]Reques Id[%d]\n", sim_event->RequestId);
-    tet_printf("[SIM APP]event status [%d]\n", sim_event->Status);
-
-    gAsyncResult = FALSE;
-    BOOL bReceived = FALSE;
-
-    switch(sim_event->EventType)
-      {
-        case TAPI_EVENT_SIM_ENABLE_FDNMODE_CNF:
-        {
-            tet_printf("\n[SIM APP]*****************TAPI_EVENT_SIM_ENABLE_FDNMODE_CNF (%d) ***************************\n", TAPI_EVENT_SIM_ENABLE_FDNMODE_CNF);
-            tet_printf("SIM Enable FDN event status = [%x]\n", sim_event->Status);
-
-            gSimEventStatus = sim_event->Status;
-            gAsyncResult = TRUE;
-            bReceived = TRUE;
-        }
-        break;
-
-        case TAPI_EVENT_SIM_DISABLE_FDNMODE_CNF:
-        {
-            tet_printf("\n[SIM APP]*****************TAPI_EVENT_SIM_DISABLE_FDNMODE_CNF (%d) ***************************\n", TAPI_EVENT_SIM_DISABLE_FDNMODE_CNF);
-            tet_printf("SIM Disable FDN event status = [%x]\n", sim_event->Status);
-
-            gSimEventStatus = sim_event->Status;
-            gAsyncResult = TRUE;
-            bReceived = TRUE;
-        }
-        break;
-
-               default:
-               {
-            gSimEventStatus = sim_event->Status;
-            gAsyncResult = FALSE;
-            tet_printf("[SIM APP]***************** Undhandled event type [%d] *****************\n",sim_event->EventType);
-            tet_printf("[SIM APP]Undhandled event state [%d]\n",sim_event->Status);
-            break;
-       }
-    }//end switch
-
-    if (bReceived == TRUE)
-      G_MAIN_LOOP_CLOSE();
-    return 0;
-}
-
-static void startup()
-{
-    tet_infoline("utc_tel_disable_sim_fdn Test Start\n");
-
-       sim_pin_info_setup();
-
-       if ( tel_init() == TAPI_API_SUCCESS)
-       {
-               tel_register_event(TAPI_EVENT_SIM_DISABLE_SEC_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);
-        tel_register_event(TAPI_EVENT_SIM_ENABLE_SEC_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);
-               tel_register_event(TAPI_EVENT_SIM_DISABLE_FDNMODE_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);
-        tel_register_event(TAPI_EVENT_SIM_ENABLE_FDNMODE_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);
-
-               gStartupSuccess = TRUE;
-
-       } else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-       tel_register_app_name("org.samsung.test");
-    return;
-}
-
-static void cleanup()
-{
-    tet_infoline("utc_tel_disable_sim_fdn Test Finished\n");
-    if (gStartupSuccess == TRUE)
-       {
-               tel_deregister_event(subscription_id);
-       }
-       tel_deinit();
-    return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
-* @brief tel_disable_sim_fdn() API : Negative condition(First parameter is Null)
-* @par ID: UTC_TEL_DISABLE_SIM_FDN_01
-* @param [in] *pPinData = NULL
-* @param [out] &pRequestId
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_disable_sim_fdn_01()
-{
-    TET_STAMP_START("NULL parameter test 1");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-    int pRequestId=0;
-    int len = 0;
-
-    TET_CHECK(TAPI_API_INVALID_PTR, tel_disable_sim_fdn(NULL,&len, &pRequestId));
-    TET_STAMP_PASS();
-    return;
-}
-
-/**
-* @brief tel_disable_sim_fdn() API : Negative condition(Second parameter is Null)
-* @par ID: UTC_TEL_DISABLE_SIM_FDN_02
-* @param [in] *pPinData = PIN1_NORMAL
-* @param [out] &pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_disable_sim_fdn_02()
-{
-    TET_STAMP_START("NULL parameter test 2");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-    int pin2_len = strlen(g_si.pin2);
-       char* pPinData = (char*)malloc(pin2_len);
-       memcpy(pPinData, g_si.pin2, pin2_len);
-
-    TET_CHECK(TAPI_API_INVALID_PTR, tel_disable_sim_fdn((const unsigned char*)pPinData, &pin2_len, NULL));
-    TET_STAMP_PASS();
-    return;
-}
-
-void utc_tel_disable_sim_fdn_03()
-{
-    TET_STAMP_START("PIN2_INCORRECT test");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       int tapiRet = TAPI_API_SUCCESS;
-    int pRequestId = 0;
-    int pin2_len = 0;
-    char* pPinData = NULL;
-       
-    tet_printf("Step 1 : enable fdn");
-       if( 0 != sim_fdn_process_for_condition(1))
-       {
-               tet_printf("condition set is failed!!");
-               return;
-       }
-
-       tet_printf("Step 2 : disable fdn with incorrect pin2");
-       pPinData = (char*)malloc(pin2_len);
-       pin2_len = strlen(g_si.wpin2);
-       memcpy(pPinData, g_si.wpin2, pin2_len);
-
-       gAsyncResult = FALSE;
-
-    tapiRet = tel_disable_sim_fdn((const unsigned char*)pPinData, &pin2_len, &pRequestId);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,TAPI_API_SUCCESS,tapiRet);
-
-       tet_printf("after real tc api - wait start");
-       
-       G_MAIN_LOOP_RUN(2);
-       
-       tet_printf("after real tc api - wait stop");
-
-       TET_RESULT_NOT_EQUAL_GOTO(TET_FAIL,exit,gAsyncResult,TRUE); // If gAsyncResult != FALSE, then TET_FAIL and return
-       TET_RESULT_NOT_EQUAL_GOTO(TET_FAIL,exit,TAPI_SIM_PIN_INCORRECT_PASSWORD, gSimEventStatus); // If gSimEventStatus != TAPI_SIM_PIN_INCORRECT_PASSWORD, then TET_FAIL and return
-       TET_STAMP_PASS();
-       
-exit:
-       // Step 3 : make default condition
-       tet_printf("Step 3 : disable fdn");
-       
-       if( 0 != sim_fdn_process_for_condition(0))
-       {
-               tet_printf("condition set is failed!!");
-       }
-       gAsyncResult = FALSE;
-       return;
-}
-
-void utc_tel_disable_sim_fdn_04()
-{
-    TET_STAMP_START("PIN2_CORRECT test");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       int tapiRet = TAPI_API_SUCCESS;
-    int pRequestId = 0;
-    int pin2_len = 0;
-    char* pPinData = NULL;
-       
-    tet_printf("Step 1 : enable fdn");
-       if( 0 != sim_fdn_process_for_condition(1))
-       {
-               tet_printf("condition set is failed!!");
-               return;
-       }
-
-       tet_printf("Step 2 : disable fdn with correct pin2");
-       pPinData = (char*)malloc(pin2_len);
-       pin2_len = strlen(g_si.pin2);
-       memcpy(pPinData, g_si.pin2, pin2_len);
-
-       gAsyncResult = FALSE;
-
-    tapiRet = tel_disable_sim_fdn((const unsigned char*)pPinData, &pin2_len, &pRequestId);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,TAPI_API_SUCCESS,tapiRet);
-
-       tet_printf("after real tc api - wait start");
-       
-       G_MAIN_LOOP_RUN(2);
-       
-       tet_printf("after real tc api - wait stop");
-
-
-       TET_RESULT_NOT_EQUAL_GOTO(TET_FAIL,exit,gAsyncResult,TRUE); // If gAsyncResult != FALSE, then TET_FAIL and return
-       TET_RESULT_NOT_EQUAL_GOTO(TET_FAIL,exit,TAPI_SIM_PIN_OPERATION_SUCCESS, gSimEventStatus); // If gSimEventStatus != TAPI_SIM_PIN_INCORRECT_PASSWORD, then TET_FAIL and return
-       TET_STAMP_PASS();
-       
-exit:
-       // Step 3 : make default condition
-       tet_printf("Step 3 : disable fdn");
-       
-       if( 0 != sim_fdn_process_for_condition(0))
-       {
-               tet_printf("condition set is failed!!");
-       }
-       gAsyncResult = FALSE;
-       return;
-}
-
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_disable_sim_fdn.h b/TC/telephony_TC/sim/unit/uts_tel_disable_sim_fdn.h
deleted file mode 100644 (file)
index 8c7a061..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-
-#ifndef _UTS_TAPI_FDN_DISABLE_H_
-#define _UTS_TAPI_FDN_DISABLE_H_
-
-       static void utc_tel_disable_sim_fdn_01 ();
-       static void utc_tel_disable_sim_fdn_02 ();
-       static void utc_tel_disable_sim_fdn_03 ();
-       static void utc_tel_disable_sim_fdn_04 ();
-
-#endif
diff --git a/TC/telephony_TC/sim/unit/uts_tel_disable_sim_personalization.c b/TC/telephony_TC/sim/unit/uts_tel_disable_sim_personalization.c
deleted file mode 100644 (file)
index efe8ccd..0000000
+++ /dev/null
@@ -1,245 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-/**\r
-* @ingroup TELEPHONY_API\r
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT\r
-*/\r
-\r
-/**\r
-* @ingroup  TAPI_API_SIM_SAT\r
-* @addtogroup UTS_SIM_SAT Unit\r
-*/\r
-\r
-/**\r
-* @ingroup  UTS_SIM_SAT\r
-* @addtogroup UTS_TEL_DISABLE_PERSONALISATION tel_disable_sim_personalization\r
-*\r
-* @brief Unit test code for tel_disable_sim_personalization()\r
-* @par Test function Prototype:\r
-*       int tel_disable_sim_personalization(TelSimPersPw_t *pers_data, int *req_id)\r
-* @par Test function description:\r
-*      This API is used to disable the network personalisation feature.\r
-* @par Important Notes:\r
-*      None\r
-* @param [in] TelSimPersPw_t\r
-*      The information required to disable network personalisation.\r
-*      @code\r
-       typedef struct\r
-       {\r
-                       TelSimPersType_t        type;\r
-                       unsigned char*  pw;\r
-                       unsigned int            pw_len;\r
-       } TelSimPersPw_t;\r
-*      @endcode\r
-* @param [out] pRequestId   Unique identifier for a particular request.\r
-*   - request_id value can be any value from 0 to 255 if the API is returned successfully\r
-*   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.\r
-* @par Async Response Message:\r
-* The event associated is TAPI_EVENT_SIM_DISABLE_PERS_CNF\r
-* @pre\r
-*      None\r
-* @post\r
-*      None\r
-* @return\r
-* Return Type : (TapiResult_t)\r
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.\r
-* - Otherwise it provides an error code (Refer #TapiResult_t)\r
-* @{\r
-*/\r
-\r
-/**\r
-* @file                uts_tel_disable_sim_personalization.c\r
-* @brief\r
-       Test for the tel_disable_sim_personalization() API that is used to disable the network personalisation feature \n\r
-       Test for the tel_enable_sim_personalization() API that is used to enable the network personalisation feature\r
-* @author      \r
-* @version     Initial Creation V0.1\r
-* @date                2010.10.05\r
-*/\r
-\r
-#include <tet_api.h>\r
-#include <ITapiSim.h>\r
-#include <TapiCommon.h>\r
-\r
-#include "tet_tapi_util.h"\r
-#include "sim_common.h"\r
-#include "uts_tel_disable_sim_personalization.h"\r
-\r
-\r
-/* Initialize TCM data structures */\r
-static void startup();\r
-static void cleanup();\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tel_disable_sim_personalization01, 1},\r
-       {utc_tel_disable_sim_personalization02, 2},\r
-       {NULL, 0}\r
-};\r
-\r
-/*\r
-  User Defined Handler\r
-*/\r
-// Global variable for user data\r
-static BOOL gAsyncResult; //user defined data : Async callback is called or not\r
-\r
-/* Startup & Clean function : It is not test code, only for\r
-   initialize and finalize test module\r
-*/\r
-static BOOL gStartupSuccess = FALSE;\r
-static unsigned int subscription_id = 0;\r
-\r
-\r
-/*\r
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////\r
-*/\r
-// Prototype : User must add function body\r
-gboolean g_timeout_callback (void *data);\r
-\r
-// GMainLoop global handler\r
-GMainLoop *sim_loop = NULL;\r
-\r
-void G_MAIN_LOOP_CLOSE()\r
-{\r
-    g_main_loop_quit(sim_loop);\r
-}\r
-\r
-int G_MAIN_LOOP_RUN(int sec)\r
-{\r
-       sim_loop = g_main_loop_new (NULL, FALSE);\r
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);\r
-       g_main_loop_run (sim_loop);\r
-\r
-       return 0;\r
-}\r
-\r
-gboolean g_timeout_callback (void *data)\r
-{\r
-       gAsyncResult = FALSE;\r
-       tet_printf("[TIME OUT] g_timeout called .Close g_main_roop()");\r
-       G_MAIN_LOOP_CLOSE();\r
-       return FALSE;\r
-}\r
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////\r
-\r
-\r
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)\r
-{\r
-    tet_printf("\n***************[SIM APP]Callback data **********************\n");\r
-    tet_printf("[SIM]Reques Id[%d]\n", sim_event->RequestId);\r
-    tet_printf("[SIM]event status [%d]\n", sim_event->Status);\r
-\r
-    gAsyncResult = FALSE;\r
-    BOOL bReceived = FALSE;\r
-\r
-    switch(sim_event->EventType)\r
-    {\r
-               case TAPI_EVENT_SIM_DISABLE_PERS_CNF:\r
-               {\r
-                       tet_printf("\n[GOT THE EVENT]*******TAPI_EVENT_SIM_DISABLE_PERS_CNF******\n");\r
-                       tet_printf("[SIM]SIM personalization status event status  = [0x%x]\n", sim_event->Status);\r
-                       bReceived = TRUE;\r
-                       gAsyncResult = TRUE;\r
-               }\r
-               break;\r
-\r
-        default:\r
-        {\r
-                       bReceived = TRUE;\r
-                       gAsyncResult = FALSE;\r
-                       tet_printf("[SIM]***************** Undhandled event type [%d] *****************\n",sim_event->EventType);\r
-                       tet_printf("[SIM]Undhandled event state [%d]\n",sim_event->Status);\r
-               }\r
-               break;\r
-    }//end switch\r
-\r
-    if (bReceived == TRUE)\r
-      G_MAIN_LOOP_CLOSE();\r
-\r
-    return 0;\r
-}\r
-\r
-\r
-static void startup()\r
-{\r
-    tet_infoline("utc_tel_disable_sim_personalization_status Test Start\n");\r
-\r
-       if ( tel_init() == TAPI_API_SUCCESS)\r
-       {\r
-               if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_DISABLE_PERS_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL) )\r
-                       gStartupSuccess = TRUE;\r
-               else\r
-                       tet_infoline("startup fail. tel_register_event() failed");\r
-       } else {\r
-               tet_infoline("startup fail. tel_init() failed");\r
-       }\r
-\r
-        tel_register_app_name("org.samsung.test");\r
-    return;\r
-}\r
-\r
-\r
-static void cleanup()\r
-{\r
-    tet_infoline("utc_tel_disable_sim_personalization_status Test Finished\n");\r
-\r
-    if (gStartupSuccess == TRUE)\r
-       {\r
-               tel_deregister_event(subscription_id);\r
-       }\r
-       tel_deinit();\r
-    return;\r
-}\r
-\r
-\r
-/*\r
-  Unit Test Case functions\r
-*/\r
-void utc_tel_disable_sim_personalization01()\r
-{\r
-       TET_STAMP_START("utc_tel_disable_sim_personalization01 -TAPI_API_INVALID_PTR");\r
-       TET_CHECK(TAPI_API_INVALID_PTR,tel_disable_sim_personalization (NULL, NULL));\r
-       TET_STAMP_PASS();\r
-       return;\r
-}\r
-\r
-\r
-void utc_tel_disable_sim_personalization02()\r
-{\r
-       TET_STAMP_START("utc_tel_disable_sim_personalization02 ");\r
-       int pRequestId=0;\r
-       TelSimPersPw_t lock_pers = {0,};\r
-       lock_pers.type = TAPI_SIM_PERS_NET;\r
-       lock_pers.pw_len =      8;\r
-       lock_pers.pw = (unsigned char*)malloc(8);\r
-       memcpy(lock_pers.pw,"00000000",8);\r
-\r
-       gAsyncResult = FALSE;\r
-                                       \r
-       TET_CHECK(TAPI_API_SUCCESS,tel_disable_sim_personalization(&lock_pers, &pRequestId));\r
-                                                               \r
-       G_MAIN_LOOP_RUN(2);\r
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return\r
-       TET_STAMP_PASS();\r
-       return;\r
-\r
-}\r
-\r
diff --git a/TC/telephony_TC/sim/unit/uts_tel_disable_sim_personalization.h b/TC/telephony_TC/sim/unit/uts_tel_disable_sim_personalization.h
deleted file mode 100644 (file)
index a15f2f1..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-\r
-#ifndef _UTS_TEL_DISABLE_SIM_PERSONALIZATION_H_\r
-#define _UTS_TEL_DISABLE_SIM_PERSONALIZATION_H_\r
-       static void utc_tel_disable_sim_personalization01();\r
-       static void utc_tel_disable_sim_personalization02();\r
-#endif\r
diff --git a/TC/telephony_TC/sim/unit/uts_tel_disable_sim_security.c b/TC/telephony_TC/sim/unit/uts_tel_disable_sim_security.c
deleted file mode 100644 (file)
index c64d8cb..0000000
+++ /dev/null
@@ -1,549 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_DISABLE_PIN tel_disable_sim_security
-*
-* @brief Unit test code for tel_disable_sim_security()
-* @par Test function Prototype:
-*      TapiResult_t tel_disable_sim_security   (const TelSimPinData_t* pPinData, int *pRequestId);
-* @par Test function description:
-*      This function disables the PIN based on the Pin type and pin data passed from Application.
-* @par Important Notes:
-*   For PIN2, disabling applies only for 3G USIMs and when PIN2 in NOT mapped to CHV2 of GSM application.
-*      Based on Pin status (PIN/UPIN/PUK) is blocked, an unsolicited event TAPI_EVENT_SIM_STATUS_IND
-*      is published to Applications.
-* @param [in] pPinData
-*      #TelSimPinData_t type of user entered Pin disable data and pin type
-* @code
-typedef struct
-{
-    TelSimPinType_t    PinType;        // Pin type
-    char               szPinCode[TAPI_SIM_PIN_LENGTH+1]; //PIN code
-} TelSimPinData_t;
-
-typedef enum
-{
-    TAPI_SIM_PTYPE_PIN1        = 0x00,         // PIN 1
-    TAPI_SIM_PTYPE_PIN2        = 0x01,         // PIN 2
-    TAPI_SIM_PTYPE_PUK1        = 0x02,         // Puk 1
-    TAPI_SIM_PTYPE_PUK2        = 0x03,         // Puk 2
-    TAPI_SIM_PTYPE_UPIN        = 0x04,         // Universal PIN
-    TAPI_SIM_PTYPE_ADM = 0x05          // Administrator
-} TelSimPinType_t;
-* @endcode
-* @param [out] pRequestId
-*   - Unique identifier for a particular request.
-*   - request_id value can be any value from 0 to 255 if the API is returned successfully
-*   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPinInfo_t. \n
-* (Asynchronous return status is indicated by #TelSimPinOperationResult_t.)
-*      - TAPI_EVENT_SIM_DISABLE_PIN_CNF
-*      - TAPI_EVENT_SIM_ENABLE_PIN_CNF
-* @pre
-*      - Before test script compile, you set correct PIN1_NORMAL, PIN2_NORMAL, PIN1_CHANGED, PIN2_CHANGED value on 'tet_tapi_util.h'
-*      - Before test script compile, you set incorrect PIN1_INCORRECT value on 'tet_tapi_util.h'
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tel_disable_sim_security.c
-* @brief       Test for the tel_disable_sim_security() API that is used to disable PIN
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "uts_tel_disable_sim_security.h"
-#include "sim_common.h"
-#include "async_util.h"
-
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_disable_sim_security_01, 1},
-       {utc_tel_disable_sim_security_02, 2},
-       {utc_tel_disable_sim_security_03, 3},
-       {utc_tel_disable_sim_security_04, 4},
-       {utc_tel_disable_sim_security_05, 5},
-       {utc_tel_disable_sim_security_06, 6},
-       {NULL, 0}
-};
-
-/*
-  User Defined Handler
-*/
-// Global variable for user data
-static BOOL gAsyncResult; //user defined data : Async callback is called or not
-static TelSimPinOperationResult_t gSimEventStatus;
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-extern sim_info_t g_si;
-
-
-/*
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////
-*/
-// Prototype : User must add function body
-gboolean g_timeout_callback (void *data);
-
-// GMainLoop global handler
-GMainLoop *sim_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(sim_loop);
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       //GMainLoop *mainloop;
-       sim_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);
-       g_main_loop_run (sim_loop);
-
-       return 0;
-}
-
-gboolean g_timeout_callback (void *data)
-{
-       gAsyncResult = FALSE;
-       tet_printf("[TIME OUT] g_timeout called .Close g_main_roop()");
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////
-
-
-static int sim_pin_process_for_condition(TelSimPinType_t wish_pin, TelSimPinStatus_t wish_condition)
-{
-    int pRequestId=0;
-       int tapiRet = TAPI_API_SUCCESS;
-       TelSimPinStatus_t pin_status = TAPI_SIM_PIN_STATUS_UNKNOWN;
-       TelSimSecPw_t sec_data;
-       memset(&sec_data, 0x00, sizeof(TelSimSecPw_t));
-       
-       tet_printf("pin[%d]:0-pin1, 1-pin2, wish_condition[%d]: 0-dis, 1- enabled, 2-blocked(puk)",wish_pin, wish_condition);
-
-       tapiRet = tel_get_sim_security_status(wish_pin,&pin_status);
-       if(tapiRet != TAPI_API_SUCCESS)
-       {
-               tet_printf("tel_get_sim_security_status is Failed with tapiRet[%d]", tapiRet);
-               return -1;
-       }
-
-       if(pin_status == TAPI_SIM_PIN_STATUS_DISABLED )
-       {
-               tet_printf("current pin status is TAPI_SIM_PIN_STATUS_DISABLED");
-       }
-       else if(pin_status == TAPI_SIM_PIN_STATUS_ENABLED)
-       {
-               tet_printf("current pin status is TAPI_SIM_PIN_STATUS_ENABLED");
-       }
-       else
-       {
-               tet_printf("current pin status is unhandled status[%d]",pin_status );
-               return -1;
-       }
-
-       if(pin_status == wish_condition )
-       {
-               tet_printf("current pin status is same with wished condition");
-               return 0;
-       }
-       else
-       {
-               tet_printf("current pin status is different with wished condition");    
-               sec_data.type = wish_pin;
-
-               if(wish_pin == TAPI_SIM_PTYPE_PIN1 )
-               {
-                       sec_data.pw_len = strlen(g_si.pin1);
-                       sec_data.pw = (unsigned char*)malloc(sec_data.pw_len);
-                       memcpy(sec_data.pw,g_si.pin1,sec_data.pw_len);
-               }
-               else if(wish_pin == TAPI_SIM_PTYPE_PIN2)
-               {
-                       sec_data.pw_len = strlen(g_si.pin2);
-                       sec_data.pw = (unsigned char*)malloc(sec_data.pw_len);
-                       memcpy(sec_data.pw,g_si.pin2,sec_data.pw_len);
-               }
-
-               gAsyncResult = FALSE;
-               
-               if(wish_condition == TAPI_SIM_PIN_STATUS_DISABLED)
-               {
-                       tet_printf("make pin status with wished condition(TAPI_SIM_PIN_STATUS_DISABLED)");
-
-                       tapiRet = tel_disable_sim_security(&sec_data,&pRequestId);
-               }
-               else if(wish_condition == TAPI_SIM_PIN_STATUS_ENABLED)
-               {
-                       tet_printf("make pin status with wished condition(TAPI_SIM_PIN_STATUS_ENABLED)");               
-                       tapiRet = tel_enable_sim_security(&sec_data,&pRequestId);
-               }
-               else
-               {
-                       tet_printf("Unhandled wish_condition[%d]", wish_condition);
-                       return -1;
-               }
-               
-               if(tapiRet != TAPI_API_SUCCESS)
-               {
-                       tet_printf("tapi return[%d] when en/disabling pin for condition",tapiRet);
-                       return -1;
-               }
-               else
-               {
-                       G_MAIN_LOOP_RUN(3);
-               }
-
-               if(gAsyncResult == TRUE)
-                       return 0;
-               else
-                       return -1;
-       }
-
-       return 0;
-}
-
-
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)
-{
-    tet_printf("\n***************[SIM]Callback data **********************\n");
-    tet_printf("[SIM APP]Reques Id[%d]\n", sim_event->RequestId);
-    tet_printf("[SIM APP]event status [%d]\n", sim_event->Status);
-
-    gAsyncResult = FALSE;
-    switch(sim_event->EventType)
-    {
-        case TAPI_EVENT_SIM_ENABLE_SEC_CNF:
-        {
-            tet_printf("\n[SIM]*****************TAPI_EVENT_SIM_ENABLE_SEC_CNF***************************\n");
-            tet_printf("SIM Enable PIN event status = [%x]\n", sim_event->Status);
-
-            gSimEventStatus = sim_event->Status;
-            gAsyncResult = TRUE;
-        }
-        break;
-
-        case TAPI_EVENT_SIM_DISABLE_SEC_CNF:
-        {
-            tet_printf("\n[SIM]*****************TAPI_EVENT_SIM_DISABLE_SEC_CNF***************************\n");
-            tet_printf("SIM Disable PIN event status = [%x]\n", sim_event->Status);
-
-            gSimEventStatus = sim_event->Status;
-            gAsyncResult = TRUE;
-        }
-        break;
-
-        default:
-        {
-            gSimEventStatus = sim_event->Status;
-            gAsyncResult = FALSE;
-            tet_printf("[SIM]Undhandled event type [%d]\n",sim_event->EventType);
-            tet_printf("[SIM]Undhandled event state [%d]\n",sim_event->Status);
-            break;
-       }
-    }//end switch
-
-    G_MAIN_LOOP_CLOSE();
-    return 0;
-}
-
-
-static void startup()
-{
-       tet_infoline("utc_tel_disable_sim_security Test Start\n");
-
-       sim_pin_info_setup();
-
-       if ( tel_init() == TAPI_API_SUCCESS)
-       {
-               tel_register_event(TAPI_EVENT_SIM_DISABLE_SEC_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);
-        tel_register_event(TAPI_EVENT_SIM_ENABLE_SEC_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);
-
-               gStartupSuccess = TRUE;
-
-       } else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-       tel_register_app_name("org.samsung.test");
-       return;
-}
-
-static void cleanup()
-{
-       tet_infoline("utc_tel_disable_sim_security Test Finished\n");
-
-    if (gStartupSuccess == TRUE)
-       {
-               tel_deregister_event(subscription_id);
-       }
-       tel_deinit();
-
-       return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
-* @brief tel_disable_sim_security() API : Negative condition(First parameter is Null)
-* @par ID: UTC_TEL_DIsABLE_SIM_SECURITY_01
-* @param [in] &pPinData = NULL
-* @param [out] &pRequestId
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_disable_sim_security_01()
-{
-    TET_STAMP_START("NULL parameter test 1");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-    int pRequestId=0;
-
-    TET_CHECK(TAPI_API_INVALID_PTR, tel_disable_sim_security(NULL,&pRequestId));
-    TET_STAMP_PASS();
-    return;
-}
-
-/**
-* @brief tel_disable_sim_security() API : Negative condition(Second parameter is Null)
-* @par ID: UTC_TEL_DIsABLE_SIM_SECURITY_02
-* @param [in] &pPinData.szPinCode = PIN1_NORMAL
-* @param [out] &pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_disable_sim_security_02()
-{
-    TET_STAMP_START("NULL parameter test 2");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       TelSimSecPw_t sec_data;
-       memset(&sec_data, 0x00, sizeof(TelSimSecPw_t));
-       sec_data.type = TAPI_SIM_PTYPE_PIN1;
-       sec_data.pw_len = strlen(g_si.pin1);
-       sec_data.pw = (unsigned char*)malloc(sec_data.pw_len);
-       memcpy(sec_data.pw,g_si.pin1,sec_data.pw_len);  
-
-    TET_CHECK(TAPI_API_INVALID_PTR, tel_disable_sim_security(&sec_data,NULL));
-    TET_STAMP_PASS();
-    return;
-}
-
-/**
-* @brief tel_disable_sim_security() API : Low boundary test
-* @par ID: UTC_TEL_DIsABLE_SIM_SECURITY_03
-* @param [in] &pPinData.PinType = TAPI_SIM_PTYPE_PIN1-1; //<---- Invalid value
-* @param [out] &pRequestId = NULL
-* @return TAPI_API_INVALID_INPUT
-*/
-void utc_tel_disable_sim_security_03()
-{
-    TET_STAMP_START("Invalid Input test 1");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       int pRequestId = 0;
-       TelSimSecPw_t sec_data;
-       memset(&sec_data, 0x00, sizeof(TelSimSecPw_t));
-       sec_data.type = TAPI_SIM_PTYPE_PIN1 -1;
-       sec_data.pw_len = strlen(g_si.pin1);
-       sec_data.pw = (unsigned char*)malloc(sec_data.pw_len);
-       memcpy(sec_data.pw,g_si.pin1,sec_data.pw_len);
-
-    TET_CHECK(TAPI_API_INVALID_INPUT, tel_disable_sim_security(&sec_data,&pRequestId));
-    TET_STAMP_PASS();
-    return;
-}
-
-/**
-* @brief tel_disable_sim_security() API : Upper boundary test
-* @par ID: UTC_TEL_DIsABLE_SIM_SECURITY_04
-* @param [in] &pPinData.PinType = TAPI_SIM_PTYPE_ADM+1; //<---- Invalid value
-* @param [out] &pRequestId = NULL
-* @return TAPI_API_INVALID_INPUT
-*/
-void utc_tel_disable_sim_security_04()
-{
-    TET_STAMP_START("Invalid Input test 2");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       int pRequestId = 0;
-       TelSimSecPw_t sec_data;
-       memset(&sec_data, 0x00, sizeof(TelSimSecPw_t));
-       sec_data.type = TAPI_SIM_PTYPE_PIN1 +1;
-       sec_data.pw_len = strlen(g_si.pin1);
-       sec_data.pw = (unsigned char*)malloc(sec_data.pw_len);
-       memcpy(sec_data.pw,g_si.pin1,sec_data.pw_len);
-
-    TET_CHECK(TAPI_API_INVALID_INPUT, tel_disable_sim_security(&sec_data,&pRequestId));
-    TET_STAMP_PASS();
-    return;
-}
-
-
-/**
-* @brief tel_disable_sim_security() API : Invalid parameter(PIN1_INCORRECT)
-* @par ID: UTC_TEL_DIsABLE_SIM_SECURITY_05
-* @param [in] &pPinData.szPinCode = PIN1_INCORRECT; //<---- Invalid value
-* @param [out] &pRequestId = NULL
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event received is below and the event data is #TelSimPinInfo_t. \n
-* (Asynchronous return status is indicated by #TelSimPinOperationResult_t.)
-*      - TAPI_EVENT_SIM_DISABLE_PIN_CNF (TAPI_SIM_PIN_INCORRECT_PASSWORD)
-*/
-void utc_tel_disable_sim_security_05()
-{
-    TET_STAMP_START("PIN1_INCORRECT test");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       // Step 1 : make proper condition
-    tet_printf("Step 1 : enable pin");
-
-       if( 0 != sim_pin_process_for_condition(TAPI_SIM_PTYPE_PIN1,TAPI_SIM_PIN_STATUS_ENABLED))
-       {
-               tet_printf("condition set is failed!!");
-               return;
-       }
-
-       // Step 2 : disable pin
-    tet_printf("Step 2 : disable pin");
-       int pRequestId = 0;
-       int tapiRet = TAPI_API_SUCCESS;
-       TelSimSecPw_t sec_data;
-       memset(&sec_data, 0x00, sizeof(TelSimSecPw_t));
-       sec_data.type = TAPI_SIM_PTYPE_PIN1;
-       sec_data.pw_len = strlen(g_si.wpin1);
-       sec_data.pw = (unsigned char*)malloc(sec_data.pw_len);
-       memcpy(sec_data.pw,g_si.wpin1,sec_data.pw_len);
-
-    gAsyncResult = FALSE;
-
-       tapiRet = tel_disable_sim_security(&sec_data,&pRequestId);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,TAPI_API_SUCCESS,tapiRet);
-
-    tet_printf("after real tc api - wait start");
-
-    G_MAIN_LOOP_RUN(3);
-
-    tet_printf("after real tc api - wait stop");
-
-    TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-    TET_RESULT_NOT_EQUAL(TET_FAIL,TAPI_SIM_PIN_INCORRECT_PASSWORD, gSimEventStatus); // If gSimEventStatus != TAPI_SIM_PIN_INCORRECT_PASSWORD, then TET_FAIL and return
-    TET_STAMP_PASS();
-    tet_printf("finish case"); 
-       return;
-}
-
-
-/**
-* @brief tel_disable_sim_security() API : Normal operation
-* @par ID: UTC_TEL_DIsABLE_SIM_SECURITY_06
-* @param [in] &pPinData
-       pPinData.szPinCode = PIN1_NORMAL
-       pPinData.PinType=TAPI_SIM_PTYPE_PIN1
-* @param [out] &pRequestId = NULL
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event received is below and the event data is #TelSimPinInfo_t. \n
-* (Asynchronous return status is indicated by #TelSimPinOperationResult_t.)
-*      - TAPI_EVENT_SIM_DISABLE_PIN_CNF (TAPI_SIM_PIN_OPERATION_SUCCESS)
-*/
-void utc_tel_disable_sim_security_06()
-{
-    TET_STAMP_START("PIN1_NORMAL test");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       // Step 1 : make proper condition
-    tet_printf("Step 1 : enable pin");
-
-       if( 0 != sim_pin_process_for_condition(TAPI_SIM_PTYPE_PIN1,TAPI_SIM_PIN_STATUS_ENABLED))
-       {
-               tet_printf("condition set is failed!!");
-               return;
-       }
-
-       // Step 2 : disable pin
-    tet_printf("Step 2 : disable pin");
-       int pRequestId = 0;
-       int tapiRet = TAPI_API_SUCCESS;
-       TelSimSecPw_t sec_data;
-       memset(&sec_data, 0x00, sizeof(TelSimSecPw_t));
-       sec_data.type = TAPI_SIM_PTYPE_PIN1;
-       sec_data.pw_len = strlen(g_si.pin1);
-       sec_data.pw = (unsigned char*)malloc(sec_data.pw_len);
-       memcpy(sec_data.pw,g_si.pin1,sec_data.pw_len);
-
-    gAsyncResult = FALSE;
-
-       tapiRet = tel_disable_sim_security(&sec_data,&pRequestId);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,TAPI_API_SUCCESS,tapiRet);
-
-    tet_printf("after real tc api - wait start");
-
-    G_MAIN_LOOP_RUN(3);
-
-    tet_printf("after real tc api - wait stop");
-
-    TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-    TET_RESULT_NOT_EQUAL(TET_FAIL,TAPI_SIM_PIN_OPERATION_SUCCESS, gSimEventStatus); // If gSimEventStatus != TAPI_SIM_PIN_INCORRECT_PASSWORD, then TET_FAIL and return
-    TET_STAMP_PASS();
-    tet_printf("finish case"); 
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_disable_sim_security.h b/TC/telephony_TC/sim/unit/uts_tel_disable_sim_security.h
deleted file mode 100644 (file)
index 9516d0f..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TEL_DIsABLE_SIM_SECURITY_H_
-#define _UTS_TEL_DIsABLE_SIM_SECURITY_H_
-
-       static void utc_tel_disable_sim_security_01();
-       static void utc_tel_disable_sim_security_02();
-       static void utc_tel_disable_sim_security_03();
-       static void utc_tel_disable_sim_security_04();
-       static void utc_tel_disable_sim_security_05();
-       static void utc_tel_disable_sim_security_06();
-
-#endif
diff --git a/TC/telephony_TC/sim/unit/uts_tel_enable_sim_fdn.c b/TC/telephony_TC/sim/unit/uts_tel_enable_sim_fdn.c
deleted file mode 100644 (file)
index 04a340d..0000000
+++ /dev/null
@@ -1,456 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_ENABLE_FDN tel_enable_sim_fdn
-*
-* @brief Unit test code for tel_enable_sim_fdn()
-* @par Test function Prototype:
-*      TapiResult_t tel_enable_sim_fdn(const char* pPinData, int *pRequestId);
-* @par Test function description:
-*      This function enables the FDN Mode
-* @par Important Notes:
-*      An unsolicited event TAPI_EVENT_SIM_FDN_STATUS_IND is notified to indicate
-*      whenever FDN status is changed(disabled/enabled)
-* @param [in] pPinData
-*      User entered PIN2 data. (NULL terminated string)
-* @param [out] pRequestId
-*   - Unique identifier for a particular request.
-*   - request_id value can be any value from 0 to 255 if the API is returned successfully
-*   - -1 (INVALID_REQUEST_ID) will be sent in case of failure. * @par Async Response Message:
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPinInfo_t. \n
-* (Asynchronous return status is indicated by #TelSimPinOperationResult_t.)
-*      - TAPI_EVENT_SIM_DISABLE_FDN_CNF
-*      - TAPI_EVENT_SIM_ENABLE_FDN_CNF
-*      - TAPI_EVENT_SIM_STATUS_IND
-* @pre
-*      - Before test script compile, you set correct PIN1_NORMAL, PIN2_NORMAL, PIN1_CHANGED, PIN2_CHANGED value on 'tet_tapi_util.h'
-*      - Before test script compile, you set incorrect PIN1_INCORRECT value on 'tet_tapi_util.h'
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tel_enable_sim_fdn.c
-* @brief       Test for the tel_enable_sim_fdn() API that is used to enable FDN mode
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "uts_tel_enable_sim_fdn.h"
-#include "sim_common.h"
-#include "async_util.h"
-
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_enable_sim_fdn_01, 1},
-       {utc_tel_enable_sim_fdn_02, 2},
-       {utc_tel_enable_sim_fdn_03, 3},
-       {utc_tel_enable_sim_fdn_04, 4},
-
-       {NULL, 0}
-};
-
-/*
-  User Defined Handler
-*/
-// Global variable for user data
-static BOOL gAsyncResult; //user defined data : Async callback is called or not
-static TelSimPinOperationResult_t gSimEventStatus;
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-extern sim_info_t g_si;
-
-
-/*
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////
-*/
-// Prototype : User must add function body
-gboolean g_timeout_callback (void *data);
-
-// GMainLoop global handler
-GMainLoop *sim_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(sim_loop);
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       //GMainLoop *mainloop;
-       sim_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);
-       g_main_loop_run (sim_loop);
-
-       return 0;
-}
-
-gboolean g_timeout_callback (void *data)
-{
-       gAsyncResult = FALSE;
-       tet_printf("[TIME OUT] g_timeout called .Close g_main_roop()");
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////
-
-
-static int sim_fdn_process_for_condition(int wish_condition)
-{
-    int pRequestId=0;
-       int tapiRet = TAPI_API_SUCCESS;
-       int fdn_status = 0; //dis(0)/enable(1)
-       int pin2_len = 0;
-       char* pin2 = NULL;
-       
-       tet_printf("wish_condition[%d]: 0-dis, 1- enabled",wish_condition);
-
-       tapiRet = tel_get_sim_fdn_status(&fdn_status);
-       if(tapiRet != TAPI_API_SUCCESS)
-       {
-               tet_printf("tel_get_sim_fdn_status is Failed with tapiRet[%d]", tapiRet);
-               return -1;
-       }
-
-       if(fdn_status == 0 )
-       {
-               tet_printf("current fdn status is disable");
-       }
-       else if(fdn_status == 1)
-       {
-               tet_printf("current fdn status is enable");
-       }
-       else
-       {
-               tet_printf("current fdn status is unhandled status[%d]",fdn_status );
-               return -1;
-       }
-
-       if(fdn_status == wish_condition )
-       {
-               tet_printf("current fdn status is same with wished condition");
-               return 0;
-       }
-       else
-       {
-               tet_printf("current fdn status is different with wished condition");
-
-               pin2_len = strlen(g_si.pin2);
-               pin2 = (char*)malloc(pin2_len);
-               memcpy(pin2,g_si.pin2,pin2_len);
-
-               gAsyncResult = FALSE;
-                       
-               if(wish_condition == 0)
-               {
-                       tapiRet = tel_disable_sim_fdn((const unsigned char*)pin2,&pin2_len,&pRequestId);
-               }
-               else if(wish_condition == 1)
-               {
-                       tapiRet = tel_enable_sim_fdn((const unsigned char*)pin2,&pin2_len,&pRequestId);
-               }
-               else
-               {
-                       tet_printf("Unhandled wish_condition[%d]", wish_condition);
-                       return -1;
-               }
-                       
-               if(tapiRet != TAPI_API_SUCCESS)
-               {
-                       tet_printf("tapi return[%d] when en/disabling fdn for condition",tapiRet);
-                       return -1;
-               }
-               else
-               {
-                       G_MAIN_LOOP_RUN(2);
-               }
-
-               if(gAsyncResult == TRUE)
-                       return 0;
-               else
-                       return -1;
-       }
-       return 0;
-}
-
-
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)
-{
-    tet_printf("\n***************[SIM APP]Callback data **********************\n");
-    tet_printf("[SIM]Reques Id[%d]\n", sim_event->RequestId);
-    tet_printf("[SIM]event status [%d]\n", sim_event->Status);
-
-    gAsyncResult = FALSE;
-    BOOL bReceived = FALSE;
-
-    switch(sim_event->EventType)
-      {
-        case TAPI_EVENT_SIM_ENABLE_FDNMODE_CNF:
-        {
-            tet_printf("\n[SIM]*****************TAPI_EVENT_SIM_ENABLE_FDNMODE_CNF (%d) ***************************\n", TAPI_EVENT_SIM_ENABLE_FDNMODE_CNF);
-            tet_printf("SIM Enable FDN event status = [%x]\n", sim_event->Status);
-
-            gSimEventStatus = sim_event->Status;
-            gAsyncResult = TRUE;
-            bReceived = TRUE;
-        }
-        break;
-
-        case TAPI_EVENT_SIM_DISABLE_FDNMODE_CNF:
-        {
-            tet_printf("\n[SIM]*****************TAPI_EVENT_SIM_DISABLE_FDNMODE_CNF (%d) ***************************\n", TAPI_EVENT_SIM_DISABLE_FDNMODE_CNF);
-            tet_printf("SIM Disable FDN event status = [%x]\n", sim_event->Status);
-
-            gSimEventStatus = sim_event->Status;
-            gAsyncResult = TRUE;
-            bReceived = TRUE;
-        }
-        break;
-
-        default:
-        {
-            gSimEventStatus = sim_event->Status;
-            gAsyncResult = FALSE;
-            tet_printf("[SIM]***************** Undhandled event type [%d] *****************\n",sim_event->EventType);
-            tet_printf("[SIM APP]Undhandled event state [%d]\n",sim_event->Status);
-            break;
-       }
-    }//end switch
-
-    if (bReceived == TRUE)
-      G_MAIN_LOOP_CLOSE();
-    return 0;
-}
-
-
-static void startup()
-{
-    tet_infoline("utc_tel_enable_sim_fdn Test Start\n");
-
-       sim_pin_info_setup();
-
-       if (tel_init() == TAPI_API_SUCCESS)
-       {
-               tel_register_event(TAPI_EVENT_SIM_ENABLE_FDNMODE_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);
-               tel_register_event(TAPI_EVENT_SIM_DISABLE_FDNMODE_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);
-               gStartupSuccess = TRUE;
-
-       } else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-       tel_register_app_name("org.samsung.test");
-    return;
-}
-
-
-static void cleanup()
-{
-    tet_infoline("utc_tel_enable_sim_fdn Test Finished\n");
-
-    if (gStartupSuccess == TRUE)
-       {
-               tel_deregister_event(subscription_id);
-       }
-       tel_deinit();
-    return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-/**
-* @brief tel_enable_sim_fdn() API : Negative condition(First parameter is Null)
-* @par ID: UTC_TEL_ENABLE_SIM_FDN_01
-* @param [in] *pPinData = NULL
-* @param [out] &pRequestId
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_enable_sim_fdn_01()
-{
-       TET_STAMP_START("NULL parameter test 1");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-       
-       int pRequestId=0;
-       int len = 0;
-       
-       TET_CHECK(TAPI_API_INVALID_PTR, tel_enable_sim_fdn(NULL,&len, &pRequestId));
-       TET_STAMP_PASS();
-       return;
-}
-       
-/**
-* @brief tel_enable_sim_fdn() API : Negative condition(Second parameter is Null)
-* @par ID: UTC_TEL_ENABLE_SIM_FDN_02
-* @param [in] *pPinData = PIN1_NORMAL
-* @param [out] &pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_enable_sim_fdn_02()
-{
-       TET_STAMP_START("NULL parameter test 2");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-       
-       int pin2_len = strlen(g_si.pin2);
-       char* pPinData = (char*)malloc(pin2_len);
-       memcpy(pPinData, g_si.pin2, pin2_len);
-
-       TET_CHECK(TAPI_API_INVALID_PTR, tel_enable_sim_fdn((const unsigned char*)pPinData, &pin2_len, NULL));
-       TET_STAMP_PASS();
-       return;
-}
-
-       
-void utc_tel_enable_sim_fdn_03()
-{
-       TET_STAMP_START("PIN2_INCORRECT test");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-       
-       int tapiRet = TAPI_API_SUCCESS;
-       int pRequestId = 0;
-       int pin2_len = 0;
-       char* pPinData = NULL;
-               
-       tet_printf("Step 1 : disable fdn");
-       if( 0 != sim_fdn_process_for_condition(0))
-       {
-               tet_printf("condition set is failed!!");
-               return;
-       }
-       
-       tet_printf("Step 2 : enable fdn with incorrect pin2");
-       pPinData = (char*)malloc(pin2_len);
-       pin2_len = strlen(g_si.wpin2);
-       memcpy(pPinData, g_si.wpin2, pin2_len);
-       
-       gAsyncResult = FALSE;
-       
-       tapiRet = tel_enable_sim_fdn((const unsigned char*)pPinData, &pin2_len, &pRequestId);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,TAPI_API_SUCCESS,tapiRet);
-       
-       tet_printf("after real tc api - wait start");
-       
-       G_MAIN_LOOP_RUN(2);
-       
-       tet_printf("after real tc api - wait stop");
-
-       
-       TET_RESULT_NOT_EQUAL_GOTO(TET_FAIL,exit,gAsyncResult,TRUE); // If gAsyncResult != FALSE, then TET_FAIL and return
-       TET_RESULT_NOT_EQUAL_GOTO(TET_FAIL,exit,TAPI_SIM_PIN_INCORRECT_PASSWORD, gSimEventStatus); // If gSimEventStatus != TAPI_SIM_PIN_INCORRECT_PASSWORD, then TET_FAIL and return
-       TET_STAMP_PASS();
-               
-exit:
-       // Step 3 : make default condition
-       tet_printf("Step 3 : disable fdn");
-               
-       if( 0 != sim_fdn_process_for_condition(0))
-       {
-               tet_printf("condition set is failed!!");
-       }
-       return;
-}
-
-       
-void utc_tel_enable_sim_fdn_04()
-{
-       TET_STAMP_START("PIN2_CORRECT test");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-       
-       int tapiRet = TAPI_API_SUCCESS;
-       int pRequestId = 0;
-       int pin2_len = 0;
-       char* pPinData = NULL;
-               
-       tet_printf("Step 1 : disable fdn");
-       if( 0 != sim_fdn_process_for_condition(0))
-       {
-               tet_printf("condition set is failed!!");
-               return;
-       }
-       
-       tet_printf("Step 2 : enable fdn with correct pin2");
-       pPinData = (char*)malloc(pin2_len);
-       pin2_len = strlen(g_si.pin2);
-       memcpy(pPinData, g_si.pin2, pin2_len);
-
-       gAsyncResult = FALSE;
-       
-       tapiRet = tel_enable_sim_fdn((const unsigned char*)pPinData, &pin2_len, &pRequestId);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,TAPI_API_SUCCESS,tapiRet);
-       
-       tet_printf("after real tc api - wait start");
-       
-       G_MAIN_LOOP_RUN(2);
-       
-       tet_printf("after real tc api - wait stop");
-
-       
-       TET_RESULT_NOT_EQUAL_GOTO(TET_FAIL,exit,gAsyncResult,TRUE); // If gAsyncResult != FALSE, then TET_FAIL and return
-       TET_RESULT_NOT_EQUAL_GOTO(TET_FAIL,exit,TAPI_SIM_PIN_OPERATION_SUCCESS, gSimEventStatus); // If gSimEventStatus != TAPI_SIM_PIN_INCORRECT_PASSWORD, then TET_FAIL and return
-       TET_STAMP_PASS();
-               
-exit:
-       // Step 3 : make default condition
-       tet_printf("Step 3 : disable fdn");
-               
-       if( 0 != sim_fdn_process_for_condition(0))
-       {
-               tet_printf("condition set is failed!!");
-       }
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_enable_sim_fdn.h b/TC/telephony_TC/sim/unit/uts_tel_enable_sim_fdn.h
deleted file mode 100644 (file)
index 37e04ea..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _uts_tel_enable_sim_fdn_H_
-#define _uts_tel_enable_sim_fdn_H_
-
-       static void utc_tel_enable_sim_fdn_01();
-       static void utc_tel_enable_sim_fdn_02();
-       static void utc_tel_enable_sim_fdn_03();
-       static void utc_tel_enable_sim_fdn_04();
-
-#endif
diff --git a/TC/telephony_TC/sim/unit/uts_tel_enable_sim_personalization.c b/TC/telephony_TC/sim/unit/uts_tel_enable_sim_personalization.c
deleted file mode 100644 (file)
index 3d82a12..0000000
+++ /dev/null
@@ -1,245 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-/**\r
-* @ingroup TELEPHONY_API\r
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT\r
-*/\r
-\r
-/**\r
-* @ingroup  TAPI_API_SIM_SAT\r
-* @addtogroup UTS_SIM_SAT Unit\r
-*/\r
-\r
-/**\r
-* @ingroup  UTS_SIM_SAT\r
-* @addtogroup UTS_TEL_ENABLE_PERSONALISATION tel_enable_sim_personalization\r
-*\r
-* @brief Unit test code for tel_enable_sim_personalization()\r
-* @par Test function Prototype:\r
-*       int tel_enable_sim_personalization(TelSimPersPw_t *pers_data, int *req_id)\r
-* @par Test function description:\r
-*      This API is used to enable the network personalisation feature.\r
-* @par Important Notes:\r
-*      None\r
-* @param [in] TelSimPersPw_t\r
-*      The information required to enable network personalisation.\r
-*      @code\r
-       typedef struct\r
-       {\r
-                       TelSimPersType_t        type;\r
-                       unsigned char*  pw;\r
-                       unsigned int            pw_len;\r
-       } TelSimPersPw_t;\r
-*      @endcode\r
-* @param [out] pRequestId   Unique identifier for a particular request.\r
-*   - request_id value can be any value from 0 to 255 if the API is returned successfully\r
-*   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.\r
-* @par Async Response Message:\r
-* The event associated is TAPI_EVENT_SIM_ENABLE_PERS_CNF\r
-* @pre\r
-*      None\r
-* @post\r
-*      None\r
-* @return\r
-* Return Type : (TapiResult_t)\r
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.\r
-* - Otherwise it provides an error code (Refer #TapiResult_t)\r
-* @{\r
-*/\r
-\r
-/**\r
-* @file                uts_tel_enable_sim_personalization.c\r
-* @brief\r
-       Test for the tel_disable_sim_personalization() API that is used to disable the network personalisation feature \n\r
-       Test for the tel_enable_sim_personalization() API that is used to enable the network personalisation feature\r
-* @author      \r
-* @version     Initial Creation V0.1\r
-* @date                2010.10.05\r
-*/\r
-\r
-#include <tet_api.h>\r
-#include <ITapiSim.h>\r
-#include <TapiCommon.h>\r
-\r
-#include "tet_tapi_util.h"\r
-#include "sim_common.h"\r
-#include "uts_tel_enable_sim_personalization.h"\r
-\r
-\r
-/* Initialize TCM data structures */\r
-static void startup();\r
-static void cleanup();\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tel_enable_sim_personalization01, 1},\r
-       {utc_tel_enable_sim_personalization02, 2},\r
-       {NULL, 0}\r
-};\r
-\r
-/*\r
-  User Defined Handler\r
-*/\r
-// Global variable for user data\r
-static BOOL gAsyncResult; //user defined data : Async callback is called or not\r
-\r
-/* Startup & Clean function : It is not test code, only for\r
-   initialize and finalize test module\r
-*/\r
-static BOOL gStartupSuccess = FALSE;\r
-static unsigned int subscription_id = 0;\r
-\r
-\r
-/*\r
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////\r
-*/\r
-// Prototype : User must add function body\r
-gboolean g_timeout_callback (void *data);\r
-\r
-// GMainLoop global handler\r
-GMainLoop *sim_loop = NULL;\r
-\r
-void G_MAIN_LOOP_CLOSE()\r
-{\r
-    g_main_loop_quit(sim_loop);\r
-}\r
-\r
-int G_MAIN_LOOP_RUN(int sec)\r
-{\r
-       sim_loop = g_main_loop_new (NULL, FALSE);\r
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);\r
-       g_main_loop_run (sim_loop);\r
-\r
-       return 0;\r
-}\r
-\r
-gboolean g_timeout_callback (void *data)\r
-{\r
-       gAsyncResult = FALSE;\r
-       tet_printf("[TIME OUT] g_timeout called .Close g_main_roop()");\r
-       G_MAIN_LOOP_CLOSE();\r
-       return FALSE;\r
-}\r
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////\r
-\r
-\r
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)\r
-{\r
-    tet_printf("\n***************[SIM APP]Callback data **********************\n");\r
-    tet_printf("[SIM]Reques Id[%d]\n", sim_event->RequestId);\r
-    tet_printf("[SIM APP]event status [%d]\n", sim_event->Status);\r
-\r
-    gAsyncResult = FALSE;\r
-    BOOL bReceived = FALSE;\r
-\r
-    switch(sim_event->EventType)\r
-    {\r
-               case TAPI_EVENT_SIM_ENABLE_PERS_CNF:\r
-               {\r
-                       tet_printf("\n[GOT THE EVENT]*******TAPI_EVENT_SIM_ENABLE_PERS_CNF******\n");\r
-                       tet_printf("[SIM]SIM personalization status event status  = [0x%x]\n", sim_event->Status);\r
-                       bReceived = TRUE;\r
-                       gAsyncResult = TRUE;\r
-               }\r
-               break;\r
-\r
-        default:\r
-        {\r
-                       bReceived = TRUE;\r
-                       gAsyncResult = FALSE;\r
-                       tet_printf("[SIM]***************** Undhandled event type [%d] *****************\n",sim_event->EventType);\r
-                       tet_printf("[SIM]Undhandled event state [%d]\n",sim_event->Status);\r
-               }\r
-               break;\r
-    }//end switch\r
-\r
-    if (bReceived == TRUE)\r
-      G_MAIN_LOOP_CLOSE();\r
-\r
-    return 0;\r
-}\r
-\r
-\r
-static void startup()\r
-{\r
-    tet_infoline("utc_tel_enable_sim_personalization_status Test Start\n");\r
-\r
-       if ( tel_init() == TAPI_API_SUCCESS)\r
-       {\r
-               if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_ENABLE_PERS_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL) )\r
-                       gStartupSuccess = TRUE;\r
-               else\r
-                       tet_infoline("startup fail. tel_register_event() failed");\r
-       } else {\r
-               tet_infoline("startup fail. tel_init() failed");\r
-       }\r
-\r
-        tel_register_app_name("org.samsung.test");\r
-    return;\r
-}\r
-\r
-\r
-static void cleanup()\r
-{\r
-    tet_infoline("utc_tel_enable_sim_personalization_status Test Finished\n");\r
-\r
-    if (gStartupSuccess == TRUE)\r
-       {\r
-               tel_deregister_event(subscription_id);\r
-       }\r
-       tel_deinit();\r
-    return;\r
-}\r
-\r
-\r
-/*\r
-  Unit Test Case functions\r
-*/\r
-void utc_tel_enable_sim_personalization01()\r
-{\r
-       TET_STAMP_START("utc_tel_enable_sim_personalization01 -TAPI_API_INVALID_PTR ");\r
-       TET_CHECK(TAPI_API_INVALID_PTR,tel_enable_sim_personalization (NULL, NULL));\r
-       TET_STAMP_PASS();\r
-       return;\r
-}\r
-\r
-\r
-void utc_tel_enable_sim_personalization02()\r
-{\r
-       TET_STAMP_START("utc_tel_enable_sim_personalization02 ");\r
-       int pRequestId=0;\r
-\r
-       TelSimPersPw_t lock_pers = {0,};\r
-       lock_pers.type = TAPI_SIM_PERS_NET;\r
-       lock_pers.pw_len =      15;\r
-       lock_pers.pw = (unsigned char*)malloc(15);\r
-       memcpy(lock_pers.pw,"000000000000000",15);\r
-\r
-       gAsyncResult = FALSE;\r
-                                       \r
-       TET_CHECK(TAPI_API_SUCCESS,tel_enable_sim_personalization(&lock_pers, &pRequestId));\r
-                                                               \r
-       G_MAIN_LOOP_RUN(2);\r
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return\r
-       TET_STAMP_PASS();\r
-       return;\r
-}\r
-\r
diff --git a/TC/telephony_TC/sim/unit/uts_tel_enable_sim_personalization.h b/TC/telephony_TC/sim/unit/uts_tel_enable_sim_personalization.h
deleted file mode 100644 (file)
index a9be66f..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-\r
-#ifndef _UTS_TEL_ENABLE_SIM_PERSONALIZATION_H_\r
-#define _UTS_TEL_ENABLE_SIM_PERSONALIZATION_H_\r
-       static void utc_tel_enable_sim_personalization01();\r
-       static void utc_tel_enable_sim_personalization02();\r
-#endif\r
diff --git a/TC/telephony_TC/sim/unit/uts_tel_enable_sim_security.c b/TC/telephony_TC/sim/unit/uts_tel_enable_sim_security.c
deleted file mode 100644 (file)
index 860c4ee..0000000
+++ /dev/null
@@ -1,568 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_ENABLE_PIN tel_enable_sim_security
-*
-* @brief Unit test code for tel_enable_sim_security()
-* @par Test function Prototype:
-*      TapiResult_t tel_enable_sim_security  (const TelSimPinData_t* pPinData, int *pRequestId);
-* @par Test function description:
-*      This function enables the PIN based on the Pin type and pin data passed from the Application.
-* @par Important Notes:
-*   For PIN2, disabling applies only for 3G USIMs and when PIN2 in NOT mapped to CHV2 of GSM application.
-*      Based on Pin status (PIN/UPIN/PUK) is blocked, an unsolicited event TAPI_EVENT_SIM_STATUS_IND
-*      is published to Applications.
-* @param [in] pPinData
-*      #TelSimPinData_t type of user entered Pin disable data and pin type
-* @code
-typedef struct
-{
-    TelSimPinType_t    PinType;        // Pin type
-    char               szPinCode[TAPI_SIM_PIN_LENGTH+1]; //PIN code
-} TelSimPinData_t;
-
-typedef enum
-{
-    TAPI_SIM_PTYPE_PIN1        = 0x00,         // PIN 1
-    TAPI_SIM_PTYPE_PIN2        = 0x01,         // PIN 2
-    TAPI_SIM_PTYPE_PUK1        = 0x02,         // Puk 1
-    TAPI_SIM_PTYPE_PUK2        = 0x03,         // Puk 2
-    TAPI_SIM_PTYPE_UPIN        = 0x04,         // Universal PIN
-    TAPI_SIM_PTYPE_ADM = 0x05          // Administrator
-} TelSimPinType_t;
-* @endcode
-* @param [out] pRequestId
-*   - Unique identifier for a particular request.
-*   - request_id value can be any value from 0 to 255 if the API is returned successfully
-*   - -1 (INVALID_REQUEST_ID) will be sent in case of failure. * @par Async Response Message:
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPinInfo_t. \n
-* (Asynchronous return status is indicated by #TelSimPinOperationResult_t.)
-*      - TAPI_EVENT_SIM_DISABLE_SEC_CNF
-*      - TAPI_EVENT_SIM_ENABLE_SEC_CNF
-*      - TAPI_EVENT_SIM_STATUS_IND
-* @pre
-*      - Before test script compile, you set correct PIN1_NORMAL, PIN2_NORMAL, PIN1_CHANGED, PIN2_CHANGED value on 'tet_tapi_util.h'
-*      - Before test script compile, you set incorrect PIN1_INCORRECT value on 'tet_tapi_util.h'
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tel_enable_sim_security.c
-* @brief       Test for the tel_enable_sim_security() API that is used to enable chv(Card Hoder value : PIN number)
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "uts_tel_enable_sim_security.h"
-#include "sim_common.h"
-#include "async_util.h"
-
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_enable_sim_security_01, 1},
-       {utc_tel_enable_sim_security_02, 2},
-       {utc_tel_enable_sim_security_03, 3},
-       {utc_tel_enable_sim_security_04, 4},
-       {utc_tel_enable_sim_security_05, 5},
-       {utc_tel_enable_sim_security_06, 6},
-
-       {NULL, 0}
-};
-
-/*
-  User Defined Handler
-*/
-// Global variable for user data
-static BOOL gAsyncResult; //user defined data : Async callback is called or not
-static TelSimPinOperationResult_t gSimEventStatus;
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-extern sim_info_t g_si;
-
-/*
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////
-*/
-// Prototype : User must add function body
-gboolean g_timeout_callback (void *data);
-
-// GMainLoop global handler
-GMainLoop *sim_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(sim_loop);
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       //GMainLoop *mainloop;
-       sim_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);
-       g_main_loop_run (sim_loop);
-
-       return 0;
-}
-
-gboolean g_timeout_callback (void *data)
-{
-       gAsyncResult = FALSE;
-       tet_printf("[TIME OUT] g_timeout called .Close g_main_roop()");
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////
-
-
-static int sim_pin_process_for_condition(TelSimPinType_t wish_pin, TelSimPinStatus_t wish_condition)
-{
-    int pRequestId=0;
-       int tapiRet = TAPI_API_SUCCESS;
-       TelSimPinStatus_t pin_status = TAPI_SIM_PIN_STATUS_UNKNOWN;
-       TelSimSecPw_t sec_data;
-       memset(&sec_data, 0x00, sizeof(TelSimSecPw_t));
-       
-       tet_printf("pin[%d]:0-pin1, 1-pin2, wish_condition[%d]: 0-dis, 1- enabled, 2-blocked(puk)",wish_pin, wish_condition);
-
-       tapiRet = tel_get_sim_security_status(wish_pin,&pin_status);
-       if(tapiRet != TAPI_API_SUCCESS)
-       {
-               tet_printf("tel_get_sim_security_status is Failed with tapiRet[%d]", tapiRet);
-               return -1;
-       }
-
-       if(pin_status == TAPI_SIM_PIN_STATUS_DISABLED )
-       {
-               tet_printf("current pin status is TAPI_SIM_PIN_STATUS_DISABLED");
-       }
-       else if(pin_status == TAPI_SIM_PIN_STATUS_ENABLED)
-       {
-               tet_printf("current pin status is TAPI_SIM_PIN_STATUS_ENABLED");
-       }
-       else
-       {
-               tet_printf("current pin status is unhandled status[%d]",pin_status );
-               return -1;
-       }
-
-       if(pin_status == wish_condition )
-       {
-               tet_printf("current pin status is same with wished condition");
-               return 0;
-       }
-       else
-       {
-               tet_printf("current pin status is different with wished condition");    
-               sec_data.type = wish_pin;
-
-               if(wish_pin == TAPI_SIM_PTYPE_PIN1 )
-               {
-                       sec_data.pw_len = strlen(g_si.pin1);
-                       sec_data.pw = (unsigned char*)malloc(sec_data.pw_len);
-                       memcpy(sec_data.pw,g_si.pin1,sec_data.pw_len);
-               }
-               else if(wish_pin == TAPI_SIM_PTYPE_PIN2)
-               {
-                       sec_data.pw_len = strlen(g_si.pin2);
-                       sec_data.pw = (unsigned char*)malloc(sec_data.pw_len);
-                       memcpy(sec_data.pw,g_si.pin2,sec_data.pw_len);
-               }
-
-               gAsyncResult = FALSE;
-               
-               if(wish_condition == TAPI_SIM_PIN_STATUS_DISABLED)
-               {
-                       tet_printf("make pin status with wished condition(TAPI_SIM_PIN_STATUS_DISABLED)");
-
-                       tapiRet = tel_disable_sim_security(&sec_data,&pRequestId);
-               }
-               else if(wish_condition == TAPI_SIM_PIN_STATUS_ENABLED)
-               {
-                       tet_printf("make pin status with wished condition(TAPI_SIM_PIN_STATUS_ENABLED)");               
-                       tapiRet = tel_enable_sim_security(&sec_data,&pRequestId);
-               }
-               else
-               {
-                       tet_printf("Unhandled wish_condition[%d]", wish_condition);
-                       return -1;
-               }
-               
-               if(tapiRet != TAPI_API_SUCCESS)
-               {
-                       tet_printf("tapi return[%d] when en/disabling pin for condition",tapiRet);
-                       return -1;
-               }
-               else
-               {
-                       G_MAIN_LOOP_RUN(3);
-               }
-
-               if(gAsyncResult == TRUE)
-                       return 0;
-               else
-                       return -1;
-       }
-
-       return 0;
-}
-
-
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)
-{
-    tet_printf("\n***************[SIM APP]Callback data **********************\n");
-    tet_printf("[SIM]Reques Id[%d]\n", sim_event->RequestId);
-    tet_printf("[SIM]event status [%d]\n", sim_event->Status);
-
-    gAsyncResult = FALSE;
-    BOOL bReceived = FALSE;
-
-    switch(sim_event->EventType)
-      {
-        case TAPI_EVENT_SIM_ENABLE_SEC_CNF:
-        {
-            tet_printf("\n[SIM]*****************TAPI_EVENT_SIM_ENABLE_SEC_CNF (%d) ***************************\n", TAPI_EVENT_SIM_ENABLE_SEC_CNF);
-            tet_printf("SIM Enable PIN event status = [%x]\n", sim_event->Status);
-
-            gSimEventStatus = sim_event->Status;
-            gAsyncResult = TRUE;
-            bReceived = TRUE;
-        }
-        break;
-
-        case TAPI_EVENT_SIM_DISABLE_SEC_CNF:
-        {
-            tet_printf("\n[SIM]*****************TAPI_EVENT_SIM_DISABLE_SEC_CNF (%d) ***************************\n", TAPI_EVENT_SIM_DISABLE_SEC_CNF);
-            tet_printf("SIM Disable PIN event status = [%x]\n", sim_event->Status);
-
-            gSimEventStatus = sim_event->Status;
-            gAsyncResult = TRUE;
-            bReceived = TRUE;
-        }
-        break;
-
-        default:
-        {
-            gSimEventStatus = sim_event->Status;
-            gAsyncResult = FALSE;
-            tet_printf("[SIM]***************** Undhandled event type [%d] *****************\n",sim_event->EventType);
-            tet_printf("[SIM]Undhandled event state [%d]\n",sim_event->Status);
-            break;
-       }
-    }//end switch
-
-    if (bReceived == TRUE)
-      G_MAIN_LOOP_CLOSE();
-    return 0;
-}
-
-
-static void startup()
-{
-    tet_infoline("utc_tel_enable_sim_security Test Start\n");
-
-       sim_pin_info_setup();
-
-       if ( tel_init() == TAPI_API_SUCCESS)
-       {
-               tel_register_event(TAPI_EVENT_SIM_DISABLE_SEC_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);
-        tel_register_event(TAPI_EVENT_SIM_ENABLE_SEC_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);
-
-               gStartupSuccess = TRUE;
-
-       } else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-
-       tel_register_app_name("org.samsung.test");
-    tet_printf("Test precondition : Before test, you must PIN Lock Disabled!");
-
-    return;
-}
-
-
-static void cleanup()
-{
-    tet_infoline("utc_tel_enable_sim_security Test Finished\n");
-
-    if (gStartupSuccess == TRUE)
-       {
-               tel_deregister_event(subscription_id);
-       }
-       tel_deinit();
-    return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-/**
-* @brief tel_enable_sim_security() API : Negative condition(Second parameter is Null)
-* @par ID: UTC_TEL_ENABLE_SIM_SECURITY_01
-* @param [out] &pPindata
-* @param [out] &pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_enable_sim_security_01()
-{
-    TET_STAMP_START("Invalid pointer test");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       TelSimSecPw_t sec_data;
-       memset(&sec_data, 0x00, sizeof(TelSimSecPw_t));
-       sec_data.type = TAPI_SIM_PTYPE_PIN1;
-       sec_data.pw_len = strlen(g_si.pin1);
-       sec_data.pw = (unsigned char*)malloc(sec_data.pw_len);
-       memcpy(sec_data.pw,g_si.pin1,sec_data.pw_len);
-
-    TET_CHECK(TAPI_API_INVALID_PTR,tel_enable_sim_security(&sec_data,NULL));
-    TET_STAMP_PASS();
-    return;
-}
-
-/**
-* @brief tel_enable_sim_security() API : Negative condition(First parameter is Null)
-* @par ID: UTC_TEL_ENABLE_SIM_SECURITY_02
-* @param [out] &pPindata = NULL
-* @param [out] &pRequestId
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_enable_sim_security_02()
-{
-    TET_STAMP_START("Invalid pointer test 2");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-    int pRequestId=0;
-
-    TET_CHECK(TAPI_API_INVALID_PTR,tel_enable_sim_security(NULL,&pRequestId));
-    TET_STAMP_PASS();
-    return;
-}
-
-/**
-* @brief tel_enable_sim_security() API : Lower boundary test(Invalid pin type)
-* @par ID: UTC_TEL_ENABLE_SIM_SECURITY_03
-* @param [out] &pPindata.PinType = TAPI_SIM_PTYPE_PIN1-1;//<---------Invalid
-* @param [out] &pRequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-void utc_tel_enable_sim_security_03()
-{
-    TET_STAMP_START("Invalid Input - Lower boundary");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       int pRequestId = 0;
-       TelSimSecPw_t sec_data;
-       memset(&sec_data, 0x00, sizeof(TelSimSecPw_t));
-       sec_data.type = TAPI_SIM_PTYPE_PIN1 -1;
-       sec_data.pw_len = strlen(g_si.pin1);
-       sec_data.pw = (unsigned char*)malloc(sec_data.pw_len);
-       memcpy(sec_data.pw,g_si.pin1,sec_data.pw_len);
-
-    TET_CHECK(TAPI_API_INVALID_INPUT,tel_enable_sim_security(&sec_data,&pRequestId));
-    TET_STAMP_PASS();
-    return;
-}
-
-/**
-* @brief tel_enable_sim_security() API : Upper boundary test(Invalid pin type)
-* @par ID: UTC_TEL_ENABLE_SIM_SECURITY_04
-* @param [out] &pPindata.PinType = TAPI_SIM_PTYPE_ADM+1;//<---------Invalid
-* @param [out] &pRequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-void utc_tel_enable_sim_security_04()
-{
-    TET_STAMP_START("Invalid Input 2");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       int pRequestId = 0;
-       TelSimSecPw_t sec_data;
-       memset(&sec_data, 0x00, sizeof(TelSimSecPw_t));
-       sec_data.type = TAPI_SIM_PTYPE_SIM +1;
-       sec_data.pw_len = strlen(g_si.pin1);
-       sec_data.pw = (unsigned char*)malloc(sec_data.pw_len);
-       memcpy(sec_data.pw,g_si.pin1,sec_data.pw_len);
-
-    TET_CHECK(TAPI_API_INVALID_INPUT,tel_enable_sim_security(&sec_data,&pRequestId));
-    TET_STAMP_PASS();
-    return;
-}
-
-/**
-* @brief tel_enable_sim_security() API : Invalid parameter
-* @par ID: UTC_TEL_ENABLE_SIM_SECURITY_05
-* @param [out] &pPindata.szPinCode = PIN1_INCORRECT;
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event received is below and the event data is #TelSimPinInfo_t. \n
-* (Asynchronous return status is indicated by #TelSimPinOperationResult_t.)
-*      - TAPI_EVENT_SIM_ENABLE_PIN_CNF (TAPI_SIM_PIN_INCORRECT_PASSWORD)
-*/
-void utc_tel_enable_sim_security_05()
-{
-    TET_STAMP_START("Incorrect password test");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       // Step 1 : make proper condition
-    tet_printf("Step 1 : disable pin");
-
-       if( 0 != sim_pin_process_for_condition(TAPI_SIM_PTYPE_PIN1,TAPI_SIM_PIN_STATUS_DISABLED))
-       {
-               tet_printf("condition set is failed!!");
-               return;
-       }
-
-       // Step 2 : enable pin
-    tet_printf("Step 2 : enable pin");
-       int pRequestId = 0;
-       int tapiRet = TAPI_API_SUCCESS;
-       TelSimSecPw_t sec_data;
-       memset(&sec_data, 0x00, sizeof(TelSimSecPw_t));
-       sec_data.type = TAPI_SIM_PTYPE_PIN1;
-       sec_data.pw_len = strlen(g_si.wpin1);
-       sec_data.pw = (unsigned char*)malloc(sec_data.pw_len);
-       memcpy(sec_data.pw,g_si.wpin1,sec_data.pw_len);
-
-    gAsyncResult = FALSE;
-
-       tapiRet = tel_enable_sim_security(&sec_data,&pRequestId);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,TAPI_API_SUCCESS,tapiRet);
-
-
-    tet_printf("after real tc api - wait start");
-
-    G_MAIN_LOOP_RUN(3);
-
-    tet_printf("after real tc api - wait stop");
-
-
-    TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-    TET_RESULT_NOT_EQUAL(TET_FAIL,TAPI_SIM_PIN_INCORRECT_PASSWORD, gSimEventStatus); // If gSimEventStatus != TAPI_SIM_PIN_INCORRECT_PASSWORD, then TET_FAIL and return
-    TET_STAMP_PASS();
-    tet_printf("finish case"); 
-       return;
-
-}
-
-
-/**
-* @brief tel_enable_sim_security() API : Positive condition
-* @par ID: UTC_TEL_ENABLE_SIM_SECURITY_05
-* @param [out] &pPindata.szPinCode = PIN1_NORMAL;
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event received is below and the event data is #TelSimPinInfo_t. \n
-* (Asynchronous return status is indicated by #TelSimPinOperationResult_t.)
-*      - TAPI_EVENT_SIM_ENABLE_PIN_CNF (TAPI_SIM_PIN_OPERATION_SUCCESS)
-*/
-void utc_tel_enable_sim_security_06()
-{
-    TET_STAMP_START("Normal operation test");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       // Step 1 : make proper condition
-    tet_printf("Step 1 : disable pin");
-
-       if( 0 != sim_pin_process_for_condition(TAPI_SIM_PTYPE_PIN1,TAPI_SIM_PIN_STATUS_DISABLED))
-       {
-               tet_printf("condition set is failed!!");
-               return;
-       }
-
-       // Step 2 : enable pin
-    tet_printf("Step 2 : enable pin");
-       int pRequestId = 0;
-       int tapiRet = TAPI_API_SUCCESS;
-       TelSimSecPw_t sec_data;
-       memset(&sec_data, 0x00, sizeof(TelSimSecPw_t));
-       sec_data.type = TAPI_SIM_PTYPE_PIN1;
-       sec_data.pw_len = strlen(g_si.pin1);
-       sec_data.pw = (unsigned char*)malloc(sec_data.pw_len);
-       memcpy(sec_data.pw,g_si.pin1,sec_data.pw_len);
-
-    gAsyncResult = FALSE;
-
-       tapiRet = tel_enable_sim_security(&sec_data,&pRequestId);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,TAPI_API_SUCCESS,tapiRet);
-
-    tet_printf("after real tc api - wait start");
-
-    G_MAIN_LOOP_RUN(3);
-
-    tet_printf("after real tc api - wait stop");
-
-
-    TET_RESULT_NOT_EQUAL_GOTO(TET_FAIL,exit,gAsyncResult,TRUE); // If gAsyncResult != FALSE, then TET_FAIL and return
-    TET_RESULT_NOT_EQUAL_GOTO(TET_FAIL,exit,TAPI_SIM_PIN_OPERATION_SUCCESS, gSimEventStatus); // If gSimEventStatus != TAPI_SIM_PIN_INCORRECT_PASSWORD, then TET_FAIL and return
-    TET_RESULT_EQUAL_GOTO(TET_PASS,exit,TAPI_SIM_PIN_OPERATION_SUCCESS, gSimEventStatus); // If gSimEventStatus != TAPI_SIM_PIN_INCORRECT_PASSWORD, then TET_FAIL and return
-
-exit:
-       // Step 3 : make default condition
-    tet_printf("Step 3 : disable pin");
-
-       if( 0 != sim_pin_process_for_condition(TAPI_SIM_PTYPE_PIN1,TAPI_SIM_PIN_STATUS_DISABLED))
-       {
-               tet_printf("condition set is failed!!");
-       }
-    tet_printf("finish case");         
-       return;
-}
-
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_enable_sim_security.h b/TC/telephony_TC/sim/unit/uts_tel_enable_sim_security.h
deleted file mode 100644 (file)
index 94b31e9..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _uts_tel_enable_sim_security_H_
-#define _uts_tel_enable_sim_security_H_
-
-       static void utc_tel_enable_sim_security_01();
-       static void utc_tel_enable_sim_security_02();
-       static void utc_tel_enable_sim_security_03();
-       static void utc_tel_enable_sim_security_04();
-       static void utc_tel_enable_sim_security_05();
-       static void utc_tel_enable_sim_security_06();
-
-#endif
-
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_callforwarding_info.c b/TC/telephony_TC/sim/unit/uts_tel_get_sim_callforwarding_info.c
deleted file mode 100644 (file)
index dc2d0f5..0000000
+++ /dev/null
@@ -1,165 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-/**\r
-* @ingroup TELEPHONY_API\r
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT\r
-*/\r
-\r
-/**\r
-* @ingroup  TAPI_API_SIM_SAT\r
-* @addtogroup UTS_SIM_SAT Unit\r
-*/\r
-\r
-/**\r
-* @ingroup  UTS_SIM_SAT\r
-* @addtogroup UTS_TAPI_SIM_GET_CALLFORWARDING_INFO tel_get_sim_callforwarding_info\r
-*\r
-* @brief Unit test code for tel_get_sim_callforwarding_info()\r
-* @par Test function Prototype:\r
-*      int tel_get_sim_callforwarding_info(TelSimCallForwarding_s *cf);\r
-* @par Test function description:\r
-*      This function is used to get callforwarding indication Information\r
-* @par Important Notes:\r
-*      None\r
-* @param [out] cf This parameter returns the callforwarding indication information\r
-* @code\r
-* typedef struct\r
-* {\r
-*      int b_cphs; // current data is from CPHS SIM or not\r
-*      union{\r
-*              TelSimCphsCallForwardingFlagInfo_t cphs_cf;     // information from CPHS SIM\r
-*              TelSimCallForwardingIndicationStatus_t cf;      // information from 3GPP SIM\r
-*      }cf_data_u;\r
-* }TelSimCallForwarding_s;\r
-* @endcode\r
-* @par Async Response Message:\r
-*      None\r
-* @pre\r
-*      None\r
-* @post\r
-*      None\r
-* @return\r
-* Return Type : (int)\r
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.\r
-* - Otherwise it provides an error code (Refer #TapiResult_t)\r
-* @{\r
-*/\r
-\r
-/**\r
-* @file                uts_tel_get_sim_callforwarding_info.c\r
-* @brief       Test for the tel_get_sim_callforwarding_info() API that is used to get callforwarding indication information\r
-* @author\r
-* @version     Initial Creation V0.1\r
-* @date                2011.08.29\r
-*/\r
-\r
-#include <tet_api.h>\r
-#include <ITapiSim.h>\r
-#include "tet_tapi_util.h"\r
-#include "uts_tel_get_sim_callforwarding_info.h"\r
-#include "sim_common.h"\r
-\r
-/* Initialize TCM data structures */\r
-static void startup();\r
-static void cleanup();\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tel_get_sim_callforwarding_info_01, 1},\r
-       {utc_tel_get_sim_callforwarding_info_02, 2},\r
-       {NULL, 0}\r
-};\r
-\r
-/* Startup & Clean function : It is not test code, only for\r
-   initialize and finalize test module\r
-*/\r
-static void startup()\r
-{\r
-       tet_infoline("uts_tel_get_sim_callforwarding_info Test Start\n");\r
-       if (tel_init() != TAPI_API_SUCCESS)\r
-       {\r
-               tet_infoline("startup fail. tel_init() failed");\r
-       }\r
-       return;\r
-}\r
-\r
-\r
-static void cleanup()\r
-{\r
-       tet_infoline("uts_tel_get_sim_callforwarding_info Test Finished\n");\r
-       if (tel_deinit() != TAPI_API_SUCCESS)\r
-       {\r
-               tet_infoline("startup fail. tel_deinit() failed");\r
-       }\r
-       return;\r
-}\r
-\r
-\r
-/*\r
-  Unit Test Case functions\r
-*/\r
-/**\r
-* @brief tel_get_sim_callforwarding_info() API : Positive condition(Get callforwarding Information)\r
-* @par ID: UTC_TEL_GET_SIM_CALLFORWARDING_INFO_01\r
-* @param [out] &cf\r
-* @return TAPI_API_SUCCESS\r
-* @par Expected Result:\r
-*  - call forwarding information\r
-*/\r
-void utc_tel_get_sim_callforwarding_info_01()\r
-{\r
-    TET_STAMP_START("Normal operation");\r
-    TelSimCallForwarding_s cf;\r
-\r
-    TET_CHECK(TAPI_API_SUCCESS, tel_get_sim_callforwarding_info(&cf));\r
-\r
-       if( cf.b_cphs == 0 || cf.b_cphs == 1)\r
-       {\r
-               tet_printf("b_cphs[%d]",cf.b_cphs);\r
-               TET_STAMP_PASS();\r
-               return;\r
-       }\r
-       else\r
-       {\r
-               TET_STAMP_FAIL();\r
-               return;\r
-       }\r
-       return;\r
-}\r
-\r
-/**\r
-* @brief tel_get_sim_callforwarding_info() API : Negative condition(Null Parameter test)\r
-* @par ID: UTC_TEL_GET_SIM_CALLFORWARDING_INFO_02\r
-* @param [out] &cf = NULL\r
-* @return TAPI_API_INVALID_PTR\r
-*/\r
-void utc_tel_get_sim_callforwarding_info_02()\r
-{\r
-    TET_STAMP_START("null pointer operation");\r
-    TelSimCallForwarding_s cf;\r
-\r
-    TET_CHECK(TAPI_API_INVALID_PTR, tel_get_sim_callforwarding_info(NULL));\r
-    TET_STAMP_PASS();\r
-    return;\r
-}\r
-\r
-/** @} */\r
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_callforwarding_info.h b/TC/telephony_TC/sim/unit/uts_tel_get_sim_callforwarding_info.h
deleted file mode 100644 (file)
index 4337ca6..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-/**\r
-* @ingroup     TELEPHONY_FRAMEWORK_API\r
-* @addtogroup  SIM\r
-*/\r
-\r
-/**\r
-* @ingroup     SIM\r
-* @addtogroup  UTS_TEL_GET_SIM_CALLFORWADING_INFO Unit\r
-*/\r
-\r
-/**\r
-* @ingroup     UTS_TEL_GET_SIM_CALLFORWADING_INFO Unit\r
-* @addtogroup  UTS_TEL_GET_SIM_CALLFORWADING_INFO_ Uts_tel_get_sim_callforwarding_info\r
-* @{\r
-*/\r
-\r
-/**\r
-* @file uts_tel_get_sim_callforwarding_info.h\r
-* @brief This is a suit of unit test cases to test tel_get_sim_callforwarding_info() API function\r
-* @author\r
-* @version Initial Creation Version 0.1\r
-* @date 2011.08.29\r
-*/\r
-\r
-\r
-#include <tet_api.h>\r
-#include <ITapiSim.h>\r
-#include <TapiCommon.h>\r
-#include <string.h>\r
-\r
-#include "tet_tapi_util.h"\r
-#include "sim_common.h"\r
-\r
-#ifndef _UTS_TEL_GET_SIM_CALLFORWADING_INFO_H_\r
-#define _UTS_TEL_GET_SIM_CALLFORWADING_INFO_H_\r
-       static void utc_tel_get_sim_callforwarding_info_01 ();\r
-       static void utc_tel_get_sim_callforwarding_info_02 ();\r
-#endif\r
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_cphs_info.c b/TC/telephony_TC/sim/unit/uts_tel_get_sim_cphs_info.c
deleted file mode 100644 (file)
index f73d975..0000000
+++ /dev/null
@@ -1,168 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-/**\r
-* @ingroup TELEPHONY_API\r
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT\r
-*/\r
-\r
-/**\r
-* @ingroup  TAPI_API_SIM_SAT\r
-* @addtogroup UTS_SIM_SAT Unit\r
-*/\r
-\r
-/**\r
-* @ingroup  UTS_SIM_SAT\r
-* @addtogroup UTS_TAPI_SIM_GET_CPHS_INFO tel_get_sim_cphs_info\r
-*\r
-* @brief Unit test code for tel_get_sim_cphs_info()\r
-* @par Test function Prototype:\r
-*      int tel_get_sim_cphs_info(TelSimCphsLocalInfo_t *cphs);\r
-* @par Test function description:\r
-*      This function is used to get CPHS specific Information\r
-* @par Important Notes:\r
-*      None\r
-* @param [out] cphs This parameter returns the CPHS specific information\r
-* @code\r
-* typedef struct\r
-* {\r
-*      int b_used; // used or not\r
-*      TelSimCphsInfo_t cphsinfo;      // cphs information\r
-*      TelSimCphsCustomerServiceProfileInfo_t csp;     // customer service profile\r
-*      TelSimCphsInformationNum_t infn;        // information numbers\r
-*      TelSimCphsOperatorName_t opname;        // operator name\r
-*      TelSimCphsOperatorShortName_t opshortform;      //operator short form\r
-*      TelSimDynamicFlagsInfo_t dflagsinfo; // Dynamic flags\r
-*      TelSimDynamic2FlagsInfo_t d2flagsinfo; // Dynamic2 flags\r
-* }TelSimCphsLocalInfo_t;\r
-* @endcode\r
-* @par Async Response Message:\r
-*      None\r
-* @pre\r
-*      None\r
-* @post\r
-*      None\r
-* @return\r
-* Return Type : (int)\r
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.\r
-* - Otherwise it provides an error code (Refer #TapiResult_t)\r
-* @{\r
-*/\r
-\r
-/**\r
-* @file                uts_tel_get_sim_cphs_info.c\r
-* @brief       Test for the tel_get_sim_cphs_info() API that is used to get CPHS specific information\r
-* @author\r
-* @version     Initial Creation V0.1\r
-* @date                2011.08.29\r
-*/\r
-\r
-#include <tet_api.h>\r
-#include <ITapiSim.h>\r
-#include "tet_tapi_util.h"\r
-#include "uts_tel_get_sim_cphs_info.h"\r
-#include "sim_common.h"\r
-\r
-/* Initialize TCM data structures */\r
-static void startup();\r
-static void cleanup();\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tel_get_sim_cphs_info_01, 1},\r
-       {utc_tel_get_sim_cphs_info_02, 2},\r
-       {NULL, 0}\r
-};\r
-\r
-/* Startup & Clean function : It is not test code, only for\r
-   initialize and finalize test module\r
-*/\r
-static void startup()\r
-{\r
-       tet_infoline("uts_tel_get_sim_cphs_info Test Start\n");\r
-       if (tel_init() != TAPI_API_SUCCESS)\r
-       {\r
-               tet_infoline("startup fail. tel_init() failed");\r
-       }\r
-       return;\r
-}\r
-\r
-\r
-static void cleanup()\r
-{\r
-       tet_infoline("uts_tel_get_sim_cphs_info Test Finished\n");\r
-       if (tel_deinit() != TAPI_API_SUCCESS)\r
-       {\r
-               tet_infoline("startup fail. tel_deinit() failed");\r
-       }\r
-       return;\r
-}\r
-\r
-\r
-/*\r
-  Unit Test Case functions\r
-*/\r
-/**\r
-* @brief tel_get_sim_cphs_info() API : Positive condition(Get CPHS specific Information)\r
-* @par ID: UTC_TEL_GET_SIM_CPHS_INFO_01\r
-* @param [out] &cphs\r
-* @return TAPI_API_SUCCESS\r
-* @par Expected Result:\r
-*  - CPHS information\r
-*/\r
-void utc_tel_get_sim_cphs_info_01()\r
-{\r
-    TET_STAMP_START("Normal operation");\r
-    TelSimCphsLocalInfo_t cphs;\r
-\r
-    TET_CHECK(TAPI_API_SUCCESS, tel_get_sim_cphs_info(&cphs));\r
-\r
-       if( cphs.b_used == 0 || cphs.b_used == 1)\r
-       {\r
-               tet_printf("b_used[%d]",cphs.b_used);\r
-               TET_STAMP_PASS();\r
-               return;\r
-       }\r
-       else\r
-       {\r
-               TET_STAMP_FAIL();\r
-               return;\r
-       }\r
-       return;\r
-}\r
-\r
-/**\r
-* @brief tel_get_sim_cphs_info() API : Negative condition(Null Parameter test)\r
-* @par ID: UTC_TEL_GET_SIM_CPHS_INFO_02\r
-* @param [out] &cphs = NULL\r
-* @return TAPI_API_INVALID_PTR\r
-*/\r
-void utc_tel_get_sim_cphs_info_02()\r
-{\r
-    TET_STAMP_START("null pointer operation");\r
-    TelSimCphsLocalInfo_t cphs;\r
-\r
-    TET_CHECK(TAPI_API_INVALID_PTR, tel_get_sim_cphs_info(NULL));\r
-    TET_STAMP_PASS();\r
-    return;\r
-}\r
-\r
-/** @} */\r
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_cphs_info.h b/TC/telephony_TC/sim/unit/uts_tel_get_sim_cphs_info.h
deleted file mode 100644 (file)
index b561f7a..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-/**\r
-* @ingroup     TELEPHONY_FRAMEWORK_API\r
-* @addtogroup  SIM\r
-*/\r
-\r
-/**\r
-* @ingroup     SIM\r
-* @addtogroup  UTS_TEL_GET_SIM_CPHS_INFO Unit\r
-*/\r
-\r
-/**\r
-* @ingroup     UTS_TEL_GET_SIM_CPHS_INFO Unit\r
-* @addtogroup  UTS_TEL_GET_SIM_CPHS_INFO Uts_tel_get_sim_cphs_info\r
-* @{\r
-*/\r
-\r
-/**\r
-* @file uts_tel_get_sim_cphs_info.h\r
-* @brief This is a suit of unit test cases to test tel_get_sim_cphs_info() API function\r
-* @author\r
-* @version Initial Creation Version 0.1\r
-* @date 2011.08.29\r
-*/\r
-\r
-\r
-#include <tet_api.h>\r
-#include <ITapiSim.h>\r
-#include <TapiCommon.h>\r
-#include <string.h>\r
-\r
-#include "tet_tapi_util.h"\r
-#include "sim_common.h"\r
-\r
-#ifndef _UTS_TEL_GET_SIM_CPHS_INFO_H_\r
-#define _UTS_TEL_GET_SIM_CPHS_INFO_H_\r
-       static void utc_tel_get_sim_cphs_info_01 ();\r
-       static void utc_tel_get_sim_cphs_info_02 ();\r
-#endif\r
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_ecc.c b/TC/telephony_TC/sim/unit/uts_tel_get_sim_ecc.c
deleted file mode 100644 (file)
index e626ba1..0000000
+++ /dev/null
@@ -1,179 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_GET_ECC_INFO tel_get_sim_ecc
-*
-* @brief Unit test code for tel_get_sim_ecc()
-* @par Test function Prototype:
-*      TapiResult_t tel_get_sim_ecc(TelSimEccData_t* pSimEccInfo, int *pCount);
-* @par Test function description:
-*      This function is a synchronous API used to get ECC data.
-* @par Important Notes:
-*      None
-* @param [out] pSimEccInfo
-*      This parameter returns the SIM emergency call code information like ecc length, service type etc.
-* @param [out] pCount
-*      Specifies number of ECC records.
-* @par Async Response Message:
-*      None
-* @pre
-*      None
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tel_get_sim_ecc.c
-* @brief       Test for the tel_get_sim_ecc() API that is used to get ecc info(Card type)
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include "tet_tapi_util.h"
-#include "uts_tel_get_sim_ecc.h"
-#include "sim_common.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_sim_ecc_01, 1},
-       {utc_tel_get_sim_ecc_02, 2},
-       {utc_tel_get_sim_ecc_03, 3},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static void startup()
-{
-       tet_infoline("uts_tel_get_sim_ecc Test Start\n");
-        tel_register_app_name("org.samsung.test");
-       return;
-}
-
-
-static void cleanup()
-{
-       tet_infoline("uts_tel_get_sim_ecc Test Finished\n");
-       return;
-}
-
-/**
-* @brief tel_get_sim_ecc() API : Normal opertion
-* @par ID: UTC_TEL_GET_SIM_ECC_01
-* @param [out] &ecc_info
-* @param [out] &ecc_rec_count
-* @return TAPI_API_SUCCESS
-*/
-void utc_tel_get_sim_ecc_01()
-{
-       TET_STAMP_START("Normal test");
-       int  ecc_rec_count = 0;
-       TelSimEccData_t  ecc_info;
-       memset(&ecc_info, 0, sizeof(ecc_info));
-
-       TET_CHECK(TAPI_API_SUCCESS, tel_get_sim_ecc(&ecc_info, &ecc_rec_count));
-
-       tet_printf("EEC count [%d]\n",ecc_rec_count);
-
-       int i;
-       for (i=0 ; i<ecc_rec_count ; i++)
-       {
-               tet_printf("[UeccInfo %d] [bUsed = %d] [szEccAlphaIdentifier = 0x%x",
-               i, ecc_info.UeccInfo[i].bUsed, ecc_info.UeccInfo[i].szEccAlphaIdentifier);
-       }
-
-  /*
-        tet_printf("ECC1 [%s]\n",ecc_info.EccInfo.szEcc1);
-        tet_printf("ECC2 [%s]\n",ecc_info.EccInfo.szEcc2);
-        tet_printf("ECC3 [%s]\n",ecc_info.EccInfo.szEcc3);
-        tet_printf("ECC4 [%s]\n",ecc_info.EccInfo.szEcc4);
-        tet_printf("ECC5 [%s]\n",ecc_info.EccInfo.szEcc5);
-*/
-        TET_STAMP_PASS();
-       return;
-}
-
-/**
-* @brief tel_get_sim_ecc() API : Negative condition(First parameter is Null)
-* @par ID: UTC_TEL_GET_SIM_ECC_02
-* @param [out] &ecc_info = NULL
-* @param [out] &ecc_rec_count
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_get_sim_ecc_02()
-{
-    int ecc_rec_count = 0;
-    TET_STAMP_START("GET ECC INFO WITH NULL OUT PARAM");
-
-    /* Calling TAPI GET ECC INFORMATION API */
-    TET_CHECK(TAPI_API_INVALID_PTR, tel_get_sim_ecc(NULL, &ecc_rec_count));
-
-    TET_STAMP_PASS();
-    return;
-}
-
-/**
-* @brief tel_get_sim_ecc() API : Negative condition(Second parameter is Null)
-* @par ID: UTC_TEL_GET_SIM_ECC_03
-* @param [out] &ecc_info
-* @param [out] &ecc_rec_count = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_get_sim_ecc_03()
-{
-    TelSimEccData_t  ecc_info;
-    memset(&ecc_info, 0, sizeof(ecc_info));
-
-    TET_STAMP_START("GET ECC INFO WITH NULL OUT PARAM");
-
-    /* Calling TAPI GET ECC INFORMATION API */
-    TET_CHECK(TAPI_API_INVALID_PTR, tel_get_sim_ecc(&ecc_info,NULL));
-
-    TET_STAMP_PASS();
-    return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_ecc.h b/TC/telephony_TC/sim/unit/uts_tel_get_sim_ecc.h
deleted file mode 100644 (file)
index 4e1e1ee..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#ifndef _uts_tel_get_sim_ecc_H_
-#define _uts_tel_get_sim_ecc_H_
-
-       static void utc_tel_get_sim_ecc_01();
-       static void utc_tel_get_sim_ecc_02();
-       static void utc_tel_get_sim_ecc_03();
-
-#endif
-
-
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_fdn_status.c b/TC/telephony_TC/sim/unit/uts_tel_get_sim_fdn_status.c
deleted file mode 100644 (file)
index b87ef15..0000000
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_GET_FDN_STATUS tel_get_sim_fdn_status
-*
-* @brief Unit test code for tel_get_sim_fdn_status()
-* @par Test function Prototype:
-*      TapiResult_t tel_get_sim_fdn_status(BOOL *pFdnStatus);
-* @par Test function description:
-*      This function is a synchronous API gets the current FDN status.
-* @par Important Notes:
-*      None
-* @param [out] pFdnStatus
-*   This parameter returns the current fdn status whether enabled or disabled.
-* @par Async Response Message:
-*      None
-* @pre
-*      None
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tel_get_sim_fdn_status.c
-* @brief       Test for the tel_get_sim_fdn_status() API that is used to get fdn status
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "uts_tel_get_sim_fdn_status.h"
-#include "sim_common.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_sim_fdn_status_01, 1},
-       {utc_tel_get_sim_fdn_status_02, 2},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static void startup()
-{
-       tet_infoline("utc_tel_get_sim_fdn_status Test Start\n");
-       if (tel_init() != TAPI_API_SUCCESS)
-       {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-       return;
-}
-
-
-static void cleanup()
-{
-       tet_infoline("utc_tel_get_sim_fdn_status Test Finished\n");
-       if (tel_deinit() != TAPI_API_SUCCESS)
-       {
-               tet_infoline("startup fail. tel_deinit() failed");
-       }
-       return;
-}
-
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
-* @brief tel_get_sim_fdn_status() API : Positive condition(Get FDN Status)
-* @par ID: UTC_TEL_GET_SIM_FDN_STATUS_01
-* @param [out] &fdn_status
-* @return TAPI_API_SUCCESS
-*/
-void utc_tel_get_sim_fdn_status_01()
-{
-    BOOL fdn_status = 0;
-
-    TET_STAMP_START("all valid input parameter test");
-    TET_CHECK(TAPI_API_SUCCESS, tel_get_sim_fdn_status(&fdn_status));
-    tet_printf(" FDN status is %d", fdn_status);
-    TET_STAMP_PASS();
-    return;
-}
-
-/**
-* @brief tel_get_sim_fdn_status() API : Negative condition(Parameter is Null)
-* @par ID: UTC_TEL_GET_SIM_FDN_STATUS_02
-* @param [out] &fdn_status = NULL
-* @return TAPI_API_SUCCESS
-*/
-void utc_tel_get_sim_fdn_status_02()
-{
-    TET_STAMP_START("NULL parameter test");
-
-    TET_CHECK(TAPI_API_INVALID_PTR, tel_get_sim_fdn_status(NULL));
-    TET_STAMP_PASS();
-    return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_fdn_status.h b/TC/telephony_TC/sim/unit/uts_tel_get_sim_fdn_status.h
deleted file mode 100644 (file)
index 31fb1b2..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _uts_tel_get_sim_fdn_status_h_
-#define _uts_tel_get_sim_fdn_status_h_
-
-       static void utc_tel_get_sim_fdn_status_01();
-       static void utc_tel_get_sim_fdn_status_02();
-
-#endif
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_imsi.c b/TC/telephony_TC/sim/unit/uts_tel_get_sim_imsi.c
deleted file mode 100644 (file)
index 6943b75..0000000
+++ /dev/null
@@ -1,173 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_GET_IMSI_INFO tel_get_sim_imsi
-*
-* @brief Unit test code for tel_get_sim_imsi()
-* @par Test function Prototype:
-*      TapiResult_t tel_get_sim_imsi(TelSimImsiInfo_t* pSimImsiInfo);
-* @par Test function description:
-*      This function is used to get ISMI Information
-* @par Important Notes:
-*      None
-* @param [out] pSimImsiInfo This parameter returns the IMSI information
-* @code
-typedef struct
-{
-       BOOL    bValid;                 // Valid(ACTIVATE) IMSI (TRUE) or Deactivated (FALSE)
-       char    szMcc[TAPI_SIM_MCC_CODE_LEN+1]; // mobile country code
-       char    szMnc[TAPI_SIM_MNC_CODE_LEN+1]; // mobile network code
-       char    szMsin[TAPI_SIM_MSIN_CODE_LEN+1]; // mobile station identification number
-} TelSimImsiInfo_t;
-* @endcode
-* @par Async Response Message:
-*      None
-* @pre
-*      None
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tel_get_sim_imsi.c
-* @brief       Test for the tel_get_sim_imsi() API that is used to get imsi information
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include "tet_tapi_util.h"
-#include "uts_tel_get_sim_imsi.h"
-#include "sim_common.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_sim_imsi_01, 1},
-       {utc_tel_get_sim_imsi_02, 2},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static void startup()
-{
-       tet_infoline("uts_tel_get_sim_imsi Test Start\n");
-       if (tel_init() != TAPI_API_SUCCESS)
-       {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-       return;
-}
-
-
-static void cleanup()
-{
-       tet_infoline("uts_tel_get_sim_imsi Test Finished\n");
-       if (tel_deinit() != TAPI_API_SUCCESS)
-       {
-               tet_infoline("startup fail. tel_deinit() failed");
-       }
-       return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-/**
-* @brief tel_get_sim_imsi() API : Positive condition(Get IMSI Information)
-* @par ID: UTC_TEL_GET_SIM_IMSI_01
-* @param [out] &sim_imsi_info
-* @return TAPI_API_SUCCESS
-* @par Expected Result:
-*  - sim_imsi_info.szMcc != NULL // mobile country code is returned
-*  - sim_imsi_info.szMnc != NULL // mobile network code is returned
-*  - sim_imsi_info.szMsin != NULL // mobile station identification number is returned
-*/
-void utc_tel_get_sim_imsi_01()
-{
-    TET_STAMP_START("Normal operation");
-    TelSimImsiInfo_t sim_imsi_info;
-
-    TET_CHECK(TAPI_API_SUCCESS, tel_get_sim_imsi(&sim_imsi_info));
-
-       if( sim_imsi_info.szMcc != NULL
-               && sim_imsi_info.szMnc != NULL
-               && sim_imsi_info.szMsin != NULL)
-       {
-               tet_printf("[SIM APP] IMSI [mcc,mnc,msin]= ");
-               tet_printf(" [%s]",sim_imsi_info.szMcc);
-               tet_printf(" [%s]",sim_imsi_info.szMnc);
-               tet_printf(" [%s]",sim_imsi_info.szMsin);
-               TET_STAMP_PASS();
-               return;
-       }
-       else
-       {
-               tet_printf("[SIM APP] IMSI error [mcc,mnc,msin]=[%x,%x,%x]\n",
-                                       sim_imsi_info.szMcc, sim_imsi_info.szMnc,
-                                       sim_imsi_info.szMsin);
-               TET_STAMP_FAIL();
-               return;
-       }
-       return;
-}
-
-/**
-* @brief tel_get_sim_imsi() API : Negative condition(Null Parameter test)
-* @par ID: UTC_TEL_GET_SIM_IMSI_02
-* @param [out] &sim_imsi_info = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_get_sim_imsi_02()
-{
-    TET_STAMP_START("null pointer operation");
-
-    TET_CHECK(TAPI_API_INVALID_PTR, tel_get_sim_imsi(NULL));
-    TET_STAMP_PASS();
-    return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_imsi.h b/TC/telephony_TC/sim/unit/uts_tel_get_sim_imsi.h
deleted file mode 100644 (file)
index a5fcec8..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _uts_tel_get_sim_imsi_H_
-#define _uts_tel_get_sim_imsi_H_
-
-       static void utc_tel_get_sim_imsi_01();
-       static void utc_tel_get_sim_imsi_02();
-
-#endif
-
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_init_info.c b/TC/telephony_TC/sim/unit/uts_tel_get_sim_init_info.c
deleted file mode 100644 (file)
index b7ed5d4..0000000
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-/**\r
-* @ingroup     TELEPHONY_FRAMEWORK_API\r
-* @addtogroup  SIM\r
-*/\r
-\r
-/**\r
-* @ingroup     SIM\r
-* @addtogroup  UTS_TEL_GET_SIM_INIT_INFO Unit\r
-*/\r
-\r
-/**\r
-* @ingroup     UTS_TEL_GET_SIM_INIT_INFO Unit\r
-* @addtogroup  UTS_TEL_GET_SIM_INIT_INFO_ Uts_Tel_Get_Sim_Init_Info\r
-* @{\r
-*/\r
-\r
-/**\r
-* @file uts_tel_get_sim_init_info.c\r
-* @brief This is a suit of unit test cases to test tel_get_sim_init_info() API function\r
-* @author Gautam Nand Sinha (gnand.sinha@samsung.com)\r
-* @version Initial Creation Version 0.1\r
-* @date 2010.06.29\r
-*/
-
-
-#include "uts_tel_get_sim_init_info.h"
-
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_sim_init_info_01, 1},
-       {utc_tel_get_sim_init_info_02, 2},
-       {NULL, 0}\r
-};
-
-
-
-static void startup()\r
-{
-    tet_infoline("utc_tel_get_sim_init_info Test Start\n");\r
-       if ( tel_init() != TAPI_API_SUCCESS)\r
-       {
-               tet_infoline("startup fail. tel_init() failed");\r
-       }
-    return;\r
-}
-
-
-static void cleanup()
-{
-    tet_infoline("utc_tel_get_sim_init_info Test Finished\n");\r
-       if ( tel_deinit() != TAPI_API_SUCCESS)\r
-       {\r
-               tet_infoline("startup fail. tel_deinit() failed");\r
-       }\r
-    return;\r
-}
-\r
-
-void utc_tel_get_sim_init_info_01()
-{
-       TET_STAMP_START("utc_tel_get_sim_init_info_01");\r
-\r
-    int changed=0,err;\r
-    TelSimCardStatus_t sim_status = 0x00 ;
-    err = tel_get_sim_init_info(&sim_status,&changed);
-       if(err == TAPI_API_SUCCESS)\r
-       {\r
-               tet_printf("utc_tel_get_sim_init_info_01 has passed and the data in err-->%d", err);\r
-               tet_result(TET_PASS);\r
-       }\r
-       else\r
-       {\r
-               tet_printf("utc_tel_get_sim_init_info_01 has failed and the data in err-->%d", err);\r
-               tet_result(TET_FAIL);\r
-       }\r
-       return;\r
-}\r
-
-
-void utc_tel_get_sim_init_info_02()
-{
-       TET_STAMP_START("utc_tel_get_sim_init_info_02");\r
-\r
-       TET_CHECK(TAPI_API_INVALID_PTR,tel_get_sim_init_info(NULL,NULL));\r
-       TET_STAMP_PASS();\r
-       return;\r
-}\r
-\r
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_init_info.h b/TC/telephony_TC/sim/unit/uts_tel_get_sim_init_info.h
deleted file mode 100644 (file)
index 9c52dbb..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-/**\r
-* @ingroup     TELEPHONY_FRAMEWORK_API\r
-* @addtogroup  SIM\r
-*/\r
-\r
-/**\r
-* @ingroup     SIM\r
-* @addtogroup  UTS_TEL_GET_SIM_INIT_INFO Unit\r
-*/\r
-\r
-/**\r
-* @ingroup     UTS_TEL_GET_SIM_INIT_INFO Unit\r
-* @addtogroup  UTS_TEL_GET_SIM_INIT_INFO_ Uts_Tel_Set_Sim_Mailbox_Info\r
-* @{\r
-*/\r
-\r
-/**\r
-* @file uts_tel_get_sim_init_info.h\r
-* @brief This is a suit of unit test cases to test tel_get_sim_init_info() API function\r
-* @author Gautam Nand Sinha (gnand.sinha@samsung.com)\r
-* @version Initial Creation Version 0.1\r
-* @date 2010.06.29\r
-*/\r
-\r
-/**\r
-* @file uts_tel_get_sim_mailbox_info.h\r
-* @brief This is a suit of unit test cases to test tel_get_sim_mailbox_info() API function\r
-* @author Gautam Nand Sinha (gnand.sinha@samsung.com)\r
-* @version Initial Creation Version 0.1\r
-* @date 2010.06.29\r
-*/
-
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-#include <string.h>
-\r
-#include "tet_tapi_util.h"
-#include "sim_common.h"
-
-#ifndef _UTS_TEL_GET_SIM_INIT_INFO_H_
-#define _UTS_TEL_GET_SIM_INIT_INFO_H_
-       static void utc_tel_get_sim_init_info_01 ();\r
-       static void utc_tel_get_sim_init_info_02 ();
-#endif\r
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_language.c b/TC/telephony_TC/sim/unit/uts_tel_get_sim_language.c
deleted file mode 100644 (file)
index b650789..0000000
+++ /dev/null
@@ -1,143 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_GET_LANGUAGE_PREF_INFO tel_get_sim_language
-*
-* @brief Unit test code for tel_get_sim_language()
-* @par Test function Prototype:
-*      TapiResult_t tel_get_sim_language(TelSimLanguageInfo_t* pSimLpInfo);
-* @par Test function description:
-*      This API is used to get the language preference information.
-* @par Important Notes:
-*      None
-* \param [out] pSimLpInfo                      
-*      This parameter returns the language preference information.
-* @par Async Response Message:
-*      None
-* @pre
-*      None
-* @post
-*      None
-* @return
- * \return Return Type (TapiResult_t) \n
- * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
- * - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tapi_sim_get_sim_language_pref_info.c
-* @brief       Test for the tel_get_sim_language() API that is used to get Lock information
-* @author      
-* @version     Initial Creation V0.1
-* @date                2009.12.17
-*/
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "uts_tel_get_sim_language.h"
-#include "sim_common.h"
-
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_sim_language_01, 1},
-       {utc_tel_get_sim_language_02, 2},
-       {NULL, 0}
-};
-
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static void startup()
-{
-       tet_infoline("tel_get_sim_language Test Start\n");
-       if (tel_init() != TAPI_API_SUCCESS)
-       {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-       return;
-}
-
-
-static void cleanup()
-{
-       tet_infoline("tel_get_sim_language Test Finished\n");
-       if (tel_deinit() != TAPI_API_SUCCESS)
-       {
-               tet_infoline("startup fail. tel_deinit() failed");
-       }
-       return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
-* @brief tel_get_sim_language() API : Positive condition
-* @par ID: UTC_TEL_GET_SIM_LANGUAGE_01
-* @param [out] pSimLpInfo = valid parameter
-* @return TAPI_API_SUCCESS
-*/
-void utc_tel_get_sim_language_01()
-{
-       TET_STAMP_START("Normal operation");
-       TelSimLanguageInfo_t simLpInfo;
-       TET_CHECK(TAPI_API_SUCCESS,tel_get_sim_language(&simLpInfo));
-       TET_STAMP_PASS();
-       return;
-}
-
-/**
-* @brief TelTapiSimGetLockInfo() API : Negative condition(NULL)
-* @par ID: UTC_TEL_GET_SIM_LANGUAGE_02
-* @param [out] pRequestId = NULL
-* @return 
-*/
-void utc_tel_get_sim_language_02()
-{
-       TET_STAMP_START("Null parameter test");
-       TET_CHECK(TAPI_API_INVALID_PTR, tel_get_sim_language(NULL));
-       TET_STAMP_PASS();
-}
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_language.h b/TC/telephony_TC/sim/unit/uts_tel_get_sim_language.h
deleted file mode 100644 (file)
index 86ef21e..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TAPI_SIM_GET_LANGUAGE_PREF_INFO_
-#define _UTS_TAPI_SIM_GET_LANGUAGE_PREF_INFO_
-
-       static void utc_tel_get_sim_language_01();
-       static void utc_tel_get_sim_language_02();
-
-#endif
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_mailbox_info.c b/TC/telephony_TC/sim/unit/uts_tel_get_sim_mailbox_info.c
deleted file mode 100644 (file)
index 8a003d7..0000000
+++ /dev/null
@@ -1,166 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-/**\r
-* @ingroup TELEPHONY_API\r
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT\r
-*/\r
-\r
-/**\r
-* @ingroup  TAPI_API_SIM_SAT\r
-* @addtogroup UTS_SIM_SAT Unit\r
-*/\r
-\r
-/**\r
-* @ingroup  UTS_SIM_SAT\r
-* @addtogroup UTS_TAPI_SIM_GET_MAILBOX_INFO tel_get_sim_mailbox_info\r
-*\r
-* @brief Unit test code for tel_get_sim_mailbox_info()\r
-* @par Test function Prototype:\r
-*      int tel_get_sim_mailbox_info(TelSimMailboxNumbers_s *mbox);\r
-* @par Test function description:\r
-*      This function is used to get mailbox number Information\r
-* @par Important Notes:\r
-*      None\r
-* @param [out] mbox This parameter returns the mailbox information\r
-* @code\r
-* typedef struct\r
-* {\r
-*      int b_cphs; // current data is from CPHS SIM or not\r
-*      TelSimDialingNumberInfo_t voice_line1; // voice line1 mailbox number\r
-*      TelSimDialingNumberInfo_t voice_line2; // voice line2 mailbox number (only available in CPHS)\r
-*      TelSimDialingNumberInfo_t video; // video mailbox number\r
-*      TelSimDialingNumberInfo_t fax; // fax mailbox number\r
-*      TelSimDialingNumberInfo_t email; // email mailbox number\r
-* }TelSimMailboxNumbers_s;\r
-* @endcode\r
-* @par Async Response Message:\r
-*      None\r
-* @pre\r
-*      None\r
-* @post\r
-*      None\r
-* @return\r
-* Return Type : (int)\r
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.\r
-* - Otherwise it provides an error code (Refer #TapiResult_t)\r
-* @{\r
-*/\r
-\r
-/**\r
-* @file                uts_tel_get_sim_mailbox_info.c\r
-* @brief       Test for the tel_get_sim_mailbox_info() API that is used to get mailbox information\r
-* @author\r
-* @version     Initial Creation V0.1\r
-* @date                2011.08.29\r
-*/\r
-\r
-#include <tet_api.h>\r
-#include <ITapiSim.h>\r
-#include "tet_tapi_util.h"\r
-#include "uts_tel_get_sim_mailbox_info.h"\r
-#include "sim_common.h"\r
-\r
-/* Initialize TCM data structures */\r
-static void startup();\r
-static void cleanup();\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tel_get_sim_mailbox_info_01, 1},\r
-       {utc_tel_get_sim_mailbox_info_02, 2},\r
-       {NULL, 0}\r
-};\r
-\r
-/* Startup & Clean function : It is not test code, only for\r
-   initialize and finalize test module\r
-*/\r
-static void startup()\r
-{\r
-       tet_infoline("uts_tel_get_sim_mailbox_info Test Start\n");\r
-       if (tel_init() != TAPI_API_SUCCESS)\r
-       {\r
-               tet_infoline("startup fail. tel_init() failed");\r
-       }\r
-       return;\r
-}\r
-\r
-\r
-static void cleanup()\r
-{\r
-       tet_infoline("uts_tel_get_sim_mailbox_info Test Finished\n");\r
-       if (tel_deinit() != TAPI_API_SUCCESS)\r
-       {\r
-               tet_infoline("startup fail. tel_deinit() failed");\r
-       }\r
-       return;\r
-}\r
-\r
-\r
-/*\r
-  Unit Test Case functions\r
-*/\r
-/**\r
-* @brief tel_get_sim_mailbox_info() API : Positive condition(Get mailbox Information)\r
-* @par ID: UTC_TEL_GET_SIM_MAILBOX_INFO_01\r
-* @param [out] &mailbox\r
-* @return TAPI_API_SUCCESS\r
-* @par Expected Result:\r
-*  - mailbox number\r
-*/\r
-void utc_tel_get_sim_mailbox_info_01()\r
-{\r
-    TET_STAMP_START("Normal operation");\r
-    TelSimMailboxNumbers_s mailbox;\r
-\r
-    TET_CHECK(TAPI_API_SUCCESS, tel_get_sim_mailbox_info(&mailbox));\r
-\r
-       if( mailbox.b_cphs == 0 || mailbox.b_cphs == 1)\r
-       {\r
-               tet_printf("b_cphs[%d]",mailbox.b_cphs);\r
-               TET_STAMP_PASS();\r
-               return;\r
-       }\r
-       else\r
-       {\r
-               TET_STAMP_FAIL();\r
-               return;\r
-       }\r
-       return;\r
-}\r
-\r
-/**\r
-* @brief tel_get_sim_mailbox_info() API : Negative condition(Null Parameter test)\r
-* @par ID: UTC_TEL_GET_SIM_MAILBOX_INFO_02\r
-* @param [out] &mailbox = NULL\r
-* @return TAPI_API_INVALID_PTR\r
-*/\r
-void utc_tel_get_sim_mailbox_info_02()\r
-{\r
-    TET_STAMP_START("null pointer operation");\r
-    TelSimMailboxNumbers_s mailbox;\r
-\r
-    TET_CHECK(TAPI_API_INVALID_PTR, tel_get_sim_mailbox_info(NULL));\r
-    TET_STAMP_PASS();\r
-    return;\r
-}\r
-\r
-/** @} */\r
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_mailbox_info.h b/TC/telephony_TC/sim/unit/uts_tel_get_sim_mailbox_info.h
deleted file mode 100644 (file)
index a3cfde5..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-/**\r
-* @ingroup     TELEPHONY_FRAMEWORK_API\r
-* @addtogroup  SIM\r
-*/\r
-\r
-/**\r
-* @ingroup     SIM\r
-* @addtogroup  UTS_TEL_GET_SIM_MAILBOX_INFO Unit\r
-*/\r
-\r
-/**\r
-* @ingroup     UTS_TEL_GET_SIM_MAILBOX_INFO Unit\r
-* @addtogroup  UTS_TEL_GET_SIM_MAILBOX_INFO_ Uts_tel_get_sim_mailbox_info\r
-* @{\r
-*/\r
-\r
-/**\r
-* @file uts_tel_get_sim_mailbox_info.h\r
-* @brief This is a suit of unit test cases to test tel_get_sim_mailbox_info() API function\r
-* @author Gautam Nand Sinha (gnand.sinha@samsung.com)\r
-* @version Initial Creation Version 0.1\r
-* @date 2010.06.29\r
-*/
-
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-#include <string.h>
-\r
-#include "tet_tapi_util.h"
-#include "sim_common.h"
-
-#ifndef _UTS_TEL_GET_SIM_MAILBOX_INFO_H_
-#define _UTS_TEL_GET_SIM_MAILBOX_INFO_H_
-       static void utc_tel_get_sim_mailbox_info_01 ();\r
-       static void utc_tel_get_sim_mailbox_info_02 ();
-#endif\r
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_messagewaiting_info.c b/TC/telephony_TC/sim/unit/uts_tel_get_sim_messagewaiting_info.c
deleted file mode 100644 (file)
index c98c00a..0000000
+++ /dev/null
@@ -1,165 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-/**\r
-* @ingroup TELEPHONY_API\r
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT\r
-*/\r
-\r
-/**\r
-* @ingroup  TAPI_API_SIM_SAT\r
-* @addtogroup UTS_SIM_SAT Unit\r
-*/\r
-\r
-/**\r
-* @ingroup  UTS_SIM_SAT\r
-* @addtogroup UTS_TAPI_SIM_GET_MESSAGEWAITING_INFO tel_get_sim_messagewaiting_info\r
-*\r
-* @brief Unit test code for tel_get_sim_messagewaiting_info()\r
-* @par Test function Prototype:\r
-*      int tel_get_sim_messagewaiting_info(TelSimMessageWaiting_s *mw);\r
-* @par Test function description:\r
-*      This function is used to get messagewaiting indication Information\r
-* @par Important Notes:\r
-*      None\r
-* @param [out] mw This parameter returns the messagewaiting indication information\r
-* @code\r
-* typedef struct\r
-* {\r
-*      int b_cphs; // current data is from CPHS SIM or not\r
-*      union{\r
-*              TelSimCphsVoiceMsgWaitFlagInfo_t cphs_mw;       // information from CPHS SIM\r
-*              TelSimMsgWaitingIndicationStatus_t mw;  // information from 3GPP SIM\r
-*      }mw_data_u;\r
-* }TelSimMessageWaiting_s;\r
-* @endcode\r
-* @par Async Response Message:\r
-*      None\r
-* @pre\r
-*      None\r
-* @post\r
-*      None\r
-* @return\r
-* Return Type : (int)\r
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.\r
-* - Otherwise it provides an error code (Refer #TapiResult_t)\r
-* @{\r
-*/\r
-\r
-/**\r
-* @file                uts_tel_get_sim_messagewaiting_info.c\r
-* @brief       Test for the tel_get_sim_messagewaiting_info() API that is used to get messagewaiting indication information\r
-* @author\r
-* @version     Initial Creation V0.1\r
-* @date                2011.08.29\r
-*/\r
-\r
-#include <tet_api.h>\r
-#include <ITapiSim.h>\r
-#include "tet_tapi_util.h"\r
-#include "uts_tel_get_sim_messagewaiting_info.h"\r
-#include "sim_common.h"\r
-\r
-/* Initialize TCM data structures */\r
-static void startup();\r
-static void cleanup();\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tel_get_sim_messagewaiting_info_01, 1},\r
-       {utc_tel_get_sim_messagewaiting_info_02, 2},\r
-       {NULL, 0}\r
-};\r
-\r
-/* Startup & Clean function : It is not test code, only for\r
-   initialize and finalize test module\r
-*/\r
-static void startup()\r
-{\r
-       tet_infoline("uts_tel_get_sim_messagewaiting_info Test Start\n");\r
-       if (tel_init() != TAPI_API_SUCCESS)\r
-       {\r
-               tet_infoline("startup fail. tel_init() failed");\r
-       }\r
-       return;\r
-}\r
-\r
-\r
-static void cleanup()\r
-{\r
-       tet_infoline("uts_tel_get_sim_messagewaiting_info Test Finished\n");\r
-       if (tel_deinit() != TAPI_API_SUCCESS)\r
-       {\r
-               tet_infoline("startup fail. tel_deinit() failed");\r
-       }\r
-       return;\r
-}\r
-\r
-\r
-/*\r
-  Unit Test Case functions\r
-*/\r
-/**\r
-* @brief tel_get_sim_messagewaiting_info() API : Positive condition(Get messagewaiting Information)\r
-* @par ID: UTC_TEL_GET_SIM_MESSAGEWAITING_INFO_01\r
-* @param [out] &mw\r
-* @return TAPI_API_SUCCESS\r
-* @par Expected Result:\r
-*  - message waiting information\r
-*/\r
-void utc_tel_get_sim_messagewaiting_info_01()\r
-{\r
-    TET_STAMP_START("Normal operation");\r
-    TelSimMessageWaiting_s mw;\r
-\r
-    TET_CHECK(TAPI_API_SUCCESS, tel_get_sim_messagewaiting_info(&mw));\r
-\r
-       if( mw.b_cphs == 0 || mw.b_cphs == 1)\r
-       {\r
-               tet_printf("b_cphs[%d]",mw.b_cphs);\r
-               TET_STAMP_PASS();\r
-               return;\r
-       }\r
-       else\r
-       {\r
-               TET_STAMP_FAIL();\r
-               return;\r
-       }\r
-       return;\r
-}\r
-\r
-/**\r
-* @brief tel_get_sim_messagewaiting_info() API : Negative condition(Null Parameter test)\r
-* @par ID: UTC_TEL_GET_SIM_MESSAGEWAITING_INFO_02\r
-* @param [out] &mw = NULL\r
-* @return TAPI_API_INVALID_PTR\r
-*/\r
-void utc_tel_get_sim_messagewaiting_info_02()\r
-{\r
-    TET_STAMP_START("null pointer operation");\r
-    TelSimMessageWaiting_s mw;\r
-\r
-    TET_CHECK(TAPI_API_INVALID_PTR, tel_get_sim_messagewaiting_info(NULL));\r
-    TET_STAMP_PASS();\r
-    return;\r
-}\r
-\r
-/** @} */\r
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_messagewaiting_info.h b/TC/telephony_TC/sim/unit/uts_tel_get_sim_messagewaiting_info.h
deleted file mode 100644 (file)
index a2659d4..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-/**\r
-* @ingroup     TELEPHONY_FRAMEWORK_API\r
-* @addtogroup  SIM\r
-*/\r
-\r
-/**\r
-* @ingroup     SIM\r
-* @addtogroup  UTS_TEL_GET_SIM_MESSAGEWAITING_INFO Unit\r
-*/\r
-\r
-/**\r
-* @ingroup     UTS_TEL_GET_SIM_MESSAGEWAITING_INFO Unit\r
-* @addtogroup  UTS_TEL_GET_SIM_MESSAGEWAITING_INFO Uts_tel_get_sim_messagewaiting_info\r
-* @{\r
-*/\r
-\r
-/**\r
-* @file uts_tel_get_sim_messagewaiting_info.h\r
-* @brief This is a suit of unit test cases to test tel_get_sim_messagewaiting_info() API function\r
-* @author\r
-* @version Initial Creation Version 0.1\r
-* @date 2011.08.29\r
-*/\r
-\r
-\r
-#include <tet_api.h>\r
-#include <ITapiSim.h>\r
-#include <TapiCommon.h>\r
-#include <string.h>\r
-\r
-#include "tet_tapi_util.h"\r
-#include "sim_common.h"\r
-\r
-#ifndef _UTS_TEL_GET_SIM_MESSAGEWAITING_INFO_H_\r
-#define _UTS_TEL_GET_SIM_MESSAGEWAITING_INFO_H_\r
-       static void utc_tel_get_sim_messagewaiting_info_01 ();\r
-       static void utc_tel_get_sim_messagewaiting_info_02 ();\r
-#endif\r
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_msisdn.c b/TC/telephony_TC/sim/unit/uts_tel_get_sim_msisdn.c
deleted file mode 100644 (file)
index ebe59c0..0000000
+++ /dev/null
@@ -1,159 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-/**\r
-* @ingroup TELEPHONY_API\r
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT\r
-*/\r
-\r
-/**\r
-* @ingroup  TAPI_API_SIM_SAT\r
-* @addtogroup UTS_SIM_SAT Unit\r
-*/\r
-\r
-/**\r
-* @ingroup  UTS_SIM_SAT\r
-* @addtogroup UTS_TAPI_SIM_GET_MSISDN tel_get_sim_msisdn\r
-*\r
-* @brief Unit test code for tel_get_sim_msisdn()\r
-* @par Test function Prototype:\r
-*      int tel_get_sim_msisdn(TelSimSubscriberInfo_t *subscriber);\r
-* @par Test function description:\r
-*      This function is used to get SIM MSISDN Information\r
-* @par Important Notes:\r
-*      None\r
-* @param [out] subscriber This parameter returns the MSISDN information\r
-* @code\r
-* typedef struct\r
-* {\r
-*      char num[TAPI_SIM_XDN_DIALING_NUMBER_LEN+1]; // MSISDN number. If not exist, Null string will be returned\r
-*      char name[TAPI_SIM_XDN_ALPHA_ID_MAX_LEN+1]; // MSISDN name. If not exist, Null string will be returned\r
-* }TelSimSubscriberInfo_t;\r
-*\r
-* @endcode\r
-* @par Async Response Message:\r
-*      None\r
-* @pre\r
-*      None\r
-* @post\r
-*      None\r
-* @return\r
-* Return Type : (int)\r
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.\r
-* - Otherwise it provides an error code (Refer #TapiResult_t)\r
-* @{\r
-*/\r
-\r
-/**\r
-* @file                uts_tel_get_sim_msisdn.c\r
-* @brief       Test for the tel_get_sim_msisdn() API that is used to get MSISDN information\r
-* @author\r
-* @version     Initial Creation V0.1\r
-* @date                2011.09.13\r
-*/\r
-\r
-#include <tet_api.h>\r
-#include <ITapiSim.h>\r
-#include "tet_tapi_util.h"\r
-#include "uts_tel_get_sim_msisdn.h"\r
-#include "sim_common.h"\r
-\r
-/* Initialize TCM data structures */\r
-static void startup();\r
-static void cleanup();\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tel_get_sim_msisdn_01, 1},\r
-       {utc_tel_get_sim_msisdn_02, 2},\r
-       {NULL, 0}\r
-};\r
-\r
-/* Startup & Clean function : It is not test code, only for\r
-   initialize and finalize test module\r
-*/\r
-static void startup()\r
-{\r
-       tet_infoline("uts_tel_get_sim_msisdn Test Start\n");\r
-       if (tel_init() != TAPI_API_SUCCESS)\r
-       {\r
-               tet_infoline("startup fail. tel_init() failed");\r
-       }\r
-       return;\r
-}\r
-\r
-\r
-static void cleanup()\r
-{\r
-       tet_infoline("uts_tel_get_sim_msisdn Test Finished\n");\r
-       if (tel_deinit() != TAPI_API_SUCCESS)\r
-       {\r
-               tet_infoline("startup fail. tel_deinit() failed");\r
-       }\r
-       return;\r
-}\r
-\r
-\r
-/*\r
-  Unit Test Case functions\r
-*/\r
-/**\r
-* @brief tel_get_sim_msisdn() API : Positive condition(Get MSISDN Information)\r
-* @par ID: UTC_TEL_GET_SIM_MSISDN_01\r
-* @param [out] &msisdn\r
-* @return TAPI_API_SUCCESS\r
-* @par Expected Result:\r
-*  - msisdn information\r
-*/\r
-void utc_tel_get_sim_msisdn_01()\r
-{\r
-    TET_STAMP_START("Normal operation");\r
-    TelSimSubscriberInfo_t msisdn;\r
-       int api_ret = 0;\r
-       api_ret = tel_get_sim_msisdn(&msisdn);\r
-\r
-       if (api_ret == TAPI_API_SUCCESS) {\r
-               TET_STAMP_PASS();\r
-               return;\r
-       } else {\r
-               TET_STAMP_FAIL();\r
-               return;\r
-       }\r
-       return;\r
-}\r
-\r
-/**\r
-* @brief tel_get_sim_msisdn() API : Negative condition(Null Parameter test)\r
-* @par ID: UTC_TEL_GET_SIM_MSISDN_02\r
-* @param [out] &cphs = NULL\r
-* @return TAPI_API_INVALID_PTR\r
-*/\r
-void utc_tel_get_sim_msisdn_02()\r
-{\r
-    TET_STAMP_START("null pointer operation");\r
-    TelSimSubscriberInfo_t msisdn;\r
-\r
-    TET_CHECK(TAPI_API_INVALID_PTR, tel_get_sim_msisdn(NULL));\r
-    TET_STAMP_PASS();\r
-    return;\r
-}\r
-\r
-/** @} */\r
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_msisdn.h b/TC/telephony_TC/sim/unit/uts_tel_get_sim_msisdn.h
deleted file mode 100644 (file)
index e49ec82..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-/**\r
-* @ingroup     TELEPHONY_FRAMEWORK_API\r
-* @addtogroup  SIM\r
-*/\r
-\r
-/**\r
-* @ingroup     SIM\r
-* @addtogroup  UTS_TEL_GET_SIM_MSISDN Unit\r
-*/\r
-\r
-/**\r
-* @ingroup     UTS_TEL_GET_SIM_MSISDN Unit\r
-* @addtogroup  UTS_TEL_GET_SIM_MSISDN Uts_tel_get_sim_msisdn\r
-* @{\r
-*/\r
-\r
-/**\r
-* @file uts_tel_get_sim_msisdn.h\r
-* @brief This is a suit of unit test cases to test tel_get_sim_msisdn() API function\r
-* @author\r
-* @version Initial Creation Version 0.1\r
-* @date 2011.09.13\r
-*/\r
-\r
-\r
-#include <tet_api.h>\r
-#include <ITapiSim.h>\r
-#include <TapiCommon.h>\r
-#include <string.h>\r
-\r
-#include "tet_tapi_util.h"\r
-#include "sim_common.h"\r
-\r
-#ifndef _UTS_TEL_GET_SIM_MSISDN_H_\r
-#define _UTS_TEL_GET_SIM_MSISDN_H_\r
-       static void utc_tel_get_sim_msisdn_01 ();\r
-       static void utc_tel_get_sim_msisdn_02 ();\r
-#endif\r
-\r
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_pb_3g_meta_info.c b/TC/telephony_TC/sim/unit/uts_tel_get_sim_pb_3g_meta_info.c
deleted file mode 100644 (file)
index 8a111b4..0000000
+++ /dev/null
@@ -1,262 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_GET_3G_CAPABILLITY_INFO tel_get_sim_pb_3g_meta_info
-*
-* @brief Unit test code for tel_get_sim_pb_3g_meta_info()
-* @par Test function Prototype:
-*      TapiResult_t tel_get_sim_pb_3g_meta_info (int *pRequestId);
-* @par Test function description:
-*      This API is used to Get the 3G phone book capability information
-* @par Important Notes:
-*      The index ranges from 1 through to a maximum of 254 for a Linear fixed file and 255 for a cyclic file.
-*      This API is applicable only for 3G phonebook.
-* @param [out] pRequestId  Unique identifier for a particular request.
-*   - pRequestId value can be any value from 0 to 255 if the API is returned successfully
-*   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbCapabilityInfo_t. \n
-*      - TAPI_EVENT_SIM_PB_CAPABILITY_INFO_CNF
-* @pre
-*      None
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tel_get_sim_pb_3g_meta_info.c
-* @brief       Test for the tel_get_sim_pb_3g_meta_info() API that is used to get phonebook capability info
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "uts_tel_get_sim_pb_3g_meta_info.h"
-#include "sim_common.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_sim_pb_3g_meta_info_01, 1},
-       {utc_tel_get_sim_pb_3g_meta_info_02, 2},
-       {NULL, 0}
-};
-
-/*
-  User Defined Handler
-*/
-// Global variable for user data
-static BOOL gAsyncResult; //user defined data : Async callback is called or not
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-
-/*
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////
-*/
-// Prototype : User must add function body
-gboolean g_timeout_callback (void *data);
-
-// GMainLoop global handler
-GMainLoop *sim_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(sim_loop);
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       sim_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);
-       g_main_loop_run (sim_loop);
-
-       return 0;
-}
-
-gboolean g_timeout_callback (void *data)
-{
-       gAsyncResult = FALSE;
-       tet_printf("[TIME OUT] g_timeout called .Close g_main_roop()");
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////
-
-
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)
-{
-    tet_printf("\n***************[SIM APP]Callback data **********************\n");
-    tet_printf("[SIM]Reques Id[%d]\n", sim_event->RequestId);
-    tet_printf("[SIM]event status [%d]\n", sim_event->Status);
-
-    gAsyncResult = FALSE;
-    BOOL bReceived = FALSE;
-
-    switch(sim_event->EventType)
-      {
-               case TAPI_EVENT_SIM_PB_CAPABILITY_INFO_CNF:
-       {
-            tet_printf("\n[GOT THE EVENT]*******TAPI_EVENT_SIM_PB_CAPABILITY_INFO_CNF,******\n");
-            tet_printf("[SIM]SIM PB Capability Info event status = [%x]\n", sim_event->Status);
-
-                       //TelSimPbCapabilityInfo_t *sim_capability_info = (TelSimPbCapabilityInfo_t*)sim_event->pData;
-                       //int i;
-                       // for(i = 0;i<sim_capability_info->FileTypeCount;i++)
-                       //{
-             //   tet_printf(" [SIM APP]Filed tag type[%d]", sim_capability_info->FileTypeInfo[i].FileType3G);
-               // tet_printf(" [SIM APP]max index [%d]\n", sim_capability_info->FileTypeInfo[i].PbIndexMax);
-               // tet_printf(" [SIM APP]max text [%d]\n", sim_capability_info->FileTypeInfo[i].PbTextMax);
-               // tet_printf(" [SIM APP]used count [%d]\n",  sim_capability_info->FileTypeInfo[i].TotalRecordCount);
-                       //}
-            gAsyncResult = TRUE;
-            bReceived = TRUE;
-        }
-        break;
-
-        default:
-        {
-            bReceived = TRUE;
-            gAsyncResult = FALSE;
-            tet_printf("Info : TAPI_EVENT_SIM_PB_CAPABILITY_INFO_CNF = %d",TAPI_EVENT_SIM_PB_CAPABILITY_INFO_CNF);
-            tet_printf("[SIM]***************** Undhandled event type [%d] *****************\n",sim_event->EventType);
-            tet_printf("[SIM]Undhandled event state [%d]\n",sim_event->Status);
-            break;
-       }
-    }//end switch
-
-    if (bReceived == TRUE)
-      G_MAIN_LOOP_CLOSE();
-
-    return 0;
-}
-
-static void startup()
-{
-    tet_infoline("uts_tel_get_sim_pb_3g_meta_info Test Start\n");
-       if ( tel_init() == TAPI_API_SUCCESS)
-       {
-               if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_PB_CAPABILITY_INFO_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL) )
-                       gStartupSuccess = TRUE;
-               else
-                       tet_infoline("startup fail. tel_register_event() failed");
-       } else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-
-        tel_register_app_name("org.samsung.test");
-    return;
-}
-
-
-static void cleanup()
-{
-    tet_infoline("uts_tel_get_sim_pb_3g_meta_info Test Finished\n");
-
-    if (gStartupSuccess == TRUE)
-       {
-               tel_deregister_event(subscription_id);
-       }
-       tel_deinit();
-
-    return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
-* @brief tel_get_sim_pb_3g_meta_info() API : Negative condition(Parameter is Null)
-* @par ID: UTC_TEL_GET_SIM_PB_3G_META_INFO_01
-* @param [out] &req_id = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_get_sim_pb_3g_meta_info_01()
-{
-    TET_STAMP_START("Null parameter test");
-
-    /* calling PB capability info api */
-    TET_CHECK(TAPI_API_INVALID_PTR, tel_get_sim_pb_3g_meta_info(NULL));
-    TET_STAMP_PASS();
-    return;
-}
-
-/**
-* @brief tel_get_sim_pb_3g_meta_info() API : Positive condition
-* @par ID: UTC_TEL_GET_SIM_PB_3G_META_INFO_02
-* @param [out] &req_id
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event received is below and the event data is #TelSimPbCapabilityInfo_t. \n
-*      - TAPI_EVENT_SIM_PB_CAPABILITY_INFO_CNF
-*/
-void utc_tel_get_sim_pb_3g_meta_info_02()
-{
-    TET_STAMP_START("utc_tel_get_sim_pb_3g_meta_info_02");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-    int req_id=0;
-       
-    gAsyncResult = FALSE;
-
-       TET_CHECK(TAPI_API_SUCCESS,tel_get_sim_pb_3g_meta_info(&req_id));
-
-    G_MAIN_LOOP_RUN(2);
-
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-    TET_STAMP_PASS();
-       return;
-}
-
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_pb_3g_meta_info.h b/TC/telephony_TC/sim/unit/uts_tel_get_sim_pb_3g_meta_info.h
deleted file mode 100644 (file)
index 3b55a8a..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _uts_tel_get_sim_pb_3g_meta_info_H_
-#define _uts_tel_get_sim_pb_3g_meta_info_H_
-
-       static void utc_tel_get_sim_pb_3g_meta_info_01 ();
-       static void utc_tel_get_sim_pb_3g_meta_info_02 ();
-
-#endif
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_pb_count.c b/TC/telephony_TC/sim/unit/uts_tel_get_sim_pb_count.c
deleted file mode 100644 (file)
index 085be7e..0000000
+++ /dev/null
@@ -1,473 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_PB_GET_STORAGE_COUNT tel_get_sim_pb_count
-*
-* @brief Unit test code for tel_get_sim_pb_count()
-* @par Test function Prototype:
-*      TapiResult_t tel_get_sim_pb_count(TelSimPbFileType_t StorageFileType, int* pRequestId);
-* @par Test function description:
-*      This API is used to get number of used records and total records in SIM phone book files.
-*      This API is applicable only to GSM phonebook (ADN and EXT1), FDN, SDN, LND and MSISDN.
-* @par Important Notes:
-*      None
-* @param [in] StorageFileType    Different storage types to be selected in SIM.
-* @param [out] pRequestId   Unique identifier for a particular request.
-*   - request_id value can be any value from 0 to 255 if the API is returned successfully
-*   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbStorageInfo_t. \n
-*      - TAPI_EVENT_SIM_PB_STORAGE_COUNT_CNF
-* @pre
-*      - Phonebook supported SIM used for test
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tel_get_sim_pb_count.c
-* @brief       Test for the tel_get_sim_pb_count() API that is used to get phonebook Storage Count
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "uts_tel_get_sim_pb_count.h"
-#include "sim_common.h"
-
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_sim_pb_count_01, 1},
-       {utc_tel_get_sim_pb_count_02, 2},
-       {utc_tel_get_sim_pb_count_03, 3},
-       {utc_tel_get_sim_pb_count_04, 4},
-       {utc_tel_get_sim_pb_count_05, 5},
-       {utc_tel_get_sim_pb_count_06, 6},
-       {utc_tel_get_sim_pb_count_07, 7},
-       {utc_tel_get_sim_pb_count_08, 8},
-       {utc_tel_get_sim_pb_count_09, 9},
-       {utc_tel_get_sim_pb_count_10, 10},
-       {NULL, 0}
-};
-
-/*
-  User Defined Handler
-*/
-// Global variable for user data
-static BOOL gAsyncResult; //user defined data : Async callback is called or not
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-
-/*
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////
-*/
-// Prototype : User must add function body
-gboolean g_timeout_callback (void *data);
-
-// GMainLoop global handler
-GMainLoop *sim_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(sim_loop);
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       sim_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);
-       g_main_loop_run (sim_loop);
-
-       return 0;
-}
-
-gboolean g_timeout_callback (void *data)
-{
-       gAsyncResult = FALSE;
-       tet_printf("[TIME OUT] g_timeout called .Close g_main_roop()");
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////
-
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)
-{
-    tet_printf("\n***************[SIM APP]Callback data **********************\n");
-    tet_printf("[SIM]Reques Id[%d]\n", sim_event->RequestId);
-    tet_printf("[SIM]event status [%d]\n", sim_event->Status);
-
-    gAsyncResult = FALSE;
-    BOOL bReceived = FALSE;
-
-    switch(sim_event->EventType)
-      {
-       case TAPI_EVENT_SIM_PB_STORAGE_COUNT_CNF:
-        {
-                       tet_printf("\n[SIM]*****************TAPI_EVENT_SIM_PB_STORAGE_COUNT_CNF***************************\n");
-
-               //      TelSimPbStorageInfo_t *storageInfo  = (TelSimPbStorageInfo_t*)sim_event->pData ;
-                       tet_printf("SIM PB storage count event status = [%x]\n", sim_event->Status);
-               //      tet_printf("[SIM APP]PB_STORAGE_TYPE %x\n", storageInfo->StorageFileType);
-               //      tet_printf("[SIM APP]TOTAL_COUNT = %d\n", storageInfo->TotalRecordCount);
-               //      tet_printf("[SIM APP]USED_COUNT =  %d\n",  storageInfo->UsedRecordCount);
-                       gAsyncResult = TRUE;
-                       bReceived = TRUE;
-        }
-        break;
-
-        default:
-        {
-            bReceived = TRUE;
-            gAsyncResult = FALSE;
-            tet_printf("[SIM]***************** Undhandled event type [%d] *****************\n",sim_event->EventType);
-            tet_printf("[SIM]Undhandled event state [%d]\n",sim_event->Status);
-            break;
-       }
-    }//end switch
-
-    if (bReceived == TRUE)
-      G_MAIN_LOOP_CLOSE();
-
-    return 0;
-}
-
-
-static void startup()
-{
-    tet_infoline("uts_tel_get_sim_pb_count Test Start");
-       if ( tel_init() == TAPI_API_SUCCESS)
-       {
-               if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_PB_STORAGE_COUNT_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL) )
-                       gStartupSuccess = TRUE;
-               else
-                       tet_infoline("startup fail. tel_register_event() failed");
-       } else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-       tel_register_app_name("org.samsung.test");
-    return;
-}
-
-static void cleanup()
-{
-    tet_infoline("uts_tel_get_sim_pb_count Finished");
-
-    if (gStartupSuccess == TRUE)
-       {
-               tel_deregister_event(subscription_id);
-       }
-       tel_deinit();
-
-    return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
-* @brief tel_get_sim_pb_count() API : Negative condition(Low boundary test)
-* @par ID: UTC_TEL_GET_SIM_PB_COUNT_01
-* @param [in] StorageFileType = (TelSimPbFileType_t)TAPI_SIM_PB_FDN-1;
-* @param [out] &pRequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-void utc_tel_get_sim_pb_count_01()
-{
-       TET_STAMP_START("TAPI_API_INVALID_INPUT test 1");
-       TelSimPbFileType_t  StorageFileType=(TelSimPbFileType_t)TAPI_SIM_PB_FDN-1;
-       int pRequestId=0;
-
-       TET_CHECK(TAPI_API_INVALID_INPUT, tel_get_sim_pb_count(StorageFileType,&pRequestId));
-       TET_STAMP_PASS();
-       return;
-}
-
-
-/**
-* @brief tel_get_sim_pb_count() API : Negative condition(Upper boundary test)
-* @par ID: UTC_TEL_GET_SIM_PB_COUNT_02
-* @param [in] StorageFileType = (TelSimPbFileType_t)TAPI_SIM_PB_UNKNOWNN+1;
-* @param [out] &pRequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-void utc_tel_get_sim_pb_count_02()
-{
-       TET_STAMP_START("TAPI_API_INVALID_INPUT test 2");
-       TelSimPbFileType_t  StorageFileType=(TelSimPbFileType_t)TAPI_SIM_PB_UNKNOWNN+1;
-       int pRequestId=0;
-
-       TET_CHECK(TAPI_API_INVALID_INPUT, tel_get_sim_pb_count(StorageFileType,&pRequestId));
-       TET_STAMP_PASS();
-       return;
-}
-
-/**
-* @brief tel_get_sim_pb_count() API : Negative condition(NULL Parameter test)
-* @par ID: UTC_TEL_GET_SIM_PB_COUNT_03
-* @param [in] StorageFileType = TAPI_SIM_PB_GAS
-* @param [out] &pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_get_sim_pb_count_03()
-{
-       TET_STAMP_START("TAPI_API_INVALID_PTR test");
-       TelSimPbFileType_t  StorageFileType=TAPI_SIM_PB_GAS;
-
-       TET_CHECK(TAPI_API_INVALID_PTR,tel_get_sim_pb_count(StorageFileType,NULL));
-       TET_STAMP_PASS();
-       return;
-}
-
-/**
-* @brief tel_get_sim_pb_count() API : Positive condition(Get count when type is FDN)
-* @par ID: UTC_TEL_GET_SIM_PB_COUNT_04
-* @param [in] StorageFileType = TAPI_SIM_PB_FDN
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbStorageInfo_t. \n
-*      - TAPI_EVENT_SIM_PB_STORAGE_COUNT_CNF
-*/
-void utc_tel_get_sim_pb_count_04()
-{
-       TET_STAMP_START("StorageFileType = TAPI_SIM_PB_FDN");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       TelSimPbFileType_t  StorageFileType=TAPI_SIM_PB_FDN;
-       int pRequestId=0;
-
-       gAsyncResult = FALSE;
-
-       TET_CHECK(TAPI_API_SUCCESS,tel_get_sim_pb_count(StorageFileType,&pRequestId));
-
-       G_MAIN_LOOP_RUN(10);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-
-/**
-* @brief tel_get_sim_pb_count() API : Positive condition(Get count when type is LDN)
-* @par ID: UTC_TEL_GET_SIM_PB_COUNT_05
-* @param [in] StorageFileType = TAPI_SIM_PB_LDN
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbStorageInfo_t. \n
-*      - TAPI_EVENT_SIM_PB_STORAGE_COUNT_CNF
-*/
-void utc_tel_get_sim_pb_count_05()
-{
-       TET_STAMP_START("StorageFileType = TAPI_SIM_PB_LDN");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       TelSimPbFileType_t  StorageFileType=TAPI_SIM_PB_LDN;
-       int pRequestId=0;
-
-       gAsyncResult = FALSE;
-
-       TET_CHECK(TAPI_API_SUCCESS,tel_get_sim_pb_count(StorageFileType,&pRequestId));
-
-       G_MAIN_LOOP_RUN(10);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-
-/**
-* @brief tel_get_sim_pb_count() API : Positive condition(Get count when type is MSISDN)
-* @par ID: UTC_TEL_GET_SIM_PB_COUNT_06
-* @param [in] StorageFileType = TAPI_SIM_PB_MSISDN
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbStorageInfo_t. \n
-*      - TAPI_EVENT_SIM_PB_STORAGE_COUNT_CNF
-*/
-void utc_tel_get_sim_pb_count_06()
-{
-       TET_STAMP_START("StorageFileType = TAPI_SIM_PB_MSISDN");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       TelSimPbFileType_t  StorageFileType=TAPI_SIM_PB_MSISDN;
-       int pRequestId=0;
-
-       gAsyncResult = FALSE;
-
-       TET_CHECK(TAPI_API_SUCCESS,tel_get_sim_pb_count(StorageFileType,&pRequestId));
-
-       G_MAIN_LOOP_RUN(10);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-
-/**
-* @brief tel_get_sim_pb_count() API : Positive condition(Get count when type is ADN)
-* @par ID: UTC_TEL_GET_SIM_PB_COUNT_07
-* @param [in] StorageFileType = TAPI_SIM_PB_ADN
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbStorageInfo_t. \n
-*      - TAPI_EVENT_SIM_PB_STORAGE_COUNT_CNF
-*/
-void utc_tel_get_sim_pb_count_07()
-{
-       TET_STAMP_START("StorageFileType = TAPI_SIM_PB_ADN");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       TelSimPbFileType_t  StorageFileType=TAPI_SIM_PB_ADN;
-       int pRequestId=0;
-
-       gAsyncResult = FALSE;
-
-       TET_CHECK(TAPI_API_SUCCESS,tel_get_sim_pb_count(StorageFileType,&pRequestId));
-
-       G_MAIN_LOOP_RUN(10);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-/**
-* @brief tel_get_sim_pb_count() API : Positive condition(Get count when type is SDN)
-* @par ID: UTC_TEL_GET_SIM_PB_COUNT_08
-* @param [in] StorageFileType = TAPI_SIM_PB_SDN
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbStorageInfo_t. \n
-*      - TAPI_EVENT_SIM_PB_STORAGE_COUNT_CNF
-*/
-void utc_tel_get_sim_pb_count_08()
-{
-       TET_STAMP_START("StorageFileType = TAPI_SIM_PB_SDN");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       TelSimPbFileType_t  StorageFileType=TAPI_SIM_PB_SDN;
-       int pRequestId=0;
-
-       gAsyncResult = FALSE;
-
-       TET_CHECK(TAPI_API_SUCCESS,tel_get_sim_pb_count(StorageFileType,&pRequestId));
-
-       G_MAIN_LOOP_RUN(10);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-}
-
-
-/**
-* @brief tel_get_sim_pb_count() API : Positive condition(Get count when type is EN)
-* @par ID: UTC_TEL_GET_SIM_PB_COUNT_09
-* @param [in] StorageFileType = TAPI_SIM_PB_EN
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbStorageInfo_t. \n
-*      - TAPI_EVENT_SIM_PB_STORAGE_COUNT_CNF
-*/
-void utc_tel_get_sim_pb_count_09()
-{
-       TET_STAMP_START("StorageFileType = TAPI_SIM_PB_EN");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       TelSimPbFileType_t  StorageFileType=TAPI_SIM_PB_EN;
-       int pRequestId=0;
-
-       gAsyncResult = FALSE;
-
-       TET_CHECK(TAPI_API_SUCCESS,tel_get_sim_pb_count(StorageFileType,&pRequestId));
-
-       G_MAIN_LOOP_RUN(10);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-/**
-* @brief tel_get_sim_pb_count() API : Positive condition(Get count when type is 3GSIM)
-* @par ID: UTC_TEL_GET_SIM_PB_COUNT_10
-* @param [in] StorageFileType = TAPI_SIM_PB_3GSIM
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbStorageInfo_t. \n
-*      - TAPI_EVENT_SIM_PB_STORAGE_COUNT_CNF
-*/
-void utc_tel_get_sim_pb_count_10()
-{
-       TET_STAMP_START("StorageFileType = TAPI_SIM_PB_3GSIM");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       TelSimPbFileType_t  StorageFileType=TAPI_SIM_PB_3GSIM;
-       int pRequestId=0;
-       gAsyncResult = FALSE;
-
-       TET_CHECK(TAPI_API_SUCCESS,tel_get_sim_pb_count(StorageFileType,&pRequestId));
-
-       G_MAIN_LOOP_RUN(10);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_pb_count.h b/TC/telephony_TC/sim/unit/uts_tel_get_sim_pb_count.h
deleted file mode 100644 (file)
index b9996b4..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#ifndef _uts_tel_get_sim_pb_count_H_
-#define _uts_tel_get_sim_pb_count_H_
-
-       static void utc_tel_get_sim_pb_count_01 ();
-       static void utc_tel_get_sim_pb_count_02 ();
-       static void utc_tel_get_sim_pb_count_03 ();
-       static void utc_tel_get_sim_pb_count_04 ();
-       static void utc_tel_get_sim_pb_count_05 ();
-       static void utc_tel_get_sim_pb_count_06 ();
-       static void utc_tel_get_sim_pb_count_07 ();
-       static void utc_tel_get_sim_pb_count_08 ();
-       static void utc_tel_get_sim_pb_count_09 ();
-       static void utc_tel_get_sim_pb_count_10 ();
-#endif
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_pb_init_info.c b/TC/telephony_TC/sim/unit/uts_tel_get_sim_pb_init_info.c
deleted file mode 100644 (file)
index e25ac4d..0000000
+++ /dev/null
@@ -1,168 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-/**\r
-* @ingroup     TELEPHONY_FRAMEWORK_API\r
-* @addtogroup  SIM\r
-*/\r
-\r
-/**\r
-* @ingroup     SIM\r
-* @addtogroup  UTS_TEL_GET_SIM_PB_INIT_INFO Unit\r
-*/\r
-\r
-/**\r
-* @ingroup     UTS_TEL_GET_SIM_PB_INIT_INFO Unit\r
-* @addtogroup  UTS_TEL_GET_SIM_PB_INIT_INFO_ Uts_Tel_Get_Sim_Pb_Init_Info\r
-* @{\r
-*/\r
-\r
-/**\r
-* @file uts_tel_get_sim_pb_init_info.c\r
-* @brief This is a suit of unit test cases to test tel_get_sim_pb_init_info() API function\r
-* @author Gautam Nand Sinha (gnand.sinha@samsung.com)\r
-* @version Initial Creation Version 0.1\r
-* @date 2010.06.29\r
-*/
-#include <tet_api.h>\r
-#include <ITapiSim.h>\r
-#include <TapiCommon.h>\r
-#include <string.h>\r
-       \r
-#include "tet_tapi_util.h"\r
-#include "sim_common.h"\r
-#include "uts_tel_get_sim_pb_init_info.h"\r
-\r
-\r
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_sim_pb_init_info_01, 1},
-       {utc_tel_get_sim_pb_init_info_02, 2},
-       {utc_tel_get_sim_pb_init_info_03, 3},
-       {utc_tel_get_sim_pb_init_info_04, 4},
-       {NULL, 0}
-};
-
-\r
-static void startup()
-{
-    tet_infoline("utc_tel_get_sim_pb_init_info Test Start\n");
-
-       if ( tel_init() != TAPI_API_SUCCESS)\r
-       {
-               tet_infoline("startup fail. tel_init() failed");\r
-       }
-    return;\r
-}
-
-
-static void cleanup()
-{
-    tet_infoline("utc_tel_get_sim_pb_init_info Test Finished\n");
-\r
-       if ( tel_deinit() != TAPI_API_SUCCESS)\r
-       {\r
-               tet_infoline("cleanup fail. tel_deinit() failed");\r
-       }\r
-    return;\r
-}
-\r
-
-void utc_tel_get_sim_pb_init_info_01()
-{
-    int err,init_completed = 0;
-    TelSimPbList_t pb_list = {0,}; 
-    int first_index = 0;
-    err = tel_get_sim_pb_init_info(&init_completed, &pb_list,&first_index );
-       if(err == TAPI_API_SUCCESS)\r
-       {\r
-               tet_printf("utc_tel_get_sim_pb_init_info_01 has passed and the data in err-->%d", err);\r
-               tet_result(TET_PASS);\r
-       }\r
-       else\r
-       {\r
-               tet_printf("utc_tel_get_sim_pb_init_info_01 has failed and the data in err-->%d", err);\r
-               tet_result(TET_FAIL);\r
-       }\r
-       return;       \r
-}
-
-
-void utc_tel_get_sim_pb_init_info_02()
-{
-    int err;
-    TelSimPbList_t pb_list = {0,}; 
-    int first_index = 0;
-    err = tel_get_sim_pb_init_info(NULL, &pb_list,&first_index );
-    if(err != TAPI_API_SUCCESS)
-       {\r
-               tet_printf("utc_tel_get_sim_pb_init_info_02 has passed and the data in err-->%d", err);\r
-               tet_result(TET_PASS);\r
-       }\r
-       else\r
-       {\r
-               tet_printf("utc_tel_get_sim_pb_init_info_02 has failed and the data in err-->%d", err);\r
-               tet_result(TET_FAIL);\r
-       }\r
-       return;\r
-}\r
-
-void utc_tel_get_sim_pb_init_info_03()
-{
-    int err;
-    
-    int first_index = 0;
-    err = tel_get_sim_pb_init_info(NULL, NULL,&first_index );
-    if(err != TAPI_API_SUCCESS)
-    {
-               tet_printf("utc_tel_get_sim_pb_init_info_03 has passed and the data in err-->%d", err);\r
-               tet_result(TET_PASS);\r
-       }\r
-       else\r
-       {\r
-               tet_printf("utc_tel_get_sim_pb_init_info_03 has failed and the data in err-->%d", err);\r
-               tet_result(TET_FAIL);\r
-       }\r
-       return;      \r
-}
-
-void utc_tel_get_sim_pb_init_info_04()
-{
-    int err,init_completed = 0;
-   \r
-    err = tel_get_sim_pb_init_info(&init_completed, NULL,NULL );
-       if(err != TAPI_API_SUCCESS)\r
-       {\r
-               tet_printf("utc_tel_get_sim_pb_init_info_04 has passed and the data in err-->%d", err);\r
-               tet_result(TET_PASS);\r
-       }\r
-       else\r
-       {\r
-               tet_printf("utc_tel_get_sim_pb_init_info_04 has failed and the data in err-->%d", err);\r
-               tet_result(TET_FAIL);\r
-       }\r
-       return;   \r
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_pb_init_info.h b/TC/telephony_TC/sim/unit/uts_tel_get_sim_pb_init_info.h
deleted file mode 100644 (file)
index cc409d8..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-/**\r
-* @ingroup     TELEPHONY_FRAMEWORK_API\r
-* @addtogroup  SIM\r
-*/\r
-\r
-/**\r
-* @ingroup     SIM\r
-* @addtogroup  UTS_TEL_GET_SIM_PB_INIT_INFO Unit\r
-*/\r
-\r
-/**\r
-* @ingroup     UTS_TEL_GET_SIM_PB_INIT_INFO Unit\r
-* @addtogroup  UTS_TEL_GET_SIM_PB_INIT_INFO_ Uts_Tel_Get_Sim_Pb_Init_Info\r
-* @{\r
-*/\r
-\r
-/**\r
-* @file uts_tel_get_sim_pb_init_info.h\r
-* @brief This is a suit of unit test cases to test tel_get_sim_pb_init_info() API function\r
-* @author Gautam Nand Sinha (gnand.sinha@samsung.com)\r
-* @version Initial Creation Version 0.1\r
-* @date 2010.06.29\r
-*/
-\r
-#ifndef _UTS_TEL_GET_SIM_PB_INIT_INFO_H_\r
-#define _UTS_TEL_GET_SIM_PB_INIT_INFO_H_
-
-       static void utc_tel_get_sim_pb_init_info_01 ();
-       static void utc_tel_get_sim_pb_init_info_02 ();
-       static void utc_tel_get_sim_pb_init_info_03 ();
-       static void utc_tel_get_sim_pb_init_info_04 ();
-
-
-#endif
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_pb_meta_info.c b/TC/telephony_TC/sim/unit/uts_tel_get_sim_pb_meta_info.c
deleted file mode 100644 (file)
index 31d4bb9..0000000
+++ /dev/null
@@ -1,556 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_PB_GET_ENTRY_INFO tel_get_sim_pb_meta_info
-*
-* @brief Unit test code for tel_get_sim_pb_meta_info()
-* @par Test function Prototype:
-*      TapiResult_t tel_get_sim_pb_meta_info(TelSimPbFileType_t  StorageFileType, int* pRequestId);
-* @par Test function description:
-*      This API is used to get max text length and max number length supported by SIM phone book elementary file.
-* @par Important Notes:
-*      The max number length includes the storage space provided by the corresponding EXT file for a given Dialling Number file.
-* @param [in] StorageFileType    Different storage types to be selected in SIM.
-* @param [out] pRequestId   Unique identifier for a particular request.
-*   - request_id value can be any value from 0 to 255 if the API is returned successfully
-*   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbEntryInfo_t. \n
-*      - TAPI_EVENT_SIM_PB_ENTRY_INFO_CNF
-* @pre
-*      - Phonebook supported SIM used for test
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tel_get_sim_pb_meta_info.c
-* @brief       Test for the tel_get_sim_pb_meta_info() API that is used to get phonebook entry info
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "uts_tel_get_sim_pb_meta_info.h"
-#include "sim_common.h"
-
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_sim_pb_meta_info_01, 1},
-       {utc_tel_get_sim_pb_meta_info_02, 2},
-       {utc_tel_get_sim_pb_meta_info_03, 3},
-       {utc_tel_get_sim_pb_meta_info_04, 4},
-       {utc_tel_get_sim_pb_meta_info_05, 5},
-       {utc_tel_get_sim_pb_meta_info_06, 6},
-       {utc_tel_get_sim_pb_meta_info_07, 7},
-       {utc_tel_get_sim_pb_meta_info_08, 8},
-       {utc_tel_get_sim_pb_meta_info_09, 9},
-       {utc_tel_get_sim_pb_meta_info_10, 10},
-       {utc_tel_get_sim_pb_meta_info_11, 11},
-       {utc_tel_get_sim_pb_meta_info_12, 12},
-       {utc_tel_get_sim_pb_meta_info_13, 13},
-       {NULL, 0}
-};
-
-/*
-  User Defined Handler
-*/
-// Global variable for user data
-static BOOL gAsyncResult; //user defined data : Async callback is called or not
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-
-/*
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////
-*/
-// Prototype : User must add function body
-gboolean g_timeout_callback (void *data);
-
-// GMainLoop global handler
-GMainLoop *sim_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(sim_loop);
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       sim_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);
-       g_main_loop_run (sim_loop);
-
-       return 0;
-}
-
-gboolean g_timeout_callback (void *data)
-{
-       gAsyncResult = FALSE;
-       tet_printf("[TIME OUT] g_timeout called .Close g_main_roop()");
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////
-
-
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)
-{
-    tet_printf("\n***************[SIM APP]Callback data **********************\n");
-    tet_printf("[SIM]Reques Id[%d]\n", sim_event->RequestId);
-    tet_printf("[SIM]event status [%d]\n", sim_event->Status);
-
-    gAsyncResult = FALSE;
-    BOOL bReceived = FALSE;
-
-    switch(sim_event->EventType)
-      {
-       case TAPI_EVENT_SIM_PB_ENTRY_INFO_CNF:
-       {
-                tet_printf("\n[SIM]*****************TAPI_EVENT_SIM_PB_ENTRY_INFO_CNF***************************\n");
-
-//                TelSimPbEntryInfo_t *entryInfo = (TelSimPbEntryInfo_t*)sim_event->pData ;
-                tet_printf("SIM PB entry info event status = [%x]\n", sim_event->Status);
-        //        tet_printf("[SIM APP]STORAGE TYPE [%d]\n", entryInfo->StorageFileType);
-           //     tet_printf("[SIM APP]PB_INDEX_MIN %d\n", entryInfo->PbIndexMin);
-             //   tet_printf("[SIM APP]PB_INDEX_MAX = %d\n", entryInfo->PbIndexMax);
-               // tet_printf("[SIM APP]PB_NUM_LEN_MAX =  %d\n", entryInfo->PbNumLenMax);
-              //  tet_printf("[SIM APP]PB_TEXT_LEN_MAX =  %d\n", entryInfo->PbTextLenMax);
-               // tet_printf("********************************************\n");
-                gAsyncResult = TRUE;
-                bReceived = TRUE;
-        }
-        break;
-
-        default:
-        {
-            bReceived = TRUE;
-            gAsyncResult = FALSE;
-            tet_printf("Info TAPI_EVENT_SIM_PB_ENTRY_INFO_CNF = %d",TAPI_EVENT_SIM_PB_ENTRY_INFO_CNF);
-            tet_printf("[SIM]***************** Undhandled event type [%d] *****************\n",sim_event->EventType);
-            tet_printf("[SIM]Undhandled event state [%d]\n",sim_event->Status);
-            break;
-       }
-    }//end switch
-
-    if (bReceived == TRUE)
-      G_MAIN_LOOP_CLOSE();
-
-    return 0;
-}
-
-
-static void startup()
-{
-    tet_infoline("utc_tel_get_sim_pb_meta_info Test Start\n");
-       if ( tel_init() == TAPI_API_SUCCESS)
-       {
-               if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_PB_ENTRY_INFO_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL) )
-                       gStartupSuccess = TRUE;
-               else
-                       tet_infoline("startup fail. tel_register_event() failed");
-       } else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-       tel_register_app_name("org.samsung.test");
-    return;
-}
-
-
-static void cleanup()
-{
-    tet_infoline("utc_tel_get_sim_pb_meta_info Test Finished\n");
-    if (gStartupSuccess == TRUE)
-       {
-               tel_deregister_event(subscription_id);
-       }
-       tel_deinit();
-
-    return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
-* @brief tel_get_sim_pb_meta_info() API : Negative condition(Low boundary test)
-* @par ID: UTC_TEL_GET_SIM_PB_META_INFO_01
-* @param [in] StorageFileType = (TelSimPbFileType_t)TAPI_SIM_PB_FDN-1;
-* @param [out] &pRequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-void utc_tel_get_sim_pb_meta_info_01()
-{
-       TET_STAMP_START("TAPI_API_INVALID_INPUT test 1");
-       TelSimPbFileType_t  StorageFileType=(TelSimPbFileType_t)TAPI_SIM_PB_FDN-1;
-       int pRequestId=0;
-
-       TET_CHECK(TAPI_API_INVALID_INPUT, tel_get_sim_pb_meta_info(StorageFileType,&pRequestId));
-       TET_STAMP_PASS();
-}
-
-/**
-* @brief tel_get_sim_pb_meta_info() API : Negative condition(Upper boundary test)
-* @par ID: UTC_TEL_GET_SIM_PB_META_INFO_02
-* @param [in] StorageFileType = (TelSimPbFileType_t)TAPI_SIM_PB_UNKNOWNN+1;
-* @param [out] &pRequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-void utc_tel_get_sim_pb_meta_info_02()
-{
-       TET_STAMP_START("TAPI_API_INVALID_INPUT test 2");
-       TelSimPbFileType_t  StorageFileType=(TelSimPbFileType_t)TAPI_SIM_PB_UNKNOWNN+1;
-       int pRequestId=0;
-
-       TET_CHECK(TAPI_API_INVALID_INPUT, tel_get_sim_pb_meta_info(StorageFileType,&pRequestId));
-       TET_STAMP_PASS();
-}
-
-/**
-* @brief tel_get_sim_pb_meta_info() API : Negative condition(NULL Parameter test)
-* @par ID: UTC_TEL_GET_SIM_PB_META_INFO_03
-* @param [in] StorageFileType = TAPI_SIM_PB_GAS
-* @param [out] &pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_get_sim_pb_meta_info_03()
-{
-       TET_STAMP_START("TAPI_API_INVALID_PTR test");
-       TelSimPbFileType_t  StorageFileType=TAPI_SIM_PB_GAS;
-
-       TET_CHECK(TAPI_API_INVALID_PTR,tel_get_sim_pb_meta_info(StorageFileType,NULL));
-       TET_STAMP_PASS();
-}
-
-/**
-* @brief tel_get_sim_pb_meta_info() API : Positive condition(Get Entry info for a Phonebook FDN record)
-* @par ID: UTC_TEL_GET_SIM_PB_META_INFO_04
-* @param [in] StorageFileType = TAPI_SIM_PB_FDN
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbEntryInfo_t. \n
-*      - TAPI_EVENT_SIM_PB_ENTRY_INFO_CNF
-*/
-void utc_tel_get_sim_pb_meta_info_04()
-{
-       TET_STAMP_START("StorageFileType = TAPI_SIM_PB_FDN");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       TelSimPbFileType_t  StorageFileType=TAPI_SIM_PB_FDN;
-       int pRequestId=0;
-
-       gAsyncResult = FALSE;
-
-       TET_CHECK(TAPI_API_SUCCESS,tel_get_sim_pb_meta_info(StorageFileType,&pRequestId));
-
-       G_MAIN_LOOP_RUN(5);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-/**
-* @brief tel_get_sim_pb_meta_info() API : Positive condition(Get Entry info for a Phonebook LDN record)
-* @par ID: UTC_TEL_GET_SIM_PB_META_INFO_05
-* @param [in] StorageFileType = TAPI_SIM_PB_LDN
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbEntryInfo_t. \n
-*      - TAPI_EVENT_SIM_PB_ENTRY_INFO_CNF
-*/
-void utc_tel_get_sim_pb_meta_info_05()
-{
-       TET_STAMP_START("StorageFileType = TAPI_SIM_PB_LDN");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       TelSimPbFileType_t  StorageFileType=TAPI_SIM_PB_LDN;
-       int pRequestId=0;
-
-       gAsyncResult = FALSE;
-       
-       TET_CHECK(TAPI_API_SUCCESS,tel_get_sim_pb_meta_info(StorageFileType,&pRequestId));
-       
-       G_MAIN_LOOP_RUN(5);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-
-/**
-* @brief tel_get_sim_pb_meta_info() API : Positive condition(Get Entry info for a Phonebook MSISDN record)
-* @par ID: UTC_TEL_GET_SIM_PB_META_INFO_06
-* @param [in] StorageFileType = TAPI_SIM_PB_MSISDN
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbEntryInfo_t. \n
-*      - TAPI_EVENT_SIM_PB_ENTRY_INFO_CNF
-*/
-void utc_tel_get_sim_pb_meta_info_06()
-{
-       TET_STAMP_START("StorageFileType = TAPI_SIM_PB_MSISDN");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       TelSimPbFileType_t  StorageFileType=TAPI_SIM_PB_MSISDN;
-       int pRequestId=0;
-
-       gAsyncResult = FALSE;
-               
-       TET_CHECK(TAPI_API_SUCCESS,tel_get_sim_pb_meta_info(StorageFileType,&pRequestId));
-               
-       G_MAIN_LOOP_RUN(5);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-
-/**
-* @brief tel_get_sim_pb_meta_info() API : Positive condition(Get Entry info for a Phonebook ADN record)
-* @par ID: UTC_TEL_GET_SIM_PB_META_INFO_07
-* @param [in] StorageFileType = TAPI_SIM_PB_ADN
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbEntryInfo_t. \n
-*      - TAPI_EVENT_SIM_PB_ENTRY_INFO_CNF
-*/
-void utc_tel_get_sim_pb_meta_info_07()
-{
-       TET_STAMP_START("StorageFileType = TAPI_SIM_PB_ADN");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       TelSimPbFileType_t  StorageFileType=TAPI_SIM_PB_ADN;
-       int pRequestId=0;
-
-       gAsyncResult = FALSE;
-               
-       TET_CHECK(TAPI_API_SUCCESS,tel_get_sim_pb_meta_info(StorageFileType,&pRequestId));
-               
-       G_MAIN_LOOP_RUN(5);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-
-/**
-* @brief tel_get_sim_pb_meta_info() API : Positive condition(Get Entry info for a Phonebook SDN record)
-* @par ID: UTC_TEL_GET_SIM_PB_META_INFO_08
-* @param [in] StorageFileType = TAPI_SIM_PB_SDN
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbEntryInfo_t. \n
-*      - TAPI_EVENT_SIM_PB_ENTRY_INFO_CNF
-*/
-void utc_tel_get_sim_pb_meta_info_08()
-{
-       TET_STAMP_START("StorageFileType = TAPI_SIM_PB_SDN");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       TelSimPbFileType_t  StorageFileType=TAPI_SIM_PB_SDN;
-       int pRequestId=0;
-
-       gAsyncResult = FALSE;
-               
-       TET_CHECK(TAPI_API_SUCCESS,tel_get_sim_pb_meta_info(StorageFileType,&pRequestId));
-               
-       G_MAIN_LOOP_RUN(5);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-
-/**
-* @brief tel_get_sim_pb_meta_info() API : Positive condition(Get Entry info for a Phonebook EN record)
-* @par ID: UTC_TEL_GET_SIM_PB_META_INFO_09
-* @param [in] StorageFileType = TAPI_SIM_PB_EN
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbEntryInfo_t. \n
-*      - TAPI_EVENT_SIM_PB_ENTRY_INFO_CNF
-*/
-void utc_tel_get_sim_pb_meta_info_09()
-{
-       TET_STAMP_START("StorageFileType = TAPI_SIM_PB_EN");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       TelSimPbFileType_t  StorageFileType=TAPI_SIM_PB_EN;
-       int pRequestId=0;
-
-       gAsyncResult = FALSE;
-               
-       TET_CHECK(TAPI_API_SUCCESS,tel_get_sim_pb_meta_info(StorageFileType,&pRequestId));
-       
-       G_MAIN_LOOP_RUN(5);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-
-/**
-* @brief tel_get_sim_pb_meta_info() API : Positive condition(Get Entry info for a Phonebook 3GSIM record)
-* @par ID: UTC_TEL_GET_SIM_PB_META_INFO_10
-* @param [in] StorageFileType = TAPI_SIM_PB_3GSIM
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbEntryInfo_t. \n
-*      - TAPI_EVENT_SIM_PB_ENTRY_INFO_CNF
-*/
-void utc_tel_get_sim_pb_meta_info_10()
-{
-       TET_STAMP_START("StorageFileType = TAPI_SIM_PB_3GSIM");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       TelSimPbFileType_t  StorageFileType=TAPI_SIM_PB_3GSIM;
-       int pRequestId=0;
-
-       gAsyncResult = FALSE;
-               
-       TET_CHECK(TAPI_API_SUCCESS,tel_get_sim_pb_meta_info(StorageFileType,&pRequestId));
-               
-       G_MAIN_LOOP_RUN(5);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-
-/**
-* @brief tel_get_sim_pb_meta_info() API : Positive condition(Get Entry info for a Phonebook AAS record)
-* @par ID: UTC_TEL_GET_SIM_PB_META_INFO_11
-* @param [in] StorageFileType = TAPI_SIM_PB_AAS
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbEntryInfo_t. \n
-*      - TAPI_EVENT_SIM_PB_ENTRY_INFO_CNF
-*/
-void utc_tel_get_sim_pb_meta_info_11()
-{
-       TET_STAMP_START("StorageFileType = TAPI_SIM_PB_AAS");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       TelSimPbFileType_t  StorageFileType=TAPI_SIM_PB_AAS;
-       int pRequestId=0;
-
-       gAsyncResult = FALSE;
-               
-       TET_CHECK(TAPI_API_SUCCESS,tel_get_sim_pb_meta_info(StorageFileType,&pRequestId));
-               
-       G_MAIN_LOOP_RUN(5);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-
-
-/**
-* @brief tel_get_sim_pb_meta_info() API : Positive condition(Get Entry info for a Phonebook GAS record)
-* @par ID: UTC_TEL_GET_SIM_PB_META_INFO_12
-* @param [in] StorageFileType = TAPI_SIM_PB_GAS
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbEntryInfo_t. \n
-*      - TAPI_EVENT_SIM_PB_ENTRY_INFO_CNF
-*/
-void utc_tel_get_sim_pb_meta_info_12()
-{
-       TET_STAMP_START("StorageFileType = TAPI_SIM_PB_GAS");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       TelSimPbFileType_t  StorageFileType=TAPI_SIM_PB_GAS;
-       int pRequestId=0;
-
-       gAsyncResult = FALSE;
-               
-       TET_CHECK(TAPI_API_SUCCESS,tel_get_sim_pb_meta_info(StorageFileType,&pRequestId));
-               
-       G_MAIN_LOOP_RUN(5);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-
-/**
-* @brief tel_get_sim_pb_meta_info() API : Negative condition( StorageFileType=TAPI_SIM_PB_UNKNOWNN)
-* @par ID: UTC_TEL_GET_SIM_PB_META_INFO_13
-* @param [in] StorageFileType = TAPI_SIM_PB_UNKNOWNN
-* @param [out] &pRequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-void utc_tel_get_sim_pb_meta_info_13()
-{
-       TET_STAMP_START("StorageFileType = TAPI_SIM_PB_UNKNOWNN");
-       TelSimPbFileType_t  StorageFileType=TAPI_SIM_PB_UNKNOWNN;
-       int pRequestId=0;
-
-       TET_CHECK(TAPI_API_INVALID_INPUT,tel_get_sim_pb_meta_info(StorageFileType,&pRequestId));
-       TET_STAMP_PASS();
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_pb_meta_info.h b/TC/telephony_TC/sim/unit/uts_tel_get_sim_pb_meta_info.h
deleted file mode 100644 (file)
index 20b1daa..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#ifndef _uts_tel_get_sim_pb_meta_info_H_
-#define _uts_tel_get_sim_pb_meta_info_H_
-
-       static void utc_tel_get_sim_pb_meta_info_01();
-       static void utc_tel_get_sim_pb_meta_info_02();
-       static void utc_tel_get_sim_pb_meta_info_03();
-       static void utc_tel_get_sim_pb_meta_info_04();
-       static void utc_tel_get_sim_pb_meta_info_05();
-       static void utc_tel_get_sim_pb_meta_info_06();
-       static void utc_tel_get_sim_pb_meta_info_07();
-       static void utc_tel_get_sim_pb_meta_info_08();
-       static void utc_tel_get_sim_pb_meta_info_09();
-       static void utc_tel_get_sim_pb_meta_info_10();
-       static void utc_tel_get_sim_pb_meta_info_11();
-       static void utc_tel_get_sim_pb_meta_info_12();
-       static void utc_tel_get_sim_pb_meta_info_13();
-
-#endif
-
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_personalization_status.c b/TC/telephony_TC/sim/unit/uts_tel_get_sim_personalization_status.c
deleted file mode 100644 (file)
index b9c2b8a..0000000
+++ /dev/null
@@ -1,331 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_LOCK_ENABLE_PERSONALISATION tel_enable_sim_personalization
-*
-* @brief Unit test code for tel_enable_sim_personalization()
-* @par Test function Prototype:
-*      TapiResult_t tel_enable_sim_personalization(TelSimLockPersonalisationInfo_t *PersonalisationPwd, int *pRequestId);
-* @par Test function description:
-*      This API is used to enable the network personalisation feature.
-* @par Important Notes:
-*      None
-* @param [in] PersonalisationPwd
-*      The information required to disable network personalisation.
-*      @code
-       typedef struct
-       {
-               TelSimPersType_t PersonalisationLock;
-               UINT8   Password_length;
-               UINT8   Personalisation_password[TAPI_SEC_LOCK_PERSONALISATION_PASSWD_LEN];
-       }TelSimLockPersonalisationInfo_t;
-*      @endcode
-* @param [out] pRequestId   Unique identifier for a particular request.
-*   - request_id value can be any value from 0 to 255 if the API is returned successfully
-*   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message:
-* The event associated is TAPI_EVENT_SIM_ENABLE_PERSONALIZATION_CNF
-* @pre
-*      None
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tapi_sim_lock_personalization.c
-* @brief
-       Test for the tel_disable_sim_personalization() API that is used to disable the network personalisation feature \n
-       Test for the tel_enable_sim_personalization() API that is used to enable the network personalisation feature
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "sim_common.h"
-#include "uts_tel_get_sim_personalization_status.h"
-
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_sim_personalization_status01, 1},
-       {utc_tel_get_sim_personalization_status02, 2},
-       {utc_tel_get_sim_personalization_status03, 3},
-       {utc_tel_get_sim_personalization_status04, 4},
-       {utc_tel_get_sim_personalization_status05, 5},
-       {NULL, 0}
-};
-
-
-/*
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////
-*/
-// Prototype : User must add function body
-gboolean g_timeout_callback (void *data);
-
-// GMainLoop global handler
-GMainLoop *nw_context_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(nw_context_loop);
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       //GMainLoop *mainloop;
-       nw_context_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);
-       g_main_loop_run (nw_context_loop);
-
-       return 0;
-}
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////
-
-
-/*
-  User Defined Handler
-*/
-// Global variable for user data
-static BOOL gAsyncResult; //user defined data : Async callback is called or not
-
-// G_MAIN Utility : time out callback function
-gboolean g_timeout_callback (void *data)
-{
-       gAsyncResult = FALSE;
-       tet_printf("[SIM APP][TIME OUT] g_timeout called .Close g_main_roop()");
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-
-
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)
-{
-    tet_printf("\n\n\n***************[SIM APP]Callback data **********************\n");
-    tet_printf("[SIM APP]Reques Id[%d]\n", sim_event->RequestId);
-    tet_printf("[SIM APP]event status [%d]\n", sim_event->Status);
-
-    gAsyncResult = FALSE;
-    BOOL bReceived = FALSE;
-
-    switch(sim_event->EventType)
-    {
-               case TAPI_EVENT_SIM_PERS_STATUS_CNF:
-               {
-                       tet_printf("\n[GOT THE EVENT]*******TAPI_EVENT_SIM_PERS_STATUS_CNF******\n");
-                       tet_printf("[SIM APP]SIM personalization status event status  = [0x%x]\n", sim_event->Status);
-                       bReceived = TRUE;
-                       gAsyncResult = TRUE;
-               }
-               break;
-
-        default:
-        {
-                       bReceived = TRUE;
-                       gAsyncResult = FALSE;
-                       tet_printf("[SIM APP]***************** Undhandled event type [%d] *****************\n",sim_event->EventType);
-                       tet_printf("[SIM APP]Undhandled event state [%d]\n",sim_event->Status);
-               }
-               break;
-    }//end switch
-
-    if (bReceived == TRUE)
-      G_MAIN_LOOP_CLOSE();
-
-    return 0;
-}
-
-
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-    tet_infoline("uts_tel_get_sim_personalization_status Test Start\n");
-
-       if ( tel_init() == TAPI_API_SUCCESS)
-       {
-               if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_PERS_STATUS_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL) )
-                       gStartupSuccess = TRUE;
-               else
-                       tet_infoline("startup fail. tel_register_event() failed");
-       } else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-
-        tel_register_app_name("org.samsung.test");
-    return;
-}
-
-
-static void cleanup()
-{
-    tet_infoline("uts_tel_get_sim_personalization_status Test Finished\n");
-
-    if (gStartupSuccess == TRUE)
-       {
-               tel_deregister_event(subscription_id);
-       }
-       tel_deinit();
-    return;
-}
-
-
-
-/*
-  Unit Test Case functions
-*/
-/**
-* @brief TelTapiSimGetLockPersonalisationSatus() API : Negative condition(invalid input parameterl)
-* @par ID: UTC_TEL_GET_SIM_PERSONALIZATION_STATUS01
-* @param [in] PersType =  TAPI_SIM_PERS_CP+1 
-* @param [out]&pRequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-void utc_tel_get_sim_personalization_status01()
-{
-       TET_STAMP_START("utc_tel_get_sim_personalization_status01 -TAPI_API_INVALID_INPUT ");
-       int pRequestId=0;
-       TelSimPersType_t PersType = TAPI_SIM_PERS_CP+1 ;
-       TET_CHECK(TAPI_API_INVALID_INPUT,tel_get_sim_personalization_status (PersType, &pRequestId));
-       TET_STAMP_PASS();
-       return;
-}
-
-
-void utc_tel_get_sim_personalization_status02()
-{
-       TET_STAMP_START("utc_tel_get_sim_personalization_status02 ");
-       int pRequestId=0;
-       TelSimPersType_t PersType= TAPI_SIM_PERS_NET;
-
-       gAsyncResult = FALSE;
-                                       
-       TET_CHECK(TAPI_API_SUCCESS,tel_get_sim_personalization_status (PersType, &pRequestId));
-                                                               
-                                                               tet_printf("after real tc api - wait start");
-                                                               
-                                                               G_MAIN_LOOP_RUN(5);
-                                                               
-                                                               tet_printf("after real tc api - wait stop");
-
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-
-
-
-void utc_tel_get_sim_personalization_status03()
-{
-       TET_STAMP_START("utc_tel_get_sim_personalization_status03 ");
-       int pRequestId=0;
-       TelSimPersType_t PersType=TAPI_SIM_PERS_NS ;
-       
-       gAsyncResult = FALSE;
-                                               
-       TET_CHECK(TAPI_API_SUCCESS,tel_get_sim_personalization_status (PersType, &pRequestId));
-                                                                       
-                                                                       tet_printf("after real tc api - wait start");
-                                                                       
-                                                                       G_MAIN_LOOP_RUN(5);
-                                                                       
-                                                                       tet_printf("after real tc api - wait stop");
-
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-
-
-void utc_tel_get_sim_personalization_status04()
-{
-       TET_STAMP_START("utc_tel_get_sim_personalization_status04 ");
-       int pRequestId=0;
-       TelSimPersType_t PersType= TAPI_SIM_PERS_SP ;
-       
-       gAsyncResult = FALSE;
-                                               
-       TET_CHECK(TAPI_API_SUCCESS,tel_get_sim_personalization_status (PersType, &pRequestId));
-                                                                       
-                                                                       tet_printf("after real tc api - wait start");
-                                                                       
-                                                                       G_MAIN_LOOP_RUN(5);
-                                                                       
-                                                                       tet_printf("after real tc api - wait stop");
-
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-
-void utc_tel_get_sim_personalization_status05()
-{
-       TET_STAMP_START("utc_tel_get_sim_personalization_status05 ");
-       int pRequestId=0;
-       TelSimPersType_t PersType= TAPI_SIM_PERS_CP ;
-       
-       gAsyncResult = FALSE;
-                                               
-       TET_CHECK(TAPI_API_SUCCESS,tel_get_sim_personalization_status (PersType, &pRequestId));
-                                                                       
-                                                                       tet_printf("after real tc api - wait start");
-                                                                       
-                                                                       G_MAIN_LOOP_RUN(5);
-                                                                       
-                                                                       tet_printf("after real tc api - wait stop");
-
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_personalization_status.h b/TC/telephony_TC/sim/unit/uts_tel_get_sim_personalization_status.h
deleted file mode 100644 (file)
index 93982ef..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#ifndef _UTS_TAPI_SIM_GETLOCK_PERSONALIZATION_STATUSH_
-#define _UTS_TAPI_SIM_GETLOCK_PERSONALIZATION_STATUSH_
-
-       static void utc_tel_get_sim_personalization_status01();
-       static void utc_tel_get_sim_personalization_status02();
-       static void utc_tel_get_sim_personalization_status03();
-       static void utc_tel_get_sim_personalization_status04();
-       static void utc_tel_get_sim_personalization_status05();
-#endif
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_security_status.c b/TC/telephony_TC/sim/unit/uts_tel_get_sim_security_status.c
deleted file mode 100644 (file)
index d2a622d..0000000
+++ /dev/null
@@ -1,235 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_GET_PIN_STATUS tel_get_sim_security_status
-*
-* @brief Unit test code for tel_get_sim_security_status()
-* @par Test function Prototype:
-*      TapiResult_t tel_get_sim_security_status(TelSimPinStatus_t *pPinStatus, TelSimPinType_t* pPinType);
-* @par Test function description:
-*      This function gets the current PIN (PIN1 or UPIN) status.
-* @par Important Notes:
-*      None
-* @param [out] pPinStatus
-*      This parameter returns the current Pin status.
-* @code
-typedef enum
-{
-       TAPI_SIM_PIN_STATUS_DISABLED            = 0x00,
-       TAPI_SIM_PIN_STATUS_ENABLED             = 0x01,
-       TAPI_SIM_PIN_STATUS_BLOCKED             = 0x02,
-       TAPI_SIM_PIN_STATUS_PUK_BLOCKED         = 0x03,
-       TAPI_SIM_PIN_STATUS_UNKNOWN             = 0xFF
-} TelSimPinStatus_t;
-* @endcode
-* @param [out] pPinType
-*      This parameter returns the current Pin (Pin1 or upin) type.
-* @code
-typedef enum
-{
-       TAPI_SIM_PTYPE_PIN1             = 0x00,
-       TAPI_SIM_PTYPE_PIN2             = 0x01,
-       TAPI_SIM_PTYPE_PUK1             = 0x02,
-       TAPI_SIM_PTYPE_PUK2             = 0x03,
-       TAPI_SIM_PTYPE_UPIN             = 0x04,
-       TAPI_SIM_PTYPE_ADM              = 0x05
-} TelSimPinType_t;
-* @endcode
-* @par Async Response Message:
-*      None
-* @pre
-*      None
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tel_get_sim_security_status.c
-* @brief       Test for the tel_get_sim_security_status() API that is used to get pin1 status
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "uts_tel_get_sim_security_status.h"
-#include "sim_common.h"
-
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_sim_security_status_01, 1},
-       {utc_tel_get_sim_security_status_02, 2},
-       {utc_tel_get_sim_security_status_03, 3},
-       {NULL, 0}
-};
-
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static void startup()
-{
-       tet_infoline("utc_tel_get_sim_security_status Test Start\n");
-       if (tel_init() != TAPI_API_SUCCESS)
-       {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-       return;
-}
-
-
-static void cleanup()
-{
-       tet_infoline("utc_tel_get_sim_security_status Test Finished\n");
-       if (tel_deinit() != TAPI_API_SUCCESS)
-       {
-               tet_infoline("startup fail. tel_deinit() failed");
-       }
-       return;
-}
-
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
-* @brief tel_get_sim_security_status() API : Positive condition(Get PIN1 status)
-* @par ID: UTC_TEL_SET_SIM_SECURITY_STATUS_01
-* @param [out] pPinStatus
-* @param [in] pPinType
-* @return TAPI_API_SUCCESS
-* @par Expected Result:
-*      pPinStatus is one of TelSimPinStatus_t type value and pPinType is one of pPinType value
-*/
-void utc_tel_get_sim_security_status_01()
-{
-       TET_STAMP_START("Normal operation - get pin1 status");
-       TelSimPinStatus_t pin1_status = TAPI_SIM_PIN_STATUS_UNKNOWN;
-       TelSimPinType_t pPinType = TAPI_SIM_PTYPE_PIN1;
-
-       TET_CHECK(TAPI_API_SUCCESS, tel_get_sim_security_status(pPinType, &pin1_status));
-       tet_printf ("PIN1 status is %d\n", pin1_status);
-       if ( (pin1_status>=TAPI_SIM_PIN_STATUS_DISABLED && pin1_status<=TAPI_SIM_PIN_STATUS_PUK_BLOCKED)||(pin1_status==TAPI_SIM_PIN_STATUS_UNKNOWN))
-       {
-               if ( pPinType >= TAPI_SIM_PTYPE_PIN1 && pPinType <=TAPI_SIM_PTYPE_ADM )
-               {
-                       TET_STAMP_PASS();
-                       return;
-               }
-       }
-       TET_STAMP_FAIL();
-       return;
-}
-
-
-/**
-* @brief tel_get_sim_security_status() API : Positive condition(Get PIN2 status)
-* @par ID: UTC_TEL_SET_SIM_SECURITY_STATUS_02
-* @param [out] pPinStatus
-* @param [in] pPinType
-* @return TAPI_API_SUCCESS
-* @par Expected Result:
-*      pPinStatus is one of TelSimPinStatus_t type value and pPinType is one of pPinType value
-*/
-void utc_tel_get_sim_security_status_02()
-{
-       TET_STAMP_START("Normal operation - get pin2 status");
-       TelSimPinStatus_t pin2_status = TAPI_SIM_PIN_STATUS_UNKNOWN;
-        TelSimPinType_t pPinType = TAPI_SIM_PTYPE_PIN2;
-
-       TET_CHECK(TAPI_API_SUCCESS, tel_get_sim_security_status(pPinType, &pin2_status));
-       tet_printf ("PIN1 status is %d\n", pin2_status);
-       if ( (pin2_status>=TAPI_SIM_PIN_STATUS_DISABLED && pin2_status<=TAPI_SIM_PIN_STATUS_PUK_BLOCKED)||(pin2_status==TAPI_SIM_PIN_STATUS_UNKNOWN))
-       {
-               if ( pPinType >= TAPI_SIM_PTYPE_PIN1 && pPinType <=TAPI_SIM_PTYPE_ADM )
-               {
-                       TET_STAMP_PASS();
-                       return;
-               }
-       }
-       TET_STAMP_FAIL();
-       return;
-}
-
-
-/**
-* @brief tel_get_sim_security_status() API : Negative condition(Second parameter is NULL)
-* @par ID: UTC_TEL_SET_SIM_SECURITY_STATUS_03
-* @param [out] pPinStatus = NULL
-* @param [in] pPinType
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_get_sim_security_status_03()
-{
-    TET_STAMP_START("TAPI_API_INVALID_PTR");
-    TelSimPinType_t pPinType = TAPI_SIM_PTYPE_PIN1;
-
-    TET_CHECK(TAPI_API_INVALID_PTR,tel_get_sim_security_status(pPinType, NULL));
-    TET_STAMP_PASS();
-}
-
-/**
-* @brief tel_get_sim_security_status() API : Negative condition(first parameter is invalid)
-* @par ID: UTC_TEL_SET_SIM_SECURITY_STATUS_04
-* @param [out] pPinStatus
-* @param [in] pPinType = NULL
-* @return TAPI_API_INVALID_INPUT
-*/
-void utc_tel_get_sim_security_status_04()
-{
-    TET_STAMP_START("TAPI_API_INVALID_PTR 2");
-    TelSimPinStatus_t pin1_status = TAPI_SIM_PIN_STATUS_UNKNOWN;
-    TelSimPinType_t pPinType = TAPI_SIM_PTYPE_SIM+1;
-
-    TET_CHECK(TAPI_API_INVALID_INPUT,tel_get_sim_security_status(pPinType, &pin1_status));
-    TET_STAMP_PASS();
-}
-
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_security_status.h b/TC/telephony_TC/sim/unit/uts_tel_get_sim_security_status.h
deleted file mode 100644 (file)
index bb3475b..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _uts_tel_get_sim_security_status_H_
-#define _uts_tel_get_sim_security_status_H_
-
-       static void utc_tel_get_sim_security_status_01();
-       static void utc_tel_get_sim_security_status_02();
-       static void utc_tel_get_sim_security_status_03();
-
-#endif
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_type.c b/TC/telephony_TC/sim/unit/uts_tel_get_sim_type.c
deleted file mode 100644 (file)
index c6dac4f..0000000
+++ /dev/null
@@ -1,161 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TEL_GET_SIM_TYPE tel_get_sim_type
-*
-* @brief Unit test code for tel_get_sim_type()
-* @par Test function Prototype:
-*      TapiResult_t tel_get_sim_type(TelSimCardType_t *pCardInfo);
-* @par Test function description:
-*      This function is a synchronous API which gets the Card Type whether SIM Card is a GSM SIM or a 3G SIM.
-* @par Important Notes:
-*      None
-* @param [in]
-*      None
-* @param [out] pCardInfo
-* This parameter returns the SIM card type information like whether it is GSM SIM card or USIM or it is of unknown type.
-*  - TAPI_SIM_CARD_TYPE_UNKNOWN
-*  - TAPI_SIM_CARD_TYPE_GSM
-*  - TAPI_SIM_CARD_TYPE_USIM
-* @par Async Response Message
-*      None
-* @pre
-*      Before test, prepare GSM SIM and USIM cards.
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tel_get_sim_type.c
-* @brief       Test for the tel_get_sim_type() API that is used to get SIM Card type
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include "uts_tel_get_sim_type.h"
-#include "tet_tapi_util.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_sim_type_01, 1},
-       {utc_tel_get_sim_type_02, 2},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static void startup()
-{
-       tet_infoline("uts_tel_get_sim_imsi Test Start\n");
-       if (tel_init() != TAPI_API_SUCCESS)
-       {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-       return;
-}
-
-
-static void cleanup()
-{
-       tet_infoline("uts_tel_get_sim_imsi Test Finished\n");
-       if (tel_deinit() != TAPI_API_SUCCESS)
-       {
-               tet_infoline("startup fail. tel_deinit() failed");
-       }
-       return;
-}
-
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
-* @brief tel_get_sim_type() API : Normal condition
-* @par ID: UTC_TEL_GET_SIM_TYPE_01
-* @param [out] &cardInfo
-* @return TAPI_API_SUCCESS
-* @par Expected Result:
-* - Out paramter's value satisfied below
-*@n -#cardInfo >= 0 and #cardInfo <= 2 (TAPI_SIM_CARD_TYPE_UNKNOWN, TAPI_SIM_CARD_TYPE_GSM, TAPI_SIM_CARD_TYPE_USIM)
-*/
-void utc_tel_get_sim_type_01()
-{
-       TET_STAMP_START("utc_tel_get_sim_type_01");
-       TelSimCardType_t cardInfo;
-
-    TET_STAMP_START("SIM Type check test");
-
-    /* Calling TAPI LAGUAGE INDICATOR  API */
-    TET_CHECK(TAPI_API_SUCCESS, tel_get_sim_type(&cardInfo));
-
-    tet_printf("The card type is %d\n", cardInfo);
-    tet_printf("\t0x00 : UNKNOWN\n\t0x01 : 2GGSM\n\t0x02 : 3G\n");
-
-    if (cardInfo >= 0 && cardInfo <= 2)
-        TET_STAMP_PASS();
-    else
-        TET_STAMP_FAIL();
-    return;
-}
-
-/**
-* @brief tel_get_sim_type() API : Negative condition(First parameter is Null)
-* @par ID: UTC_TEL_GET_SIM_TYPE_02
-* @param [out] &cardInfo = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_get_sim_type_02()
-{
-       TET_STAMP_START("utc_tel_get_sim_type_02");
-
-    /* Calling TAPI LAGUAGE INDICATOR  API */
-    TET_CHECK( TAPI_API_INVALID_PTR,tel_get_sim_type(NULL));
-    TET_STAMP_PASS();
-    return;
-}
-/** @} */
-
diff --git a/TC/telephony_TC/sim/unit/uts_tel_get_sim_type.h b/TC/telephony_TC/sim/unit/uts_tel_get_sim_type.h
deleted file mode 100644 (file)
index 62f4e7d..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TEL_GET_SIM_TYPE_H_
-#define _UTS_TEL_GET_SIM_TYPE_H_
-
-       static void utc_tel_get_sim_type_01 ();
-       static void utc_tel_get_sim_type_02 ();
-//     static void utc_tapi_get_basic_info_01();
-//     static void utc_tapi_get_basic_info_02();
-
-
-#endif //_UTS_TEL_GET_SIM_TYPE_H_
-
diff --git a/TC/telephony_TC/sim/unit/uts_tel_lock_sim_personalization.c b/TC/telephony_TC/sim/unit/uts_tel_lock_sim_personalization.c
deleted file mode 100644 (file)
index 6075245..0000000
+++ /dev/null
@@ -1,547 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_LOCK_ENABLE_PERSONALISATION tel_enable_sim_personalization
-*
-* @brief Unit test code for tel_enable_sim_personalization()
-* @par Test function Prototype:
-*      TapiResult_t tel_enable_sim_personalization(TelSimLockPersonalisationInfo_t *PersonalisationPwd, int *pRequestId);
-* @par Test function description:
-*      This API is used to enable the network personalisation feature.
-* @par Important Notes:
-*      None
-* @param [in] PersonalisationPwd
-*      The information required to disable network personalisation.
-*      @code
-       typedef struct
-       {
-               TelSimLockType_t PersonalisationLock;
-               UINT8   Password_length;
-               UINT8   Personalisation_password[TAPI_SEC_LOCK_PERSONALISATION_PASSWD_LEN];
-       }TelSimLockPersonalisationInfo_t;
-*      @endcode
-* @param [out] pRequestId   Unique identifier for a particular request.
-*   - request_id value can be any value from 0 to 255 if the API is returned successfully
-*   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message:
-* The event associated is TAPI_EVENT_SIM_ENABLE_PERSONALIZATION_CNF
-* @pre
-*      None
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tapi_sim_lock_personalization.c
-* @brief
-       Test for the tel_disable_sim_personalization() API that is used to disable the network personalisation feature \n
-       Test for the tel_enable_sim_personalization() API that is used to enable the network personalisation feature
-* @author
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "sim_common.h"
-#include "uts_tel_lock_sim_personalization.h"
-#include "async_util.h"
-
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_enable_sim_personalization01, 1},
-       {utc_tel_enable_sim_personalization02, 2},
-       {utc_tel_enable_sim_personalization03, 3},
-       {utc_tel_enable_sim_personalization04, 4},
-       {utc_tel_disable_sim_personalization01, 5},
-       {utc_tel_disable_sim_personalization02, 6},
-       {utc_tel_disable_sim_personalization03, 7},
-       {utc_tel_disable_sim_personalization04, 8},
-       {NULL, 0}
-};
-
-/*
-  User Defined Handler
-*/
-// Global variable for user data
-static BOOL gAsyncResult; //user defined data : Async callback is called or not
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-
-/*
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////
-*/
-// Prototype : User must add function body
-gboolean g_timeout_callback (void *data);
-
-// GMainLoop global handler
-GMainLoop *sim_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(sim_loop);
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       //GMainLoop *mainloop;
-       sim_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);
-       g_main_loop_run (sim_loop);
-
-       return 0;
-}
-
-gboolean g_timeout_callback (void *data)
-{
-       gAsyncResult = FALSE;
-       tet_printf("[TIME OUT] g_timeout called .Close g_main_roop()");
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////
-
-
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)
-{
-    tet_printf("\n***************[SIM APP]Callback data **********************\n");
-    tet_printf("[SIM]Reques Id[%d]\n", sim_event->RequestId);
-    tet_printf("[SIM]event status [%d]\n", sim_event->Status);
-
-    gAsyncResult = FALSE;
-    BOOL bReceived = FALSE;
-
-    switch(sim_event->EventType)
-    {
-#if 0
-       case TAPI_EVENT_SIM_LOCKTYPE_INFO_CNF:
-       {
-               tet_printf("\n[GOT THE EVENT]*******TAPI_EVENT_SIM_LOCKTYPE_INFO_CNF******\n");
-               tet_printf("[SIM APP]SIM SAP trasfer ATR event status  = [0x%x]\n", sim_event->Status);
-               bReceived = TRUE;
-               gAsyncResult = TRUE;
-       }
-       break;
-#endif
-       case TAPI_EVENT_SIM_ENABLE_PERS_CNF:
-       {
-               tet_printf("\n[GOT THE EVENT]*******TAPI_EVENT_SIM_DISABLE_PERS_CNF******\n");
-               tet_printf("[SIM]SIM SAP trasfer ATR event status  = [0x%x]\n", sim_event->Status);
-               bReceived = TRUE;
-               gAsyncResult = TRUE;
-       }
-       break;
-
-       case TAPI_EVENT_SIM_DISABLE_PERS_CNF:
-       {
-               tet_printf("\n[GOT THE EVENT]*******TAPI_EVENT_SIM_DISABLE_PERS_CNF******\n");
-               tet_printf("[SIM]SIM SAP trasfer ATR event status  = [0x%x]\n", sim_event->Status);
-               bReceived = TRUE;
-               gAsyncResult = TRUE;
-       }
-       break;
-
-        default:
-        {
-               bReceived = TRUE;
-               gAsyncResult = FALSE;
-               tet_printf("Info : TAPI_EVENT_SIM_ENABLE_PERS_CNF = %d", TAPI_EVENT_SIM_ENABLE_PERS_CNF);
-               tet_printf("[SIM]***************** Undhandled event type [%d] *****************\n",sim_event->EventType);
-               tet_printf("[SIM]Undhandled event state [%d]\n",sim_event->Status);
-       }
-       break;
-    }//end switch
-
-    if (bReceived == TRUE)
-      G_MAIN_LOOP_CLOSE();
-
-    return 0;
-}
-
-
-static void startup()
-{
-    tet_infoline("uts_tapi_sim_lock_personalization Test Start\n");
-
-       if ( tel_init() == TAPI_API_SUCCESS)
-       {
-               if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_ENABLE_PERS_CNF, &subscription_id,(TelAppCallback)sim_app_callback,NULL) )
-                       gStartupSuccess = TRUE;
-               else
-                       tet_infoline("startup fail. tel_register_event() failed");
-       } else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-
- tel_register_app_name("org.samsung.test");
-    return;
-}
-
-
-static void cleanup()
-{
-    tet_infoline("uts_tapi_sim_lock_personalization Test Finished\n");
-
-    if (gStartupSuccess == TRUE)
-       {
-               tel_deregister_event(subscription_id);
-       }
-       tel_deinit();
-
-    return;
-}
-
-
-
-/*
-  Unit Test Case functions
-*/
-/**
-* @brief tel_enable_sim_personalization() API : Negative condition(Parameter is Null)
-* @par ID: UTC_TEL_ENABLE_SIM_PERSONALIZATION01
-* @param [in] &lock_pers = NULL
-* @param [out]&pRequestId
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_enable_sim_personalization01()
-{
-       TET_STAMP_START("TAPI_API_INVALID_PTR ");
-       int pRequestId=0;
-
-       TapiResult_t err = tel_enable_sim_personalization(NULL,&pRequestId);
-       tet_printf("%s[%d] %s(): error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, err, TET_ERROR_TO_STRING(err) );
-       if (err == TAPI_API_INVALID_PTR )
-               TET_STAMP_PASS();
-       else if ( err == TAPI_API_NOT_SUPPORTED )
-               TET_STAMP(TET_NOTINUSE);
-       else
-               TET_STAMP_FAIL();
-
-}
-
-
-/**
-* @brief tel_enable_sim_personalization() API : Negative condition(Parameter is Null)
-* @par ID: UTC_TEL_ENABLE_SIM_PERSONALIZATION02
-* @param [in] &lock_pers
-* @param [out]&pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_enable_sim_personalization02()
-{
-       TET_STAMP_START("TAPI_API_INVALID_PTR ");
-       int pRequestId=0;
-       TelSimPersPw_t lock_pers;// = {0,};
-
-       lock_pers.type = TAPI_SIM_LOCK_PN;  /* only for testing */
-
-       lock_pers.pw_len = 8 /*control key*/;
-
-       TelSimImsiInfo_t pSimImsiInfo;
-       TET_PRECONDITION(TAPI_API_SUCCESS,tel_get_sim_imsi(&pSimImsiInfo));
-       memcpy(&lock_pers.pw[1], pSimImsiInfo.szMcc, TAPI_SIM_MCC_CODE_LEN);
-       memcpy(&lock_pers.pw[1 + TAPI_SIM_MCC_CODE_LEN], pSimImsiInfo.szMnc, TAPI_SIM_MNC_CODE_LEN);
-       memcpy(lock_pers.pw, "12345678\0", 9); /* only for testing - random password */
-
-       tet_printf("check");
-       TapiResult_t err = tel_enable_sim_personalization(&lock_pers,NULL);
-       tet_printf("%s[%d] %s(): error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, err, TET_ERROR_TO_STRING(err) );
-       if (err == TAPI_API_INVALID_PTR )
-               TET_STAMP_PASS();
-       else if ( err == TAPI_API_NOT_SUPPORTED )
-               TET_STAMP(TET_NOTINUSE);
-       else
-               TET_STAMP_FAIL();
-}
-
-/**
-* @brief tel_enable_sim_personalization() API : Positive condition(Normal operation)
-* @par ID: UTC_TEL_ENABLE_SIM_PERSONALIZATION03
-* @pre Successfully get IMSI information using tel_get_sim_imsi()
-* @param [in] &lock_pers
-*      @code
-       TelSimLockPersonalisationInfo_t lock_pers;
-       TelSimImsiInfo_t pSimImsiInfo;
-       tel_get_sim_imsi(&pSimImsiInfo);
-
-       lock_pers.PersonalisationLock = TAPI_SIM_LOCK_PN;  // only for testing
-       lock_pers.Password_length = 1 // 1 byte length of mnc+mcc
-                                 + 5  // 5 or 6 bytes mnc+mcc
-                                 + 6; //control key;
-       lock_pers.Personalisation_password[0] = 5; // mcc + mnc length can be 5 or 6
-       memcpy(&lock_pers.Personalisation_password[1], pSimImsiInfo.szMcc, TAPI_SIM_MCC_CODE_LEN);
-       memcpy(&lock_pers.Personalisation_password[1 + TAPI_SIM_MCC_CODE_LEN], pSimImsiInfo.szMnc, TAPI_SIM_MNC_CODE_LEN);
-       memcpy(&lock_pers.Personalisation_password[1 + TAPI_SIM_MCC_CODE_LEN + TAPI_SIM_MNC_CODE_LEN], "123456", 6); // only for testing - random password
-*      @endcode
-* @param [out]&pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is TAPI_EVENT_SIM_ENABLE_PERSONALIZATION_CNF
-*/
-void utc_tel_enable_sim_personalization03()
-{
-       TET_STAMP_START("Normal operation ");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       int pRequestId=0;
-       TelSimPersPw_t lock_pers;// = {0,};
-
-       lock_pers.type = TAPI_SIM_LOCK_PN;  /* only for testing */
-
-       lock_pers.pw_len = 8 /*control key*/;
-
-       TelSimImsiInfo_t pSimImsiInfo;
-       TET_PRECONDITION(TAPI_API_SUCCESS,tel_get_sim_imsi(&pSimImsiInfo));
-       memcpy(&lock_pers.pw[1], pSimImsiInfo.szMcc, TAPI_SIM_MCC_CODE_LEN);
-       memcpy(&lock_pers.pw[1 + TAPI_SIM_MCC_CODE_LEN], pSimImsiInfo.szMnc, TAPI_SIM_MNC_CODE_LEN);
-       memcpy(lock_pers.pw, "12345678\0", 9); /* only for testing - random password */
-
-       TapiResult_t err =  tel_enable_sim_personalization(&lock_pers,&pRequestId);
-       if ( err == TAPI_API_NOT_SUPPORTED )
-       {
-               tet_printf("%s[%d] %s(): error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, err, TET_ERROR_TO_STRING(err) );
-               TET_STAMP(TET_NOTINUSE);
-               return;
-       }
-       TET_CHECK(TAPI_API_SUCCESS,err);
-
-       gAsyncResult = FALSE;
-       G_MAIN_LOOP_RUN(55);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-}
-
-void utc_tel_enable_sim_personalization04()
-{
-       TET_STAMP_START("Normal operation ");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       int pRequestId=0;
-       TelSimPersPw_t lock_pers;// = {0,};
-
-       lock_pers.type = TAPI_SIM_LOCK_PN + 12;  /* only for testing */
-
-       lock_pers.pw_len = 8 /*control key*/;
-
-       TelSimImsiInfo_t pSimImsiInfo;
-       TET_PRECONDITION(TAPI_API_SUCCESS,tel_get_sim_imsi(&pSimImsiInfo));
-       memcpy(&lock_pers.pw[1], pSimImsiInfo.szMcc, TAPI_SIM_MCC_CODE_LEN);
-       memcpy(&lock_pers.pw[1 + TAPI_SIM_MCC_CODE_LEN], pSimImsiInfo.szMnc, TAPI_SIM_MNC_CODE_LEN);
-       memcpy(lock_pers.pw, "12345678\0", 9); /* only for testing - random password */
-
-       TapiResult_t err =  tel_enable_sim_personalization(&lock_pers,&pRequestId);
-       if ( err == TAPI_API_NOT_SUPPORTED )
-       {
-               tet_printf("%s[%d] %s(): error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, err, TET_ERROR_TO_STRING(err) );
-               TET_STAMP(TET_NOTINUSE);
-               return;
-       }
-       TET_CHECK(TAPI_API_SUCCESS,err);
-
-       gAsyncResult = FALSE;
-       G_MAIN_LOOP_RUN(55);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-}
-
-/** @} */
-
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_LOCK_DISABLE_PERSONALISATION tel_disable_sim_personalization
-*
-* @brief Unit test code for tel_disable_sim_personalization()
-* @par Test function Prototype:
-*      TapiResult_t tel_disable_sim_personalization(TelSimLockPersonalisationInfo_t *PersonalisationPwd, int *pRequestId);
-* @par Test function description:
-*      This API is used to disable the network personalisation feature.
-* @par Important Notes:
-*      None
-* @param [in] PersonalisationPwd
-*      The information required to disable network personalisation.
-*      @code
-       typedef struct
-       {
-               TelSimLockType_t PersonalisationLock;
-               UINT8   Password_length;
-               UINT8   Personalisation_password[TAPI_SEC_LOCK_PERSONALISATION_PASSWD_LEN];
-       }TelSimLockPersonalisationInfo_t;
-*      @endcode
-* @param [out] pRequestId   Unique identifier for a particular request.
-*   - request_id value can be any value from 0 to 255 if the API is returned successfully
-*   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message:
-* The event associated is TAPI_EVENT_SIM_DISABLE_PERSONALIZATION_CNF
-* @pre
-*      None
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-
-/**
-* @file                uts_tapi_sim_lock_personalization.c
-* @brief
-       Test for the tel_disable_sim_personalization() API that is used to disable the network personalisation feature \n
-       Test for the tel_enable_sim_personalization() API that is used to enable the network personalisation feature
-* @author
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-/**
-* @brief tel_disable_sim_personalization() API : Negative condition(Parameter is Null)
-* @par ID: UTC_TEL_DISABLE_SIM_PERSONALIZATION01
-* @param [in] &lock_pers = NULL
-* @param [out]&pRequestId
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_disable_sim_personalization01()
-{
-       TET_STAMP_START("TAPI_API_INVALID_PTR ");
-       int pRequestId=0;
-
-       TapiResult_t err =  tel_disable_sim_personalization(NULL,&pRequestId);
-       tet_printf("%s[%d] %s(): error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, err, TET_ERROR_TO_STRING(err) );
-       if (err == TAPI_API_INVALID_PTR )
-               TET_STAMP_PASS();
-       else if ( err == TAPI_API_NOT_SUPPORTED )
-               TET_STAMP(TET_NOTINUSE);
-       else
-               TET_STAMP_FAIL();
-
-}
-
-/**
-* @brief tel_disable_sim_personalization() API : Negative condition(Parameter is Null)
-* @par ID: UTC_TEL_DISABLE_SIM_PERSONALIZATION02
-* @param [in] &lock_pers
-* @param [out]&pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_disable_sim_personalization02()
-{
-       TET_STAMP_START("TAPI_API_INVALID_PTR ");
-       int pRequestId=0;
-       TelSimPersPw_t lock_pers;// = {0,};
-
-       lock_pers.type = TAPI_SIM_LOCK_PN;  /* only for testing */
-       lock_pers.pw_len = 8 /*control key*/;
-
-       TelSimImsiInfo_t pSimImsiInfo;
-       tel_get_sim_imsi(&pSimImsiInfo);
-       memcpy(&lock_pers.pw[1], pSimImsiInfo.szMcc, TAPI_SIM_MCC_CODE_LEN);
-       memcpy(&lock_pers.pw[1 + TAPI_SIM_MCC_CODE_LEN], pSimImsiInfo.szMnc, TAPI_SIM_MNC_CODE_LEN);
-       memcpy(lock_pers.pw, "12345678\0", 9); /* only for testing - random password */
-
-       TapiResult_t err = tel_disable_sim_personalization(&lock_pers,NULL);
-       tet_printf("%s[%d] %s(): error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, err, TET_ERROR_TO_STRING(err) );
-       if (err == TAPI_API_INVALID_PTR )
-               TET_STAMP_PASS();
-       else if ( err == TAPI_API_NOT_SUPPORTED )
-               TET_STAMP(TET_NOTINUSE);
-       else
-               TET_STAMP_FAIL();
-}
-
-void utc_tel_disable_sim_personalization03()
-{
-       TET_STAMP_START("TAPI_API_INVALID_PTR ");
-       int pRequestId=0;
-       TelSimPersPw_t lock_pers;// = {0,};
-
-       lock_pers.type = TAPI_SIM_LOCK_PN;  /* only for testing */
-       lock_pers.pw_len = 8 /*control key*/;
-
-       TelSimImsiInfo_t pSimImsiInfo;
-       tel_get_sim_imsi(&pSimImsiInfo);
-       memcpy(&lock_pers.pw[1], pSimImsiInfo.szMcc, TAPI_SIM_MCC_CODE_LEN);
-       memcpy(&lock_pers.pw[1 + TAPI_SIM_MCC_CODE_LEN], pSimImsiInfo.szMnc, TAPI_SIM_MNC_CODE_LEN);
-       memcpy(lock_pers.pw, "12345678\0", 9); /* only for testing - random password */
-
-       TapiResult_t err = tel_disable_sim_personalization(&lock_pers,&pRequestId);
-       tet_printf("%s[%d] %s(): error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, err, TET_ERROR_TO_STRING(err) );
-       if (err == TAPI_API_SUCCESS )
-               TET_STAMP_PASS();
-       else
-               TET_STAMP_FAIL();
-}
-
-
-void utc_tel_disable_sim_personalization04()
-{
-       TET_STAMP_START("TAPI_API_INVALID_PTR ");
-       int pRequestId=0;
-       TelSimPersPw_t lock_pers;// = {0,};
-
-       lock_pers.type = TAPI_SIM_LOCK_PN-12;  /* only for testing */
-       lock_pers.pw_len = 8 /*control key*/;
-
-       TelSimImsiInfo_t pSimImsiInfo;
-       tel_get_sim_imsi(&pSimImsiInfo);
-       memcpy(&lock_pers.pw[1], pSimImsiInfo.szMcc, TAPI_SIM_MCC_CODE_LEN);
-       memcpy(&lock_pers.pw[1 + TAPI_SIM_MCC_CODE_LEN], pSimImsiInfo.szMnc, TAPI_SIM_MNC_CODE_LEN);
-       memcpy(lock_pers.pw, "12345678\0", 9); /* only for testing - random password */
-
-       TapiResult_t err = tel_disable_sim_personalization(&lock_pers,&pRequestId);
-       tet_printf("%s[%d] %s(): error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, err, TET_ERROR_TO_STRING(err) );
-       if (err != TAPI_API_SUCCESS )
-               TET_STAMP_PASS();
-       else
-               TET_STAMP_FAIL();
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_lock_sim_personalization.h b/TC/telephony_TC/sim/unit/uts_tel_lock_sim_personalization.h
deleted file mode 100644 (file)
index aa86475..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#ifndef _UTS_TAPI_SIM_LOCK_PERSONALIZATION_H_
-#define _UTS_TAPI_SIM_LOCK_PERSONALIZATION_H_
-
-       static void utc_tel_enable_sim_personalization01();
-       static void utc_tel_enable_sim_personalization02();
-       static void utc_tel_enable_sim_personalization03();
-       static void utc_tel_enable_sim_personalization04();
-       static void utc_tel_disable_sim_personalization01();
-       static void utc_tel_disable_sim_personalization02();
-       static void utc_tel_disable_sim_personalization03();
-       static void utc_tel_disable_sim_personalization04();
-typedef enum 
-{
-       TAPI_SIM_LOCK_READY             = 0x00, /**< ME Not locked - No pin verifications for any lock*/
-               
-       TAPI_SIM_LOCK_PS,                               /** < PH-SIM (phone-sim) locked.Lock Phone to SIM/UICC card 
-                                                                                  *    (MT asks password when other than current SIM/UICC card inserted; 
-                                                                                  *    MT may remember certain amount of previously used cards thus not 
-                                                                                  *    requiring password when they are inserted 
-                                                                                  */ 
-                                                                               /* This is currently managed by launcher in using gconf - NOT useful from modem 
-                                                                                   * as of now.
-                                                                                  */
-                                                                               
-       TAPI_SIM_LOCK_PF,                                       /** < PH-FSIM (phone-first-sim) Lock Phone to the very 
-                                                                                  * First inserted SIM/UICC card(MT asks password when other than the first SIM/UICC 
-                                                                                  * card is inserted
-                                                                                  */
-                                                                                /* This should managed by launcher in using gconf - NOT useful from modem 
-                                                                                   * as of now.
-                                                                                   
-                                                                                   */
-       TAPI_SIM_LOCK_SC,                                       /** < SIM Lock (PIN, PIN2, PUK, PUK2) Lock SIM/UICC card ( SIM asks password in ME power-up and
-                                                                                  *    when this command is issued 
-                                                                                  */
-                                                                          
-       TAPI_SIM_LOCK_FD,                                       /** < FDN - SIM card or active application in the UICC (GSM or USIM)
-                                                                                  *    fixed dialing memory feature */
-       TAPI_SIM_LOCK_PN,                                       /**< Network Personalization */
-       TAPI_SIM_LOCK_PU,                                       /** < network subset Personalization */
-       TAPI_SIM_LOCK_PP,                                       /** < service Provider Personalization */
-       TAPI_SIM_LOCK_PC,                                       /** < Coporate Personalization */
-       TAPI_SIM_LOCK_SC2,                                      /**< PIN2 lock*/
-       TAPI_SIM_LOCK_SCPUK2            = 0x0A,         /** < PIN2 Unblocking Key */
-       TAPI_SIM_LOCK_ACL                       = 0x0B, /** < ACL lock */
-       
-       TAPI_SIM_NO_SIM                 = 0x80,         /**< SIM not inserted */
-       TAPI_SIM_UNAVAIL                        = 0x81, /** < SIM interface error - SIM inserted but cannot communicate */
-       TAPI_SIM_INIT_COMPLETE  = 0x82, /** < SIM initialization completed */
-       TAPI_SIM_PB_INIT_COMPLETE = 0x83, /**< PB init completed */
-} TelSimLockType_t;
-#endif
-
diff --git a/TC/telephony_TC/sim/unit/uts_tel_read_sim_pb_record.c b/TC/telephony_TC/sim/unit/uts_tel_read_sim_pb_record.c
deleted file mode 100644 (file)
index 4ae9189..0000000
+++ /dev/null
@@ -1,428 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_PB_READ_RECORD tel_read_sim_pb_record
-*
-* @brief Unit test code for tel_read_sim_pb_record()
-* @par Test function Prototype:
-*      TapiResult_t tel_read_sim_pb_record(TelSimPbFileType_t StorageFileType, unsigned short Index, int* pRequestId);
-* @par Test function description:
-*      This API is used to read SIM phone book entry information from given storage type
-* @par Important Notes:
-*      The index ranges from 1 through to a maximum of 254 for a Linear fixed file and 255 for a cyclic file.
-* @param [in] StorageFileType    Different storage types to be selected in SIM.
-* @param [in] Index  Index for accessing the SIM data.
-* @param [out] pRequestId   Unique identifier for a particular request.
-*   - request_id value can be any value from 0 to 255 if the API is returned successfully
-*   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbRecordData_t. \n
-*      - TAPI_EVENT_SIM_PB_ACCESS_READ_CNF
-* @pre
-*      - Phonebook supported SIM used for test
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tel_read_sim_pb_record.c
-* @brief       Test for the tel_read_sim_pb_record() API that is used to read phonebook entry
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "uts_tel_read_sim_pb_record.h"
-#include "sim_common.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_read_sim_pb_record_01, 1},
-       {utc_tel_read_sim_pb_record_02, 2},
-       {utc_tel_read_sim_pb_record_03, 3},
-       {utc_tel_read_sim_pb_record_04, 4},
-       {utc_tel_read_sim_pb_record_05, 5},
-       {utc_tel_read_sim_pb_record_06, 6},
-       {utc_tel_read_sim_pb_record_07, 7},
-       {utc_tel_read_sim_pb_record_08, 8},
-       {NULL, 0}
-};
-
-/*
-  User Defined Handler
-*/
-// Global variable for user data
-static BOOL gAsyncResult; //user defined data : Async callback is called or not
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-
-/*
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////
-*/
-// Prototype : User must add function body
-gboolean g_timeout_callback (void *data);
-
-// GMainLoop global handler
-GMainLoop *sim_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(sim_loop);
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       sim_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);
-       g_main_loop_run (sim_loop);
-
-       return 0;
-}
-
-gboolean g_timeout_callback (void *data)
-{
-       gAsyncResult = FALSE;
-       tet_printf("[SIM APP][TIME OUT] g_timeout called .Close g_main_roop()");
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////
-
-
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)
-{
-    tet_printf("\n**************[SIM APP]Callback data **********************\n");
-    tet_printf("[SIM]Reques Id[%d]\n", sim_event->RequestId);
-    tet_printf("[SIM]event status [%d]\n", sim_event->Status);
-
-    gAsyncResult = FALSE;
-    BOOL bReceived = FALSE;
-
-    switch(sim_event->EventType)
-      {
-       case TAPI_EVENT_SIM_PB_ACCESS_READ_CNF:
-       {
-                       tet_printf("[SIM]*****************TAPI_EVENT_SIM_PB_ACCESS_READ_CNF***************************");
-                       tet_printf("[SIM]SIM PB access read event status = [%x]", sim_event->Status);
-
-                       //TelSimPbRecordData_t *sim_acces_info = (TelSimPbRecordData_t*)sim_event->pData;
-                       //    tet_printf("[SIM APP]storaget type is [%x]",sim_acces_info->StorageFileType);
-                       //  tet_printf(" SIM phone book access error [%d]", sim_event->Status);
-                       tet_printf("********************************************");
-                       gAsyncResult = TRUE;
-                       bReceived = TRUE;
-        }
-        break;
-
-        default:
-        {
-            bReceived = TRUE;
-            gAsyncResult = FALSE;
-            tet_printf("[SIM]***************** Undhandled event type [%d] *****************\n",sim_event->EventType);
-            tet_printf("[SIM]Undhandled event state [%d]\n",sim_event->Status);
-            break;
-               }
-    }//end switch
-
-    if (bReceived == TRUE)
-      G_MAIN_LOOP_CLOSE();
-
-    return 0;
-}
-
-
-static void startup()
-{
-    tet_infoline("utc_tel_read_sim_pb_record Test Start");
-
-       if ( tel_init() == TAPI_API_SUCCESS)
-       {
-               if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_PB_ACCESS_READ_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL) )
-                       gStartupSuccess = TRUE;
-               else
-                       tet_infoline("startup fail. tel_register_event() failed");
-       } else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-       tel_register_app_name("org.samsung.test");
-    return;
-}
-
-static void cleanup()
-{
-    tet_infoline("utc_tel_read_sim_pb_record Finished");
-
-    if (gStartupSuccess == TRUE)
-       {
-               tel_deregister_event(subscription_id);
-       }
-       tel_deinit();
-
-    return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
-* @brief tel_read_sim_pb_record() API : Negative condition(Lower boundary test)
-* @par ID: UTC_TEL_READ_SIM_PB_RECORD_01
-* @param [in] StorageFileType = (TelSimPbFileType_t)TAPI_SIM_PB_FDN-1
-* @param [in] Index = 1
-* @param [out] &pRequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-void utc_tel_read_sim_pb_record_01()
-{
-       TET_STAMP_START("TAPI_API_INVALID_INPUT test 1");
-       TelSimPbFileType_t StorageFileType = (TelSimPbFileType_t)TAPI_SIM_PB_FDN-1;
-       unsigned short Index=1;
-       int pRequestId=0;
-
-       TET_CHECK(TAPI_API_INVALID_INPUT, tel_read_sim_pb_record(StorageFileType,Index,&pRequestId));
-       TET_STAMP_PASS();
-}
-
-/**
-* @brief tel_read_sim_pb_record() API : Negative condition(Lower boundary test)
-* @par ID: UTC_TEL_READ_SIM_PB_RECORD_02
-* @param [in] StorageFileType = (TelSimPbFileType_t)TAPI_SIM_PB_UNKNOWNN+1
-* @param [in] Index = 1
-* @param [out] &pRequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-void utc_tel_read_sim_pb_record_02()
-{
-       TET_STAMP_START("TAPI_API_INVALID_INPUT test 2");
-       TelSimPbFileType_t StorageFileType = (TelSimPbFileType_t)TAPI_SIM_PB_UNKNOWNN+1;
-       unsigned short Index=1;
-       int pRequestId=0;
-
-       TET_CHECK(TAPI_API_INVALID_INPUT, tel_read_sim_pb_record(StorageFileType,Index,&pRequestId));
-       TET_STAMP_PASS();
-}
-
-
-/**
-* @brief tel_read_sim_pb_record() API : Negative condition(NULL parameter test)
-* @par ID: UTC_TEL_READ_SIM_PB_RECORD_03
-* @param [in] StorageFileType = TAPI_SIM_PB_FDN
-* @param [in] Index = 1
-* @param [out] &pRequestId = NULL
-* @return TAPI_API_INVALID_INPUT
-*/
-void utc_tel_read_sim_pb_record_03()
-{
-       TET_STAMP_START("TAPI_API_INVALID_INPUT test 3");
-       TelSimPbFileType_t StorageFileType = TAPI_SIM_PB_FDN;
-       unsigned short Index=1;
-
-       TET_CHECK(TAPI_API_INVALID_PTR, tel_read_sim_pb_record(StorageFileType,Index,NULL));   //<-------------------- Invalid value
-       TET_STAMP_PASS();
-}
-
-/**
-* @brief tel_read_sim_pb_record() API : Positive condition(Get FDN record)
-* @par ID: UTC_TEL_READ_SIM_PB_RECORD_04
-* @param [in] StorageFileType = TAPI_SIM_PB_FDN
-* @param [in] Index = 1
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbRecordData_t. \n
-*      - TAPI_EVENT_SIM_PB_ACCESS_READ_CNF
-*/
-void utc_tel_read_sim_pb_record_04()
-{
-    TET_STAMP_START("StorageFileType=TAPI_SIM_PB_FDN");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-    TelSimPbFileType_t StorageFileType=TAPI_SIM_PB_FDN;
-    unsigned short Index=1;
-    int pRequestId=0;
-
-    gAsyncResult = FALSE;
-
-    TET_CHECK(TAPI_API_SUCCESS, tel_read_sim_pb_record(StorageFileType,Index,&pRequestId));
-
-    G_MAIN_LOOP_RUN(2);
-    TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-    TET_STAMP_PASS();
-       return;
-}
-
-/**
-* @brief tel_read_sim_pb_record() API : Positive condition(Get LDN record)
-* @par ID: UTC_TEL_READ_SIM_PB_RECORD_05
-* @param [in] StorageFileType = TAPI_SIM_PB_FDN
-* @param [in] Index = 1
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbRecordData_t. \n
-*      - TAPI_EVENT_SIM_PB_ACCESS_READ_CNF
-*/
-void utc_tel_read_sim_pb_record_05()
-{
-    TET_STAMP_START("StorageFileType=TAPI_SIM_PB_LDN");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-    TelSimPbFileType_t StorageFileType=TAPI_SIM_PB_LDN;
-    unsigned short Index=4;
-    int pRequestId=0;
-
-       gAsyncResult = FALSE;
-       
-       TET_CHECK(TAPI_API_SUCCESS, tel_read_sim_pb_record(StorageFileType,Index,&pRequestId));
-       
-       G_MAIN_LOOP_RUN(2);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-
-/**
-* @brief tel_read_sim_pb_record() API : Positive condition(Get MSISDN record)
-* @par ID: UTC_TEL_READ_SIM_PB_RECORD_06
-* @param [in] StorageFileType = TAPI_SIM_PB_MSISDN
-* @param [in] Index = 1
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbRecordData_t. \n
-*      - TAPI_EVENT_SIM_PB_ACCESS_READ_CNF
-*/
-void utc_tel_read_sim_pb_record_06()
-{
-    TET_STAMP_START("StorageFileType=TAPI_SIM_PB_MSISDN");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-    TelSimPbFileType_t StorageFileType=TAPI_SIM_PB_MSISDN;
-    unsigned short Index=1;
-    int pRequestId=0;
-
-       gAsyncResult = FALSE;
-       
-       TET_CHECK(TAPI_API_SUCCESS, tel_read_sim_pb_record(StorageFileType,Index,&pRequestId));
-       
-       G_MAIN_LOOP_RUN(2);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-
-/**
-* @brief tel_read_sim_pb_record() API : Positive condition(Get ADN record)
-* @par ID: UTC_TEL_READ_SIM_PB_RECORD_07
-* @param [in] StorageFileType = TAPI_SIM_PB_ADN
-* @param [in] Index = 1
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbRecordData_t. \n
-*      - TAPI_EVENT_SIM_PB_ACCESS_READ_CNF
-*/
-void utc_tel_read_sim_pb_record_07()
-{
-    TET_STAMP_START("StorageFileType=TAPI_SIM_PB_ADN");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-    TelSimPbFileType_t StorageFileType=TAPI_SIM_PB_ADN;
-       unsigned short Index=1;
-       int pRequestId=0;
-       
-       gAsyncResult = FALSE;
-               
-       TET_CHECK(TAPI_API_SUCCESS, tel_read_sim_pb_record(StorageFileType,Index,&pRequestId));
-               
-       G_MAIN_LOOP_RUN(2);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-
-/**
-* @brief tel_read_sim_pb_record() API : Positive condition(Get SDN record)
-* @par ID: UTC_TEL_READ_SIM_PB_RECORD_08
-* @param [in] StorageFileType = TAPI_SIM_PB_SDN
-* @param [in] Index = 1
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbRecordData_t. \n
-*      - TAPI_EVENT_SIM_PB_ACCESS_READ_CNF
-*/
-void utc_tel_read_sim_pb_record_08()
-{
-    TET_STAMP_START("StorageFileType=TAPI_SIM_PB_SDN");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-    TelSimPbFileType_t StorageFileType=TAPI_SIM_PB_SDN;
-       unsigned short Index=1;
-       int pRequestId=0;
-       
-       gAsyncResult = FALSE;
-               
-       TET_CHECK(TAPI_API_SUCCESS, tel_read_sim_pb_record(StorageFileType,Index,&pRequestId));
-               
-       G_MAIN_LOOP_RUN(5);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_read_sim_pb_record.h b/TC/telephony_TC/sim/unit/uts_tel_read_sim_pb_record.h
deleted file mode 100644 (file)
index 16ff84f..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TEL_READ_SIM_PB_RECORD_H_
-#define _UTS_TEL_READ_SIM_PB_RECORD_H_
-
-       static void utc_tel_read_sim_pb_record_01 ();
-       static void utc_tel_read_sim_pb_record_02 ();
-       static void utc_tel_read_sim_pb_record_03 ();
-       static void utc_tel_read_sim_pb_record_04 ();
-       static void utc_tel_read_sim_pb_record_05 ();
-       static void utc_tel_read_sim_pb_record_06 ();
-       static void utc_tel_read_sim_pb_record_07 ();
-       static void utc_tel_read_sim_pb_record_08 ();
-#endif
-
diff --git a/TC/telephony_TC/sim/unit/uts_tel_req_sap_cardreader_status.c b/TC/telephony_TC/sim/unit/uts_tel_req_sap_cardreader_status.c
deleted file mode 100644 (file)
index 5ac45c8..0000000
+++ /dev/null
@@ -1,338 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_SAP_CARD_READER_STATUS tel_req_sap_cardreader_status
-*
-* @brief Unit test code for tel_req_sap_cardreader_status()
-* @par Test function Prototype:
-*      TapiResult_t tel_req_sap_cardreader_status( int* pRequestId);
-* @par Test function description:
-*      This API is used to get the card reader status.
-* @par Important Notes:
-*      None
-* @param [out] pRequestId   Unique identifier for a particular request.
-*   - request_id value can be any value from 0 to 255 if the API is returned successfully
-*   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimCardReaderStatus_t. \n
-*      - TAPI_EVENT_SIM_SAP_CARD_READER_STATUS_CNF
-* @pre
-*      SAP supported sim used to testing
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tel_req_sap_cardreader_status.c
-* @brief       Test for the tel_req_sap_cardreader_status() API that is used to get SAP card reader status
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "uts_tel_req_sap_cardreader_status.h"
-#include "sim_common.h"
-
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_req_sap_cardreader_status_01, 1},
-       {utc_tel_req_sap_cardreader_status_02, 2},
-       {NULL, 0}
-};
-
-
-/*
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////
-*/
-// Prototype : User must add function body
-gboolean g_timeout_callback (void *data);
-
-// GMainLoop global handler
-GMainLoop *nw_context_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(nw_context_loop);
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       //GMainLoop *mainloop;
-       nw_context_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);
-       g_main_loop_run (nw_context_loop);
-
-       return 0;
-}
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////
-
-
-/*
-  User Defined Handler
-*/
-// Global variable for user data
-static BOOL gAsyncResult; //user defined data : Async callback is called or not
-
-// G_MAIN Utility : time out callback function
-gboolean g_timeout_callback (void *data)
-{
-       gAsyncResult = FALSE;
-       tet_printf("[SIM APP][TIME OUT] g_timeout called .Close g_main_roop()");
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-
-
-static int sim_sap_process_for_condition(int wish_condition)
-{
-       TelSimSapConnect_t pConnectionReq;
-       int pRequestId=0;
-       int tapiRet = TAPI_API_SUCCESS;
-       
-       tet_printf("sap wish condition[%d]:0-disconnect, 1-connect",wish_condition);
-
-       if(wish_condition == 1)
-       {
-               pConnectionReq.MsgId = TAPI_SIM_SAP_CONNECT_REQ;
-       }
-       else
-       {
-               pConnectionReq.MsgId = TAPI_SIM_SAP_DISCONNECT_REQ;
-       }
-
-       pConnectionReq.MaxMsgSize = 10; //temp for testing only - not clear
-               
-       gAsyncResult = FALSE;
-               
-       tapiRet = tel_req_sap_connection(&pConnectionReq,&pRequestId);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,TAPI_API_SUCCESS,tapiRet);
-               
-       G_MAIN_LOOP_RUN(2);
-
-       if(gAsyncResult == TRUE)
-               return 0;
-       else
-               return -1;
-
-}
-
-
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)
-{
-    tet_printf("\n\n\n***************[SIM APP]Callback data **********************\n");
-    tet_printf("[SIM APP]Reques Id[%d]\n", sim_event->RequestId);
-    tet_printf("[SIM APP]event status [%d]\n", sim_event->Status);
-
-    gAsyncResult = FALSE;
-    BOOL bReceived = FALSE;
-
-    switch(sim_event->EventType)
-      {
-       case TAPI_EVENT_SIM_SAP_CONNECT_NOTI:
-       {
-            tet_printf("\n[SIM APP]*****************TAPI_EVENT_SIM_SAP_CONNECT_NOTI***************************\n");
-            gAsyncResult = TRUE;
-            bReceived = TRUE;
-        }
-        break;
-
-
-       case TAPI_EVENT_SIM_SAP_CONNECT_CNF:
-       {
-            tet_printf("\n[SIM APP]*****************TAPI_EVENT_SIM_SAP_CONNECT_CNF***************************\n");
-            gAsyncResult = TRUE;
-            bReceived = TRUE;
-        }
-        break;
-
-       case TAPI_EVENT_SIM_SAP_CARD_READER_STATUS_CNF:
-       {
-            tet_printf("\n[SIM APP]*****************TAPI_EVENT_SIM_SAP_CARD_READER_STATUS_CNF***************************\n");
-            TelSimCardReaderStatus_t *sap_card_reader_status = (TelSimCardReaderStatus_t*)sim_event->pData;
-
-            tet_printf(" [SIM APP]card reader result [%x]\n ", sap_card_reader_status->CardReaderResult);
-            tet_printf(" [SIM APP]card reader status bitwise encoded data [%d]\n", sap_card_reader_status->CardReaderStatus);
-
-            gAsyncResult = TRUE;
-            bReceived = TRUE;
-        }
-        break;
-
-        default:
-        {
-            bReceived = TRUE;
-            gAsyncResult = FALSE;
-            //tet_printf("Info : TAPI_EVENT_SIM_READ_FILE_CNF = %d", TAPI_EVENT_SIM_READ_FILE_CNF);
-            tet_printf("[SIM APP]***************** Undhandled event type [%d] *****************\n",sim_event->EventType);
-            tet_printf("[SIM APP]Undhandled event state [%d]\n",sim_event->Status);
-            break;
-       }
-    }//end switch
-
-    if (bReceived == TRUE)
-      G_MAIN_LOOP_CLOSE();
-
-    return 0;
-}
-
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-static void startup()
-{
-    tet_infoline("utc_tel_req_sap_cardreader_status Test Start\n");
-
-       if ( tel_init() == TAPI_API_SUCCESS)
-       {
-               tel_register_event(TAPI_EVENT_SIM_SAP_CONNECT_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);
-               tel_register_event(TAPI_EVENT_SIM_SAP_CARD_READER_STATUS_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);           
-
-               gStartupSuccess = TRUE;
-       } else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-       tel_register_app_name("org.samsung.test");
-    return;
-}
-
-
-static void cleanup()
-{
-    tet_infoline("utc_tel_req_sap_cardreader_status Test Finished\n");
-    if (gStartupSuccess == TRUE)
-       {
-               tel_deregister_event(subscription_id);
-       }
-       tel_deinit();
-
-    return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
-* @brief tel_req_sap_cardreader_status() API : Normal condition(Request card reader status)
-* @par ID: UTC_TEL_REQ_SAP_CARDREADER_STATUS_01
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimCardReaderStatus_t. \n
-*      - TAPI_EVENT_SIM_SAP_CARD_READER_STATUS_CNF
-*/
-void utc_tel_req_sap_cardreader_status_01()
-{
-    tet_infoline("TRANSFER SAP READER STATUS\n");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       int pRequestId=0;
-       int tapiRet = TAPI_API_SUCCESS;
-#if 0 // we assume sap connect on.
-
-       // Step 1 : make proper condition
-       tet_printf("Step 1 : sap connect");
-       
-       if( 0 != sim_sap_process_for_condition(1))
-       {
-               tet_printf("condition set is failed!!");
-               return;
-       }
-#endif         
-       gAsyncResult = FALSE;
-               
-       tapiRet = tel_req_sap_cardreader_status(&pRequestId);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,TAPI_API_SUCCESS,tapiRet);
-                       
-       tet_printf("after real tc api - wait start");
-                       
-       G_MAIN_LOOP_RUN(3);
-                       
-       tet_printf("after real tc api - wait stop");
-                       
-       TET_RESULT_NOT_EQUAL_GOTO(TET_FAIL,exit,gAsyncResult,TRUE);
-       TET_RESULT_EQUAL_GOTO(TET_PASS,exit,gAsyncResult,TRUE);
-                       
-exit:
-       // Step 3 : make default condition
-#if 0 // we assume sap connect on.
-
-       tet_printf("Step 3 : disconnect sap");
-                       
-       if( 0 != sim_sap_process_for_condition(0))
-       {
-               tet_printf("condition set is failed!!");
-       }
-#endif 
-       return;
-}
-
-
-/**
-* @brief tel_req_sap_cardreader_status() API : Negative condition(NULL Parameter test)
-* @par ID: UTC_TEL_REQ_SAP_CARDREADER_STATUS_02
-* @param [out] &pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_req_sap_cardreader_status_02()
-{
-    TET_STAMP_START("TRANSFER SAP READER STATUS WITH INVALID SIM SESSION\n");
-    TapiResult_t error = tel_req_sap_cardreader_status(NULL);
-    TET_CHECK(TAPI_API_INVALID_PTR,error);
-    TET_STAMP_PASS();
-
-       tel_reset_modem();
-
-    return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_req_sap_cardreader_status.h b/TC/telephony_TC/sim/unit/uts_tel_req_sap_cardreader_status.h
deleted file mode 100644 (file)
index c48f059..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TEL_REQ_SAP_CARDREADER_STATUS_H
-#define _UTS_TEL_REQ_SAP_CARDREADER_STATUS_H
-
-       static void utc_tel_req_sap_cardreader_status_01();
-       static void utc_tel_req_sap_cardreader_status_02();
-
-#endif
diff --git a/TC/telephony_TC/sim/unit/uts_tel_req_sap_connection.c b/TC/telephony_TC/sim/unit/uts_tel_req_sap_connection.c
deleted file mode 100644 (file)
index 0686d32..0000000
+++ /dev/null
@@ -1,309 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_SAP_CONNECT_REQUEST tel_req_sap_connection
-*
-* @brief Unit test code for tel_req_sap_connection()
-* @par Test function Prototype:
-*      TapiResult_t tel_req_sap_connection( TelSimSapConnect_t *pConnectionReq, int* pRequestId);
-* @par Test function description:
-*      This API is used to request for an external SAP connection
-* @par Important Notes:
-*      None
-* @param [in] pConnectionReq    This enum gives the SAP ATR response data information
-*      @code
-       typedef struct
-       {
-               TelSimSapMsgId_t        MsgId;  // connect or disconnect request /response
-               TelSimSapConnectionStatus_t     ConnectionStatus;       // used only in response from tapi
-               unsigned short  MaxMsgSize;     // request from app or set by lower layer
-       }TelSimSapConnect_t;
-
-        // This enum gives the SAP message Ids between SAP client and SAP server.
-       typedef enum
-       {
-               TAPI_SIM_SAP_CONNECT_REQ        = 0x00,
-               TAPI_SIM_SAP_CONNECT_RESP       = 0x01,
-               TAPI_SIM_SAP_DISCONNECT_REQ     = 0x02,
-               TAPI_SIM_SAP_DISCONNECT_RESP    = 0x03,
-               TAPI_SIM_SAP_DISCONNECT_IND     = 0x04,
-               TAPI_SIM_SAP_TRANSFER_APDU_REQ  = 0x05,
-               TAPI_SIM_SAP_TRANSFER_APDU_RESP = 0x06,
-               TAPI_SIM_SAP_TRANSFER_ATR_REQ   = 0x07,
-               TAPI_SIM_SAP_TRANSFER_ATR_RESP  = 0x08,
-               TAPI_SIM_SAP_POWER_SIM_OFF_REQ  = 0x09,
-               TAPI_SIM_SAP_POWER_SIM_OFF_RESP = 0x0A,
-               TAPI_SIM_SAP_POWER_SIM_ON_REQ   = 0x0B,
-               TAPI_SIM_SAP_POWER_SIM_ON_RESP  = 0x0C,
-               TAPI_SIM_SAP_RESET_SIM_REQ      = 0x0D,
-               TAPI_SIM_SAP_RESET_SIM_RESP     = 0x0E,
-               TAPI_SIM_SAP_TRANSFER_CARD_READER_STATUS_REQ  = 0x0F,
-               TAPI_SIM_SAP_TRANSFER_CARD_READER_STATUS_RESP = 0x10,
-               TAPI_SIM_SAP_STATUS_IND         = 0x11,
-               TAPI_SIM_SAP_ERROR_RESP         = 0x12,
-               TAPI_SIM_SAP_SET_TRANSPORT_PROTOCOL_REQ = 0x13,
-               TAPI_SIM_SAP_SET_TRANSPORT_PROTOCOL_RESP = 0x14
-       }TelSimSapMsgId_t
-
-       // This enum gives the SAP connection status information. This is used for Async Response Message
-       typedef enum
-       {
-               TAPI_SIM_SAP_CONNECTION_STATUS_OK = 0x00,
-               TAPI_SIM_SAP_CONNECTION_STATUS_UNABLE_TO_ESTABLISH ,
-               TAPI_SIM_SAP_CONNECTION_STATUS_NOT_SUPPORT_MAX_SIZE,
-               TAPI_SIM_SAP_CONNECTION_STATUS_TOO_SMALL_MAX_SIZE
-       }TelSimSapConnectionStatus_t;
-*      @endcode
-* @param [out] pRequestId   Unique identifier for a particular request.
-*   - request_id value can be any value from 0 to 255 if the API is returned successfully
-*   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message:
-*      The event associated is below and the event data is #TelSimSapConnect_t.
-*      - TAPI_EVENT_SIM_SAP_CONNECT_CNF
-* @pre
-*      SAP supported sim used to testing
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tel_req_sap_connection.c
-* @brief       Test for the tel_req_sap_connection() API that is used to sap connect request
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "uts_tel_req_sap_connection.h"
-#include "sim_common.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_req_sap_connection_01, 1},
-       {utc_tel_req_sap_connection_02, 2},
-       {NULL, 0}
-};
-
-
-/*
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////
-*/
-// Prototype : User must add function body
-gboolean g_timeout_callback (void *data);
-
-// GMainLoop global handler
-GMainLoop *nw_context_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(nw_context_loop);
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       //GMainLoop *mainloop;
-       nw_context_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);
-       g_main_loop_run (nw_context_loop);
-
-       return 0;
-}
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////
-
-
-/*
-  User Defined Handler
-*/
-// Global variable for user data
-static BOOL gAsyncResult; //user defined data : Async callback is called or not
-
-// G_MAIN Utility : time out callback function
-gboolean g_timeout_callback (void *data)
-{
-       gAsyncResult = FALSE;
-       tet_printf("[SIM APP][TIME OUT] g_timeout called .Close g_main_roop()");
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)
-{
-    tet_printf("\n\n\n***************[SIM APP]Callback data **********************\n");
-    tet_printf("[SIM APP]Reques Id[%d]\n", sim_event->RequestId);
-    tet_printf("[SIM APP]event status [%d]\n", sim_event->Status);
-
-    gAsyncResult = FALSE;
-    BOOL bReceived = FALSE;
-
-    switch(sim_event->EventType)
-    {
-       case TAPI_EVENT_SIM_SAP_CONNECT_CNF:
-       {
-               tet_printf("\n[GOT THE EVENT]*******TAPI_EVENT_SIM_SAP_CONNECT_CNF:******\n");
-               TelSimSapConnect_t  *sap_conn_resp = (TelSimSapConnect_t*)sim_event->pData;
-
-               tet_printf("[SIM APP]SIM SAP connect request event status  = [%x]\n", sim_event->Status);
-//             tet_printf("[SIM APP] message id [%x]\n", sap_conn_resp->MsgId);
-//             tet_printf("[SIM APP]connection status [%x]\n ", sap_conn_resp->ConnectionStatus);
-//             tet_printf("[SIM APP]max message size [%d]\n", sap_conn_resp->MaxMsgSize);
-
-               bReceived = TRUE;
-               gAsyncResult = TRUE;
-       }
-       break;
-
-       case TAPI_EVENT_SIM_SAP_CONNECT_STATUS_CNF:
-       {
-               tet_printf("\n[GOT THE EVENT]*******TAPI_EVENT_SIM_SAP_CONNECT_STAT_CNF:******\n");
-               tet_printf("[SIM APP]SIM SAP connect event status = [%x]\n", sim_event->Status);
-
-               TelSimSapStatusInfo_t *sap_conn_status = (TelSimSapStatusInfo_t*)sim_event->pData;
-               tet_printf("[SIM APP] connection status info [%x]\n", *sap_conn_status);
-               bReceived = TRUE;
-               gAsyncResult = FALSE;
-       }
-       break;
-
-        default:
-        {
-               bReceived = TRUE;
-               gAsyncResult = FALSE;
-               tet_printf("Info : TAPI_EVENT_SIM_SAP_CONNECT_CNF = %d", TAPI_EVENT_SIM_SAP_CONNECT_CNF);
-               tet_printf("[SIM APP]***************** Undhandled event type [%d] *****************\n",sim_event->EventType);
-               tet_printf("[SIM APP]Undhandled event state [%d]\n",sim_event->Status);
-       }
-       break;
-    }//end switch
-
-    if (bReceived == TRUE)
-      G_MAIN_LOOP_CLOSE();
-
-    return 0;
-}
-
-
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-       tet_infoline("utc_tel_req_sap_connection Test Start\n");
-
-       if ( tel_init() == TAPI_API_SUCCESS)
-       {
-               if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_SAP_CONNECT_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL) )
-                       gStartupSuccess = TRUE;
-               else
-                       tet_infoline("startup fail. tel_register_event() failed");
-       } else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-       tel_register_app_name("org.samsung.test");
-       return;
-}
-
-
-static void cleanup()
-{
-    tet_infoline("utc_tel_req_sap_connection Test Finished\n");
-
-    if (gStartupSuccess == TRUE)
-       {
-               tel_deregister_event(subscription_id);
-       }
-       tel_deinit();
-
-    return;
-}
-
-/*
-  Unit Test Case functions
-*/
-
-/**
-* @brief tel_req_sap_connection() API : Negative condition(Second Parameter is Null)
-* @par ID: UTC_TEL_REQ_SAP_CONNECTION_01
-* @param [in] &pConnectionReq
-* @param [out]&sim_data = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_req_sap_connection_01()
-{
-       TET_STAMP_START("TAPI_API_INVALID_PTR 1");
-
-       TelSimSapConnect_t pConnectionReq;
-       pConnectionReq.MsgId = TAPI_SIM_SAP_CONNECT_REQ;
-       pConnectionReq.MaxMsgSize = 10; //temp for testing only - not clear
-
-    TET_CHECK(TAPI_API_INVALID_PTR,tel_req_sap_connection(&pConnectionReq,NULL));
-    TET_STAMP_PASS();
-    return;
-}
-
-
-/**
-* @brief tel_req_sap_connection() API : Negative condition(First Parameter is Null)
-* @par ID: UTC_TEL_REQ_SAP_CONNECTION_02
-* @param [in] &pConnectionReq = NULL
-* @param [out]&sim_data
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_req_sap_connection_02()
-{
-       TET_STAMP_START("TAPI_API_INVALID_PTR 2");
-
-       int pRequestId=0;
-       TET_CHECK(TAPI_API_INVALID_PTR,tel_req_sap_connection(NULL,&pRequestId));
-       TET_STAMP_PASS();
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_req_sap_connection.h b/TC/telephony_TC/sim/unit/uts_tel_req_sap_connection.h
deleted file mode 100644 (file)
index 2f551f4..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _uts_tel_req_sap_connection_H
-#define _uts_tel_req_sap_connection_H
-
-
-       static void utc_tel_req_sap_connection_01();
-       static void utc_tel_req_sap_connection_02();
-
-#endif
-
diff --git a/TC/telephony_TC/sim/unit/uts_tel_req_sap_connection_status.c b/TC/telephony_TC/sim/unit/uts_tel_req_sap_connection_status.c
deleted file mode 100644 (file)
index 3fee414..0000000
+++ /dev/null
@@ -1,275 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_CONNECT_STATUS_REQ tel_req_sap_connection_status
-*
-* @brief Unit test code for tel_req_sap_connection_status()
-* @par Test function Prototype:
-*      TapiResult_t tel_req_sap_connection_status(int* pRequestId);
-* @par Test function description:
-*      This API is used to request for the status of the requested SAP connection.
-* @par Important Notes:
-*      None
-* @param [out] pRequestId   Unique identifier for a particular request.
-*   - request_id value can be any value from 0 to 255 if the API is returned successfully
-*   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimSapStatusInfo_t. \n
-*      - TAPI_EVENT_SIM_SAP_CONNECT_STATUS_CNF
-* @pre
-*      - SAP supported sim used to testing
-*   - tel_req_sap_connection() function called
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tel_req_sap_connection_status.c
-* @brief       Test for the tel_req_sap_connection_status() API that is used to get phonebook entry info
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "uts_tel_req_sap_connection_status.h"
-#include "sim_common.h"
-
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_req_sap_connection_status_01, 1},
-       {utc_tel_req_sap_connection_status_02, 2},
-       {NULL, 0}
-};
-
-
-/*
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////
-*/
-// Prototype : User must add function body
-gboolean g_timeout_callback (void *data);
-
-// GMainLoop global handler
-GMainLoop *nw_context_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(nw_context_loop);
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       //GMainLoop *mainloop;
-       nw_context_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);
-       g_main_loop_run (nw_context_loop);
-
-       return 0;
-}
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////
-
-
-/*
-  User Defined Handler
-*/
-// Global variable for user data
-static BOOL gAsyncResult; //user defined data : Async callback is called or not
-
-// G_MAIN Utility : time out callback function
-gboolean g_timeout_callback (void *data)
-{
-       gAsyncResult = FALSE;
-       tet_printf("[SIM APP][TIME OUT] g_timeout called .Close g_main_roop()");
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-
-
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)
-{
-    tet_printf("\n\n\n***************[SIM APP]Callback data **********************\n");
-    tet_printf("[SIM APP]Reques Id[%d]\n", sim_event->RequestId);
-    tet_printf("[SIM APP]event status [%d]\n", sim_event->Status);
-
-    gAsyncResult = FALSE;
-    BOOL bReceived = FALSE;
-
-    switch(sim_event->EventType)
-    {
-       case TAPI_EVENT_SIM_SAP_CONNECT_CNF:
-       {
-               tet_printf("\n[GOT THE EVENT]*******TAPI_EVENT_SIM_SAP_CONNECT_CNF:******\n");
-               TelSimSapConnect_t  *sap_conn_resp = (TelSimSapConnect_t*)sim_event->pData;
-
-               tet_printf("[SIM APP]SIM SAP connect request event status  = [%x]\n", sim_event->Status);
-               tet_printf("[SIM APP] message id [%x]\n", sap_conn_resp->MsgId);
-               tet_printf("[SIM APP]connection status [%x]\n ", sap_conn_resp->ConnectionStatus);
-               tet_printf("[SIM APP]max message size [%d]\n", sap_conn_resp->MaxMsgSize);
-
-               bReceived = TRUE;
-               if (sap_conn_resp->ConnectionStatus==0)
-                       gAsyncResult = TRUE;
-               else
-                       gAsyncResult = FALSE;
-       }
-       break;
-
-       case TAPI_EVENT_SIM_SAP_CONNECT_STATUS_CNF:
-       {
-               tet_printf("\n[GOT THE EVENT]*******TAPI_EVENT_SIM_SAP_CONNECT_STAT_CNF:******\n");
-               tet_printf("[SIM APP]SIM SAP connect event status = [%x]\n", sim_event->Status);
-
-               TelSimSapStatusInfo_t *sap_conn_status = (TelSimSapStatusInfo_t*)sim_event->pData;
-               tet_printf("[SIM APP] connection status info [%x]\n", *sap_conn_status);
-               bReceived = TRUE;
-               gAsyncResult = TRUE;
-       }
-       break;
-
-        default:
-        {
-               bReceived = TRUE;
-               gAsyncResult = FALSE;
-               tet_printf("Info : TAPI_EVENT_SIM_SAP_CONNECT_CNF = %d", TAPI_EVENT_SIM_SAP_CONNECT_CNF);
-               tet_printf("[SIM APP]***************** Undhandled event type [%d] *****************\n",sim_event->EventType);
-               tet_printf("[SIM APP]Undhandled event state [%d]\n",sim_event->Status);
-       }
-       break;
-    }//end switch
-
-    if (bReceived == TRUE)
-      G_MAIN_LOOP_CLOSE();
-
-    return 0;
-}
-
-
-
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-    tet_infoline("utc_tel_req_sap_connection_status Test Start\n");
-
-       if ( tel_init() == TAPI_API_SUCCESS)
-       {
-               if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_SAP_CONNECT_STATUS_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL) )
-                       gStartupSuccess = TRUE;
-               else
-                       tet_infoline("startup fail. tel_register_event() failed");
-       } else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
- tel_register_app_name("org.samsung.test");
-    return;
-}
-
-
-static void cleanup()
-{
-    tet_infoline("utc_tel_req_sap_connection_status Test Finished\n");
-
-       if (gStartupSuccess == TRUE)
-       {
-               tel_deregister_event(subscription_id);
-       }
-       tel_deinit();
-
-    return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
-* @brief tel_req_sap_connection_status() API : Positive condition
-* @par ID: UTC_TEL_REQ_SAP_CONNECTIOn_STATUS_01
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS and async result
-*/
-void utc_tel_req_sap_connection_status_01()
-{
-       TET_STAMP_START("TAPI_API_INVALID_PTR 1");
-       int requestId =0;
-       int tapiRet = TAPI_API_SUCCESS;
-       gAsyncResult = FALSE;
-       tapiRet = tel_req_sap_connection_status(&requestId);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,TAPI_API_SUCCESS,tapiRet);
-       
-    tet_printf("after real tc api - wait start");
-
-    G_MAIN_LOOP_RUN(3);
-
-    tet_printf("after real tc api - wait stop");
-
-
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != FALSE, then TET_FAIL and return
-       TET_STAMP_PASS();
-}
-
-/**
-* @brief tel_req_sap_connection_status() API : Negative condition(NULL Parameter test)
-* @par ID: UTC_TEL_REQ_SAP_CONNECTIOn_STATUS_02
-* @param [out] &pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_req_sap_connection_status_02()
-{
-       TET_STAMP_START("TAPI_API_INVALID_PTR");
-       TET_CHECK(TAPI_API_INVALID_PTR, tel_req_sap_connection_status(NULL));
-       TET_STAMP_PASS();
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_req_sap_connection_status.h b/TC/telephony_TC/sim/unit/uts_tel_req_sap_connection_status.h
deleted file mode 100644 (file)
index eb27814..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TEL_REQ_SAP_CONNECTIOn_STATUS_H
-#define _UTS_TEL_REQ_SAP_CONNECTIOn_STATUS_H
-       static void utc_tel_req_sap_connection_status_01();
-       static void utc_tel_req_sap_connection_status_02();
-
-#endif
diff --git a/TC/telephony_TC/sim/unit/uts_tel_req_sap_power_operation.c b/TC/telephony_TC/sim/unit/uts_tel_req_sap_power_operation.c
deleted file mode 100644 (file)
index a563324..0000000
+++ /dev/null
@@ -1,405 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_SAP_SET_POWER tel_req_sap_power_operation
-*
-* @brief Unit test code for tel_req_sap_power_operation()
-* @par Test function Prototype:
-*      TapiResult_t tel_req_sap_power_operation(TelSimSapMsgId_t MsgId,  int* pRequestId );
-* @par Test function description:
-*      This API is used to set the SIM power level for SAP.
-* @par Important Notes:
-*      None
-* @param [in] MsgId
-*      This enum gives the SAP message Ids between SAP client and SAP server.
-*      @code
-       // This enum gives the SAP message Ids between SAP client and SAP server.
-       typedef enum
-       {
-               TAPI_SIM_SAP_CONNECT_REQ                = 0x00,
-               TAPI_SIM_SAP_CONNECT_RESP               = 0x01,
-               TAPI_SIM_SAP_DISCONNECT_REQ             = 0x02,
-               TAPI_SIM_SAP_DISCONNECT_RESP            = 0x03,
-               TAPI_SIM_SAP_DISCONNECT_IND             = 0x04,
-               TAPI_SIM_SAP_TRANSFER_APDU_REQ          = 0x05,
-               TAPI_SIM_SAP_TRANSFER_APDU_RESP         = 0x06,
-               TAPI_SIM_SAP_TRANSFER_ATR_REQ           = 0x07,
-               TAPI_SIM_SAP_TRANSFER_ATR_RESP          = 0x08,
-               TAPI_SIM_SAP_POWER_SIM_OFF_REQ          = 0x09,
-               TAPI_SIM_SAP_POWER_SIM_OFF_RESP         = 0x0A,
-               TAPI_SIM_SAP_POWER_SIM_ON_REQ           = 0x0B,
-               TAPI_SIM_SAP_POWER_SIM_ON_RESP          = 0x0C,
-               TAPI_SIM_SAP_RESET_SIM_REQ              = 0x0D,
-               TAPI_SIM_SAP_RESET_SIM_RESP             = 0x0E,
-               TAPI_SIM_SAP_TRANSFER_CARD_READER_STATUS_REQ    = 0x0F,
-               TAPI_SIM_SAP_TRANSFER_CARD_READER_STATUS_RESP   = 0x10,
-               TAPI_SIM_SAP_STATUS_IND                 = 0x11,
-               TAPI_SIM_SAP_ERROR_RESP                 = 0x12,
-               TAPI_SIM_SAP_SET_TRANSPORT_PROTOCOL_REQ  = 0x13,
-               TAPI_SIM_SAP_SET_TRANSPORT_PROTOCOL_RESP = 0x14
-       }TelSimSapMsgId_t;
-*      @endcode
-* @param [out] pRequestId   Unique identifier for a particular request.
-*   - request_id value can be any value from 0 to 255 if the API is returned successfully
-*   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimSapPower_t. \n
-*      - TAPI_EVENT_SIM_SAP_SET_SIM_POWER_CNF
-* @pre
-*      - SAT supported SIM used for test
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tel_req_sap_power_operation.c
-* @brief       Test for the tel_req_sap_power_operation() API that is used to sap set power
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "uts_tel_req_sap_power_operation.h"
-#include "sim_common.h"
-
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_req_sap_power_operation_01, 1},
-       {utc_tel_req_sap_power_operation_02, 2},
-       {utc_tel_req_sap_power_operation_03, 3},
-       {utc_tel_req_sap_power_operation_04, 4},
-       {NULL, 0}
-};
-
-
-/*
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////
-*/
-// Prototype : User must add function body
-gboolean g_timeout_callback (void *data);
-
-// GMainLoop global handler
-GMainLoop *nw_context_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(nw_context_loop);
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       //GMainLoop *mainloop;
-       nw_context_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);
-       g_main_loop_run (nw_context_loop);
-
-       return 0;
-}
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////
-
-
-/*
-  User Defined Handler
-*/
-// Global variable for user data
-static BOOL gAsyncResult; //user defined data : Async callback is called or not
-
-// G_MAIN Utility : time out callback function
-gboolean g_timeout_callback (void *data)
-{
-       gAsyncResult = FALSE;
-       tet_printf("[SIM APP][TIME OUT] g_timeout called .Close g_main_roop()");
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-
-
-static int sim_sap_process_for_condition(int wish_condition)
-{
-       TelSimSapConnect_t pConnectionReq;
-       int pRequestId=0;
-       int tapiRet = TAPI_API_SUCCESS;
-       
-       tet_printf("sap wish condition[%d]:0-disconnect, 1-connect",wish_condition);
-
-       if(wish_condition == 1)
-       {
-               pConnectionReq.MsgId = TAPI_SIM_SAP_CONNECT_REQ;
-       }
-       else
-       {
-               pConnectionReq.MsgId = TAPI_SIM_SAP_DISCONNECT_REQ;
-       }
-
-       pConnectionReq.MaxMsgSize = 10; //temp for testing only - not clear
-               
-       gAsyncResult = FALSE;
-               
-       tapiRet = tel_req_sap_connection(&pConnectionReq,&pRequestId);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,TAPI_API_SUCCESS,tapiRet);
-               
-       G_MAIN_LOOP_RUN(2);
-
-       if(gAsyncResult == TRUE)
-               return 0;
-       else
-               return -1;
-
-}
-
-
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)
-{
-    tet_printf("\n\n\n***************[SIM APP]Callback data **********************\n");
-    tet_printf("[SIM APP]Reques Id[%d]\n", sim_event->RequestId);
-    tet_printf("[SIM APP]event status [%d]\n", sim_event->Status);
-
-    gAsyncResult = FALSE;
-    BOOL bReceived = FALSE;
-
-    switch(sim_event->EventType)
-    {
-       case TAPI_EVENT_SIM_SAP_CONNECT_CNF:
-       {
-               tet_printf("\n[GOT THE EVENT]*******TAPI_EVENT_SIM_SAP_CONNECT_CNF:******\n");
-               TelSimSapConnect_t  *sap_conn_resp = (TelSimSapConnect_t*)sim_event->pData;
-
-               tet_printf("[SIM APP]SIM SAP connect request event status  = [%x]\n", sim_event->Status);
-               tet_printf("[SIM APP] message id [%x]\n", sap_conn_resp->MsgId);
-               tet_printf("[SIM APP]connection status [%x]\n ", sap_conn_resp->ConnectionStatus);
-               tet_printf("[SIM APP]max message size [%d]\n", sap_conn_resp->MaxMsgSize);
-
-               bReceived = TRUE;
-               if (sap_conn_resp->ConnectionStatus==0)
-                       gAsyncResult = TRUE;
-               else
-                       gAsyncResult = FALSE;
-       }
-       break;
-
-       case TAPI_EVENT_SIM_SAP_SET_SIM_POWER_CNF:
-       {
-               tet_printf("\n[GOT THE EVENT]*******TAPI_EVENT_SIM_SAP_SET_SIM_POWER_CNF:******\n");
-               tet_printf("[SIM APP]SIM SAP connect event status = [%x]\n", sim_event->Status);
-
-               TelSimSapPower_t *sap_status = (TelSimSapPower_t*)sim_event->pData;
-//             tet_printf("[SIM APP] sap_status->MsgID = %d\n", sap_status->MsgId);
-//             tet_printf("[SIM APP] sap_status->SimPowerResult = %d  (enum TelSimSapResultCode_t) \n", sap_status->SimPowerResult);
-               bReceived = TRUE;
-               gAsyncResult = TRUE;
-       }
-       break;
-
-        default:
-        {
-               bReceived = TRUE;
-               gAsyncResult = FALSE;
-               tet_printf("Info : TAPI_EVENT_SIM_SAP_SET_SIM_POWER_CNF = %d", TAPI_EVENT_SIM_SAP_SET_SIM_POWER_CNF);
-               tet_printf("[SIM APP]***************** Undhandled event type [%d] *****************\n",sim_event->EventType);
-               tet_printf("[SIM APP]Undhandled event state [%d]\n",sim_event->Status);
-       }
-       break;
-    }//end switch
-
-    if (bReceived == TRUE)
-      G_MAIN_LOOP_CLOSE();
-
-    return 0;
-}
-
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-    tet_infoline("utc_tel_req_sap_power_operation Test Start\n");
-
-       if ( tel_init() == TAPI_API_SUCCESS)
-       {
-               tel_register_event(TAPI_EVENT_SIM_SAP_CONNECT_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);
-               tel_register_event(TAPI_EVENT_SIM_SAP_SET_SIM_POWER_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);                
-
-               gStartupSuccess = TRUE;
-       } else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-       tel_register_app_name("org.samsung.test");
-    return;
-}
-
-
-static void cleanup()
-{
-    tet_infoline("utc_tel_req_sap_power_operation Test Finished\n");
-
-    if (gStartupSuccess == TRUE)
-       {
-               tel_deregister_event(subscription_id);
-       }
-       tel_deinit();
-
-    return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-/**
-* @brief tel_req_sap_power_operation() API : Negative condition(Lower bound test)
-* @par ID: UTC_TEL_REQ_SAP_pOWER_OPErATION_01
-* @param [in] MsgId = TAPI_SIM_SAP_CONNECT_REQ-1; // Lower bound
-* @param [out]&pRequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-void utc_tel_req_sap_power_operation_01()
-{
-    tet_infoline("TAPI_API_INVALID_INPUT 1");
-
-    TelSimSapMsgId_t MsgId = TAPI_SIM_SAP_CONNECT_REQ-1;
-    int pRequestId=0;
-
-    TapiResult_t error = tel_req_sap_power_operation(MsgId,&pRequestId);
-    TET_CHECK( TAPI_API_INVALID_INPUT,error);
-    TET_STAMP_PASS();
-}
-
-/**
-* @brief tel_req_sap_power_operation() API : Negative condition(Upper bound test)
-* @par ID: UTC_TEL_REQ_SAP_pOWER_OPErATION_02
-* @param [in] MsgId = TAPI_SIM_SAP_SET_TRANSPORT_PROTOCOL_RESP+1; // Upper bound
-* @param [out]&pRequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-void utc_tel_req_sap_power_operation_02()
-{
-    tet_infoline("TAPI_API_INVALID_INPUT 2");
-
-    TelSimSapMsgId_t MsgId = TAPI_SIM_SAP_SET_TRANSPORT_PROTOCOL_RESP+1;
-    int pRequestId=0;
-
-    TapiResult_t error = tel_req_sap_power_operation(MsgId,&pRequestId);
-    TET_CHECK( TAPI_API_INVALID_INPUT,error);
-    TET_STAMP_PASS();
-}
-
-/**
-* @brief tel_req_sap_power_operation() API : Negative condition(NULL parameter test)
-* @par ID: UTC_TEL_REQ_SAP_pOWER_OPErATION_03
-* @param [in] MsgId
-* @param [out]&pRequestId = NULL; // NULL parameter
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_req_sap_power_operation_03()
-{
-    tet_infoline("TAPI_API_INVALID_PTR 1");
-
-    TelSimSapMsgId_t MsgId = TAPI_SIM_SAP_SET_TRANSPORT_PROTOCOL_RESP+1;
-    TapiResult_t error = tel_req_sap_power_operation(MsgId,NULL);
-    TET_CHECK( TAPI_API_INVALID_PTR,error);
-    TET_STAMP_PASS();
-}
-
-/**
-* @brief tel_req_sap_power_operation() API : Positive condition(Normal operation)
-* @par ID: UTC_TEL_REQ_SAP_pOWER_OPErATION_04
-* @param [in] MsgId = TAPI_SIM_SAP_POWER_SIM_ON_REQ;
-* @param [out]&pRequestId
-* @return TAPI_API_SUCCESS
-* The event associated is below and the event data is #TelSimSapPower_t. \n
-*      - TAPI_EVENT_SIM_SAP_SET_SIM_POWER_CNF
-*/
-void utc_tel_req_sap_power_operation_04()
-{
-    tet_infoline("Normal operation");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-    TelSimSapMsgId_t MsgId = (TelSimSapMsgId_t) TAPI_SIM_SAP_POWER_SIM_ON_REQ;
-    int pRequestId=0;
-       int tapiRet = TAPI_API_SUCCESS;
-#if 0 // we assume sap connect on.
-       // Step 1 : make proper condition
-       tet_printf("Step 1 : sap connect");
-       
-       if( 0 != sim_sap_process_for_condition(1))
-       {
-               tet_printf("condition set is failed!!");
-               return;
-       }
-#endif 
-       gAsyncResult = FALSE;
-       
-       tapiRet = tel_req_sap_power_operation(MsgId,&pRequestId);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,TAPI_API_SUCCESS,tapiRet);
-               
-       G_MAIN_LOOP_RUN(3);
-               
-       TET_RESULT_NOT_EQUAL_GOTO(TET_FAIL,exit,gAsyncResult,TRUE);
-       TET_RESULT_EQUAL_GOTO(TET_PASS,exit,gAsyncResult,TRUE);
-               
-exit:
-#if 0 // we assume sap connect on.     
-       // Step 3 : make default condition
-       tet_printf("Step 3 : disconnect sap");
-               
-       if( 0 != sim_sap_process_for_condition(0))
-       {
-               tet_printf("condition set is failed!!");
-       }
-#endif 
-       gAsyncResult = FALSE;
-       return;
-}
-
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_req_sap_power_operation.h b/TC/telephony_TC/sim/unit/uts_tel_req_sap_power_operation.h
deleted file mode 100644 (file)
index 6100272..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _uts_tel_req_sap_power_operation_H
-#define _uts_tel_req_sap_power_operation_H
-
-       static void utc_tel_req_sap_power_operation_01();
-       static void utc_tel_req_sap_power_operation_02();
-       static void utc_tel_req_sap_power_operation_03();
-       static void utc_tel_req_sap_power_operation_04();
-
-#endif
diff --git a/TC/telephony_TC/sim/unit/uts_tel_req_sap_transfer_apdu.c b/TC/telephony_TC/sim/unit/uts_tel_req_sap_transfer_apdu.c
deleted file mode 100644 (file)
index 5ad78d9..0000000
+++ /dev/null
@@ -1,423 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_PSAP_TRANSFER_APDU tel_req_sap_transfer_apdu
-*
-* @brief Unit test code for tel_req_sap_transfer_apdu()
-* @par Test function Prototype:
-*      TapiResult_t tel_req_sap_transfer_apdu(TelSimSapApduData_t *pApduData,  int* pRequestId);
-* @par Test function description:
-*      This API is used to transfer APDU from SIM using SAP.
-* @par Important Notes:
-*      None
-* @param [in] pApduData    SAP APDU data
-*      @code
-       typedef struct
-       {
-               unsigned char   ApduLength;
-               unsigned char   Apdu[TAPI_SIM_APDU_MAX_LEN];
-       }TelSimSapApduData_t;
-*      @endcode
-* @param [out] pRequestId   Unique identifier for a particular request.
-*   - request_id value can be any value from 0 to 255 if the API is returned successfully
-*   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimSapApduData_t. \n
-*      - TAPI_EVENT_SIM_SAP_TRANSFER_APDU_CNF
-* @pre
-*      SAP supported sim used to testing
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tel_req_sap_transfer_apdu.c
-* @brief       Test for the tel_req_sap_transfer_apdu() API that is used to transfer APDU
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "sim_common.h"
-#include "uts_tel_req_sap_transfer_apdu.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_req_sap_transfer_apdu_01, 1},
-       {utc_tel_req_sap_transfer_apdu_02, 2},
-       {utc_tel_req_sap_transfer_apdu_03, 3},
-       {NULL, 0}
-};
-
-
-
-/*
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////
-*/
-// Prototype : User must add function body
-gboolean g_timeout_callback (void *data);
-
-// GMainLoop global handler
-GMainLoop *nw_context_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(nw_context_loop);
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       //GMainLoop *mainloop;
-       nw_context_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);
-       g_main_loop_run (nw_context_loop);
-
-       return 0;
-}
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////
-
-
-/*
-  User Defined Handler
-*/
-// Global variable for user data
-static BOOL gAsyncResult; //user defined data : Async callback is called or not
-
-// G_MAIN Utility : time out callback function
-gboolean g_timeout_callback (void *data)
-{
-       gAsyncResult = FALSE;
-       tet_printf("[SIM APP][TIME OUT] g_timeout called .Close g_main_roop()");
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-
-
-static int sim_sap_process_for_condition(int wish_condition)
-{
-       TelSimSapConnect_t pConnectionReq;
-       int pRequestId=0;
-       int tapiRet = TAPI_API_SUCCESS;
-       
-       tet_printf("sap wish condition[%d]:0-disconnect, 1-connect",wish_condition);
-
-       if(wish_condition == 1)
-       {
-               pConnectionReq.MsgId = TAPI_SIM_SAP_CONNECT_REQ;
-       }
-       else
-       {
-               pConnectionReq.MsgId = TAPI_SIM_SAP_DISCONNECT_REQ;
-       }
-
-       pConnectionReq.MaxMsgSize = 10; //temp for testing only - not clear
-               
-       gAsyncResult = FALSE;
-               
-       tapiRet = tel_req_sap_connection(&pConnectionReq,&pRequestId);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,TAPI_API_SUCCESS,tapiRet);
-               
-       G_MAIN_LOOP_RUN(2);
-
-       if(gAsyncResult == TRUE)
-               return 0;
-       else
-               return -1;
-
-}
-
-
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)
-{
-    tet_printf("\n\n\n***************[SIM APP]Callback data **********************\n");
-    tet_printf("[SIM APP]Reques Id[%d]\n", sim_event->RequestId);
-    tet_printf("[SIM APP]event status [%d]\n", sim_event->Status);
-
-    gAsyncResult = FALSE;
-    BOOL bReceived = FALSE;
-
-    switch(sim_event->EventType)
-    {
-               case TAPI_EVENT_SIM_SAP_CONNECT_CNF:
-               {
-                       tet_printf("\n[GOT THE EVENT]*******TAPI_EVENT_SIM_SAP_CONNECT_CNF:******\n");
-                       TelSimSapConnect_t      *sap_conn_resp = (TelSimSapConnect_t*)sim_event->pData;
-               
-                       tet_printf("[SIM APP]SIM SAP connect request event status  = [%x]\n", sim_event->Status);
-               //              tet_printf("[SIM APP] message id [%x]\n", sap_conn_resp->MsgId);
-               //              tet_printf("[SIM APP]connection status [%x]\n ", sap_conn_resp->ConnectionStatus);
-               //              tet_printf("[SIM APP]max message size [%d]\n", sap_conn_resp->MaxMsgSize);
-               
-                       bReceived = TRUE;
-                       gAsyncResult = TRUE;
-               }
-               break;
-
-       case TAPI_EVENT_SIM_SAP_TRANSFER_APDU_CNF:
-       {
-               tet_printf("\n[GOT THE EVENT]*****TAPI_EVENT_SIM_SAP_TRANSFER_APDU_CNF******\n");
-
-               int i = 0;
-               TelSimSapApduData_t *sap_transfer_apdu = (TelSimSapApduData_t*)sim_event->pData;
-
-               tet_printf("[SIM APP]SIM SAP trasfer APDU event status  = [%x]\n", sim_event->Status);
-       //      tet_printf(" [SIM APP]APDU  length [%x]\n", sap_transfer_apdu->ApduLength);
-       //      tet_printf(" [SIM APP]APDU  data ---> \n" );
-       //      for(i =0 ; i<sap_transfer_apdu->ApduLength;  i++ )
-       //              tet_printf(" [%x]", sap_transfer_apdu->Apdu[i]);
-
-               bReceived = TRUE;
-               gAsyncResult = TRUE;
-       }
-       break;
-
-       case TAPI_EVENT_SIM_SAP_TRANSFER_ATR_CNF:
-       {
-               tet_printf("[SIM APP]*********** SAP TRANSFER ATR *************\n");
-
-               int i = 0;
-               TelSimSapAtrInfo_t *sap_transfer_atr = (TelSimSapAtrInfo_t*)sim_event->pData;
-
-               tet_printf("[SIM APP]SIM SAP trasfer ATR event status  = [%x]\n", sim_event->Status);
-
-               tet_printf(" [SIM APP]ATR result [%x]\n", sap_transfer_atr->AtrResult);
-               tet_printf(" [SIM APP]ATR length [%x]\n", sap_transfer_atr->AtrLength);
-               tet_printf(" [SIM APP]ATR data ---> \n" );
-
-               for(i =0 ; i<sap_transfer_atr->AtrLength; i++ )
-                       tet_printf(" [SIM APP][%x]", sap_transfer_atr->AtrData[i]);
-
-               bReceived = TRUE;
-               gAsyncResult = TRUE;
-       }
-       break;
-
-        default:
-        {
-               bReceived = TRUE;
-               gAsyncResult = FALSE;
-               tet_printf("Info : TAPI_EVENT_SIM_SAP_CONNECT_CNF = %d", TAPI_EVENT_SIM_SAP_CONNECT_CNF);
-               tet_printf("[SIM APP]***************** Undhandled event type [%d] *****************\n",sim_event->EventType);
-               tet_printf("[SIM APP]Undhandled event state [%d]\n",sim_event->Status);
-       }
-       break;
-    }//end switch
-
-    if (bReceived == TRUE)
-      G_MAIN_LOOP_CLOSE();
-
-    return 0;
-}
-
-
-
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-    tet_infoline("utc_tel_req_sap_transfer_apdu Test Start\n");
-
-       if ( tel_init() == TAPI_API_SUCCESS)
-       {
-               tel_register_event(TAPI_EVENT_SIM_SAP_CONNECT_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);
-               tel_register_event(TAPI_EVENT_SIM_SAP_TRANSFER_APDU_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);
-
-               gStartupSuccess = TRUE;
-       } else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-       tel_register_app_name("org.samsung.test");
-    return;
-}
-
-
-static void cleanup()
-{
-    tet_infoline("utc_tel_req_sap_transfer_apdu Test Finished\n");
-
-    if (gStartupSuccess == TRUE)
-       {
-               tel_deregister_event(subscription_id);
-       }
-       tel_deinit();
-
-    return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
-* @brief tel_req_sap_transfer_apdu() API : Negative condition(Parameter is Null)
-* @par ID: UTC_TEL_REQ_SAP_TRANSFER_APDU_01
-* @param [in] pApduData
-* @param [out]&sim_data = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_req_sap_transfer_apdu_01()
-{
-       TET_STAMP_START("TAPI_API_INVALID_PTR ");
-       int file_id = TAPI_SIM_EFILE_ICCID;
-
-       /* for selecting EF ICCID */
-       TelSimSapApduData_t  apdu_data;
-       int pRequestId=0;
-       apdu_data.ApduLength = 7;
-       apdu_data.Apdu[0] = 0xA0; // class
-       apdu_data.Apdu[1] = 0xA4; // instruction
-       apdu_data.Apdu[2] = 0; // p1 = parameter 1
-       apdu_data.Apdu[3] = 0; // p2 = parameter 2
-       apdu_data.Apdu[4] = 2; // p3 - parameter 3
-
-       memcpy(&apdu_data.Apdu[5], &file_id, sizeof(unsigned short));
-
-       TapiResult_t error = tel_req_sap_transfer_apdu(&apdu_data,NULL);
-       TET_CHECK(TAPI_API_INVALID_PTR, error);
-       TET_STAMP_PASS();
-       
-}
-
-/**
-* @brief tel_req_sap_transfer_apdu() API : Negative condition(Parameter is Null)
-* @par ID: UTC_TEL_REQ_SAP_TRANSFER_APDU_02
-* @param [in] pApduData = NULL
-* @param [out]&sim_data
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_req_sap_transfer_apdu_02()
-{
-       TET_STAMP_START("TAPI_API_INVALID_PTR ");
-       int pRequestId=0;
-       TapiResult_t error = tel_req_sap_transfer_apdu(NULL,&pRequestId);
-       TET_CHECK(TAPI_API_INVALID_PTR, error);
-       TET_STAMP_PASS();
-}
-
-/**
-* @brief tel_req_sap_transfer_apdu() API : Positive condition(Request to transfer Apdu)
-* @par ID: UTC_TEL_REQ_SAP_TRANSFER_APDU_03
-* @param [in] pApduData
-*      @code
-       int file_id = TAPI_SIM_EFILE_ICCID;
-
-       // for selecting EF ICCID
-       TelSimSapApduData_t  apdu_data;
-       int pRequestId=0;
-       apdu_data.ApduLength = 7;
-       apdu_data.Apdu[0] = 0xA0; // class
-       apdu_data.Apdu[1] = 0xA4; // instruction
-       apdu_data.Apdu[2] = 0;    // p1 = parameter 1
-       apdu_data.Apdu[3] = 0;    // p2 = parameter 2
-       apdu_data.Apdu[4] = 2;    // p3 - parameter 3
-       memcpy(&apdu_data.Apdu[5], &file_id, sizeof(unsigned short));
-*      @endcode
-* @param [out]&sim_data = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_req_sap_transfer_apdu_03()
-{
-       TET_STAMP_START("Normal operation ");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       int file_id = TAPI_SIM_EFILE_ICCID;
-       int tapiRet = TAPI_API_SUCCESS;
-       int pRequestId=0;
-       
-       /* for selecting EF ICCID */
-       TelSimSapApduData_t  apdu_data;
-
-       apdu_data.ApduLength = 7;
-       apdu_data.Apdu[0] = 0xA0; // class
-       apdu_data.Apdu[1] = 0xA4; // instruction
-       apdu_data.Apdu[2] = 0; // p1 = parameter 1
-       apdu_data.Apdu[3] = 0; // p2 = parameter 2
-       apdu_data.Apdu[4] = 2; // p3 - parameter 3
-
-       memcpy(&apdu_data.Apdu[5], &file_id, sizeof(unsigned short));
-#if 0 // we assume sap connect on.
-       // Step 1 : make proper condition
-       tet_printf("Step 1 : sap connect");
-       
-       if( 0 != sim_sap_process_for_condition(1))
-       {
-               tet_printf("condition set is failed!!");
-               return;
-       }
-#endif 
-       gAsyncResult = FALSE;
-       
-       tapiRet = tel_req_sap_transfer_apdu(&apdu_data,&pRequestId);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,TAPI_API_SUCCESS,tapiRet);
-               
-       G_MAIN_LOOP_RUN(3);
-               
-       TET_RESULT_NOT_EQUAL_GOTO(TET_FAIL,exit,gAsyncResult,TRUE);
-       TET_RESULT_EQUAL_GOTO(TET_PASS,exit,gAsyncResult,TRUE);
-               
-exit:
-#if 0 // we use connection status until finishing sap related api test.
-
-       // Step 3 : make default condition
-       tet_printf("Step 3 : disconnect sap");
-               
-       if( 0 != sim_sap_process_for_condition(0))
-       {
-               tet_printf("condition set is failed!!");
-       }
-#endif 
-       gAsyncResult = FALSE;
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_req_sap_transfer_apdu.h b/TC/telephony_TC/sim/unit/uts_tel_req_sap_transfer_apdu.h
deleted file mode 100644 (file)
index bc2aaaf..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _uts_tel_req_sap_transfer_apdu_H
-#define _uts_tel_req_sap_transfer_apdu_H
-
-       static void utc_tel_req_sap_transfer_apdu_01();
-       static void utc_tel_req_sap_transfer_apdu_02();
-       static void utc_tel_req_sap_transfer_apdu_03();
-
-#endif
-
diff --git a/TC/telephony_TC/sim/unit/uts_tel_req_sap_transfer_atr.c b/TC/telephony_TC/sim/unit/uts_tel_req_sap_transfer_atr.c
deleted file mode 100644 (file)
index 48c8b7c..0000000
+++ /dev/null
@@ -1,344 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_SAP_TRANSFER_ATR_REQUEST tel_req_sap_transfer_atr
-*
-* @brief Unit test code for tel_req_sap_transfer_atr()
-* @par Test function Prototype:
-*      TapiResult_t tel_req_sap_transfer_atr(int* pRequestId);
-* @par Test function description:
-*      This API is used to request for an external SAP connection.
-* @par Important Notes:
-*      None
-* @param [out] pRequestId   Unique identifier for a particular request.
-*   - request_id value can be any value from 0 to 255 if the API is returned successfully
-*   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimSapAtrInfo_t. \n
-*      - TAPI_EVENT_SIM_SAP_TRANSFER_ATR_CNF
-* @pre
-*      SAP supported sim used to testing
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tel_req_sap_transfer_atr_request.c
-* @brief       Test for the tel_req_sap_transfer_atr() API that is used to transfer atr request
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "sim_common.h"
-#include "uts_tel_req_sap_transfer_atr.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_req_sap_transfer_atr_01, 1},
-       {utc_tel_req_sap_transfer_atr_02, 2},
-       {NULL, 0}
-};
-
-
-
-/*
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////
-*/
-// Prototype : User must add function body
-gboolean g_timeout_callback (void *data);
-
-// GMainLoop global handler
-GMainLoop *nw_context_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(nw_context_loop);
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       //GMainLoop *mainloop;
-       nw_context_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);
-       g_main_loop_run (nw_context_loop);
-
-       return 0;
-}
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////
-
-
-/*
-  User Defined Handler
-*/
-// Global variable for user data
-static BOOL gAsyncResult; //user defined data : Async callback is called or not
-
-// G_MAIN Utility : time out callback function
-gboolean g_timeout_callback (void *data)
-{
-       gAsyncResult = FALSE;
-       tet_printf("[SIM APP][TIME OUT] g_timeout called .Close g_main_roop()");
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-
-
-static int sim_sap_process_for_condition(int wish_condition)
-{
-       TelSimSapConnect_t pConnectionReq;
-       int pRequestId=0;
-       int tapiRet = TAPI_API_SUCCESS;
-       
-       tet_printf("sap wish condition[%d]:0-disconnect, 1-connect",wish_condition);
-
-       if(wish_condition == 1)
-       {
-               pConnectionReq.MsgId = TAPI_SIM_SAP_CONNECT_REQ;
-       }
-       else
-       {
-               pConnectionReq.MsgId = TAPI_SIM_SAP_DISCONNECT_REQ;
-       }
-
-       pConnectionReq.MaxMsgSize = 10; //temp for testing only - not clear
-               
-       gAsyncResult = FALSE;
-               
-       tapiRet = tel_req_sap_connection(&pConnectionReq,&pRequestId);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,TAPI_API_SUCCESS,tapiRet);
-               
-       G_MAIN_LOOP_RUN(5);
-
-       if(gAsyncResult == TRUE)
-               return 0;
-       else
-               return -1;
-
-}
-
-
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)
-{
-    tet_printf("\n\n\n***************[SIM APP]Callback data **********************\n");
-    tet_printf("[SIM APP]Reques Id[%d]\n", sim_event->RequestId);
-    tet_printf("[SIM APP]event status [%d]\n", sim_event->Status);
-
-    gAsyncResult = FALSE;
-    BOOL bReceived = FALSE;
-
-    switch(sim_event->EventType)
-    {
-               case TAPI_EVENT_SIM_SAP_CONNECT_CNF:
-               {
-                       tet_printf("\n[GOT THE EVENT]*******TAPI_EVENT_SIM_SAP_CONNECT_CNF:******\n");
-                       TelSimSapConnect_t      *sap_conn_resp = (TelSimSapConnect_t*)sim_event->pData;
-               
-                       tet_printf("[SIM APP]SIM SAP connect request event status  = [%x]\n", sim_event->Status);
-               //              tet_printf("[SIM APP] message id [%x]\n", sap_conn_resp->MsgId);
-               //              tet_printf("[SIM APP]connection status [%x]\n ", sap_conn_resp->ConnectionStatus);
-               //              tet_printf("[SIM APP]max message size [%d]\n", sap_conn_resp->MaxMsgSize);
-               
-                       bReceived = TRUE;
-                       gAsyncResult = TRUE;
-               }
-               break;
-
-       case TAPI_EVENT_SIM_SAP_TRANSFER_ATR_CNF:
-       {
-               tet_printf("[SIM APP]*********** SAP TRANSFER ATR *************\n");
-
-               int i = 0;
-               TelSimSapAtrInfo_t *sap_transfer_atr = (TelSimSapAtrInfo_t*)sim_event->pData;
-
-               tet_printf("[SIM APP]SIM SAP trasfer ATR event status  = [%x]\n", sim_event->Status);
-
-               tet_printf(" [SIM APP]ATR result [%x]\n", sap_transfer_atr->AtrResult);
-               tet_printf(" [SIM APP]ATR length [%x]\n", sap_transfer_atr->AtrLength);
-               tet_printf(" [SIM APP]ATR data ---> \n" );
-
-//             for(i =0 ; i<sap_transfer_atr->AtrLength; i++ )
-//                     tet_printf(" [SIM APP][%x]", sap_transfer_atr->AtrData[i]);
-
-               bReceived = TRUE;
-               gAsyncResult = TRUE;
-       }
-       break;
-
-       default:
-       {
-               bReceived = TRUE;
-               gAsyncResult = FALSE;
-               tet_printf("[SIM APP]***************** Undhandled event type [%d] *****************\n",sim_event->EventType);
-               tet_printf("[SIM APP]Undhandled event state [%d]\n",sim_event->Status);
-       }
-       break;
-    }//end switch
-
-    if (bReceived == TRUE)
-      G_MAIN_LOOP_CLOSE();
-
-    return 0;
-}
-
-
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-    tet_infoline("utc_tel_req_sap_transfer_atr Test Start\n");
-
-       if ( tel_init() == TAPI_API_SUCCESS)
-       {
-               tel_register_event(TAPI_EVENT_SIM_SAP_CONNECT_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);
-               tel_register_event(TAPI_EVENT_SIM_SAP_TRANSFER_ATR_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);                 
-                       
-               gStartupSuccess = TRUE;
-       } else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-       tel_register_app_name("org.samsung.test");
-
-    return;
-}
-
-
-static void cleanup()
-{
-    tet_infoline("utc_tel_req_sap_transfer_atr Test Finished\n");
-    if (gStartupSuccess == TRUE)
-       {
-               tel_deregister_event(subscription_id);
-       }
-       tel_deinit();
-
-    return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
-* @brief tel_req_sap_transfer_atr() API : Positive condition(Request to transfer Atr)
-* @par ID: UTC_TEL_REQ_SAP_TRANSFER_ATR_01
-* @param [out]&pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimSapAtrInfo_t. \n
-*      - TAPI_EVENT_SIM_SAP_TRANSFER_ATR_CNF
-*/
-void utc_tel_req_sap_transfer_atr_01()
-{
-       TET_STAMP_START("Normal operation");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       int pRequestId=0;
-       int tapiRet = TAPI_API_SUCCESS;
-
-       // Step 1 : make proper condition
-    tet_printf("Step 1 : sap connect");
-
-       if( 0 != sim_sap_process_for_condition(1))
-       {
-               tet_printf("condition set is failed!!");
-               return;
-       }
-
-
-    tet_printf("Step 2 : sap atr");
-
-    gAsyncResult = FALSE;
-
-       tapiRet = tel_req_sap_transfer_atr(&pRequestId);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,TAPI_API_SUCCESS,tapiRet);
-       
-    tet_printf("after real tc api - wait start");
-
-    G_MAIN_LOOP_RUN(3);
-
-    tet_printf("after real tc api - wait stop");
-
-       TET_RESULT_NOT_EQUAL_GOTO(TET_FAIL,exit,gAsyncResult,TRUE);
-       TET_RESULT_EQUAL_GOTO(TET_PASS,exit,gAsyncResult,TRUE);
-       
-exit:
-#if 0 // we use connection status until finishing sap related api test.
-       // Step 3 : make default condition
-       tet_printf("Step 3 : disconnect sap");
-       
-       if( 0 != sim_sap_process_for_condition(0))
-       {
-               tet_printf("condition set is failed!!");
-       }
-#endif 
-       gAsyncResult = FALSE;
-       return;
-}
-
-/**
-* @brief tel_req_sap_transfer_atr() API : Negative condition(Parameter is Null)
-* @par ID: UTC_TEL_REQ_SAP_TRANSFER_ATR_02
-* @param [out]&pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_req_sap_transfer_atr_02()
-{
-       TET_STAMP_START("TAPI_API_INVALID_PTR 1");
-
-       TapiResult_t error = tel_req_sap_transfer_atr(NULL);
-       TET_CHECK(TAPI_API_INVALID_PTR, error);
-       TET_STAMP_PASS();
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_req_sap_transfer_atr.h b/TC/telephony_TC/sim/unit/uts_tel_req_sap_transfer_atr.h
deleted file mode 100644 (file)
index 9d1fb5a..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#ifndef _UTS_TEL_REQ_SAP_TRANSFER_ATR_H
-#define _UTS_TEL_REQ_SAP_TRANSFER_ATR_H
-
-       static void utc_tel_req_sap_transfer_atr_01();
-       static void utc_tel_req_sap_transfer_atr_02();
-
-#endif
-
diff --git a/TC/telephony_TC/sim/unit/uts_tel_req_sap_transport_protocol.c b/TC/telephony_TC/sim/unit/uts_tel_req_sap_transport_protocol.c
deleted file mode 100644 (file)
index c28d8b3..0000000
+++ /dev/null
@@ -1,439 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_SAP_SET_TRANSPORT_PROTOCOL tel_req_sap_transport_protocol
-*
-* @brief Unit test code for tel_req_sap_transport_protocol()
-* @par Test function Prototype:
-*      TapiResult_t tel_req_sap_transport_protocol(TelSimSapProtocol_t  Protocol, int* pRequestId);
-* @par Test function description:
-*      This API is used to transfer APDU from SIM using SAP.
-* @par Important Notes:
-*      None
-* @param [in] Protocol                 SAP transfer protocol type
-*      @code
-       typedef enum
-       {
-               TAPI_SIM_SAP_PROTOCOL_T0,  // T = 0
-               TAPI_SIM_SAP_PROTOCOL_T1   // T = 1
-       }TelSimSapProtocol_t;
-*      @endcode
-* @param [out] pRequestId   Unique identifier for a particular request.
-*   - request_id value can be any value from 0 to 255 if the API is returned successfully
-*   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimSapResultCode_t. \n
-*      - TAPI_EVENT_SIM_SAP_SET_PROTOCOL_CNF
-* @pre
-*      SAP supported sim used to testing
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tel_req_sap_transport_protocol.c
-* @brief       Test for the tel_req_sap_transport_protocol() API that is used to set transport protocol
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "sim_common.h"
-#include "uts_tel_req_sap_transport_protocol.h"
-
-
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_req_sap_transport_protocol_01, 1},
-       {utc_tel_req_sap_transport_protocol_02, 2},
-       {utc_tel_req_sap_transport_protocol_03, 3},
-       {utc_tel_req_sap_transport_protocol_04, 4},
-       {utc_tel_req_sap_transport_protocol_05, 5},
-       {NULL, 0}
-};
-
-
-
-
-/*
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////
-*/
-// Prototype : User must add function body
-gboolean g_timeout_callback (void *data);
-
-// GMainLoop global handler
-GMainLoop *nw_context_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(nw_context_loop);
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       //GMainLoop *mainloop;
-       nw_context_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);
-       g_main_loop_run (nw_context_loop);
-
-       return 0;
-}
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////
-
-
-/*
-  User Defined Handler
-*/
-// Global variable for user data
-static BOOL gAsyncResult; //user defined data : Async callback is called or not
-
-// G_MAIN Utility : time out callback function
-gboolean g_timeout_callback (void *data)
-{
-       gAsyncResult = FALSE;
-       tet_printf("[SIM APP][TIME OUT] g_timeout called .Close g_main_roop()");
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-
-
-static int sim_sap_process_for_condition(int wish_condition)
-{
-       TelSimSapConnect_t pConnectionReq;
-       int pRequestId=0;
-       int tapiRet = TAPI_API_SUCCESS;
-       
-       tet_printf("sap wish condition[%d]:0-disconnect, 1-connect",wish_condition);
-
-       if(wish_condition == 1)
-       {
-               pConnectionReq.MsgId = TAPI_SIM_SAP_CONNECT_REQ;
-       }
-       else
-       {
-               pConnectionReq.MsgId = TAPI_SIM_SAP_DISCONNECT_REQ;
-       }
-
-       pConnectionReq.MaxMsgSize = 10; //temp for testing only - not clear
-               
-       gAsyncResult = FALSE;
-               
-       tapiRet = tel_req_sap_connection(&pConnectionReq,&pRequestId);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,TAPI_API_SUCCESS,tapiRet);
-               
-       G_MAIN_LOOP_RUN(2);
-
-       if(gAsyncResult == TRUE)
-               return 0;
-       else
-               return -1;
-
-}
-
-
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)
-{
-    tet_printf("\n\n\n***************[SIM APP]Callback data **********************\n");
-    tet_printf("[SIM APP]Reques Id[%d]\n", sim_event->RequestId);
-    tet_printf("[SIM APP]event status [%d]\n", sim_event->Status);
-
-    gAsyncResult = FALSE;
-    BOOL bReceived = FALSE;
-
-    switch(sim_event->EventType)
-    {
-               case TAPI_EVENT_SIM_SAP_CONNECT_CNF:
-               {
-                       tet_printf("\n[GOT THE EVENT]*******TAPI_EVENT_SIM_SAP_CONNECT_CNF:******\n");
-                       TelSimSapConnect_t      *sap_conn_resp = (TelSimSapConnect_t*)sim_event->pData;
-               
-                       tet_printf("[SIM APP]SIM SAP connect request event status  = [%x]\n", sim_event->Status);
-               //              tet_printf("[SIM APP] message id [%x]\n", sap_conn_resp->MsgId);
-               //              tet_printf("[SIM APP]connection status [%x]\n ", sap_conn_resp->ConnectionStatus);
-               //              tet_printf("[SIM APP]max message size [%d]\n", sap_conn_resp->MaxMsgSize);
-               
-                       bReceived = TRUE;
-                       gAsyncResult = TRUE;
-               }
-               break;
-
-               case TAPI_EVENT_SIM_SAP_SET_PROTOCOL_CNF:
-               {
-                       tet_printf("\n[GOT THE EVENT]*****TAPI_EVENT_SIM_SAP_SET_PROTOCOL_CNF******\n");
-                       TelSimSapProtocol_t *sap_result_code = (TelSimSapProtocol_t*)sim_event->pData;
-
-                       tet_printf("[SIM APP]SIM SAP set protocol event status  = [%x]\n", sim_event->Status);
-               //      tet_printf("[SIM APP]SAP SET protocol  result [%x]\n", *sap_result_code );
-                       bReceived = TRUE;
-                       gAsyncResult = TRUE;
-               }
-               break;
-
-        default:
-        {
-               bReceived = TRUE;
-               gAsyncResult = FALSE;
-               tet_printf("[SIM APP]***************** Undhandled event type [%d] *****************\n",sim_event->EventType);
-               tet_printf("[SIM APP]Undhandled event state [%d]\n",sim_event->Status);
-       }
-       break;
-    }//end switch
-
-    if (bReceived == TRUE)
-      G_MAIN_LOOP_CLOSE();
-
-    return 0;
-}
-
-
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-    tet_infoline("utc_tel_req_sap_transport_protocol Test Start\n");
-
-       if ( tel_init() == TAPI_API_SUCCESS)
-       {
-               tel_register_event(TAPI_EVENT_SIM_SAP_CONNECT_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);
-               tel_register_event(TAPI_EVENT_SIM_SAP_SET_PROTOCOL_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);                 
-
-               gStartupSuccess = TRUE;
-       } else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-       tel_register_app_name("org.samsung.test");
-    return;
-}
-
-
-static void cleanup()
-{
-    tet_infoline("utc_tel_req_sap_transport_protocol Test Finished\n");
-
-    if (gStartupSuccess == TRUE)
-       {
-               tel_deregister_event(subscription_id);
-       }
-       tel_deinit();
-
-    return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
-* @brief tel_req_sap_transport_protocol() API : Positive condition(Set protocol TAPI_SIM_SAP_PROTOCOL_T0)
-* @par ID: UTC_TEL_REQ_SAP_TRANSPORT_PROTOCOL_01
-* @param [in] Protocol = TAPI_SIM_SAP_PROTOCOL_T0
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimSapResultCode_t. \n
-*      - TAPI_EVENT_SIM_SAP_SET_PROTOCOL_CNF
-*/
-void utc_tel_req_sap_transport_protocol_01()
-{
-       TET_STAMP_START("Normal operation : TAPI_SIM_SAP_PROTOCOL_T0");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       TelSimSapProtocol_t Protocol=TAPI_SIM_SAP_PROTOCOL_T0;
-       int pRequestId=0;
-       int tapiRet = TAPI_API_SUCCESS;
-#if 0 // we assume sap connect on.
-
-       // Step 1 : make proper condition
-    tet_printf("Step 1 : sap connect");
-
-       if( 0 != sim_sap_process_for_condition(1))
-       {
-               tet_printf("condition set is failed!!");
-               return;
-       }
-#endif
-    gAsyncResult = FALSE;
-
-       tapiRet = tel_req_sap_transport_protocol(Protocol,&pRequestId);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,TAPI_API_SUCCESS,tapiRet);
-
-    G_MAIN_LOOP_RUN(3);
-
-    TET_RESULT_NOT_EQUAL_GOTO(TET_FAIL,exit,gAsyncResult,TRUE);
-    TET_RESULT_EQUAL_GOTO(TET_PASS,exit,gAsyncResult,TRUE);
-
-exit:
-#if 0 // we assume sap connect on.
-
-       // Step 3 : make default condition
-    tet_printf("Step 3 : disconnect sap");
-
-       if( 0 != sim_sap_process_for_condition(0))
-       {
-               tet_printf("condition set is failed!!");
-       }
-#endif 
-    gAsyncResult = FALSE;
-       return;
-}
-
-/**
-* @brief tel_req_sap_transport_protocol() API : Positive condition(Set protocol TAPI_SIM_SAP_PROTOCOL_T1)
-* @par ID: UTC_TEL_REQ_SAP_TRANSPORT_PROTOCOL_02
-* @param [in] Protocol = TAPI_SIM_SAP_PROTOCOL_T1
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimSapResultCode_t. \n
-*      - TAPI_EVENT_SIM_SAP_SET_PROTOCOL_CNF
-*/
-void utc_tel_req_sap_transport_protocol_02()
-{
-       TET_STAMP_START("Normal operation : TAPI_SIM_SAP_PROTOCOL_T1");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-       TelSimSapProtocol_t Protocol=TAPI_SIM_SAP_PROTOCOL_T1;
-       int pRequestId=0;
-       int tapiRet = TAPI_API_SUCCESS;
-#if 0 // we assume sap connect on.     
-       // Step 1 : make proper condition
-       tet_printf("Step 1 : sap connect");
-       
-       if( 0 != sim_sap_process_for_condition(1))
-       {
-               tet_printf("condition set is failed!!");
-               return;
-       }
-#endif 
-       gAsyncResult = FALSE;
-       
-       tapiRet = tel_req_sap_transport_protocol(Protocol,&pRequestId);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,TAPI_API_SUCCESS,tapiRet);
-       
-       G_MAIN_LOOP_RUN(2);
-       
-       TET_RESULT_NOT_EQUAL_GOTO(TET_FAIL,exit,gAsyncResult,TRUE);
-       TET_RESULT_EQUAL_GOTO(TET_PASS,exit,gAsyncResult,TRUE);
-       
-exit:
-#if 0 // we assume sap connect on.
-       // Step 3 : make default condition
-       tet_printf("Step 3 : disconnect sap");
-       
-       if( 0 != sim_sap_process_for_condition(0))
-       {
-               tet_printf("condition set is failed!!");
-       }
-#endif 
-       gAsyncResult = FALSE;
-       return;
-}
-
-
-/**
-* @brief tel_req_sap_transport_protocol() API : Negative condition(Low boundary test)
-* @par ID: UTC_TEL_REQ_SAP_TRANSPORT_PROTOCOL_03
-* @param [in] Protocol = TAPI_SIM_SAP_PROTOCOL_T0-1;// Low boundary
-* @param [out] &pRequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-void utc_tel_req_sap_transport_protocol_03()
-{
-       TET_STAMP_START("TAPI_API_INVALID_INPUT");
-
-       TelSimSapProtocol_t Protocol=(TelSimSapProtocol_t)TAPI_SIM_SAP_PROTOCOL_T0-1;
-       int pRequestId=0;
-
-       TapiResult_t error = tel_req_sap_transport_protocol(Protocol,&pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, error);
-       TET_STAMP_PASS();
-}
-
-/**
-* @brief tel_req_sap_transport_protocol() API : Negative condition(Upper boundary test)
-* @par ID: UTC_TEL_REQ_SAP_TRANSPORT_PROTOCOL_04
-* @param [in] Protocol = TAPI_SIM_SAP_PROTOCOL_T1+1;// Upper boundary
-* @param [out] &pRequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-void utc_tel_req_sap_transport_protocol_04()
-{
-       TET_STAMP_START("TAPI_API_INVALID_INPUT");
-
-       TelSimSapProtocol_t Protocol=(TelSimSapProtocol_t)TAPI_SIM_SAP_PROTOCOL_T1+1;
-       int pRequestId=0;
-
-       TapiResult_t error = tel_req_sap_transport_protocol(Protocol,&pRequestId);
-       TET_CHECK(TAPI_API_INVALID_INPUT, error);
-       TET_STAMP_PASS();
-}
-
-/**
-* @brief tel_req_sap_transport_protocol() API : Negative condition(Null parameter)
-* @par ID: UTC_TEL_REQ_SAP_TRANSPORT_PROTOCOL_04
-* @param [in] Protocol = TAPI_SIM_SAP_PROTOCOL_T1
-* @param [out] &pRequestId = NULL
-* @return TAPI_API_INVALID_INPUT
-*/
-void utc_tel_req_sap_transport_protocol_05()
-{
-       TET_STAMP_START("TAPI_API_INVALID_PTR");
-
-       TelSimSapProtocol_t Protocol= TAPI_SIM_SAP_PROTOCOL_T1;
-       TapiResult_t error = tel_req_sap_transport_protocol(Protocol,NULL);
-       TET_CHECK(TAPI_API_INVALID_PTR, error);
-       TET_STAMP_PASS();
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_req_sap_transport_protocol.h b/TC/telephony_TC/sim/unit/uts_tel_req_sap_transport_protocol.h
deleted file mode 100644 (file)
index 132af0d..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _uts_tel_req_sap_transport_protocol_H
-#define _uts_tel_req_sap_transport_protocol_H
-
-       static void utc_tel_req_sap_transport_protocol_01();
-       static void utc_tel_req_sap_transport_protocol_02();
-       static void utc_tel_req_sap_transport_protocol_03();
-       static void utc_tel_req_sap_transport_protocol_04();
-       static void utc_tel_req_sap_transport_protocol_05();
-
-#endif
diff --git a/TC/telephony_TC/sim/unit/uts_tel_req_sim_access.c b/TC/telephony_TC/sim/unit/uts_tel_req_sim_access.c
deleted file mode 100644 (file)
index 6ea944b..0000000
+++ /dev/null
@@ -1,224 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-/**\r
-* @ingroup     TELEPHONY_FRAMEWORK_API\r
-* @addtogroup  SIM\r
-*/\r
-\r
-/**\r
-* @ingroup     SIM\r
-* @addtogroup  UTS_TEL_REQ_SIM_ACCESS Unit\r
-*/\r
-\r
-/**\r
-* @ingroup     UTS_TEL_REQ_SIM_ACCESS Unit\r
-* @addtogroup  UTS_TEL_REQ_SIM_ACCESS_ Uts_Tel_Req_Sim_Access\r
-* @{\r
-*/\r
-\r
-/**\r
-* @file uts_tel_req_sim_access.c\r
-* @brief This is a suit of unit test cases to test tel_req_sim_access() API function\r
-* @author Gautam Nand Sinha (gnand.sinha@samsung.com)\r
-* @version Initial Creation Version 0.1\r
-* @date 2010.06.29\r
-*/
-
-
-#include "uts_tel_req_sim_access.h"
-
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_req_sim_access_01, 1},
-       {utc_tel_req_sim_access_02, 2},
-       {utc_tel_req_sim_access_03, 3},
-       {NULL, 0}
-};
-
-
-
-/*
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////
-*/
-// Prototype : User must add function body
-gboolean g_timeout_callback (void *data);
-
-// GMainLoop global handler
-GMainLoop *nw_context_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(nw_context_loop);
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       //GMainLoop *mainloop;
-       nw_context_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);
-       g_main_loop_run (nw_context_loop);
-
-       return 0;
-}
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////
-
-
-/*
-  User Defined Handler
-*/
-// Global variable for user data
-static BOOL gAsyncResult; //user defined data : Async callback is called or not
-static TelSimPinOperationResult_t gSimEventStatus;
-
-// G_MAIN Utility : time out callback function
-gboolean g_timeout_callback (void *data)
-{
-       gAsyncResult = FALSE;
-       tet_printf("[SIM APP][TIME OUT] g_timeout called .Close g_main_roop()");
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-
-
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)
-{
-    tet_printf("\n\n\n***************[SIM APP]Callback data **********************\n");\r
-    tet_printf("[SIM APP]Reques Id[%d]\n", sim_event->RequestId);\r
-    tet_printf("[SIM APP]event status [%d]\n", sim_event->Status);\r
-
-    gAsyncResult = FALSE;
-    BOOL bReceived = FALSE;
-
-    switch(sim_event->EventType)
-      {
-        case TAPI_EVENT_SIM_RSIM_ACCESS_CNF:\r
-        {
-            tet_printf("\n[SIM APP]*****************TAPI_EVENT_SIM_RSIM_ACCESS_CNF (%d) ***************************\n", TAPI_EVENT_SIM_GET_MAILBOX_CNF);\r
-            tet_printf("SIM rsim access event status = [%x]\n", sim_event->Status);\r
-
-            gSimEventStatus = sim_event->Status;
-            gAsyncResult = TRUE;
-            bReceived = TRUE;
-        }
-        break;
-
-        default:\r
-        {
-            gSimEventStatus = sim_event->Status;
-            gAsyncResult = FALSE;
-            tet_printf("[SIM APP]***************** Undhandled event type [%d] *****************\n",sim_event->EventType);\r
-            tet_printf("[SIM APP]Undhandled event state [%d]\n",sim_event->Status);
-            break;
-       }
-    }//end switch
-
-    if (bReceived == TRUE)
-      G_MAIN_LOOP_CLOSE();
-    return 0;
-}
-
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-    tet_infoline("utc_tel_req_sim_access Test Start\n");\r
-
-       if ( tel_init() == TAPI_API_SUCCESS)
-       {
-               if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_RSIM_ACCESS_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL) )\r
-                       gStartupSuccess = TRUE;
-               else
-                       tet_infoline("startup fail. tel_register_event() failed");
-       } else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-
-       tel_register_app_name("org.samsung.test");\r
-    return;
-}
-
-
-static void cleanup()
-{
-    tet_infoline("utc_tel_req_sim_access Test Finished\n");\r
-    if (gStartupSuccess == TRUE)
-       {
-               tel_deregister_event(subscription_id);
-       }
-       tel_deinit();
-    return;
-}
-
-\r
-void utc_tel_req_sim_access_01()
-{\r
-       TET_STAMP_START("utc_tel_req_sim_access_01");\r
-\r
-    int request=0;\r
-    TelSimRSimReq_t sim = {0,};
-    sim.file_id = 0x6F60;
-    sim.rsim_cmd = TAPI_SIM_GET_RESPONSE;
-\r
-       gAsyncResult = FALSE;\r
-                                       \r
-       TET_CHECK(TAPI_API_SUCCESS,tel_req_sim_access(&sim,&request));\r
-                                                               \r
-       G_MAIN_LOOP_RUN(2);\r
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return\r
-       TET_STAMP_PASS();\r
-       return;\r
-}\r
-\r
-
-void utc_tel_req_sim_access_02()
-{
-       TET_STAMP_START("utc_tel_req_sim_access_02");\r
-\r
-    TelSimRSimReq_t sim = {0,};
-    sim.file_id = 0x6F60;
-    sim.rsim_cmd = TAPI_SIM_GET_RESPONSE;
-       TET_CHECK(TAPI_API_INVALID_PTR,tel_req_sim_access(&sim,NULL));\r
-       TET_STAMP_PASS();\r
-       return;\r
-}\r
-\r
-
-void utc_tel_req_sim_access_03()
-{
-       TET_STAMP_START("utc_tel_req_sim_access_03");\r
-\r
-    int requestId = 0;\r
-       TET_CHECK(TAPI_API_INVALID_PTR,tel_req_sim_access(NULL,&requestId));\r
-       TET_STAMP_PASS();\r
-       return;\r
-}\r
-\r
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_req_sim_access.h b/TC/telephony_TC/sim/unit/uts_tel_req_sim_access.h
deleted file mode 100644 (file)
index ba9adbb..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-/**\r
-* @ingroup     TELEPHONY_FRAMEWORK_API\r
-* @addtogroup  SIM\r
-*/\r
-\r
-/**\r
-* @ingroup     SIM\r
-* @addtogroup  UTS_TEL_REQ_SIM_ACCESS Unit\r
-*/\r
-\r
-/**\r
-* @ingroup     UTS_TEL_REQ_SIM_ACCESS Unit\r
-* @addtogroup  UTS_TEL_REQ_SIM_ACCESS_ Uts_Tel_Req_Sim_Access\r
-* @{\r
-*/\r
-\r
-/**\r
-* @file uts_tel_req_sim_access.h\r
-* @brief This is a suit of unit test cases to test tel_req_sim_access() API function\r
-* @author Gautam Nand Sinha (gnand.sinha@samsung.com)\r
-* @version Initial Creation Version 0.1\r
-* @date 2010.06.29\r
-*/\r
-\r
-
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-#include <string.h>
-\r
-#include "tet_tapi_util.h"
-#include "sim_common.h"
-
-#ifndef _UTS_TEL_REQ_SIM_ACCESS_H_
-#define _UTS_TEL_REQ_SIM_ACCESS_H_
-
-       static void utc_tel_req_sim_access_01 ();
-       static void utc_tel_req_sim_access_02 ();
-       static void utc_tel_req_sim_access_03 ();
-       
-#endif
diff --git a/TC/telephony_TC/sim/unit/uts_tel_req_sim_isim_authentication.c b/TC/telephony_TC/sim/unit/uts_tel_req_sim_isim_authentication.c
deleted file mode 100644 (file)
index d12049a..0000000
+++ /dev/null
@@ -1,277 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_SAP_AUTH tel_req_sim_authentication
-*
-* @brief Unit test code for tel_req_sim_authentication()
-* @par Test function Prototype:
-*      TapiResult_t tel_req_sim_authentication(TelSimAuthenticationData_t* AuthReqData, int *pRequestId);
-* @par Test function description:
-*      This function is a used to do the authentication proceedure of ISIM for IMS application
-* @par Important Notes:
-*      None
-* @param [in] AuthReqData
-* ISIM Authentication data.(auth_req_data - authentication data to be verified.)
-* @code
-// GBA(Generic Bootstrapping architecture) Boot strapping parameters.
-// This is used for IMS Authentication proceedure.
-typedef struct
-{
-       UINT8 rand_length;      // ISIM random access length
-       UINT8 autn_length; // ISIM Boot straping transaction ID len
-       UINT8 rand_data[TAPI_SIM_AUTH_MAX_REQ_DATA_LEN];        // random data
-       UINT8 autn_data[TAPI_SIM_AUTH_MAX_REQ_DATA_LEN];        // autherisation data
-}TelSimAuthenticationData_t;
-* @endcode
-* @param [out] pRequestId
-*   - Unique identifier for a particular request.
-*   - request_id value can be any value from 0 to 255 if the API is returned successfully
-*   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimAuthenticationResponse_t. \n
-*      - TAPI_EVENT_SIM_AUTHENTICATION_CNF
-* @pre
-*      SAP supported sim used to testing
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tel_req_sim_isim_authentication.c
-* @brief       Test for the tel_req_sim_authentication() API that is used to isim authentication request
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "uts_tel_req_sim_isim_authentication.h"
-#include "sim_common.h"
-
-
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_req_sim_authentication_01, 1},
-       {utc_tel_req_sim_authentication_02, 2},
-       {NULL, 0}
-};
-
-
-/*
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////
-*/
-// Prototype : User must add function body
-gboolean g_timeout_callback (void *data);
-
-// GMainLoop global handler
-GMainLoop *nw_context_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(nw_context_loop);
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       //GMainLoop *mainloop;
-       nw_context_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);
-       g_main_loop_run (nw_context_loop);
-
-       return 0;
-}
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////
-
-
-/*
-  User Defined Handler
-*/
-// Global variable for user data
-static BOOL gAsyncResult; //user defined data : Async callback is called or not
-
-// G_MAIN Utility : time out callback function
-gboolean g_timeout_callback (void *data)
-{
-       gAsyncResult = FALSE;
-       tet_printf("[SIM APP][TIME OUT] g_timeout called .Close g_main_roop()");
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)
-{
-    tet_printf("\n\n\n***************[SIM APP]Callback data **********************\n");
-    tet_printf("[SIM APP]Reques Id[%d]\n", sim_event->RequestId);
-    tet_printf("[SIM APP]event status [%d]\n", sim_event->Status);
-
-    gAsyncResult = FALSE;
-    BOOL bReceived = FALSE;
-
-    switch(sim_event->EventType)
-      {
-
-       case TAPI_EVENT_SIM_AUTHENTICATION_CNF:
-       {
-            tet_printf("\n[SIM APP]*****************TAPI_EVENT_SIM_AUTHENTICATION_CNF***************************\n");
-            gAsyncResult = TRUE;
-            bReceived = TRUE;
-        }
-        break;
-
-        default:
-        {
-            bReceived = TRUE;
-            gAsyncResult = FALSE;
-            tet_printf(" TAPI_EVENT_SIM_AUTHENTICATION_CNF = %d", TAPI_EVENT_SIM_AUTHENTICATION_CNF);
-            tet_printf("[SIM APP]***************** Undhandled event type [%d] *****************\n",sim_event->EventType);
-            tet_printf("[SIM APP]Undhandled event state [%d]\n",sim_event->Status);
-            break;
-               }
-       }//end switch
-
-    if (bReceived == TRUE)
-      G_MAIN_LOOP_CLOSE();
-
-    return 0;
-}
-
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-    tet_infoline("uts_tel_req_sim_authentication Test Start");
-       if ( tel_init() == TAPI_API_SUCCESS)
-       {
-               if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_AUTHENTICATION_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL) )
-                       gStartupSuccess = TRUE;
-               else
-                       tet_infoline("startup fail. tel_register_event() failed");
-       } else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
- tel_register_app_name("org.samsung.test");
-    return;
-}
-
-
-static void cleanup()
-{
-    tet_infoline("uts_tel_req_sim_authentication Finished");
-    if (gStartupSuccess == TRUE)
-       {
-               tel_deregister_event(subscription_id);
-       }
-       tel_deinit();
-    return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
-* @brief tel_req_sim_authentication() API : Negative condition(Parameter is Null)
-* @par ID: UTC_TEL_REQ_SIM_ISIM_AUTHENTICATION_01
-* @param [in] pAuthenticationData
-* @param [out] &pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_req_sim_authentication_01()
-{
-    TET_STAMP_START("NULL Test 1");
-    TelSimAuthenticationData_t pAuthenticationData;
-
-    tet_printf(" Enter  RAND data \n");
-    strcpy((char*)pAuthenticationData.rand_data, "username@operator.com");
-    pAuthenticationData.rand_length= strlen("username@operator.com");
-
-    tet_printf(" Enter Authentication  data \n");
-    strcpy((char*)pAuthenticationData.autn_data,  "+1-212-555-12345");
-    pAuthenticationData.autn_length = strlen("+1-212-555-12345");
-
-    /* Calling TAPI API */
-    TapiResult_t err = tel_req_sim_authentication(&pAuthenticationData,NULL);
-    tet_printf("%s[%d] %s(): error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, err, TET_ERROR_TO_STRING(err) );
-    if (err == TAPI_API_INVALID_PTR )
-        TET_STAMP_PASS();
-    else if ( err == TAPI_API_NOT_SUPPORTED )
-        TET_STAMP(TET_NOTINUSE);
-    else
-        TET_STAMP_FAIL();
-}
-
-/**
-* @brief tel_req_sim_authentication() API : Negative condition(Parameter is Null)
-* @par ID: UTC_TEL_REQ_SIM_ISIM_AUTHENTICATION_02
-* @param [in] pAuthenticationData = NULL
-* @param [out] &pRequestId
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_req_sim_authentication_02()
-{
-    TET_STAMP_START("NULL Test 2");
-    int pRequestId=0;
-
-    /* Calling TAPI API */
-    TapiResult_t err = tel_req_sim_authentication(NULL,&pRequestId);
-    tet_printf("%s[%d] %s(): error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, err, TET_ERROR_TO_STRING(err) );
-    if (err == TAPI_API_INVALID_PTR )
-        TET_STAMP_PASS();
-    else if ( err == TAPI_API_NOT_SUPPORTED )
-        TET_STAMP(TET_NOTINUSE);
-    else
-        TET_STAMP_FAIL();
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_req_sim_isim_authentication.h b/TC/telephony_TC/sim/unit/uts_tel_req_sim_isim_authentication.h
deleted file mode 100644 (file)
index 697ca63..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _uts_tapi_isim_auth_req_H_
-#define _uts_tapi_isim_auth_req_H_
-
-       static void utc_tel_req_sim_authentication_01();
-       static void utc_tel_req_sim_authentication_02();
-
-#endif
-
diff --git a/TC/telephony_TC/sim/unit/uts_tel_set_sim_language.c b/TC/telephony_TC/sim/unit/uts_tel_set_sim_language.c
deleted file mode 100644 (file)
index 5cb66c9..0000000
+++ /dev/null
@@ -1,199 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "sim_common.h"
-#include "uts_tel_set_sim_language.h"
-
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_set_sim_language_01, 1},
-       {utc_tel_set_sim_language_02, 2},
-       {NULL, 0}
-};
-
-
-/*
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////
-*/
-// Prototype : User must add function body
-gboolean g_timeout_callback (void *data);
-
-// GMainLoop global handler
-GMainLoop *nw_context_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(nw_context_loop);
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       //GMainLoop *mainloop;
-       nw_context_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);
-       g_main_loop_run (nw_context_loop);
-
-       return 0;
-}
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////
-
-
-/*
-  User Defined Handler
-*/
-// Global variable for user data
-static BOOL gAsyncResult; //user defined data : Async callback is called or not
-
-// G_MAIN Utility : time out callback function
-gboolean g_timeout_callback (void *data)
-{
-       gAsyncResult = FALSE;
-       tet_printf("[SIM APP][TIME OUT] g_timeout called .Close g_main_roop()");
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)
-{
-    tet_printf("\n\n\n***************[SIM APP]Callback data **********************\n");
-    tet_printf("[SIM APP]Reques Id[%d]\n", sim_event->RequestId);
-    tet_printf("[SIM APP]event status [%d]\n", sim_event->Status);
-
-    gAsyncResult = FALSE;
-    BOOL bReceived = FALSE;
-
-    switch(sim_event->EventType)
-    {
-
-       case TAPI_EVENT_SIM_SET_LANGUAGE_CNF:
-        {
-               tet_printf("\n[SIM APP]***************TAPI_EVENT_SIM_SET_LANGUAGE_CNF*****************************\n");
-               tet_printf("SIM Disable PIN event status = [%x]\n", sim_event->Status);
-
-               bReceived = TRUE;
-               if(sim_event->Status == TAPI_SIM_PIN_OPERATION_SUCCESS)
-                       gAsyncResult = TRUE;
-               else
-                       gAsyncResult = FALSE;
-        }
-       break;
-
-        default:
-        {
-               bReceived = TRUE;
-               gAsyncResult = FALSE;
-               tet_printf("[SIM APP]***************** Undhandled event type [%d] *****************\n",sim_event->EventType);
-               tet_printf("[SIM APP]Undhandled event state [%d]\n",sim_event->Status);
-       }
-       break;
-    }//end switch
-
-    if (bReceived == TRUE)
-      G_MAIN_LOOP_CLOSE();
-
-    return 0;
-}
-
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-    tet_infoline("utc_tel_set_sim_language Test Start\n");
-       if ( tel_init() == TAPI_API_SUCCESS)
-       {
-               if ( TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_SET_LANGUAGE_CNF,&subscription_id,(TelAppCallback)sim_app_callback, NULL) ) 
-                       gStartupSuccess = TRUE;
-               else
-                       tet_infoline("startup fail. tel_register_event() failed");
-       } else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-       tel_register_app_name("org.samsung.test");
-       
-    return;
-}
-
-
-static void cleanup()
-{
-    tet_infoline("utc_tel_set_sim_langauge Test Finished\n");
-
-    if (gStartupSuccess == TRUE)
-       {
-               tel_deregister_event(subscription_id);
-       }
-       tel_deinit();
-    return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-
-void utc_tel_set_sim_language_01()
-{
-       TET_STAMP_START("utc_tel_set_sim_language_01");
-
-    TelSimLanguagePreferenceCode_t language = 0x00;
-       TET_CHECK(TAPI_API_INVALID_PTR,tel_set_sim_language(language,NULL));
-       TET_STAMP_PASS();
-       return;
-}
-
-
-void utc_tel_set_sim_language_02()
-{
-       TET_STAMP_START("utc_tel_set_sim_language_02");
-
-    TelSimLanguagePreferenceCode_t language = 0x00;
-    int req_id = 0;
-
-       gAsyncResult = FALSE;
-                               
-       TET_CHECK(TAPI_API_SUCCESS,tel_set_sim_language(language,&req_id));
-                                                       
-       G_MAIN_LOOP_RUN(2);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_set_sim_language.h b/TC/telephony_TC/sim/unit/uts_tel_set_sim_language.h
deleted file mode 100644 (file)
index 3fd22aa..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TEL_SET_SIM_LANGUAGE_H
-#define _UTS_TEL_SET_SIM_LANGUAGE_H
-
-       static void utc_tel_set_sim_language_01();
-       static void utc_tel_set_sim_language_02();
-#endif
diff --git a/TC/telephony_TC/sim/unit/uts_tel_update_sim_pb_record.c b/TC/telephony_TC/sim/unit/uts_tel_update_sim_pb_record.c
deleted file mode 100644 (file)
index 188cebf..0000000
+++ /dev/null
@@ -1,519 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_PB_UPDATE_RECORD tel_update_sim_pb_record
-*
-* @brief Unit test code for tel_update_sim_pb_record()
-* @par Test function Prototype:
-*      TapiResult_t tel_update_sim_pb_record(const TelSimPbRecordData_t* pPbRecordData, int* pRequestId);
-* @par Test function description:
-*      This API is used to add or edit SIM phone book record entry information.
-* @par Important Notes:
-*      GSM 7 Bit or Unicode conversion required to make record data
-*      - GSM 7 Bit conversion
-* @code
-BOOL oem_encode_gsm_7_bit_chars (char text_len,  const char* text_data,char *out_len_max, char* gsm7bit_text )
-{
-       int i;
-       int pos;
-        UINT16 shift = 0;
-
-       for( pos = 0, i = 0; i < text_len; pos++, i++ )
-       {
-               // pack the low bits - for single char
-               gsm7bit_text[pos] = text_data[i] >> shift;
-
-               if ( i + 1 < text_len )
-               {
-                       // pack the high bits using the low bits of the next character
-                       gsm7bit_text[pos] |= text_data[i+1] << ( 7 - shift );
-                       shift++;
-                       if( shift == 7 )
-                       {
-                               shift = 0;
-                               i++;
-                       }
-               }
-       }
-       *out_len_max  = (text_len* 7 )/8;
-       return pos;
-}
-* @endcode
-*      - Unicode conversion
-* @code
-BOOL
-oem_encode_text_unicode(char text_len, char *text_data,char *unicode_text_len,char *unicode_text)
-{
-       int j,i;
-       i = j = 0;
-
-       if(text_len == 0)
-       {
-               tet_printf(LEVEL_ERR,"Unicode encoding failed - input text string length is 0!");
-               return FALSE;
-       }
-       // UNicode conversion
-       // a  = Ascii is 61 and in Unicode it is 0061 but modem expects 6100
-       for(j= 0,i = 0;i<text_len*2;i++)
-       {
-               unicode_text[i++] = text_data[j++];
-               unicode_text[i] = 0x00;
-       }
-       *unicode_text_len = text_len * 2;
-       return TRUE;
-}
-@endcode
-* @param [in] pPbRecordData  Record data
-* @param [out] pRequestId   Unique identifier for a particular request.
-*   - request_id value can be any value from 0 to 255 if the API is returned successfully
-*   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbUpdateResp_t. \n
-*      - TAPI_EVENT_SIM_PB_UPDATE_CNF
-* @pre
-*      - Phonebook supported SIM used for test
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tapi_pb_rec_modify_access.c
-* @brief       Test for the tel_update_sim_pb_record() API that is used to modify phonebook record
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "uts_tel_update_sim_pb_record.h"
-#include "sim_common.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_update_sim_pb_record_01, 1},
-       {utc_tel_update_sim_pb_record_02, 2},
-       {utc_tel_update_sim_pb_record_03, 3},
-       {utc_tel_update_sim_pb_record_04, 4},
-       {utc_tel_update_sim_pb_record_05, 5},
-       {NULL, 0}
-};
-
-/*
-  User Defined Handler
-*/
-// Global variable for user data
-static BOOL gAsyncResult; //user defined data : Async callback is called or not
-
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-
-
-/*
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////
-*/
-
-// Prototype : User must add function body
-gboolean g_timeout_callback(void *data);
-
-// GMainLoop global handler
-GMainLoop *sim_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(sim_loop);
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       sim_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);
-       g_main_loop_run (sim_loop);
-
-       return 0;
-}
-
-gboolean g_timeout_callback (void *data)
-{
-       gAsyncResult = FALSE;
-       tet_printf("[TIME OUT] g_timeout called .Close g_main_roop()");
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////
-
-
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)
-{
-    tet_printf("\n***************[SIM APP]Callback data **********************\n");
-    tet_printf("[SIM]Reques Id[%d]\n", sim_event->RequestId);
-    tet_printf("[SIM]event status [%d]\n", sim_event->Status);
-
-    gAsyncResult = FALSE;
-    BOOL bReceived = FALSE;
-
-    switch(sim_event->EventType)
-      {
-        case TAPI_EVENT_SIM_PB_UPDATE_CNF:
-        {
-                       tet_printf("[SIM]*****************TAPI_EVENT_SIM_PB_UPDATE_CNF***************************");
-                       tet_printf("SIM Delete PB event status = [%x]", sim_event->Status);
-
-                       //TelSimPbUpdateResp_t *pUpdateResp = (TelSimPbUpdateResp_t *)sim_event->pData;
-                       //  tet_printf(" index [%d]\n",pUpdateResp->PbIndex);
-                       // tet_printf(" storage type [%d]\n",pUpdateResp->PbStorageInfo.StorageFileType);
-                       tet_printf("*******************************************");
-                       gAsyncResult = TRUE;
-                       bReceived = TRUE;
-        }
-        break;
-
-        default:
-        {
-            bReceived = TRUE;
-            gAsyncResult = FALSE;
-            tet_printf("Info : TAPI_EVENT_SIM_PB_DELETE_CNF = %d", TAPI_EVENT_SIM_PB_DELETE_CNF);
-            tet_printf("[SIM]***************** Undhandled event type [%d] *****************\n",sim_event->EventType);
-            tet_printf("[SIM]Undhandled event state [%d]\n",sim_event->Status);
-            break;
-               }
-    }//end switch
-
-    if (bReceived == TRUE)
-      G_MAIN_LOOP_CLOSE();
-
-    return 0;
-}
-
-
-static void startup()
-{
-    tet_infoline("utc_tel_update_sim_pb_record Test Start");
-
-       if ( tel_init() == TAPI_API_SUCCESS)
-       {
-               if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_PB_UPDATE_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL))
-                       gStartupSuccess = TRUE;
-               else
-                       tet_infoline("startup fail. tel_register_event() failed");
-       } else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-       tel_register_app_name("org.samsung.test");
-    return;
-}
-
-
-static void cleanup()
-{
-    tet_infoline("utc_tel_update_sim_pb_record Finished");
-
-    if (gStartupSuccess == TRUE)
-       {
-               tel_deregister_event(subscription_id);
-       }
-       tel_deinit();
-
-    return;
-}
-
-
-/* Utility function
-*/
-BOOL oem_encode_gsm_7_bit_chars (char text_len,  const char* text_data,char *out_len_max, char* gsm7bit_text )
-{
-       int i;
-       int pos;
-        UINT16 shift = 0;
-
-       for( pos = 0, i = 0; i < text_len; pos++, i++ )
-       {
-               /* pack the low bits - for single char */
-               gsm7bit_text[pos] = text_data[i] >> shift;
-
-               if ( i + 1 < text_len )
-               {
-                       /* pack the high bits using the low bits of the next character */
-                       gsm7bit_text[pos] |= text_data[i+1] << ( 7 - shift );
-
-                       shift++;
-
-                       if( shift == 7 )
-                       {
-                               shift = 0;
-                               i++;
-                       }
-               }
-       }
-       *out_len_max  = (text_len* 7 )/8;
-
-       /* done */
-       return pos;
-
-}
-
-BOOL oem_encode_text_unicode(char text_len, char *text_data,char *unicode_text_len,char *unicode_text)
-{
-       int j,i;
-       i = j = 0;
-
-       if(text_len == 0)
-       {
-               tet_printf("Unicode encoding failed - input text string length is 0!");
-               return FALSE;
-       }
-       /*UNicode conversion*/
-       /* a  = Ascii is 61 and in Unicode it is 0061 but modem expects 6100 */
-       for(j= 0,i = 0;i<text_len*2;i++)
-       {
-               unicode_text[i++] = text_data[j++];
-               unicode_text[i] = 0x00;
-       }
-       *unicode_text_len = text_len * 2;
-       return TRUE;
-
-}
-
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
-* @brief tel_update_sim_pb_record() API : Negative condition(NULL parameter test)
-* @par ID: UTC_TEL_UPDATE_SIM_PB_RECORD_01
-* @param [in] pb_add = NULL
-* @param [out] &pRequestId
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_update_sim_pb_record_01()
-{
-       int  pRequestId=0;
-
-       TET_STAMP_START("TAPI_API_INVALID_PTR");
-       /* calling PB capability info api */
-       TET_CHECK(TAPI_API_INVALID_PTR, tel_update_sim_pb_record(NULL,&pRequestId));
-       TET_STAMP_PASS();
-       return;
-}
-
-
-/**
-* @brief tel_update_sim_pb_record() API : Negative condition(NULL parameter test)
-* @par ID: UTC_TEL_UPDATE_SIM_PB_RECORD_02
-* @param [in] pb_add
-* @param [out] &pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_update_sim_pb_record_02()
-{
-       TelSimPbRecordData_t  pb_add;
-       pb_add.StorageFileType=TAPI_SIM_PB_GAS;
-       pb_add.Index=1;
-       char unicode_text[256];
-       int unicode_text_len = 0;
-
-       TET_STAMP_START("TAPI_API_INVALID_PTR");
-
-       unsigned char name[]="user";
-       memcpy(pb_add.ContactInfo.PbAdditionalNumStringData.TextData,name,20);
-
-       /* GSM 7bit conversion */
-       oem_encode_gsm_7_bit_chars(strlen((char *)pb_add.ContactInfo.PbAdditionalNumStringData.TextData) ,
-                               (char *)pb_add.ContactInfo.PbAdditionalNumStringData.TextData, (char *)&unicode_text_len, unicode_text);
-       memcpy(pb_add.ContactInfo.PbAdditionalNumStringData.TextData, unicode_text, unicode_text_len );
-       pb_add.ContactInfo.PbAdditionalNumStringData.TextLength =  unicode_text_len;
-       pb_add.ContactInfo.PbAdditionalNumStringData.EncryptionType = TAPI_SIM_TEXT_ENC_GSM7BIT; // always 2 for GAS and AAS
-
-       TET_CHECK(TAPI_API_INVALID_PTR, tel_update_sim_pb_record(&pb_add, NULL)); //<----Invalid PTR
-       TET_STAMP_PASS();
-       return;
-}
-
-
-
-/**
-* @brief tel_update_sim_pb_record() API : Negative condition(Low boundry test)
-* @par ID: UTC_TEL_UPDATE_SIM_PB_RECORD_03
-* @param [in] pb_add.StorageFileType = (TelSimPbFileType_t)-1;//<--------- invalid
-* @param [out] &pRequestId
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_update_sim_pb_record_03()
-{
-       TelSimPbRecordData_t  pb_add;
-       pb_add.StorageFileType = -1;//<--------- invalid
-       int  pRequestId=0;
-       pb_add.Index=1;
-       char unicode_text[256];
-       int unicode_text_len = 0;
-
-       TET_STAMP_START("TAPI_API_INVALID_INPUT");
-
-       unsigned char name[]="user";
-       memcpy(pb_add.ContactInfo.PbAdditionalNumStringData.TextData,name,20);
-
-       /* GSM 7bit conversion */
-       oem_encode_gsm_7_bit_chars(strlen((char *)pb_add.ContactInfo.PbAdditionalNumStringData.TextData) ,
-                               (char *)pb_add.ContactInfo.PbAdditionalNumStringData.TextData, (char *)&unicode_text_len, unicode_text);
-       memcpy(pb_add.ContactInfo.PbAdditionalNumStringData.TextData, unicode_text, unicode_text_len );
-       pb_add.ContactInfo.PbAdditionalNumStringData.TextLength =  unicode_text_len;
-       pb_add.ContactInfo.PbAdditionalNumStringData.EncryptionType = TAPI_SIM_TEXT_ENC_GSM7BIT; // always 2 for GAS and AAS
-
-       TET_CHECK(TAPI_API_INVALID_INPUT, tel_update_sim_pb_record(&pb_add, &pRequestId));
-       TET_STAMP_PASS();
-       return;
-}
-
-
-/**
-* @brief tel_update_sim_pb_record() API : Negative condition(Upper boundry test)
-* @par ID: UTC_TEL_UPDATE_SIM_PB_RECORD_04
-* @param [in] pb_add.StorageFileType = (TelSimPbFileType_t)TAPI_SIM_PB_UNKNOWNN + 1;//<--------- invalid
-* @param [out] &pRequestId
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_update_sim_pb_record_04()
-{
-       TelSimPbRecordData_t  pb_add;
-       pb_add.StorageFileType=(TelSimPbFileType_t)TAPI_SIM_PB_UNKNOWNN+1;//<--------- invalid
-       int  pRequestId=0;
-       pb_add.Index=1;
-       char unicode_text[256];
-       int unicode_text_len = 0;
-
-       TET_STAMP_START("TAPI_API_INVALID_INPUT");
-
-       unsigned char name[]="user";
-       memcpy(pb_add.ContactInfo.PbAdditionalNumStringData.TextData,name,20);
-
-       /* GSM 7bit conversion */
-       oem_encode_gsm_7_bit_chars(strlen((char *)pb_add.ContactInfo.PbAdditionalNumStringData.TextData) ,
-                               (char *)pb_add.ContactInfo.PbAdditionalNumStringData.TextData, (char *)&unicode_text_len, unicode_text);
-       memcpy(pb_add.ContactInfo.PbAdditionalNumStringData.TextData, unicode_text, unicode_text_len );
-       pb_add.ContactInfo.PbAdditionalNumStringData.TextLength =  unicode_text_len;
-       pb_add.ContactInfo.PbAdditionalNumStringData.EncryptionType = TAPI_SIM_TEXT_ENC_GSM7BIT; // always 2 for GAS and AAS
-
-       TET_CHECK(TAPI_API_INVALID_INPUT, tel_update_sim_pb_record(&pb_add, &pRequestId));
-       TET_STAMP_PASS();
-       return;
-}
-
-
-/**
-* @brief tel_update_sim_pb_record() API : Positive condition(Save to 3GSIM)
-* @par ID: UTC_TEL_UPDATE_SIM_PB_RECORD_05
-* @param [in] pb_add
-* @code
-       pb_add.StorageFileType=TAPI_SIM_PB_3GSIM;
-       pb_add.Index=1;
-
-       char unicode_text[256];
-       int unicode_text_len = 0;
-
-       unsigned char name[]="user";
-       memcpy(pb_add.ContactInfo.PbAdditionalNumStringData.TextData,name,20);
-
-       // Unicode conversion conversion
-       BOOL ret =oem_encode_text_unicode(strlen((char *)pb_add.ContactInfo.Pb3GData.PbFileDataInfo[0].FileData) ,
-                               (char *)pb_add.ContactInfo.Pb3GData.PbFileDataInfo[0].FileData, (char *)&unicode_text_len, unicode_text);
-       memcpy(pb_add.ContactInfo.PbAdditionalNumStringData.TextData, unicode_text, unicode_text_len );
-       pb_add.ContactInfo.PbAdditionalNumStringData.TextLength =  unicode_text_len;
-       pb_add.ContactInfo.PbAdditionalNumStringData.EncryptionType = TAPI_SIM_TEXT_ENC_GSM7BIT;
-* @endcode
-* @param [out] &pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPbUpdateResp_t. \n
-*      - TAPI_EVENT_SIM_PB_UPDATE_CNF
-*/
-void utc_tel_update_sim_pb_record_05()
-{
-       TelSimPbRecordData_t  pb_add = {0,};
-       pb_add.StorageFileType=TAPI_SIM_PB_3GSIM;
-       int  pRequestId=0;
-       pb_add.Index=1;
-       char unicode_text[256];
-       int unicode_text_len = 0;
-
-       TET_STAMP_START("StorageFileType=TAPI_SIM_PB_3GSIM");
-       TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-
-       pb_add.ContactInfo.Pb3GData.FileTypeCount = 1;
-       pb_add.ContactInfo.Pb3GData.PbFileDataInfo[0].FileType = TAPI_PB_3G_NAME;
-       pb_add.ContactInfo.Pb3GData.PbFileDataInfo[0].FileDataType.EncryptionType = TAPI_SIM_TEXT_ENC_UCS2;
-
-       unsigned char name[]="user";
-       memcpy(pb_add.ContactInfo.Pb3GData.PbFileDataInfo[0].FileData,name,20);
-
-       /* Unicode conversion */
-       BOOL ret =oem_encode_text_unicode(strlen((char *)pb_add.ContactInfo.Pb3GData.PbFileDataInfo[0].FileData) ,
-                               (char *)pb_add.ContactInfo.Pb3GData.PbFileDataInfo[0].FileData, (char *)&unicode_text_len, unicode_text);
-       if (ret == FALSE)
-       {
-               tet_printf("unicode conversion failed");
-               TET_STAMP_FAIL();
-               return;
-       }
-       memcpy(pb_add.ContactInfo.Pb3GData.PbFileDataInfo[0].FileData, unicode_text, unicode_text_len );
-       pb_add.ContactInfo.Pb3GData.PbFileDataInfo[0].FileDataLength =  unicode_text_len;
-
-       gAsyncResult = FALSE;
-
-       TET_CHECK(TAPI_API_SUCCESS, tel_update_sim_pb_record(&pb_add, &pRequestId));
-
-       G_MAIN_LOOP_RUN(2);
-       TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       return;
-}
-
-
-/** @} */
-
diff --git a/TC/telephony_TC/sim/unit/uts_tel_update_sim_pb_record.h b/TC/telephony_TC/sim/unit/uts_tel_update_sim_pb_record.h
deleted file mode 100644 (file)
index ecf372d..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TAPI_PB_REC_MODIFY_ACCESS_H_
-#define _UTS_TAPI_PB_REC_MODIFY_ACCESS_H_
-
-       static void utc_tel_update_sim_pb_record_01 ();
-       static void utc_tel_update_sim_pb_record_02 ();
-       static void utc_tel_update_sim_pb_record_03 ();
-       static void utc_tel_update_sim_pb_record_04 ();
-       static void utc_tel_update_sim_pb_record_05 ();
-#endif
diff --git a/TC/telephony_TC/sim/unit/uts_tel_verifiy_sim_pins.c b/TC/telephony_TC/sim/unit/uts_tel_verifiy_sim_pins.c
deleted file mode 100644 (file)
index ae5a9b9..0000000
+++ /dev/null
@@ -1,366 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_VERIFY_PIN tel_verifiy_sim_pins
-*
-* @brief Unit test code for tel_verifiy_sim_pins()
-* @par Test function Prototype:
-*      TapiResult_t tel_verifiy_sim_pins(const TelSimPinData_t *pPinData, int *pRequestId);
-* @par Test function description:
-*      This function performs PIN verification. This function performs PIN verification based
-*      on the pin type passed along with pin data
-* @par Important Notes:
-*      This API is used only Boot time. You will used other API set(tel_change_sim_pins(), etc) when boot finished
-* @param [in] pPinData  PIN code, entered by the user.
-*      @code
-       typedef struct
-       {
-               TelSimPinType_t pinType; // Pin type
-               char szPinCode[TAPI_SIM_PIN_LENGTH+1];  // PIN code
-       } TelSimPinData_t;
-       typedef enum
-       {
-               TAPI_SIM_PTYPE_PIN1,
-               TAPI_SIM_PTYPE_PIN2,
-               TAPI_SIM_PTYPE_PUK1,
-               TAPI_SIM_PTYPE_PUK2,
-               TAPI_SIM_PTYPE_UPIN,
-               TAPI_SIM_PTYPE_ADM
-       } TelSimPinType_t;
-*      @endcode
-* @param [out] pRequestId   Unique identifier for a particular request.
-*   - request_id value can be any value from 0 to 255 if the API is returned successfully
-*   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPinInfo_t. \n
-* ( Asynchronous return status is indicated by #TelSimPinOperationResult_t.)
-*      - TAPI_EVENT_SIM_VERIFY_PIN_CNF(API_SIM_PIN_OPERATION_SUCCESS)
-* @pre
-*      - Before test script compile, you set correct PIN1_NORMAL, PIN2_NORMAL, PIN1_CHANGED, PIN2_CHANGED value on 'tet_tapi_util.h'
-*      - Before test script compile, you set incorrect PIN1_INCORRECT value on 'tet_tapi_util.h'
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tel_verifiy_sim_pins.c
-* @brief       Test for the tel_verifiy_sim_pins() API that is used to verify pin code
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "sim_common.h"
-#include "uts_tel_verifiy_sim_pins.h"
-#include "async_util.h"
-
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_verifiy_sim_pins_01, 1},
-       {utc_tel_verifiy_sim_pins_02, 2},
-       {utc_tel_verifiy_sim_pins_03, 3},
-       {utc_tel_verifiy_sim_pins_04, 4},
-       {NULL, 0}
-};
-
-/*
-  User Defined Handler
-*/
-// Global variable for user data
-static BOOL gAsyncResult; //user defined data : Async callback is called or not
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-extern sim_info_t g_si;
-
-/*
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////
-*/
-// Prototype : User must add function body
-gboolean g_timeout_callback (void *data);
-
-// GMainLoop global handler
-GMainLoop *sim_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(sim_loop);
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       sim_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);
-       g_main_loop_run (sim_loop);
-
-       return 0;
-}
-
-gboolean g_timeout_callback (void *data)
-{
-       gAsyncResult = FALSE;
-       tet_printf("[TIME OUT] g_timeout called .Close g_main_roop()");
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////
-
-
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)
-{
-    tet_printf("\n***************[SIM APP]Callback data **********************\n");
-    tet_printf("[SIM]Reques Id[%d]\n", sim_event->RequestId);
-    tet_printf("[SIM]event status [%d]\n", sim_event->Status);
-
-    gAsyncResult = FALSE;
-    BOOL bReceived = FALSE;
-
-    switch(sim_event->EventType)
-    {
-       case TAPI_EVENT_SIM_VERIFY_SEC_CNF:
-       {
-               tet_printf("\n[SIM]*****************TAPI_EVENT_SIM_VERIFY_SEC_CNF***************************\n");
-
-               //TelSimPinInfo_t *pPinInfo = (TelSimPinInfo_t*)sim_event->pData;
-               tet_printf("SIM Verify PIN event status = [%x]\n", sim_event->Status);
-
-               if(sim_event->Status == TAPI_SIM_PIN_OPERATION_SUCCESS)
-               {
-                       tet_printf("PIN2 Vefication Success!");
-
-               }
-               else
-               {
-                       tet_printf("PIN1 Verification Failed! - PIN Required \n");
-                       //tet_printf("Remainint attempts [%d]\n", pPinInfo->RemainingAttempts);
-               }
-                       bReceived = TRUE;
-                       gAsyncResult = TRUE;
-       }
-       break;
-
-       case TAPI_EVENT_SIM_ENABLE_SEC_CNF:
-        {
-               tet_printf("\n[SIM]*****************TAPI_EVENT_SIM_ENABLE_SEC_CNF***************************\n");
-               //TelSimPinInfo_t *pPinInfo = (TelSimPinInfo_t*)sim_event->pData;
-
-               tet_printf("SIM Enable PIN event status = [%x]\n", sim_event->Status);
-               bReceived = TRUE;
-               if(sim_event->Status == TAPI_SIM_PIN_OPERATION_SUCCESS)
-                       gAsyncResult = TRUE;
-               else
-                       gAsyncResult = FALSE;
-
-
-        }
-       break;
-
-       case TAPI_EVENT_SIM_DISABLE_SEC_CNF:
-        {
-               tet_printf("\n[SIM]*****************TAPI_EVENT_SIM_DISABLE_SEC_CNF***************************\n");
-               //TelSimPinInfo_t *pPinInfo = (TelSimPinInfo_t*)sim_event->pData;
-
-               tet_printf("SIM Disable PIN event status = [%x]\n", sim_event->Status);
-
-               bReceived = TRUE;
-               if(sim_event->Status == TAPI_SIM_PIN_OPERATION_SUCCESS)
-                       gAsyncResult = TRUE;
-               else
-                       gAsyncResult = FALSE;
-        }
-       break;
-
-       default:
-               {
-               bReceived = TRUE;
-               gAsyncResult = FALSE;
-               tet_printf("Info : TAPI_EVENT_SIM_DISABLE_SEC_CNF = %d", TAPI_EVENT_SIM_DISABLE_SEC_CNF);
-               tet_printf("[SIM]***************** Undhandled event type [%d] *****************\n",sim_event->EventType);
-               tet_printf("[SIM]Undhandled event state [%d]\n",sim_event->Status);
-               }
-               break;
-    }//end switch
-
-    if (bReceived == TRUE)
-      G_MAIN_LOOP_CLOSE();
-
-    return 0;
-}
-
-
-static void startup()
-{
-    tet_infoline("utc_tel_verifiy_sim_pins Test Start\n");
-
-       sim_pin_info_setup();
-       
-       if ( tel_init() == TAPI_API_SUCCESS)
-       {
-               if ( (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_VERIFY_SEC_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL) ) || (TAPI_API_SUCCESS == tel_register_event(TAPI_SIM_PIN_OPERATION_SUCCESS,&subscription_id,(TelAppCallback)sim_app_callback,NULL) ) )
-                       gStartupSuccess = TRUE;
-               else
-                       tet_infoline("startup fail. tel_register_event() failed");
-       } else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-       tel_register_app_name("org.samsung.test");
-       
-    return;
-}
-
-
-static void cleanup()
-{
-    tet_infoline("utc_tel_verifiy_sim_pins Test Finished\n");
-
-   // Disable pin with correct PWD
-    TelSimSecPw_t pPinData;
-    int pRequestId=0;
-    pPinData.type=TAPI_SIM_PTYPE_PIN1;
-
-    pPinData.pw = (unsigned char*)g_si.pin1;
-       pPinData.pw_len =strlen(g_si.pin1) ;
-    tel_disable_sim_security(&pPinData,&pRequestId);
-
-    if (gStartupSuccess == TRUE)
-       {
-               tel_deregister_event(subscription_id);
-       }
-       tel_deinit();
-
-    return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
-* @brief tel_verifiy_sim_pins() API : Negative condition(Parameter is Null)
-* @par ID: UTC_TEL_VERIFY_SIM_PUKS_01
-* @param [in] &pPinData
-* @param [out]&pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_verifiy_sim_pins_01()
-{
-    TET_STAMP_START("TAPI_API_INVALID_PTR");
-    TelSimSecPw_t pPinData;
-    pPinData.type=TAPI_SIM_PTYPE_PIN1;
-       pPinData.pw = (unsigned char*)g_si.pin1;
-       pPinData.pw_len =strlen(g_si.pin1) ;
-    TET_CHECK(TAPI_API_INVALID_PTR, tel_verifiy_sim_pins(&pPinData, NULL));
-    TET_STAMP_PASS();
-}
-
-/**
-* @brief tel_verifiy_sim_pins() API : Negative condition(Parameter is Null)
-* @par ID: UTC_TEL_VERIFY_SIM_PUKS_02
-* @param [in] &pPinData = NULL
-* @param [out]&pRequestId
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_verifiy_sim_pins_02()
-{
-    TET_STAMP_START("TAPI_API_INVALID_PTR");
-    int RequestId;
-    TelSimSecPw_t pPinData;
-    pPinData.type=TAPI_SIM_PTYPE_PIN1;
-       pPinData.pw = (unsigned char*)g_si.pin1;
-       pPinData.pw_len =strlen(g_si.pin1) ;
-
-    TET_CHECK(TAPI_API_INVALID_PTR, tel_verifiy_sim_pins(NULL,&RequestId));
-    TET_STAMP_PASS();
-}
-
-/**
-* @brief tel_verifiy_sim_pins() API : Negative condition(Low boundary test)
-* @par ID: UTC_TEL_VERIFY_SIM_PUKS_03
-* @param [in] &pPinData.PinType = (TelSimPinType_t)TAPI_SIM_PTYPE_PIN1-1;
-* @param [out]&pRequestId
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_verifiy_sim_pins_03()
-{
-    TET_STAMP_START("TAPI_API_INVALID_INPUT");
-    int RequestId;
-    TelSimSecPw_t pPinData = {0,};
-    pPinData.type = (TelSimPinType_t)TAPI_SIM_PTYPE_PIN1-1;
-       pPinData.pw = (unsigned char*)g_si.pin1;
-       pPinData.pw_len =strlen(g_si.pin1) ;
-    TET_CHECK(TAPI_API_INVALID_INPUT, tel_verifiy_sim_pins(&pPinData, &RequestId));
-    TET_STAMP_PASS();
-}
-
-/**
-* @brief tel_verifiy_sim_pins() API : Negative condition(Upper boundary test)
-* @par ID: UTC_TEL_VERIFY_SIM_PUKS_04
-* @param [in] &pPinData.PinType = (TelSimPinType_t)TAPI_SIM_PTYPE_SIM+1;
-* @param [out]&pRequestId
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_verifiy_sim_pins_04()
-{
-    TET_STAMP_START("TAPI_API_INVALID_INPUT");
-    int RequestId;
-    TelSimSecPw_t pPinData;
-    pPinData.type = (TelSimPinType_t)TAPI_SIM_PTYPE_SIM+1;
-       pPinData.pw = (unsigned char*)g_si.pin1;
-       pPinData.pw_len =strlen(g_si.pin1) ;
-
-    TET_CHECK(TAPI_API_INVALID_INPUT, tel_verifiy_sim_pins(&pPinData, &RequestId));
-    TET_STAMP_PASS();
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_verifiy_sim_pins.h b/TC/telephony_TC/sim/unit/uts_tel_verifiy_sim_pins.h
deleted file mode 100644 (file)
index 65c885c..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TEL_VERIFIY_SIM_PINS_H
-#define _UTS_TEL_VERIFIY_SIM_PINS_H
-
-       static void utc_tel_verifiy_sim_pins_01();
-       static void utc_tel_verifiy_sim_pins_02();
-       static void utc_tel_verifiy_sim_pins_03();
-       static void utc_tel_verifiy_sim_pins_04();
-#endif
diff --git a/TC/telephony_TC/sim/unit/uts_tel_verify_sim_puks.c b/TC/telephony_TC/sim/unit/uts_tel_verify_sim_puks.c
deleted file mode 100644 (file)
index 8f1b7d1..0000000
+++ /dev/null
@@ -1,633 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**
-* @ingroup TELEPHONY_API
-* @addtogroup TAPI_API_SIM_SAT SIM/SAT
-*/
-
-/**
-* @ingroup  TAPI_API_SIM_SAT
-* @addtogroup UTS_SIM_SAT Unit
-*/
-
-/**
-* @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_UNBLOCK_PIN tel_verify_sim_puks
-*
-* @brief Unit test code for tel_verify_sim_puks()
-* @par Test function Prototype:
-*      TapiResult_t tel_verify_sim_puks(const TelSimPinData_t * pPukPinData, const TelSimPinData_t * pNewPinData, int *pRequestId);
-* @par Test function description:
-*      This function performs unblock PIN operation based on PUK information passed along with
-*      unblock information entered by the user.
-* @par Important Notes:
-*      Based on Pin status (PIN/UPIN/PUK) is blocked, an unsolicited event TAPI_EVENT_SIM_STATUS_IND
-*      is published to Applications.
-* @param [in] pPukPinData  Specifies unblocking PIN password
-*      @code
-       typedef struct
-       {
-               TelSimPinType_t PinType;        // Pin type
-               char    szPinCode[TAPI_SIM_PIN_LENGTH+1]; // PIN code
-       } TelSimPinData_t;
-*      @endcode
-* @param [in] pNewPinData  Specifies PIN password.
-* @param [out] pRequestId   Unique identifier for a particular request.
-*   - request_id value can be any value from 0 to 255 if the API is returned successfully
-*   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPinInfo_t. \n
-* ( Asynchronous return status is indicated by #TelSimPinOperationResult_t.)
-*      - TAPI_EVENT_SIM_UNBLOCK_PIN_CNF(TAPI_SIM_PIN_OPERATION_SUCCESS)
-* @pre
-*      - Before test script compile, you set correct PIN1_NORMAL, PIN2_NORMAL, PIN1_CHANGED, PIN2_CHANGED value on 'tet_tapi_util.h'
-*      - Before test script compile, you set incorrect PIN1_INCORRECT value on 'tet_tapi_util.h'
-* @post
-*      None
-* @return
-* Return Type : (TapiResult_t)
-* - TAPI_API_SUCCESS - indicating that the operation has completed successfully.
-* - Otherwise it provides an error code (Refer #TapiResult_t)
-* @{
-*/
-
-/**
-* @file                uts_tel_verify_sim_puks.c
-* @brief       Test for the tel_verify_sim_puks() API that is used to unblock PIN
-* @author      
-* @version     Initial Creation V0.1
-* @date                2008.07.30
-*/
-
-
-#include <tet_api.h>
-#include <ITapiSim.h>
-#include <TapiCommon.h>
-
-#include "tet_tapi_util.h"
-#include "sim_common.h"
-#include "uts_tel_verify_sim_puks.h"
-#include "async_util.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_verify_sim_puks_01, 1},
-       {utc_tel_verify_sim_puks_02, 2},
-       {utc_tel_verify_sim_puks_03, 3},
-       {utc_tel_verify_sim_puks_04, 4},
-       {utc_tel_verify_sim_puks_05, 5},
-       {NULL, 0}
-};
-
-/*
-  User Defined Handler
-*/
-// Global variable for user data
-static BOOL gAsyncResult; //user defined data : Async callback is called or not
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-extern sim_info_t g_si;
-
-
-/*
-  G_MAIN Utility ////////////////////////////////////////////////////////////////////////////
-*/
-// Prototype : User must add function body
-gboolean g_timeout_callback (void *data);
-
-// GMainLoop global handler
-GMainLoop *sim_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(sim_loop);
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       sim_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add ( (sec * 1000), g_timeout_callback, NULL);
-       g_main_loop_run (sim_loop);
-
-       return 0;
-}
-
-gboolean g_timeout_callback (void *data)
-{
-//     gAsyncResult = FALSE;
-       tet_printf("[TIME OUT] g_timeout called .Close g_main_roop()");
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-// End of  G_MAIN Utility//////////////////////////////////////////////////////////////////////
-
-
-static int sim_pin_process_for_condition(TelSimPinType_t wish_pin, TelSimPinStatus_t wish_condition)
-{
-    int pRequestId=0;
-       int tapiRet = TAPI_API_SUCCESS;
-       TelSimPinStatus_t pin_status = TAPI_SIM_PIN_STATUS_UNKNOWN;
-       TelSimSecPw_t sec_data;
-       memset(&sec_data, 0x00, sizeof(TelSimSecPw_t));
-       
-       tet_printf("pin[%d]:0-pin1, 1-pin2, wish_condition[%d]: 0-dis, 1- enabled, 2-blocked(puk)",wish_pin, wish_condition);
-
-       tapiRet = tel_get_sim_security_status(wish_pin,&pin_status);
-       if(tapiRet != TAPI_API_SUCCESS)
-       {
-               tet_printf("tel_get_sim_security_status is Failed with tapiRet[%d]", tapiRet);
-               return -1;
-       }
-
-       if(pin_status == TAPI_SIM_PIN_STATUS_DISABLED )
-       {
-               tet_printf("current pin status is TAPI_SIM_PIN_STATUS_DISABLED");
-       }
-       else if(pin_status == TAPI_SIM_PIN_STATUS_ENABLED)
-       {
-               tet_printf("current pin status is TAPI_SIM_PIN_STATUS_ENABLED");
-       }
-       else
-       {
-               tet_printf("current pin status is unhandled status[%d]",pin_status );
-               return -1;
-       }
-
-       if(pin_status == wish_condition )
-       {
-               tet_printf("current pin status is same with wished condition");
-               return 0;
-       }
-       else
-       {
-               tet_printf("current pin status is different with wished condition");    
-               sec_data.type = wish_pin;
-
-               if(wish_pin == TAPI_SIM_PTYPE_PIN1 )
-               {
-                       sec_data.pw_len = strlen(g_si.pin1);
-                       sec_data.pw = (unsigned char*)malloc(sec_data.pw_len);
-                       memcpy(sec_data.pw,g_si.pin1,sec_data.pw_len);
-               }
-               else if(wish_pin == TAPI_SIM_PTYPE_PIN2)
-               {
-                       sec_data.pw_len = strlen(g_si.pin2);
-                       sec_data.pw = (unsigned char*)malloc(sec_data.pw_len);
-                       memcpy(sec_data.pw,g_si.pin2,sec_data.pw_len);
-               }
-
-               gAsyncResult = FALSE;
-               
-               if(wish_condition == TAPI_SIM_PIN_STATUS_DISABLED)
-               {
-                       tet_printf("make pin status with wished condition(TAPI_SIM_PIN_STATUS_DISABLED)");
-
-                       tapiRet = tel_disable_sim_security(&sec_data,&pRequestId);
-               }
-               else if(wish_condition == TAPI_SIM_PIN_STATUS_ENABLED)
-               {
-                       tet_printf("make pin status with wished condition(TAPI_SIM_PIN_STATUS_ENABLED)");               
-                       tapiRet = tel_enable_sim_security(&sec_data,&pRequestId);
-               }
-               else
-               {
-                       tet_printf("Unhandled wish_condition[%d]", wish_condition);
-                       return -1;
-               }
-               
-               if(tapiRet != TAPI_API_SUCCESS)
-               {
-                       tet_printf("tapi return[%d] when en/disabling pin for condition",tapiRet);
-                       return -1;
-               }
-               else
-               {
-                       tet_printf("wait for condition async event resp - start");                              
-                       G_MAIN_LOOP_RUN(5);
-                       tet_printf("wait for condition async event resp - stop");                               
-               }
-
-               tet_printf("gAsyncResult[%d]", gAsyncResult);                           
-
-               if(gAsyncResult == TRUE)
-               {
-                       return 0;
-               }
-               else
-               {
-                       return -1;
-               }
-       }
-
-       return 0;
-}
-
-
-static int  sim_app_callback  (TelTapiEvent_t *sim_event)
-{
-    tet_printf("\n***************[SIM APP]Callback data **********************\n");
-    tet_printf("[SIM]Reques Id[%d]\n", sim_event->RequestId);
-    tet_printf("[SIM]event status [%d]\n", sim_event->Status);
-
-    gAsyncResult = FALSE;
-    BOOL bReceived = FALSE;
-
-    switch(sim_event->EventType)
-    {
-       case   TAPI_EVENT_SIM_VERIFY_PUK_CNF:
-       {
-               tet_printf("[SIM]***************** TAPI_EVENT_SIM_VERIFY_PUK_CNF***************************");
-               TelSimPinOperationResult_t opResult = (TelSimPinOperationResult_t)sim_event->Status;
-               TelSimPinInfo_t *pPinInfo;
-               pPinInfo = (TelSimPinInfo_t *)sim_event->pData;
-               tet_printf("SIM Unblock PIN event status = [%x]", opResult);
-
-               if(opResult == TAPI_EVENT_SIM_VERIFY_PUK_CNF)
-               {
-                       if(pPinInfo->PinType == TAPI_SIM_PTYPE_PIN1)
-                               tet_printf("Unblock PIN1 Success!\n");
-                       else if(pPinInfo->PinType == TAPI_SIM_PTYPE_PIN2)
-                               tet_printf("Unblock PIN2 Success!\n");
-                       else if(pPinInfo->PinType == TAPI_SIM_PTYPE_PUK1)
-                               tet_printf("Unblock PUK1 Success!\n");
-                       else if(pPinInfo->PinType == TAPI_SIM_PTYPE_PUK2)
-                               tet_printf("Unblock PUK2 Success!\n");
-
-               }
-               else
-               {
-                       if(pPinInfo->PinType == TAPI_SIM_PTYPE_PIN1)
-                       {
-                               tet_printf("PIN1 Verification Failed! - PIN Required \n");
-                               //tet_printf("Remainint attempts [%d]\n", pPinInfo->RemainingAttempts);
-                       }
-                       else if(pPinInfo->PinType == TAPI_SIM_PTYPE_PUK1)
-                       {
-                               tet_printf("PIN1 Verification Failed! - PUK Required \n");
-                               //tet_printf("Remainint attempts [%d]\n", pPinInfo->RemainingAttempts);
-                       }
-                       else if(pPinInfo->PinType == TAPI_SIM_PTYPE_PIN2)
-                       {
-                               tet_printf("PIN2 Verification Failed! - PIN2 Required \n");
-                               //tet_printf("Remainint attempts [%d]\n", pPinInfo->RemainingAttempts);
-                       }
-                       else if(pPinInfo->PinType == TAPI_SIM_PTYPE_PUK1)
-                       {
-                               tet_printf("PIN2 Verification Failed! - PUK2 Required \n");
-                               //tet_printf("Remainint attempts [%d]\n", pPinInfo->RemainingAttempts);
-                       }
-
-
-               }
-                       bReceived = TRUE;
-                       gAsyncResult = TRUE;
-       }
-       break;
-
-           case TAPI_EVENT_SIM_ENABLE_SEC_CNF: //preet: changed TAPI_EVENT_SIM_ENABLE_PIN_CNF to TAPI_EVENT_SIM_ENABLE_SEC_CNF
-        {
-            tet_printf("\n[SIM]*****************TAPI_EVENT_SIM_ENABLE_SEC_CNF***************************\n");
-            tet_printf("SIM Enable PIN event status = [%x]\n", sim_event->Status);
-
-            if(sim_event->Status == TAPI_SIM_PIN_OPERATION_SUCCESS)
-                gAsyncResult = TRUE;
-            else
-                gAsyncResult = FALSE;
-
-                       tet_printf("gAsyncResult after enpin[%d]",gAsyncResult);
-        }
-        break;
-
-           case TAPI_EVENT_SIM_DISABLE_SEC_CNF:        ////preet: changed TAPI_EVENT_SIM_DISABLE_PIN_CNF to TAPI_EVENT_SIM_DISABLE_SEC_CNF
-        {
-            tet_printf("\n[SIM]*****************TAPI_EVENT_SIM_DISABLE_SEC_CNF***************************\n");
-            tet_printf("SIM Disable PIN event status = [%x]\n", sim_event->Status);
-
-            if(sim_event->Status == TAPI_SIM_PIN_OPERATION_SUCCESS)
-                  gAsyncResult = TRUE;
-            else
-                gAsyncResult = FALSE;
-        }
-        break;
-
-
-        default:
-        {
-               bReceived = TRUE;
-               gAsyncResult = FALSE;
-               tet_printf("Info : TAPI_EVENT_SIM_VERIFY_PUK_CNF = %d", TAPI_EVENT_SIM_VERIFY_PUK_CNF);
-               tet_printf("[SIM]***************** Undhandled event type [%d] *****************\n",sim_event->EventType);
-               tet_printf("[SIM]Undhandled event state [%d]\n",sim_event->Status);
-       }
-       break;
-    }//end switch
-
-    if (bReceived == TRUE)
-      G_MAIN_LOOP_CLOSE();
-
-    return 0;
-}
-
-
-static void startup()
-{
-    tet_infoline("utc_tel_verify_sim_puks Test Start\n");
-
-       sim_pin_info_setup();
-
-       if ( tel_init() == TAPI_API_SUCCESS)
-       {
-
-               tel_register_event(TAPI_EVENT_SIM_VERIFY_PUK_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);
-               tel_register_event(TAPI_EVENT_SIM_ENABLE_SEC_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);
-               tel_register_event(TAPI_EVENT_SIM_DISABLE_SEC_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL);              
-
-               gStartupSuccess = TRUE;
-
-       } else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-        tel_register_app_name("org.samsung.test");
-    return;
-}
-
-
-static void cleanup()
-{
-    tet_infoline("utc_tel_verify_sim_puks Test Finished\n");
-    if (gStartupSuccess == TRUE)
-       {
-               tel_deregister_event(subscription_id);
-       }
-       tel_deinit();
-    return;
-}
-
-
-/*
-  Unit Test Case functions
-*/
-
-/**
-* @brief tel_verify_sim_puks() API : Negative condition(Parameter is Null)
-* @par ID: UTC_TEL_VERIFY_SIM_PUKS_01
-* @param [in] &pPukPinData = NULL
-* @param [in] &pNewPinData
-* @param [out]&pRequestId
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_verify_sim_puks_01()
-{
-    TET_STAMP_START("TAPI_API_INVALID_PTR 1");
-    int pRequestId=0;
-
-    TelSimSecPw_t pPukdata;
-    TelSimSecPw_t pNewPindata;
-  
-    tet_printf("THE PUK CODE IS %s\n", g_si.puk1);
-    tet_printf("NEW PIN1 CODE %s\n", g_si.pin1);
-
-    pPukdata.type = TAPI_SIM_PTYPE_PUK1;   // 0x00
-    pNewPindata.type = TAPI_SIM_PTYPE_PIN1;   // 0x00
-
-       pPukdata.pw= (unsigned char*)g_si.puk1;
-       pNewPindata.pw = (unsigned char*)g_si.pin1;
-       pPukdata.pw_len=strlen(g_si.puk1);
-       pNewPindata.pw_len=strlen(g_si.pin1);
-    TET_CHECK(TAPI_API_INVALID_PTR, tel_verify_sim_puks(NULL,&pNewPindata,&pRequestId));
-    TET_STAMP_PASS();
-}
-
-/**
-* @brief tel_verify_sim_puks() API : Negative condition(Parameter is Null)
-* @par ID: UTC_TEL_VERIFY_SIM_PUKS_02
-* @param [in] &pPukPinData
-* @param [in] &pNewPinData = NULL
-* @param [out]&pRequestId
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_verify_sim_puks_02()
-{
-    TET_STAMP_START("TAPI_API_INVALID_PTR 2");
-    int pRequestId=0;
-
-    TelSimSecPw_t pPukdata;
-    TelSimSecPw_t pNewPindata;
-
-    tet_printf("THE PUK CODE IS %s\n", g_si.puk1);
-    tet_printf("NEW PIN1 CODE %s\n", g_si.pin1);
-
-    pPukdata.type = TAPI_SIM_PTYPE_PUK1;   // 0x00
-    pNewPindata.type = TAPI_SIM_PTYPE_PIN1;   // 0x00
-       pPukdata.pw=(unsigned char*)g_si.puk1;
-       pNewPindata.pw = (unsigned char*)g_si.pin1;
-
-       pPukdata.pw_len=strlen(g_si.puk1);
-       pNewPindata.pw_len=strlen(g_si.pin1);
-    TET_CHECK(TAPI_API_INVALID_PTR, tel_verify_sim_puks(&pPukdata,NULL,&pRequestId));
-    TET_STAMP_PASS();
-}
-
-/**
-* @brief tel_verify_sim_puks() API : Negative condition(Parameter is Null)
-* @par ID: UTC_TEL_VERIFY_SIM_PUKS_03
-* @param [in] &pPukPinData
-* @param [in] &pNewPinData
-* @param [out]&pRequestId = NULL
-* @return TAPI_API_INVALID_PTR
-*/
-void utc_tel_verify_sim_puks_03()
-{
-    TET_STAMP_START("TAPI_API_INVALID_PTR 3");
-
-    TelSimSecPw_t pPukdata;
-    TelSimSecPw_t pNewPindata;
-
-    tet_printf("THE PUK CODE IS %s\n", g_si.puk1);
-    tet_printf("NEW PIN1 CODE %s\n", g_si.pin1);
-
-    pPukdata.type = TAPI_SIM_PTYPE_PUK1;   // 0x00
-    pNewPindata.type = TAPI_SIM_PTYPE_PIN1;   // 0x00
-
-       pPukdata.pw=(unsigned char*)g_si.puk1;
-       pNewPindata.pw = (unsigned char*)g_si.pin1;
-
-       pPukdata.pw_len=strlen(g_si.puk1);
-       pNewPindata.pw_len=strlen(g_si.pin1);
-    TET_CHECK(TAPI_API_INVALID_PTR, tel_verify_sim_puks(&pPukdata,&pNewPindata,NULL));
-    TET_STAMP_PASS();
-}
-
-/**
-* @brief tel_verify_sim_puks() API : Positive condition(Try to unblock PIN1 code)
-* @par ID: UTC_TEL_VERIFY_SIM_PUKS_04
-* @param [in] &pPukPinData
-* @param [in] &pNewPinData
-* @code
-    TelSimPinData_t pPukdata;
-    TelSimPinData_t pNewPindata;
-
-    strcpy(init_puk_val, PUK1_CODE);
-    strcpy(init_pin_val, PIN1_NORMAL);
-
-    pPukdata.PinType = TAPI_SIM_PTYPE_PUK1;
-    pNewPindata.PinType = TAPI_SIM_PTYPE_PIN1;
-
-    memcpy(pPukdata.szPinCode,init_puk_val,length);
-    memcpy(pNewPindata.szPinCode,init_pin_val,length);
-* @endcode
-* @param [out]&pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPinInfo_t. \n
-* ( Asynchronous return status is indicated by #TelSimPinOperationResult_t.)
-*      - TAPI_EVENT_SIM_UNBLOCK_PIN_CNF(TAPI_SIM_PIN_OPERATION_SUCCESS)
-*/
-void utc_tel_verify_sim_puks_04()
-{
-    TET_STAMP_START("Normal operation TAPI_SIM_PTYPE_PIN1");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-    int pRequestId=0;
-
-    TelSimSecPw_t pPukdata;
-    TelSimSecPw_t pNewPindata;
-
-       // Step 1 : make proper condition
-    tet_printf("Step 1 : enable pin");
-
-       if( 0 != sim_pin_process_for_condition(TAPI_SIM_PTYPE_PIN1,TAPI_SIM_PIN_STATUS_ENABLED))
-       {
-               tet_printf("condition set is failed!!");
-               return;
-       }
-
-       // Step 2 : verify puk
-    tet_printf("Step 2 : verify puk");
-
-    tet_printf("THE PUK CODE IS %s\n", g_si.puk1);
-    tet_printf("NEW PIN1 CODE %s\n", g_si.pin1);
-
-    pPukdata.type = TAPI_SIM_PTYPE_PUK1;
-    pNewPindata.type = TAPI_SIM_PTYPE_PIN1;
-       pPukdata.pw = (unsigned char*)g_si.puk1;
-       pNewPindata.pw = (unsigned char*)g_si.pin1;
-
-       pPukdata.pw_len=strlen(g_si.puk1);
-       pNewPindata.pw_len=strlen(g_si.pin1);
-
-    gAsyncResult = FALSE;
-
-    TapiResult_t err = tel_verify_sim_puks(&pPukdata,&pNewPindata,&pRequestId);
-
-       TET_RESULT_NOT_EQUAL(TET_FAIL,TAPI_API_SUCCESS,err);
-
-    tet_printf("after real tc api - wait start");
-
-    G_MAIN_LOOP_RUN(10);
-
-    tet_printf("after real tc api - wait stop");
-
-       TET_RESULT_NOT_EQUAL_GOTO(TET_FAIL,exit,gAsyncResult,TRUE); // If gAsyncResult != FALSE, then TET_FAIL and return
-       TET_STAMP_PASS();
-       
-exit:
-       // Step 3 : make default condition
-       tet_printf("Step 3 : disable pin");
-       
-       if( 0 != sim_pin_process_for_condition(TAPI_SIM_PTYPE_PIN1,TAPI_SIM_PIN_STATUS_DISABLED))
-       {
-               tet_printf("condition set is failed!!");
-       }
-       return; 
-}
-
-
-/**
-* @brief tel_verify_sim_puks() API : Positive condition(Try to unblock PIN2 code)
-* @par ID: UTC_TEL_VERIFY_SIM_PUKS_05
-* @param [in] &pPukPinData
-* @param [in] &pNewPinData
-* @code
-    TelSimPinData_t pPukdata;
-    TelSimPinData_t pNewPindata;
-
-    strcpy(init_puk_val, PUK2_CODE);
-    strcpy(init_pin_val, PIN2_NORMAL);
-
-    pPukdata.PinType = TAPI_SIM_PTYPE_PUK2;
-    pNewPindata.PinType = TAPI_SIM_PTYPE_PIN2;
-
-    memcpy(pPukdata.szPinCode,init_puk_val,length);
-    memcpy(pNewPindata.szPinCode,init_pin_val,length);
-* @endcode
-* @param [out]&pRequestId
-* @return TAPI_API_SUCCESS
-* @par Async Response Message:
-* The event associated is below and the event data is #TelSimPinInfo_t. \n
-* ( Asynchronous return status is indicated by #TelSimPinOperationResult_t.)
-*      - TAPI_EVENT_SIM_UNBLOCK_PIN_CNF(TAPI_SIM_PIN_OPERATION_SUCCESS)
-*/
-void utc_tel_verify_sim_puks_05()
-{
-    TET_STAMP_START("Normal operation : TAPI_SIM_PTYPE_PIN2");
-    TET_RESULT_NOT_EQUAL(TET_UNTESTED,gStartupSuccess, TRUE);
-
-    int pRequestId=0;
-       TelSimSecPw_t puk_data = {0,};
-       TelSimSecPw_t new_pin_data = {0,};
-       
-       puk_data.type = TAPI_SIM_PTYPE_PUK2;   // 0x00
-       puk_data.pw_len = strlen(g_si.puk2);
-       puk_data.pw = (unsigned char*)malloc(puk_data.pw_len);
-       memcpy(puk_data.pw,g_si.puk2,puk_data.pw_len);
-       
-       new_pin_data.type = TAPI_SIM_PTYPE_PIN2;   // 0x00
-       new_pin_data.pw_len = strlen(g_si.pin2);
-       new_pin_data.pw = (unsigned char*)malloc(new_pin_data.pw_len);
-       memcpy(new_pin_data.pw,g_si.pin2,new_pin_data.pw_len);
-
-    gAsyncResult = FALSE;
-
-    TapiResult_t err = tel_verify_sim_puks(&puk_data,&new_pin_data,&pRequestId);
-    TET_CHECK(TAPI_API_SUCCESS, err);
-
-    tet_printf("after real tc api - wait start");
-
-    G_MAIN_LOOP_RUN(10);
-
-    tet_printf("after real tc api - wait stop");
-
-    TET_RESULT_NOT_EQUAL(TET_FAIL,gAsyncResult,TRUE); // If gAsyncResult != TRUE, then TET_FAIL and return
-    TET_STAMP_PASS();
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sim/unit/uts_tel_verify_sim_puks.h b/TC/telephony_TC/sim/unit/uts_tel_verify_sim_puks.h
deleted file mode 100644 (file)
index bd36df6..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TEL_VERIFY_SIM_PUKS_H_
-#define _UTS_TEL_VERIFY_SIM_PUKS_H_
-
-       static void utc_tel_verify_sim_puks_01();
-       static void utc_tel_verify_sim_puks_02();
-       static void utc_tel_verify_sim_puks_03();
-       static void utc_tel_verify_sim_puks_04();
-       static void utc_tel_verify_sim_puks_05();
-#endif
diff --git a/TC/telephony_TC/sms/README b/TC/telephony_TC/sms/README
deleted file mode 100644 (file)
index 2e920d4..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-=================================================================================
-*                              README                                                                          *
-=================================================================================
-
-1. The SMS Test Script directory (TestCases) includes:
-
-       telephony-framework/sms
-               |-- README                                          ; This file
-               `-- Unit                                            ; contains Unit TCs
-                   |-- makefile
-                   |-- tslist
-                   `-- Unit test case source codes
-       2 directories, 82 files
-       
-
-2. The $(TEST_ROOT) directory must includes following files:
-
-       /$(TEST_ROOT)
-               |-- tet_scen
-               |-- tetbuild.cfg
-               |-- tetclean.cfg
-               |-- tetexec.cfg
-               `-- ...(elipsis)
-
-=================================================================================
-*                                  Preconditions                                *
----------------------------------------------------------------------------------
-|  Before Testing SMS Module, you should check the following conditions         |
-=================================================================================
-
-1. Prepare a vaild SIM card.
-
-2. One target for the execution of testcases.
-
-3. One mobile phone for receiving test message.
-       
-4. Modify the mobile number
-       - sms_common.h
-       - Followings are the macro for mobile number customized as per the country.
-               // Mobile numbers
-
-               #define VALID_SCA_NUM   "8210911111"            // SMS Center Address
-               #define RECEIPIENT      "01030014342"           // Receipient Number
-
-5. During execution continuously watch the log file at Putty or whatever terminal used for target logging and as per the log instruction, user has to provide a SMS.
-
-         e,g.: log will be printed in the following fashion:
-
-       ******************************************
-       * Please send a message to tesing target * 
-       * within 60 seconds !!!                  *
-       ******************************************
-
-=================================================================================
-*                                  Change log                                   *
-=================================================================================
-1. 18-Dec-2008
-       - Initial draft.
-
-2. 6-Oct-2010
-       - Revised
-       
-=================================================================================
-*                                      NOTE                                     *
-=================================================================================
-1. In order to ensure successful working of the Test Scripts, please ensure that all of the IPKG files are installed normally.
-2. Testing SMS Module can be executed under target system environment (not simulator).
-
-
diff --git a/TC/telephony_TC/sms/sms_common.h b/TC/telephony_TC/sms/sms_common.h
deleted file mode 100644 (file)
index 922dfbc..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef _SMS_COMMON_H_
-#define _SMS_COMMON_H_
-
-#define VALID_SCA_NUM   "8210911111"
-#define RECEIPIENT      "01030014342"
-
-#endif
-
diff --git a/TC/telephony_TC/sms/unit/async_util.c b/TC/telephony_TC/sms/unit/async_util.c
deleted file mode 100644 (file)
index f854b12..0000000
+++ /dev/null
@@ -1,129 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include <stdio.h>
-#include <unistd.h>
-
-#include "async_util.h"
-
-static void G_MAIN_TIMER_HANDLER(int sgi);
-
-// Global variable for G_MAIN system
-#if 0
-static int gEventHandle=0;
-static unsigned int gSubscription_id;
-#endif
-static GMainLoop * nw_context_loop = NULL;
-static EvtAlarmCb gpAlarm_Handler = NULL;
-
-GMainLoop *main_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-       g_main_loop_quit(nw_context_loop);
-}
-
-void G_MAIN_TIMER_HANDLER(int sgi)
-{
-       if (gpAlarm_Handler)
-               gpAlarm_Handler(sgi);
-       else {
-               fprintf(stderr, "SIGALRM received. But user handler not registered. Close g_main_loop()");
-               G_MAIN_LOOP_CLOSE();
-       }
-}
-
-#if 0
-TS_BOOL G_MAIN_INIT(EvtSysEventCb pNotiHandler, EvtAlarmCb pAlarmHandler)
-{
-       int open_status;
-       int error_code;
-       gpAlarm_Handler = pAlarmHandler;
-
-       g_type_init();
-       /*
-        open_status = EvtSysLibraryOpen(&gEventHandle);
-        if (open_status!=0)
-        {
-        printf("Unable to get connection to event delivery\n");
-        printf("the error is %d\n",open_status);
-        return FALSE;
-        }
-        printf("event handle is %d\n",gEventHandle);
-
-        error_code = EvtSysEventSubscribe(
-        0,
-        "Telephony.Nettext.*",          // notification ID
-        NULL,                       //  filter expression   //
-        pNotiHandler,      // notification handler
-        NULL,                       // local data //
-        &gSubscription_id            // subscription ID //
-        );
-        */
-       if (error_code )
-       {
-               fprintf(stderr, "EvtSysEventSubscribe(): error [%#X] for event [Telephony.test.Async]\n", error_code);
-               return FALSE;
-       }
-       return TRUE;
-}
-
-TS_BOOL G_MAIN_CLOSE()
-{
-       //int close_status = EvtSysLibraryClose(gEventHandle);
-       if (close_status!=0)
-       {
-               printf("Unable to get close connection to event delivery\n");
-               printf("The error is %d\n",close_status);
-               return FALSE;
-       }
-       gEventHandle = 0;
-       sleep(3);
-       printf("############ Notification subscriber remove  #######\n");
-       return TRUE;
-}
-#endif
-
-void G_MAIN_LOOP_RUN(int sec)
-{
-       (void) signal(SIGALRM, G_MAIN_TIMER_HANDLER);
-       alarm(sec);
-       nw_context_loop = g_main_loop_new(NULL, FALSE);
-       g_main_loop_run(nw_context_loop);
-       alarm(0);
-}
-
-gboolean TimeOutFun(void *data)
-{
-       g_main_loop_quit(main_loop);
-       printf("[TimeOutFun()] : g_main_loop_quit.\n");
-       return FALSE;
-
-}
-
-int gmain_loop_for_events(int delay)
-{
-       main_loop = g_main_loop_new(NULL, FALSE);
-       g_timeout_add(delay, TimeOutFun, NULL);
-       g_main_loop_run(main_loop);
-
-       return 0;
-}
diff --git a/TC/telephony_TC/sms/unit/async_util.h b/TC/telephony_TC/sms/unit/async_util.h
deleted file mode 100644 (file)
index 61be8e1..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef _ASYNC_UTIL_H_
-#define _ASYNC_UTIL_H_
-
-/*
- G_MAIN event system
- */
-#include <sys/types.h>
-#include <signal.h>
-#include <glib.h>
-#include <glib/gbase64.h>
-#include <TelDefines.h>
-
-typedef void (*EvtAlarmCb)(int sgi);
-TS_BOOL gAsyncResult;
-
-// Prototype for G_MAIN system
-//TS_BOOL G_MAIN_INIT(EvtSysEventCb pNotiHandler, EvtAlarmCb pAlarmHandler);
-//TS_BOOL G_MAIN_CLOSE();
-void G_MAIN_LOOP_RUN(int sec);
-void G_MAIN_LOOP_CLOSE();
-int gmain_loop_for_events(int delay);
-gboolean TimeOutFun(void *data);
-
-#endif
diff --git a/TC/telephony_TC/sms/unit/error b/TC/telephony_TC/sms/unit/error
deleted file mode 100644 (file)
index c3d4070..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-sbox-arm-none-linux-gnueabi-gcc: /lib/tet3/tcm.o: No such file or directory
-uts_tel_delete_sms_in_sim.c: In function 'startup':
-uts_tel_delete_sms_in_sim.c:88: warning: passing argument 3 of 'tel_register_event' from incompatible pointer type
-/usr/include/telephony/common/include/TapiCommon.h:153: note: expected 'TelAppCallback' but argument is of type 'void (*)(struct TelTapiEvent_t *)'
-sms_callback_util.c: In function 'DecodeCellBroadcastMsg':
-sms_callback_util.c:69: warning: suggest parentheses around arithmetic in operand of '|'
-sms_callback_util.c:92: warning: pointer targets in passing argument 1 of 'SmsUtilUnpackGSMCode' differ in signedness
-sms_util.h:465: note: expected 'char *' but argument is of type 'TS_UINT8 *'
-sms_callback_util.c:92: warning: pointer targets in passing argument 2 of 'SmsUtilUnpackGSMCode' differ in signedness
-sms_util.h:465: note: expected 'const TS_BYTE *' but argument is of type 'char *'
-sms_callback_util.c:97: warning: assignment makes integer from pointer without a cast
-sms_callback_util.c:106: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'tapi_nettext_coding_scheme'
-sms_callback_util.c: In function 'DecodeSmsSubmitTpdu':
-sms_callback_util.c:133: warning: pointer targets in passing argument 1 of 'SmsUtilDecodeAddrField' differ in signedness
-sms_util.h:475: note: expected 'char *' but argument is of type 'TS_BYTE *'
-sms_callback_util.c:133: warning: pointer targets in passing argument 2 of 'SmsUtilDecodeAddrField' differ in signedness
-sms_util.h:475: note: expected 'unsigned char *' but argument is of type 'char *'
-sms_callback_util.c:137: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
-/usr/include/string.h:397: note: expected 'const char *' but argument is of type 'TS_BYTE *'
-sms_callback_util.c:177: warning: pointer targets in passing argument 1 of 'SmsUtilDecodeAddrField' differ in signedness
-sms_util.h:475: note: expected 'char *' but argument is of type 'TS_BYTE *'
-sms_callback_util.c:177: warning: pointer targets in passing argument 2 of 'SmsUtilDecodeAddrField' differ in signedness
-sms_util.h:475: note: expected 'unsigned char *' but argument is of type 'char *'
-sms_callback_util.c:217: warning: enumeration value 'TAPI_NETTEXT_VP_NOT_USED' not handled in switch
-sms_callback_util.c:257: warning: pointer targets in passing argument 1 of 'SmsUtilUnpackGSMCode' differ in signedness
-sms_util.h:465: note: expected 'char *' but argument is of type 'TS_BYTE *'
-sms_callback_util.c: In function 'DecodeSmsDeliverTpdu':
-sms_callback_util.c:317: warning: pointer targets in passing argument 1 of 'SmsUtilDecodeAddrField' differ in signedness
-sms_util.h:475: note: expected 'char *' but argument is of type 'TS_BYTE *'
-sms_callback_util.c:317: warning: pointer targets in passing argument 2 of 'SmsUtilDecodeAddrField' differ in signedness
-sms_util.h:475: note: expected 'unsigned char *' but argument is of type 'char *'
-sms_callback_util.c:351: warning: pointer targets in passing argument 1 of 'SmsUtilDecodeTimeStamp' differ in signedness
-sms_util.h:471: note: expected 'unsigned char *' but argument is of type 'char *'
-sms_callback_util.c:376: warning: pointer targets in passing argument 1 of 'SmsUtilUnpackGSMCode' differ in signedness
-sms_util.h:465: note: expected 'char *' but argument is of type 'TS_BYTE *'
-sms_callback_util.c: In function 'DecodeSmsSubmitReportTpdu':
-sms_callback_util.c:479: warning: pointer targets in passing argument 1 of 'SmsUtilDecodeTimeStamp' differ in signedness
-sms_util.h:471: note: expected 'unsigned char *' but argument is of type 'char *'
-sms_callback_util.c:523: warning: pointer targets in passing argument 1 of 'SmsUtilUnpackGSMCode' differ in signedness
-sms_util.h:465: note: expected 'char *' but argument is of type 'TS_BYTE *'
-sms_callback_util.c: In function 'DecodeSmsStatusReportTpdu':
-sms_callback_util.c:579: warning: pointer targets in passing argument 1 of 'SmsUtilDecodeAddrField' differ in signedness
-sms_util.h:475: note: expected 'char *' but argument is of type 'TS_BYTE *'
-sms_callback_util.c:579: warning: pointer targets in passing argument 2 of 'SmsUtilDecodeAddrField' differ in signedness
-sms_util.h:475: note: expected 'unsigned char *' but argument is of type 'char *'
-sms_callback_util.c:608: warning: pointer targets in passing argument 1 of 'SmsUtilDecodeTimeStamp' differ in signedness
-sms_util.h:471: note: expected 'unsigned char *' but argument is of type 'char *'
-sms_callback_util.c:612: warning: pointer targets in passing argument 1 of 'SmsUtilDecodeTimeStamp' differ in signedness
-sms_util.h:471: note: expected 'unsigned char *' but argument is of type 'char *'
-sms_callback_util.c:661: warning: pointer targets in passing argument 1 of 'SmsUtilUnpackGSMCode' differ in signedness
-sms_util.h:465: note: expected 'char *' but argument is of type 'TS_BYTE *'
-sms_callback_util.c:555: warning: unused variable 'scaAddr'
-sms_callback_util.c: In function 'ReadMsgNotification':
-sms_callback_util.c:751: warning: pointer targets in passing argument 1 of 'SmsUtilDecodeAddrField' differ in signedness
-sms_util.h:475: note: expected 'char *' but argument is of type 'TS_BYTE *'
-sms_callback_util.c:755: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
-/usr/include/string.h:397: note: expected 'const char *' but argument is of type 'TS_BYTE *'
-sms_callback_util.c: In function 'tapi_sms_callback':
-sms_callback_util.c:961: warning: 'pData' may be used uninitialized in this function
-sms_util.c: In function 'SmsUtilEncodeTimeStamp':
-sms_util.c:357: warning: format '%02d' expects type 'int', but argument 3 has type 'char *'
-sms_util.c: In function 'SmsUtilEncodeDCS':
-sms_util.c:742: warning: enumeration value 'TAPI_NETTEXT_CLASS_NONE' not handled in switch
-sms_util.c:742: warning: enumeration value 'TAPI_NETTEXT_CLASS_MAX' not handled in switch
-sms_util.c:806: warning: enumeration value 'TAPI_NETTEXT_WAITING_MAX' not handled in switch
-sms_util.c:839: warning: enumeration value 'TAPI_NETTEXT_WAITING_MAX' not handled in switch
-sms_util.c:869: warning: enumeration value 'TAPI_NETTEXT_ALPHABET_UCS2' not handled in switch
-sms_util.c:869: warning: enumeration value 'TAPI_NETTEXT_ALPHABET_KSC5601' not handled in switch
-sms_util.c:869: warning: enumeration value 'TAPI_NETTEXT_ALPHABET_MAX' not handled in switch
-sms_util.c:883: warning: enumeration value 'TAPI_NETTEXT_CLASS_NONE' not handled in switch
-sms_util.c:883: warning: enumeration value 'TAPI_NETTEXT_CLASS_MAX' not handled in switch
-sms_util.c:731: warning: enumeration value 'TAPI_NETTEXT_CODGRP_CB_GENERAL_LANG' not handled in switch
-sms_util.c:731: warning: enumeration value 'TAPI_NETTEXT_CODGRP_CB_ALPHA' not handled in switch
-sms_util.c:731: warning: enumeration value 'TAPI_NETTEXT_CODGRP_CB_RES1' not handled in switch
-sms_util.c:731: warning: enumeration value 'TAPI_NETTEXT_CODGRP_CB_RES2' not handled in switch
-sms_util.c:731: warning: enumeration value 'TAPI_NETTEXT_CODGRP_SM_AUTO_DELETION' not handled in switch
-sms_util.c:731: warning: enumeration value 'TAPI_NETTEXT_CODGRP_CB_GENERAL_DCS' not handled in switch
-sms_util.c:731: warning: enumeration value 'TAPI_NETTEXT_CODGRP_CB_WAP' not handled in switch
-sms_util.c:731: warning: enumeration value 'TAPI_NETTEXT_CODGRP_CB_CLASS_CODING' not handled in switch
-sms_util.c:731: warning: enumeration value 'TAPI_NETTEXT_CODGRP_MAX' not handled in switch
-async_util.c: In function 'G_MAIN_LOOP_RUN':
-async_util.c:111: warning: implicit declaration of function 'alarm'
-async_util.c: At top level:
-async_util.c:35: warning: 'gEventHandle' defined but not used
-async_util.c:38: warning: 'gSubscription_id' defined but not used
-make: *** [uts_tel_delete_sms_in_sim] Error 1
diff --git a/TC/telephony_TC/sms/unit/makefile b/TC/telephony_TC/sms/unit/makefile
deleted file mode 100644 (file)
index ad8e882..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-CC=gcc -Wall
-
-TS1  =  uts_tel_delete_sms_in_sim
-TS2  =  uts_tel_get_sms_cb_config
-TS3  =  uts_tel_get_sms_count
-TS4  =  uts_tel_get_sms_parameter_count
-TS5  =  uts_tel_get_sms_parameters
-TS6  =  uts_tel_get_sms_preferred_bearer
-TS7  =  uts_tel_get_sms_sca
-TS8  =  uts_tel_read_sms_in_sim
-TS9  =  uts_tel_send_sms
-TS10 =  uts_tel_send_sms_deliver_report
-TS11 =  uts_tel_send_sms_msg
-TS12 =  uts_tel_set_sms_cb_config
-TS13 =  uts_tel_set_sms_memory_status
-TS14 =  uts_tel_set_sms_message_status
-TS15 =  uts_tel_set_sms_parameters
-TS16 =  uts_tel_set_sms_preferred_bearer
-TS17 =  uts_tel_set_sms_sca
-TS18 =  uts_tel_write_sms_in_sim
-
-LIBS = `pkg-config --libs  glib-2.0 gconf-2.0 dbus-1 dbus-glib-1 gthread-2.0 tapi`
-LIBS +=$(TET_ROOT)/lib/tet3/tcm.o
-LIBS +=-L$(TET_ROOT)/lib/tet3 -lapi
-
-INCS =  -I. `pkg-config --cflags  glib-2.0 gconf-2.0 dbus-1 dbus-glib-1 gthread-2.0 tapi`
-INCS += -I$(TET_ROOT)/inc/tet3 
-INCS += -I../
-
-CFLAGS = $(INCS) -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -DWITHOUT_APP_MGR -D_TETWARE_MODE_ 
-CC +=$(CFLAGS)
-LDFLAGS = $(LIBS)
-
-#ifeq ($(ARCH),target)
-#CC += -g -mabi=aapcs-linux
-#endif
-
-all : $(TS1)  $(TS2) $(TS3) $(TS4) $(TS5) $(TS6) $(TS7) $(TS8) $(TS9) $(TS10) $(TS11) $(TS12) $(TS13) $(TS14) $(TS15) $(TS16) $(TS17) $(TS18) 
-
-
-clean :
-       rm -rf *~ *.o tet_lock tet_captured $(TS1)  $(TS2) $(TS3) $(TS4) $(TS5) $(TS6) $(TS7) $(TS8) $(TS9) $(TS10) $(TS11) $(TS12) $(TS13) $(TS14) $(TS15) $(TS16) $(TS17) $(TS18) 
-
-
-$(TS1): $(TS1).c
-       $(CC) -o $(TS1) $(TS1).c sms_callback_util.c sms_util.c async_util.c $(LDFLAGS)
-$(TS2): $(TS2).c
-       $(CC) -o $(TS2) $(TS2).c sms_callback_util.c sms_util.c async_util.c $(LDFLAGS)
-$(TS3): $(TS3).c
-       $(CC) -o $(TS3) $(TS3).c sms_callback_util.c sms_util.c async_util.c $(LDFLAGS)
-$(TS4): $(TS4).c
-       $(CC) -o $(TS4) $(TS4).c sms_callback_util.c sms_util.c async_util.c $(LDFLAGS)
-$(TS5): $(TS5).c
-       $(CC) -o $(TS5) $(TS5).c sms_callback_util.c sms_util.c async_util.c $(LDFLAGS)
-$(TS6): $(TS6).c
-       $(CC) -o $(TS6) $(TS6).c sms_callback_util.c sms_util.c async_util.c $(LDFLAGS)
-$(TS7): $(TS7).c
-       $(CC) -o $(TS7) $(TS7).c sms_callback_util.c sms_util.c async_util.c $(LDFLAGS)
-$(TS8): $(TS8).c
-       $(CC) -o $(TS8) $(TS8).c sms_callback_util.c sms_util.c async_util.c $(LDFLAGS)
-$(TS9): $(TS9).c
-       $(CC) -o $(TS9) $(TS9).c sms_callback_util.c sms_util.c async_util.c $(LDFLAGS)
-$(TS10): $(TS10).c
-       $(CC) -o $(TS10) $(TS10).c sms_callback_util.c sms_util.c async_util.c $(LDFLAGS)
-$(TS11): $(TS11).c
-       $(CC) -o $(TS11) $(TS11).c sms_callback_util.c sms_util.c async_util.c $(LDFLAGS)
-$(TS12): $(TS12).c
-       $(CC) -o $(TS12) $(TS12).c sms_callback_util.c sms_util.c async_util.c $(LDFLAGS)
-$(TS13): $(TS13).c
-       $(CC) -o $(TS13) $(TS13).c sms_callback_util.c sms_util.c async_util.c $(LDFLAGS)
-$(TS14): $(TS14).c
-       $(CC) -o $(TS14) $(TS14).c sms_callback_util.c sms_util.c async_util.c $(LDFLAGS)
-$(TS15): $(TS15).c
-       $(CC) -o $(TS15) $(TS15).c sms_callback_util.c sms_util.c async_util.c $(LDFLAGS)
-$(TS16): $(TS16).c
-       $(CC) -o $(TS16) $(TS16).c sms_callback_util.c sms_util.c async_util.c $(LDFLAGS)
-$(TS17): $(TS17).c
-       $(CC) -o $(TS17) $(TS17).c sms_callback_util.c sms_util.c async_util.c $(LDFLAGS)
-$(TS18): $(TS18).c
-       $(CC) -o $(TS18) $(TS18).c sms_callback_util.c sms_util.c async_util.c $(LDFLAGS)
-
-
diff --git a/TC/telephony_TC/sms/unit/sms_callback_util.c b/TC/telephony_TC/sms/unit/sms_callback_util.c
deleted file mode 100644 (file)
index 115db5c..0000000
+++ /dev/null
@@ -1,1031 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include <stdlib.h>
-#include <signal.h>
-#include <stdio.h>
-#include <errno.h>
-#include <pthread.h>
-#include <string.h>
-
-#include <assert.h>
-#include <glib.h>
-#include <TapiCommon.h>
-
-#include "sms_callback_util.h"
-
-int error_code;
-int dcs_pos =0;
-
-TS_UINT8 tp_mr = 0x00;
-
-
-TS_BOOL DecodeCellBroadcastMsg(int length, char *pPDU)
-{
-       int msgLength;
-       int sn = 0; //serial number
-       int msgID; //message identifier
-       tapi_nettext_coding_scheme dcs;
-
-       TS_UINT8 page[2];
-       int contents_length;
-       TS_UINT8 contents[TAPI_NETTEXT_CB_SIZE_MAX];
-
-       TS_UINT8 gs;
-       TS_UINT8 msgCode;
-       TS_UINT8 updateNumber;
-
-       printf("cb msg type is %x\n", pPDU[0]);
-       printf("cb msg len is %x\n", pPDU[1]);
-
-       printf("$$$$$$$$$$$$$$$length of cb msg is %d\n", length);
-       sn = (pPDU[2] << 8) | pPDU[1];
-
-       gs = (pPDU[2] & 0xC0) >> 6; //bit 7, bit 6
-
-       msgCode = (((pPDU[2] & 0x3F) << 4) | pPDU[3]) & 0xF0;
-
-       updateNumber = pPDU[3] & 0x0F; //bit3, bit2, bit1, bit0
-
-       msgID = (pPDU[4] << 4) | pPDU[3];
-
-       SmsUtilDecodeDCS(&dcs, pPDU[6]);
-
-       page[0] = pPDU[7] & 0x0F; //total page
-       page[1] = (pPDU[7] & 0xF0) >> 4; //current page
-
-
-       msgLength = length - 2;
-
-       contents_length = msgLength - 6;
-
-       if (dcs.alphabet_type == TAPI_NETTEXT_ALPHABET_DEFAULT) {
-               TS_BYTE inData[TAPI_NETTEXT_CB_SIZE_MAX + 1];
-
-               memset(inData, 0x00, TAPI_NETTEXT_CB_SIZE_MAX + 1);
-
-               memcpy((void*) inData, (void*) &pPDU[8], contents_length);
-               SmsUtilUnpackGSMCode((char *) contents, (TS_BYTE *) &pPDU[8], msgLength);
-       }
-       else {
-               memcpy(contents, &pPDU[8], msgLength);
-               contents[msgLength] = 0; //NULL;
-       }
-
-       printf("*************************************\n");
-       printf("serical number : 0x%04x \n", sn);
-       printf("Geographical Scope: %x\n", gs);
-       printf("message code : %x\n", msgCode);
-       printf("update Number : %x\n", updateNumber);
-       printf("message identifier :  %x\n", msgID);
-       printf("data coding scheme :  %x\n", (unsigned int) &dcs);
-       printf("contents bytes size : %d\n", contents_length);
-       printf("page : (%d /%d) (page /total ) \n", page[1], page[0]);
-       printf("contents: %s\n", contents);
-       printf("*************************************\n");
-
-       return TRUE;
-}
-
-TS_BOOL DecodeSmsSubmitTpdu(int pdu_len, char *pPDU)
-{
-       TPDU_SMS_SUBMIT tpdu_submit;
-
-       TS_BYTE scaAddr_len = 0;
-       int destAddr_len = 0;
-       TS_BYTE diallingNum[TAPI_NETTEXT_ADDRESS_LEN_MAX];
-       TS_BYTE scaAddr[TAPI_NETTEXT_SCADDRESS_LEN_MAX]; //service center address
-       TS_BYTE destAddr[TAPI_NETTEXT_ADDRESS_LEN_MAX]; //destination number
-       int sca_ton, sca_npi, dest_ton, dest_npi;
-       int position;
-
-       position = 0;
-
-       /* SCA_ADDR */
-       memset(diallingNum, 0, sizeof(diallingNum));
-
-       SmsUtilDecodeAddrField((char *) diallingNum, (unsigned char *) &pPDU[position], &sca_ton, &sca_npi);
-
-       position += 2; //include Address-Length, Type of Address
-
-       scaAddr_len = strlen((char *) diallingNum);
-
-       if (scaAddr_len % 2)
-               position += scaAddr_len / 2 + 1;
-       else
-               position += scaAddr_len / 2;
-
-       if (sca_ton == SIM_TON_INTERNATIONAL) {
-               scaAddr[0] = '+';
-               memcpy(&scaAddr[1], diallingNum, scaAddr_len);
-               scaAddr[scaAddr_len + 1] = '\0';
-       }
-       else {
-               memcpy(scaAddr, diallingNum, scaAddr_len);
-               scaAddr[scaAddr_len] = '\0';
-       }
-
-       /* TP-MTI, TP-RD, TP-VPF,  TP-RP, TP_UDHI, TP-SRR */
-
-       tpdu_submit.msg_type = SMS_TPDU_SUBMIT; // bit 0,1(Message Type Indicator )
-       tpdu_submit.rd = (pPDU[position] & 0x04) ? TRUE : FALSE;// bit 2 (Message Type Indicator)
-       tpdu_submit.vpf = (pPDU[position] & 0x18) >> 3; //  bits 3, 4 ( validity period format)
-       tpdu_submit.srr = (pPDU[position] & 0x20) ? TRUE : FALSE; // bit 5 (Status Report Request)
-       tpdu_submit.udhi = (pPDU[position] & 0x40) ? TRUE : FALSE; // bit 6 (User Data Header Indicator)
-       tpdu_submit.rp = (pPDU[position] & 0x80) ? TRUE : FALSE; // bit 7 (Reply Path)
-
-       position++;
-
-       /* TP-MR */
-       tpdu_submit.mr = pPDU[position];
-
-       position++;
-
-       /* TP-DA */
-
-       memset(diallingNum, 0, sizeof(diallingNum));
-
-       SmsUtilDecodeAddrField((char *) diallingNum, (unsigned char *) &pPDU[position], &dest_ton, &dest_npi);
-
-       position += 2;
-
-       destAddr_len = strlen((char*) diallingNum);
-       if (destAddr_len % 2)
-               position += destAddr_len / 2 + 1;
-       else
-               position += destAddr_len / 2;
-
-       if (dest_ton == SIM_TON_INTERNATIONAL) {
-               destAddr[0] = '+';
-               memcpy(&destAddr[1], diallingNum, destAddr_len);
-               destAddr[destAddr_len + 1] = '\0';
-       }
-       else {
-               memcpy(destAddr, diallingNum, destAddr_len);
-               destAddr[destAddr_len] = '\0';
-       }
-
-       tpdu_submit.desAddr.DialNumLen = destAddr_len;
-       memcpy(tpdu_submit.desAddr.szDiallingNum, destAddr, destAddr_len);
-       tpdu_submit.desAddr.Npi = dest_npi;
-       tpdu_submit.desAddr.Ton = dest_ton;
-
-       /* TP-PID */
-
-       tpdu_submit.pId = pPDU[position];
-       position++;
-
-       /* TP DCS */
-       SmsUtilDecodeDCS(&tpdu_submit.dcs, pPDU[position]);
-       position++;
-
-       /* TP VP */
-       tpdu_submit.vp.vp_type = TAPI_NETTEXT_VP_RELATIVE; //temp
-
-       switch (tpdu_submit.vp.vp_type) {
-               case TAPI_NETTEXT_VP_RELATIVE:
-                       tpdu_submit.vp.vpValue = pPDU[position];
-                       tpdu_submit.vp.vp_rel_type = TAPI_NETTEXT_VP_REL_1D;
-                       position++;
-                       break;
-
-               case TAPI_NETTEXT_VP_ABSOLUTE:
-               case TAPI_NETTEXT_VP_ENHANCED:
-                       position += 7;
-                       break;
-
-               default:
-                       break;
-       }
-
-       /* TP UDL */
-       tpdu_submit.udl = pPDU[position];
-
-       if (tpdu_submit.udl > TAPI_NETTEXT_SMDATA_SIZE_MAX)
-               tpdu_submit.udl = TAPI_NETTEXT_SMDATA_SIZE_MAX;
-
-       position++;
-
-       /* TP UD */
-       tpdu_submit.userData = malloc(sizeof(unsigned char) * (TAPI_NETTEXT_SMDATA_SIZE_MAX + 1));
-
-       memset(tpdu_submit.userData, 0, sizeof(unsigned char) * (TAPI_NETTEXT_SMDATA_SIZE_MAX + 1));
-
-       if (tpdu_submit.dcs.alphabet_type == TAPI_NETTEXT_ALPHABET_DEFAULT) {
-               TS_BYTE inData[TAPI_NETTEXT_SMDATA_SIZE_MAX + 1];
-
-               memset(inData, 0x00, TAPI_NETTEXT_SMDATA_SIZE_MAX + 1);
-
-               memcpy((void*) inData, (void*) &pPDU[position], tpdu_submit.udl);
-
-               SmsUtilUnpackGSMCode((char *) tpdu_submit.userData, inData, (TS_UINT8) tpdu_submit.udl);
-       }
-
-       printf("*************************************\n");
-       printf("Msg Type: TPDU_SUBMIT\n");
-
-       if (tpdu_submit.rd)
-               printf("RD: Reject Duplicate\n");
-       else if (!tpdu_submit.rd)
-               printf("RD: Accept Duplicate\n");
-
-       if (tpdu_submit.srr)
-               printf("SRR: A status report is requested\n");
-       else if (!tpdu_submit.srr)
-               printf("SRR: A status report is not  requested\n");
-
-       if (tpdu_submit.udhi)
-               printf("UDHI: Contains a Header in addition to the short message.\n");
-       else if (!tpdu_submit.udhi)
-               printf("UDHI: Only Short Message\n");
-
-       if (tpdu_submit.rp)
-               printf("RP: Set Reply Path\n");
-       else if (!tpdu_submit.rp)
-               printf("RP: Not set Reply Path\n");
-
-       printf("SCA Addr : %s\n", scaAddr);
-       printf("To : %s\n", destAddr);
-       printf("Message : %s \n", tpdu_submit.userData);
-       printf("*************************************\n");
-
-       return TRUE;
-}
-
-int DecodeSmsDeliverTpdu(int tpdu_len, char *pTPDU)
-{
-       TPDU_SMS_DELIVER tpdu_deliver;
-       TmDateTime SCTimeStamp;
-       int orgAddr_len = 0;
-       TS_BYTE diallingNum[TAPI_NETTEXT_ADDRESS_LEN_MAX];
-       TS_BYTE orgAddr[TAPI_NETTEXT_ADDRESS_LEN_MAX]; //originating number
-       int org_ton, org_npi;
-       int position;
-
-       position = 0;
-
-       /* TP-MTI, TP-MMS, TP-SRI, TP_UDHI, TP-RP */
-       tpdu_deliver.msg_type = SMS_TPDU_DELIVER;
-       tpdu_deliver.mms = (pTPDU[position] & 0x04) ? TRUE : FALSE;// bit 2 (Message Type Indicator)
-       tpdu_deliver.sri = (pTPDU[position] & 0x20) ? TRUE : FALSE; // bit 5 (Status Report Indication)
-       tpdu_deliver.udhi = (pTPDU[position] & 0x40) ? TRUE : FALSE; // bit 6 (User Data Header Indicator)
-       tpdu_deliver.rp = (pTPDU[position] & 0x80) ? TRUE : FALSE; // bit 7 (Reply Path)
-
-       position++;
-
-       /* TP-OA */
-       memset(diallingNum, 0, sizeof(diallingNum));
-
-       SmsUtilDecodeAddrField((char *) diallingNum, (unsigned char *) &pTPDU[position], &org_ton, &org_npi);
-
-       position += 2;
-
-       orgAddr_len = strlen((char*) diallingNum);
-       if (orgAddr_len % 2)
-               position += orgAddr_len / 2 + 1;
-       else
-               position += orgAddr_len / 2;
-
-       if (org_ton == SIM_TON_INTERNATIONAL) {
-               orgAddr[0] = '+';
-               memcpy(&orgAddr[1], diallingNum, orgAddr_len);
-               orgAddr[orgAddr_len + 1] = '\0';
-       }
-       else {
-               memcpy(orgAddr, diallingNum, orgAddr_len);
-               orgAddr[orgAddr_len] = '\0';
-       }
-
-       /* TP-PID */
-       tpdu_deliver.pId = pTPDU[position];
-
-       position++;
-
-       /* TP-DCS */
-       SmsUtilDecodeDCS(&tpdu_deliver.dcs, pTPDU[position]);
-       dcs_pos = position;
-       position++;
-
-       /* TP-SCTS */
-       SmsUtilDecodeTimeStamp((unsigned char *) &pTPDU[position], &SCTimeStamp);
-
-       position += 7;
-
-       /* TP-UDL */
-       tpdu_deliver.udl = pTPDU[position];
-       if (tpdu_deliver.udl > TAPI_NETTEXT_SMDATA_SIZE_MAX)
-               tpdu_deliver.udl = TAPI_NETTEXT_SMDATA_SIZE_MAX;
-
-       position++;
-
-       /* TP-UD */
-       tpdu_deliver.userData = malloc(sizeof(unsigned char) * (TAPI_NETTEXT_SMDATA_SIZE_MAX + 1));
-
-       memset(tpdu_deliver.userData, 0, sizeof(unsigned char) * (TAPI_NETTEXT_SMDATA_SIZE_MAX + 1));
-
-       if (tpdu_deliver.dcs.alphabet_type == TAPI_NETTEXT_ALPHABET_DEFAULT) {
-               TS_BYTE inData[TAPI_NETTEXT_SMDATA_SIZE_MAX + 1];
-
-               memset(inData, 0x00, TAPI_NETTEXT_SMDATA_SIZE_MAX + 1);
-
-               memcpy((void*) inData, (void*) &pTPDU[position], tpdu_deliver.udl);
-
-               SmsUtilUnpackGSMCode((char *) tpdu_deliver.userData, inData, (TS_UINT8) tpdu_deliver.udl);
-       }
-
-       printf("*************************************\n");
-       printf("Msg Type: TPDU_DELIVER\n");
-
-       if (tpdu_deliver.rp)
-               printf("RP: Set Reply Path\n");
-       else if (!tpdu_deliver.rp)
-               printf("RP: Not set Reply Path\n");
-
-       if (tpdu_deliver.sri)
-               printf("SRI: A status report shall be returned to the SME\n");
-       else if (!tpdu_deliver.sri)
-               printf("SRI: A status report shall be not returned to the SME\n");
-
-       if (tpdu_deliver.mms)
-               printf("MMS: No more messages are waiting for the MS in this SC\n");
-       else if (!tpdu_deliver.mms)
-               printf("MMS: More messages are waiting for the MS in this SC\n");
-
-       if (tpdu_deliver.udhi)
-               printf("UDHI: Contains a Header in addition to the short message.\n");
-       else if (!tpdu_deliver.udhi)
-               printf("UDHI: Only short message.\n");
-
-       printf("DcsClass : %x \n", tpdu_deliver.dcs.class_type);
-
-       printf("From : %s\n", orgAddr);
-       printf("Time : %d-%d-%d  , %d:%d:%d\n", SCTimeStamp.year, SCTimeStamp.month, SCTimeStamp.day, SCTimeStamp.hour, SCTimeStamp.minute, SCTimeStamp.second);
-       printf("Message : %s \n", tpdu_deliver.userData);
-       printf("*************************************\n");
-
-       return dcs_pos;
-}
-
-TS_BOOL DecodeSmsSubmitReportTpdu(int length, char *data)
-{
-       TPDU_SMS_SUBMIT_REPORT submit_report;
-       TmDateTime SCTimeStamp;
-       int position = 1;
-       int i = 0;
-       TS_BYTE msgRef, tpdu_len;
-       int result = 0;
-       TS_BYTE mask;
-
-       if (data == NULL)
-               return FALSE;
-
-       /* Result */
-       printf("length :%d\n", length);
-
-       for (i = 0; i < length; i++)
-               printf("[%02x]", data[i]);
-
-       result = data[position];
-
-       printf("\nIn ackrecv (return status) result is %x\n", result);
-       position++;
-
-       /* Msg Reference */
-       msgRef = data[position++];
-       printf("In ackrecv  position :%d msgref is %x\n", position, msgRef);
-       position++;
-
-       /* TPDU Length */
-       tpdu_len = data[position];
-       printf("In ackrecv position :%d len is %d\n", position, tpdu_len);
-
-       /**** SUBMIT REPORT TPDU PARSING***/
-
-       /* TP-MTI , TP-UDHI */
-       printf("before TPDU position value:%d\n", position);
-
-       submit_report.msg_type = data[position] & 0x03; //bit 0,1
-       submit_report.udhi = data[position] & 0x40 ? TRUE : FALSE; //bit 6;
-
-       position++;
-
-       if (result == FAIL) {
-               /* TP-FCS */
-               submit_report.fcs = data[position];
-               position++;
-       }
-
-       /* TP-PI  - set to a 1 indicates that a particular optional parameter is present in the fields which follow. */
-       /* Masking Bit  - TP -PID (bit 0), TP-DCS(bit 1), TP-UDL(bit 2) */
-
-       submit_report.paraInd = data[position];
-       mask = submit_report.paraInd;
-       position++;
-
-       /* TP-SCTS */
-
-       SmsUtilDecodeTimeStamp((unsigned char *) &data[position], &SCTimeStamp);
-
-       position += 7;
-
-       if ((mask != 0xFF) && (mask != 0)) {
-               /* TP-PID */
-               if (mask & 0x01) {
-                       submit_report.pId = data[position];
-                       position++;
-                       printf("TP-PID :%x\n", submit_report.pId);
-               }
-
-               /* TP-DCS */
-               if (mask & 0x02) {
-                       SmsUtilDecodeDCS(&submit_report.dcs, data[position]);
-                       position++;
-                       printf("TP-DCS :%x\n", data[position]);
-               }
-
-               if (mask & 0x04) {
-                       /* TP-UDL */
-                       submit_report.udl = data[position];
-                       position++;
-
-                       printf("TP-UDL :%x\n", data[position]);
-
-                       /* TP-UD */
-
-                       submit_report.userData = malloc(sizeof(TS_BYTE) * (TAPI_NETTEXT_SMDATA_SIZE_MAX + 1));
-
-                       memset(submit_report.userData, 0, sizeof(TS_BYTE) * (TAPI_NETTEXT_SMDATA_SIZE_MAX + 1));
-
-                       if (submit_report.dcs.alphabet_type == TAPI_NETTEXT_ALPHABET_DEFAULT) {
-                               TS_BYTE inData[TAPI_NETTEXT_SMDATA_SIZE_MAX + 1];
-
-                               memset(inData, 0x00, TAPI_NETTEXT_SMDATA_SIZE_MAX + 1);
-
-                               memcpy((void*) inData, (void*) &data[position], submit_report.udl);
-
-                               SmsUtilUnpackGSMCode((char *) submit_report.userData, inData, (TS_UINT8) submit_report.udl);
-                       }
-
-               }
-       }
-
-       printf("*************************************\n");
-
-       if (result != 0x00)
-               printf("SMS SEND FAIL!!\n");
-       else
-               printf("SMS SEND SUCCESS!!\n");
-
-       if (result != 0x00)
-               printf("Failure Code : %x\n", submit_report.fcs);
-
-       printf("*************************************\n");
-
-       return TRUE;
-}
-
-TS_BOOL DecodeSmsStatusReportTpdu(int tpdu_len, char *pTPDU)
-{
-       TPDU_SMS_STATUS_REPORT status_report;
-
-       TmDateTime SCTimeStamp;
-       TmDateTime DischargeTime;
-
-       int rcpAddr_len = 0;
-       TS_BYTE diallingNum[TAPI_NETTEXT_ADDRESS_LEN_MAX];
-       //      TS_BYTE              scaAddr[TAPI_NETTEXT_SCADDRESS_LEN_MAX]; //service center address
-       TS_BYTE rcpAddr[TAPI_NETTEXT_ADDRESS_LEN_MAX]; //recipient number
-       int rcp_ton, rcp_npi;
-       int position = 0;
-       TS_UINT mask;
-
-       /* TP-MTI, TP MMS, TP SRQ, TP_UDHI */
-
-       status_report.msg_type = pTPDU[position] & 0x03; // bit 0,1
-       status_report.mms = pTPDU[position] & 0x04 ? TRUE : FALSE; // bit 2
-       status_report.srq = pTPDU[position] & 0x20 ? TRUE : FALSE; //bit 5
-       status_report.udhi = pTPDU[position] & 0x40 ? TRUE : FALSE; //bit 6
-
-       position++;
-
-       /* TP-MR */
-       status_report.mr = pTPDU[position];
-       position++;
-
-       /* TP-RA */
-
-       memset(diallingNum, 0, sizeof(diallingNum));
-
-       SmsUtilDecodeAddrField((char *) diallingNum, (unsigned char *) &pTPDU[position], &rcp_ton, &rcp_npi);
-
-       position += 2;
-
-       rcpAddr_len = strlen((char*) diallingNum);
-       if (rcpAddr_len % 2)
-               position += rcpAddr_len / 2 + 1;
-       else
-               position += rcpAddr_len / 2;
-
-       if (rcp_ton == SIM_TON_INTERNATIONAL) {
-               rcpAddr[0] = '+';
-               memcpy(&rcpAddr[1], diallingNum, rcpAddr_len);
-               rcpAddr[rcpAddr_len + 1] = '\0';
-       }
-       else {
-               memcpy(rcpAddr, diallingNum, rcpAddr_len);
-               rcpAddr[rcpAddr_len] = '\0';
-       }
-
-       status_report.rcpAddr.DialNumLen = rcpAddr_len;
-       memcpy(status_report.rcpAddr.szDiallingNum, rcpAddr, rcpAddr_len);
-       status_report.rcpAddr.Npi = rcp_npi;
-       status_report.rcpAddr.Ton = rcp_ton;
-
-       /* TP-SCTS */
-       SmsUtilDecodeTimeStamp((unsigned char *) &pTPDU[position], &SCTimeStamp);
-       position += 7;
-
-       /* TP-DT */
-       SmsUtilDecodeTimeStamp((unsigned char *) &pTPDU[position], &DischargeTime);
-       position += 7;
-
-       /* TP-ST */
-       status_report.status = pTPDU[position];
-       position++;
-
-       /* TP-PI */
-       status_report.paraInd = pTPDU[position];
-
-       mask = status_report.paraInd;
-
-       if ((mask != 0xFF) && (mask != 0)) {
-               /* Increment only if mask is valid */
-               position++;
-
-               /* TP-PID */
-               if (mask & 0x01) {
-                       status_report.pId = pTPDU[position];
-                       position++;
-               }
-
-               /* TP-DCS */
-               if (mask & 0x02) {
-                       SmsUtilDecodeDCS(&status_report.dcs, pTPDU[position]);
-                       position++;
-               }
-
-               if (mask & 0x04) {
-                       /* TP-UDL */
-                       status_report.udl = pTPDU[position];
-                       position++;
-
-                       /* TP-UD */
-
-                       status_report.userData = malloc(sizeof(unsigned char) * (TAPI_NETTEXT_SMDATA_SIZE_MAX + 1));
-
-                       memset(status_report.userData, 0, sizeof(unsigned char) * (TAPI_NETTEXT_SMDATA_SIZE_MAX + 1));
-
-                       if (status_report.dcs.alphabet_type == TAPI_NETTEXT_ALPHABET_DEFAULT) {
-                               TS_BYTE inData[TAPI_NETTEXT_SMDATA_SIZE_MAX + 1];
-
-                               memset(inData, 0x00, TAPI_NETTEXT_SMDATA_SIZE_MAX + 1);
-
-                               memcpy((void*) inData, (void*) &pTPDU[position], status_report.udl);
-
-                               SmsUtilUnpackGSMCode((char *) status_report.userData, inData, (TS_UINT8) status_report.udl);
-                       }
-               }
-       }
-
-       printf("*************************************\n");
-       printf("Msg Type: STATUS_REPORT\n");
-
-       if (status_report.mms)
-               printf("MMS: No more messages are waiting for the MS in this SC\n");
-       else if (!status_report.mms)
-               printf("MMS: More messages are waiting for the MS in this SC\n");
-
-       if (status_report.srq)
-               printf("SRQ: the result of an SMS COMMAND \n");
-       else if (!status_report.srq)
-               printf("SRQ: the result of a SMS SUBMIT.\n");
-
-       if (status_report.udhi)
-               printf("UDHI: Contains a Header in addition to the short message.\n");
-       else if (!status_report.udhi)
-               printf("UDHI: Only Short Message\n");
-
-       printf("STATUS:%x\n", status_report.status);
-
-       if (status_report.status == 0x00)
-               printf("STATUS : Short message received by the SME\n");
-       else if (status_report.status == 0x01)
-               printf("STATUS : Short message forwarded by the SC to the SME\nbut the SC is unable to confirm delivery\n");
-       else if (status_report.status == 0x02)
-               printf("STATUS : Short message replaced by the SC\n");
-
-       printf("Recipient Number : %s\n", rcpAddr);
-       printf("SC Time Stamp : %d-%d-%d  , %d:%d:%d\n", SCTimeStamp.year, SCTimeStamp.month, SCTimeStamp.day, SCTimeStamp.hour, SCTimeStamp.minute,
-                       SCTimeStamp.second);
-       printf("Discharge Time : %d-%d-%d  , %d:%d:%d\n", DischargeTime.year, DischargeTime.month, DischargeTime.day, DischargeTime.hour, DischargeTime.minute,
-                       DischargeTime.second);
-
-       if (mask & 0x04)
-               printf("Message : %s \n", status_report.userData);
-
-       printf("*************************************\n");
-
-       return TRUE;
-}
-
-void MsgCountNotification(int length, char *pData)
-{
-       static TelSmsStoredMsgCountInfo_t *countInfo;
-
-       printf("length %d", length);
-       printf("pdata %s", pData);
-
-       countInfo = (TelSmsStoredMsgCountInfo_t*) pData;
-       printf("In MsgCountNotification total cnt is %d, usedcnt is %d\n", countInfo->TotalCount, countInfo->UsedCount);
-       printf("In MsgCountNotification total cnt is %d, usedcnt is %d\n", countInfo->TotalCount, countInfo->UsedCount);
-}
-
-void ReadMsgNotification(int length, char *pData)
-{
-       TelSmsData_t * sim_data;
-       int scaAddr_len = 0;
-       char * pTPDU;
-       int tpdu_len = 0;
-       TS_BYTE diallingNum[TAPI_NETTEXT_ADDRESS_LEN_MAX];
-       TS_BYTE scaAddr[TAPI_NETTEXT_SCADDRESS_LEN_MAX]; //service center address
-       int sca_ton, sca_npi;
-       int position;
-
-       sim_data = (TelSmsData_t *) pData;
-       printf("length in readmsg notification is %d\n", length);
-
-       if (sim_data->MsgStatus == 0x00)
-               printf("Msg Staus : unknown msg\n");
-       else if (sim_data->MsgStatus == 0x01)
-               printf("Msg Staus : received unread msg\n");
-       else if (sim_data->MsgStatus == 0x02)
-               printf("Msg Staus : received read msg\n");
-       else if (sim_data->MsgStatus == 0x03)
-               printf("Msg Staus : unsent msg\n");
-       else if (sim_data->MsgStatus == 0x04)
-               printf("Msg Staus : stored sent msg\n");
-
-       if (sim_data->MsgStatus == 0x01 || sim_data->MsgStatus == 0x02) {
-               position = 0;
-               // SCA_ADDR
-               memset(diallingNum, 0, sizeof(diallingNum));
-
-               SmsUtilDecodeAddrField((char *) diallingNum, &sim_data->SmsData.szData[position], &sca_ton, &sca_npi);
-
-               position += 2; //include Address-Length, Type of Address
-
-               scaAddr_len = strlen((char *) diallingNum);
-
-               if (scaAddr_len % 2)
-                       position += scaAddr_len / 2 + 1;
-               else
-                       position += scaAddr_len / 2;
-
-               if (sca_ton == SIM_TON_INTERNATIONAL) {
-                       scaAddr[0] = '+';
-                       memcpy(&scaAddr[1], diallingNum, scaAddr_len);
-                       scaAddr[scaAddr_len + 1] = '\0';
-               }
-               else {
-                       memcpy(scaAddr, diallingNum, scaAddr_len);
-                       scaAddr[scaAddr_len] = '\0';
-               }
-
-               tpdu_len = sim_data->SmsData.MsgLength - position;
-
-               printf("SCA Number : %s tpdu_len is %d\n", scaAddr, tpdu_len);
-
-               pTPDU = malloc(sizeof(TS_BYTE) * tpdu_len);
-               printf("bfor memcopy position is %d\n", position);
-               memcpy(pTPDU, &(sim_data->SmsData.szData[position]), tpdu_len);
-               printf("after memcpy\n");
-
-               DecodeSmsDeliverTpdu(tpdu_len, pTPDU);
-       }
-}
-
-void MemoryFullNotification(int length, char *pData)
-{
-       int *memory_ind;
-
-       memory_ind = (int *) pData;
-       printf("In memory full notification status %d\n", *memory_ind);
-}
-
-void DeleteMsgNotification(int length, char *pData)
-{
-       tel_delete_sms_in_simMsg_status_ind *delete_ind;
-
-       delete_ind = (tel_delete_sms_in_simMsg_status_ind *) pData;
-       printf("In deletenotifcation the result and index are %x %d\n", delete_ind->result, delete_ind->index);
-}
-
-void SaveMsgNotification(int length, char *pData)
-{
-       tapi_nettext_save_status_ind *save_ind;
-
-       save_ind = (tapi_nettext_save_status_ind *) pData;
-       printf("In savestatus noti, index %x result %x\n", save_ind->index, save_ind->result);
-}
-
-void GetCBNotification(int length, char *pData)
-{
-       TelSmsCbConfig_t *CBConfig;
-       int i = 0;
-
-       CBConfig = (TelSmsCbConfig_t *) pData;
-
-       printf("=========CB Configuration=========\n");
-
-       /*** CB Enable/Diable ***/
-       if (CBConfig->bCBEnabled == 0x01)
-               printf("Cell Broadcast Msg Enabled...\n");
-       else if (CBConfig->bCBEnabled == 0x02)
-               printf("Cell Broadcast Msg Disabled...\n");
-
-       /*** Selected ID ***/
-       if (CBConfig->SelectedId == 0x01)
-               printf("All CBMI is selected... \n");
-       else if (CBConfig->SelectedId == 0x02)
-               printf("There are some selected CBMI...\n");
-
-       /*** CBMI  Count ***/
-       printf("CBMI Count: %d \n\n", CBConfig->MsgIdCount);
-
-       /*** CBMI  List ***/
-
-       if (CBConfig->MsgIdCount != 0) {
-               printf("----- CBMI List -----\n");
-
-               for (i = 0; i < CBConfig->MsgIdCount; i++) {
-                       printf("No.%d - [0x%04x]\n", i, CBConfig->MsgIDs[i]);
-               }
-
-       }
-       printf("\n==================================\n");
-}
-
-void Deliver_ReportNoti()
-{
-       printf("DELIVERY REPORT SUCCESS\n");
-}
-
-void get_preferred_bearer_noti(int length, char *pData)
-{
-       int svc = 0;
-       TelSmsBearerType_t *bearer;
-
-       printf("get preferred bearer\n");
-       bearer = (TelSmsBearerType_t *) pData;
-       printf("In GetPreferredBearer noti bearer:%d\n", *bearer);
-       svc = *bearer;
-       printf("svc:%d\n", svc);
-
-       if (svc == TAPI_NETTEXT_BEARER_PS_ONLY)
-               printf("Packet Domain\n");
-       else if (svc == TAPI_NETTEXT_BEARER_CS_ONLY)
-               printf("Circuit Switched\n");
-       else if (svc == TAPI_NETTEXT_BEARER_PS_PREFERRED)
-               printf("Packet Domain preferred \n");
-       else if (svc == TAPI_NETTEXT_BEARER_CS_PREFERRED)
-               printf("Circuit Switched preferred\n");
-
-}
-
-void set_request_confirm_noti()
-{
-       printf("***Set Request  confirm Notification*******\n");
-       printf("Notification Received Successfully\n");
-}
-
-void param_get_noti(int length, char *pData)
-{
-       TelSmsParams_t *smsp_param;
-
-       smsp_param = (TelSmsParams_t *) pData;
-
-       printf("record index is %x\n", smsp_param->RecordIndex);
-       printf("record len  is %x\n", smsp_param->RecordLen);
-       printf("alpha_id len  is %lu \n", smsp_param->AlphaIdLen);
-       printf("alpha_id is %s \n", smsp_param->szAlphaId);
-       printf("param indicator is  %xn", smsp_param->ParamIndicator);
-       printf("dest dialling num is %s\n", smsp_param->TpDestAddr.szDiallingNum);
-       printf("svcaddr dialling num is %s\n", smsp_param->TpSvcCntrAddr.szDiallingNum);
-       printf("pid %x\n", smsp_param->TpProtocolId);
-       printf("dcs is %x\n", smsp_param->TpDataCodingScheme);
-       printf("validity is %x\n", smsp_param->TpValidityPeriod);
-}
-
-void Device_ReadyNoti(int length, char *pData)
-{
-       //TelSmsDeviceReadyInd *device_status;
-
-       //device_status = (TelSmsDeviceReadyInd *)pData;
-
-       //printf("In device ready noti the result is %d\n",device_status->Result);
-}
-
-void param_count_noti(int length, char *pData)
-{
-       printf("In param_count_noti the record count:");
-}
-
-int tapi_sms_callback(const TelTapiEvent_t *TapiEvent, void *data)
-{
-       printf("\n******  Inside SMS Callback func........   ******\n");
-
-       int eventClass;
-       int eventType;
-       int requestId;
-       int status;
-       char *EventData = NULL;
-       int param1 = 0;
-       char *pData = NULL;
-
-       int expected_event = (int) data;
-
-       if (TapiEvent == NULL) {
-               printf("Event is NULL\n");
-               return 0;
-       }
-       
-       eventClass = TapiEvent->EventClass;
-       eventType = TapiEvent->EventType;
-       requestId = TapiEvent->RequestId;
-       status = TapiEvent->Status;
-       EventData = (char *) TapiEvent->pData;
-
-       if (EventData == NULL) {
-               printf("\n******  EventData is NULL.........******\n");
-       }
-       else {
-               printf("\nClass:[%d], Event Type:[%d], RequestId:[%d], Status:[%d] \n", eventClass, eventType, requestId, status);
-
-               param1 = strlen((char *) TapiEvent->pData);
-               printf("\n param1 = %d", param1);
-               if (TapiEvent->pData != NULL) {
-                       pData = (char *) TapiEvent->pData;
-                       printf("pData(size):%d\n", strlen(pData));
-               }
-       }
-
-       if (eventClass != TAPI_EVENT_CLASS_NETTEXT) {
-               return 0;
-       }
-
-       switch (eventType) {
-               case TAPI_EVENT_NETTEXT_INCOM_IND:
-                       printf("\n***************************************\n");
-                       printf("\n$$$$$$ INCOMING MESSAGE NOTIFICATION $$$$$$ \n");
-                       printf("param1(length):%d\n", param1);
-                       //                                              ReceiveMessage(param1,pData);
-                       printf("\n***************************************\n");
-                       break;
-
-               case TAPI_EVENT_NETTEXT_SENTSTATUS_CNF:
-                       printf("\n***************************************\n");
-                       printf("\n$$$$$$ RECEIVE  ACK NOTIFICATION $$$$$$ \n");
-                       printf("param1(length):%d\n", param1);
-                       DecodeSmsSubmitReportTpdu(param1, pData);
-                       printf("\n***************************************\n");
-                       break;
-
-               case TAPI_EVENT_NETTEXT_CB_INCOM_IND:
-                       printf("\n***************************************\n");
-                       printf("\n$$$$$$ INCOMING CB NOTIFICATION $$$$$$ \n");
-                       printf("length:%d\n", param1);
-                       DecodeCellBroadcastMsg(param1, pData);
-                       printf("\n***************************************\n");
-                       break;
-
-               case TAPI_EVENT_NETTEXT_MEMORY_STATUS_IND:
-                       printf("\n***************************************\n");
-                       printf("\n$$$$$$ MEMORYF  FULL NOTIFICATION $$$$$$ \n");
-                       printf("param1(length):%d\n", param1);
-                       MemoryFullNotification(param1, pData);
-                       printf("\n***************************************\n");
-                       break;
-
-               case TAPI_EVENT_NETTEXT_GET_COUNT_CNF:
-                       printf("\n***************************************\n");
-                       printf("\n$$$GetMsgCountNotification$$$$\n");
-                       MsgCountNotification(param1, pData);
-                       printf("\n***************************************\n");
-                       break;
-
-               case TAPI_EVENT_NETTEXT_READ_SMS_CNF:
-                       printf("\n***************************************\n");
-                       printf("\n$$Read Msg Notification $$$\n");
-                       printf("param1(length):%d\n", param1);
-                       //ReadMsgNotification(param1, pData);
-                       printf("\n***************************************\n");
-                       break;
-
-               case TAPI_EVENT_NETTEXT_DELETE_STATUS_CNF:
-                       printf("\n***************************************\n");
-                       printf("\n$$Delete Notification$$$\n");
-                       printf("param1(length):%d\n", param1);
-                       DeleteMsgNotification(param1, pData);
-                       printf("\n***************************************\n");
-                       break;
-
-               case TAPI_EVENT_NETTEXT_SAVE_STATUS_CNF:
-                       printf("\n***************************************\n");
-                       printf("\n$$Save Status Notification$$\n");
-                       printf("param1(length):%d\n", param1);
-                       SaveMsgNotification(param1, pData);
-                       printf("\n***************************************\n");
-                       break;
-
-               case TAPI_EVENT_NETTEXT_GET_CB_CONFIG_CNF:
-                       printf("\n***************************************\n");
-                       printf("\n$$$GET CB Config$$$\n");
-                       printf("param1(length):%d\n", param1);
-                       GetCBNotification(param1, pData);
-                       printf("\n***************************************\n");
-                       break;
-
-               case TAPI_EVENT_NETTEXT_DELIVERY_REPORT_CNF:
-                       printf("\n***************************************\n");
-                       printf("\n$$$ DELIVER REPORT NOTI$$$\n");
-                       Deliver_ReportNoti();
-                       printf("\n***************************************\n");
-                       break;
-
-               case TAPI_EVENT_NETTEXT_GET_PARAM_CNF:
-                       printf("\n***************************************\n");
-                       printf("\n$$$ GET PARAM NOTI$$$\n");
-                       printf("param1(length):%d\n", param1);
-                       param_get_noti(param1, pData);
-                       printf("\n***************************************\n");
-                       break;
-
-               case TAPI_EVENT_NETTEXT_GET_SMSBEARER_CNF:
-                       printf("\n****************************************\n");
-                       printf("\n$$$ GET PREFERRED BEARER$$$\n");
-                       printf("param1(length):%d\n", param1);
-                       get_preferred_bearer_noti(param1, pData);
-                       printf("\n****************************************\n");
-                       break;
-
-               case TAPI_EVENT_NETTEXT_SET_REQUEST_CNF:
-                       printf("\n***************************************\n");
-                       printf("\n$$$ SET REQUESTCONFIRM NOTI$$$\n");
-                       set_request_confirm_noti();
-                       printf("\n***************************************\n");
-                       break;
-
-               case TAPI_EVENT_NETTEXT_DEVICE_READY_IND:
-                       printf("\n***************************************\n");
-                       printf("\n$$$ DEVICE READY NOTI$$$\n");
-                       Device_ReadyNoti(param1, pData);
-                       printf("\n***************************************\n");
-                       break;
-
-               case TAPI_EVENT_NETTEXT_PARAM_COUNT_IND:
-                       printf("\n***************************************\n");
-                       printf("\n$$$ PARAM COUNT NOTI$$$\n");
-                       param_count_noti(param1, pData);
-                       printf("\n***************************************\n");
-                       break;
-
-               default:
-                       printf("\n****************DEFAULT***************\n");
-                       break;
-       }
-
-       if (eventType == expected_event)
-               TimeOutFun(NULL);
-
-       return 0;
-}//end callback
-
-
diff --git a/TC/telephony_TC/sms/unit/sms_callback_util.h b/TC/telephony_TC/sms/unit/sms_callback_util.h
deleted file mode 100644 (file)
index d54b9bf..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _SMS_CALLBACK_UTIL_H_
-#define _SMS_CALLBACK_UTIL_H_
-
-#include "async_util.h"
-#include "sms_util.h"
-
-int tapi_sms_callback(const TelTapiEvent_t *TapiEvent, void *data);
-
-#endif
diff --git a/TC/telephony_TC/sms/unit/sms_util.c b/TC/telephony_TC/sms/unit/sms_util.c
deleted file mode 100644 (file)
index c4cefba..0000000
+++ /dev/null
@@ -1,956 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <assert.h>
-
-#include "sms_util.h"
-#include <sms_common.h>
-
-void reverse(char *x, int len)
-{
-       int i, j = len - 1;
-
-       for (i = 0; i < j; i++) {
-               int t = x[i];
-               x[i] = x[j];
-               x[j--] = t;
-       }
-}
-
-char *AcItoa(int n, char *str, int b)
-{
-       int i = 0;
-
-       do {
-               str[i++] = "0123456789ABCDEF"[n % b];
-       } while ((n /= b) > 0);
-
-       reverse(str, i);
-       str[i] = '\0';
-
-       return str;
-}
-
-int AcToupper(int ch)
-{
-       return (('a' <= (ch) && (ch) <= 'z') ? ((ch) - ('a' - 'A')) : (ch));
-}
-
-char *SmsUtilUnpackGSMCode(char *szData, const TS_BYTE *pIn, int in_len)
-{
-       int i;
-       int pos = 0;
-       int shift = 0;
-
-       /* If the number of fill bits != 0, then it would cause an additional shift */
-       /*
-        if ( shift != 0 )
-        pos = pos + 1;
-
-        if ( shift ==7 )
-        shift = 0;
-        */
-
-       for (i = 0; i < in_len; i++, pos++) {
-               szData[i] = (pIn[pos] << shift) & 0x7F;
-
-               if (pos != 0) {
-                       /* except the first byte, a character contains some bits
-                        ** from the previous byte.
-                        */
-                       szData[i] |= pIn[pos - 1] >> (8 - shift);
-               }
-
-               shift++;
-
-               if (shift == 7) {
-                       shift = 0;
-
-                       /* a possible extra complete character is available */
-                       i++;
-                       szData[i] = pIn[pos] >> 1;
-
-                       if (szData[i] == 0) {
-                               /* this is the end of the input, quit */
-                               break;
-                       }
-               }
-       }
-
-       return szData;
-}
-
-int SmsUtilPackGSMCode(TS_BYTE *pOut, const char *szData, int in_len)
-{
-       int i;
-       int pos;
-       int shift = 0;
-       //shift = fill_bits;
-
-       //  memset( out, 0, out_len_max );
-
-       /* pack the ASCII characters
-        */
-       /*
-        if ( shift == 7 )
-        shift = 0;
-        */
-
-       for (pos = 0, i = 0; /*pos < out_len_max &&*/i < in_len; pos++, i++) {
-               /* pack the low bits */
-               pOut[pos] = szData[i] >> shift;
-
-               if (i + 1 < in_len) {
-                       /* pack the high bits using the low bits of the next character */
-                       pOut[pos] |= szData[i + 1] << (7 - shift);
-
-                       shift++;
-
-                       if (shift == 7) {
-                               shift = 0;
-                               i++;
-                       }
-               }
-       }
-
-       /* done */
-       return pos;
-}
-
-void SmsUtilConvertBCD2Digit(char *pDigits, char *pBCD, int digitLen)
-{
-       int i, bcdLen;
-       char c[2];
-       unsigned char higher, lower;
-
-       //SysDebug( ( MID_SMS, "__SmsConvertBCD2Digit: start.\n" ) );
-
-       if (pBCD == NULL || pDigits == NULL) {
-               printf("__SmsConvertBCD2Digit: pBCD == NULL || pDigits == NULL. return.\n");
-               return;
-       }
-
-       if (digitLen == 0) {
-               //printf("__SmsConvertBCD2Digit: digitLen == 0. return.\n" );
-
-               pDigits[0] = 0x00;
-
-               return;
-       }
-
-       if (digitLen % 2)
-               bcdLen = digitLen / 2 + 1;
-       else
-               bcdLen = digitLen / 2;
-
-       memset(pDigits, 0, bcdLen * 2);
-
-       for (i = 0; i < bcdLen; i++) {
-               lower = pBCD[i] & 0x0F; // get low nibble
-
-               if (lower == 0x0A)
-                       lower = '*';
-               else if (lower == 0x0B)
-                       lower = '#';
-               else if (lower == 0x0C)
-                       lower = 'p'; //DTMF Control pDigits seperator
-               else if (lower == 0x0F)
-                       lower = 0;
-               else {
-                       AcItoa(lower, c, 16);
-                       lower = (char) AcToupper(c[0]);
-               }
-
-               higher = (pBCD[i] >> 4) & 0x0F; // get high nibble
-
-               if (higher == 0x0A)
-                       higher = '*'; // =0x2A
-               else if (higher == 0x0B)
-                       higher = '#'; // =0x23
-               else if (higher == 0x0C)
-                       higher = 'p'; // =0x70, DTMF Control pDigits seperator
-               else if (higher == 0x0F) // if higher semi-octet is 0x0F, filled bits.
-               {
-                       //higher = 0;
-                       sprintf(pDigits + strlen(pDigits), "%c", lower);
-                       pDigits[/*digitLen-1*/bcdLen * 2 - 1] = '\0';
-
-                       //printf("__SmsConvertBCD2Digit: pDigits [%s].\n", pDigits  );
-
-                       return;
-               }
-               else {
-                       AcItoa(higher, c, 16);
-                       higher = (char) AcToupper(c[0]);
-               }
-
-               //sprintf(pDigits, "%s%c%c", pDigits, lower, higher);
-               sprintf(pDigits + strlen(pDigits), "%c%c", lower, higher);
-       }
-
-       pDigits[digitLen] = '\0';
-
-       //printf("__SmsConvertBCD2Digit: pDigits [%s].\n", pDigits  );
-}
-
-void SmsUtilConvertDigit2BCD(char *pBCD, char *pDigits, int digitLen)
-{
-       int i, j, digit;
-
-       unsigned char higher, lower;
-
-       if (pBCD == NULL || pDigits == NULL)
-               return;
-
-       // 0123456789 -> 1032547698
-       for (i = 0, j = 0; i < digitLen; i = i + 2, j++) {
-               if (pDigits[i] == '*')
-                       digit = 0x0A;
-               else if (pDigits[i] == '#')
-                       digit = 0x0B;
-               else if (AcToupper(pDigits[i]) == 'P')
-                       digit = 0x0C;
-               else
-                       digit = (int) (pDigits[i] - '0');
-
-               lower = digit & 0x0F;
-
-               if (digitLen != i + 1) {
-                       if (pDigits[i + 1] == '*')
-                               digit = 0x0A;
-                       else if (pDigits[i + 1] == '#')
-                               digit = 0x0B;
-                       else if (AcToupper(pDigits[i + 1]) == 'P')
-                               digit = 0x0C;
-                       else
-                               digit = (int) (pDigits[i + 1] - '0');
-
-                       higher = digit & 0x0F;
-               }
-               else {
-                       higher = 0xFF;
-               }
-
-               pBCD[j] = (higher << 4) | lower;
-       }
-}
-
-TmDateTime* SmsUtilDecodeTimeStamp(unsigned char *pTimeStamp, TmDateTime *tmDateTime)
-{
-       //TmDateTime tmDateTime;
-       char szBuf[3];
-       //TS_UINT32     time;
-
-       if (pTimeStamp == NULL)
-               return NULL;
-
-       SmsUtilConvertBCD2Digit(szBuf, (char*) &pTimeStamp[0], 2);
-       tmDateTime->year = atoi(szBuf) + 2000;
-       if ((tmDateTime->year >= 1900 + MAX_YEAR)/* && ( tmDateTime->year < 2000 + BASE_YEAR )*/)
-               tmDateTime->year -= 100;
-       SmsUtilConvertBCD2Digit(szBuf, (char*) &pTimeStamp[1], 2);
-       tmDateTime->month = atoi(szBuf);
-       SmsUtilConvertBCD2Digit(szBuf, (char*) &pTimeStamp[2], 2);
-       tmDateTime->day = atoi(szBuf);
-       SmsUtilConvertBCD2Digit(szBuf, (char*) &pTimeStamp[3], 2);
-       tmDateTime->hour = atoi(szBuf);
-       SmsUtilConvertBCD2Digit(szBuf, (char*) &pTimeStamp[4], 2);
-       tmDateTime->minute = atoi(szBuf);
-       SmsUtilConvertBCD2Digit(szBuf, (char*) &pTimeStamp[5], 2);
-       tmDateTime->second = atoi(szBuf);
-
-       if ((tmDateTime->year < 1900 + BASE_YEAR) || (tmDateTime->year > 1900 + MAX_YEAR))
-               tmDateTime->year = 1900 + BASE_YEAR;
-
-       /*
-        time = TmDateTimeToSeconds( &tmDateTime );
-        if ( time > MAX_SECONDS )
-        time = MAX_SECONDS;
-
-        */
-
-       return tmDateTime;
-}
-
-unsigned char *SmsUtilEncodeTimeStamp(TmDateTime *tmDateTime, unsigned char *pTimeStamp)
-{
-       //TmDateTime tmDateTime;
-       char szBuf[3];
-       int year;
-
-       if (pTimeStamp == NULL)
-               return NULL;
-
-       memset((void*) pTimeStamp, 0x00, sizeof(unsigned char) * 7);
-
-       //TmSecondsToDateTime( timeStamp, &tmDateTime );
-
-       year = tmDateTime->year - 2000;
-       if (year < 0)
-               year += 100;
-       sprintf(szBuf, "%02d", year);
-       SmsUtilConvertDigit2BCD((char*) &pTimeStamp[0], szBuf, 2);
-       sprintf(szBuf, "%02d", tmDateTime->month);
-       SmsUtilConvertDigit2BCD((char*) &pTimeStamp[1], szBuf, 2);
-       sprintf(szBuf, "%02d", tmDateTime->day);
-       SmsUtilConvertDigit2BCD((char*) &pTimeStamp[2], szBuf, 2);
-       sprintf(szBuf, "%02d", tmDateTime->hour);
-       SmsUtilConvertDigit2BCD((char*) &pTimeStamp[3], szBuf, 2);
-       sprintf(szBuf, "%02d", tmDateTime->minute);
-       SmsUtilConvertDigit2BCD((char*) &pTimeStamp[4], szBuf, 2);
-       sprintf(szBuf, "%02d", tmDateTime->second);
-       SmsUtilConvertDigit2BCD((char*) &pTimeStamp[5], szBuf, 2);
-
-       /*      ignore Time zone (assume it is using 0x00 as default)
-        timeZone = TmGetTimeZoneOffset() /15;
-        if ( timeZone < 0 )
-        absTimeZone = -timeZone;
-        else
-        absTimeZone = timeZone;
-        */
-
-       sprintf(szBuf, "%02d", 0);
-       SmsUtilConvertDigit2BCD((char*) &pTimeStamp[6], szBuf, 2);
-
-       //if ( timeZone < 0 )
-       //      pTimeStamp[6] |= 0x80;
-
-       return pTimeStamp;
-}
-
-void SmsUtilDecodeAddrField(char *diallingNum, unsigned char *pAddrField, int *result_ton, int *result_npi)
-{
-       int index = 0;
-       int ton, npi;
-       int dialnumLen = 0;
-
-       ton = (pAddrField[index + 1] & 0x70) >> 4;
-       npi = pAddrField[index + 1] & 0x0F;
-
-       if (ton != SIM_TON_ALPHA_NUMERIC) {
-               // Origination/Destination address �ʵ忡���� length�� ���� address length
-               // origination/destination address �ʵ��� ��� length�� 0 �� ���� number type/plan �ʵ�� 0xFF ���� ���´�.
-               dialnumLen = pAddrField[index++];
-       }
-       else {
-               dialnumLen = (((pAddrField[index++] + 1) / 2) * 8) / 7;
-       }
-
-       // SIM_SMSP_ADDRESS_LEN ���� address length �� ũ�� SIM_SMSP_ADDRESS_LEN ��ŭ�� ��ȯ�� �Ѵ�.
-       if (dialnumLen > SIM_SMSP_ADDRESS_LEN) {
-               dialnumLen = SIM_SMSP_ADDRESS_LEN;
-       }
-
-       //printf(" dialnumLen = %d\n", dialnumLen  );
-
-       index++; /* ignore Type of Address field */
-
-       if (ton != SIM_TON_ALPHA_NUMERIC) {
-               SmsUtilConvertBCD2Digit(diallingNum, (char*) &pAddrField[index], dialnumLen);
-       }
-       else {
-               SmsUtilUnpackGSMCode(diallingNum, &pAddrField[index], dialnumLen);
-       }
-
-       //printf(  "__SmsDecodeAddrField: diallingNum [%s].\n", (char*) diallingNum  );
-
-       *result_ton = ton;
-       *result_npi = npi;
-}
-
-int SmsUtilEncodeAddrField(unsigned char *pAddrField, char *diallingNum, int dialnumLen, int ton, int npi)
-{
-       int index = 0;
-
-       if (diallingNum == NULL || pAddrField == NULL) {
-               printf("SmsUtilEncodeAddrField: invalid input\n");
-               return -1;
-       }
-
-       if (ton != SIM_TON_ALPHA_NUMERIC) {
-               // Origination/Destination address �ʵ忡���� length�� ���� address length
-               pAddrField[index++] = (unsigned char) dialnumLen;
-               printf("SmsUtilEncodeAddrField: addr len packet: %d\n", pAddrField[index]);
-       }
-       else {
-               pAddrField[index] = (unsigned char) (((dialnumLen * 7 + 7) / 8) * 2);
-
-               // ������ ����Ʈ���� ���� 4��Ʈ�� ������ ������ length �ʵ尪�� -1�� �Ѵ�.
-               if (((dialnumLen * 7) % 8) <= 4)
-                       pAddrField[index]--;
-
-               printf("SmsUtilEncodeAddrField: addr len packet: %d out of SIM_TON_ALPAHA\n", pAddrField[index]);
-
-               index++;
-       }
-
-       SET_TON_NPI(pAddrField[index], ton, npi);
-
-       index++; // SET_TON_NPI �� MACRO �̹Ƿ� ���ο��� ������Ű�� ����
-
-       if (ton != SIM_TON_ALPHA_NUMERIC) {
-               SmsUtilConvertDigit2BCD((char*) &pAddrField[index], (char*) diallingNum, dialnumLen);
-
-               if (dialnumLen % 2)
-                       index += dialnumLen / 2 + 1;
-               else
-                       index += dialnumLen / 2;
-       }
-       else {
-               index += SmsUtilPackGSMCode(&pAddrField[index], diallingNum, (int) dialnumLen);
-       }
-
-       return index;
-}
-
-int SmsUtilDecodeScAddrField(TelSmsAddressInfo_t *pSmsAddrField, TS_BYTE *pAddrField)
-{
-       printf("SmsUtilDecodeScAddrField\n");
-       int index = 0;
-       int length = 0;
-
-       //SysDebug( ( MID_SMS, "__SmsDecodeScAddrField: start.\n" ) );
-
-       if (pSmsAddrField == NULL || pAddrField == NULL) {
-               printf("SmsUtilDecodeScAddrField: pSimAddrField or pAddrField is NULL.\n");
-               return 0;
-       }
-
-       // Service Center address �ʵ忡���� length�� �ڿ� ������ byte�� ��
-       // -> ���� address ���̴� TON/API ����Ʈ�� �����ϰ� ������ ����Ʈ�� 2�� or 2�� - 1(���� ���̰� Ȧ���ΰ��)
-       length = pAddrField[index];
-       // ������ ���� �޽����� ��쿡�� service center address�� ���� ���� �ִ�.
-       // �� ��쿡 length �� 0 �̸� number type, plan �� ��� ���
-       // length �� 1 �̸� type, plan �� �ִ� ���
-       if (length > 1) {
-               pSmsAddrField->DialNumLen = (pAddrField[index++] - 1) * 2; // -1�� TON/API �ʵ�
-
-               // SIM_SMSP_ADDRESS_LEN ���� address length �� ũ�� SIM_SMSP_ADDRESS_LEN ��ŭ�� ��ȯ�� �Ѵ�.
-               if (pSmsAddrField->DialNumLen > SIM_SMSP_ADDRESS_LEN) {
-                       pSmsAddrField->DialNumLen = SIM_SMSP_ADDRESS_LEN;
-               }
-
-               pSmsAddrField->Ton = (pAddrField[index] & 0x70) >> 4;
-               pSmsAddrField->Npi = pAddrField[index] & 0x0F;
-
-               index++; /* ignore Type of Address field */
-
-               SmsUtilConvertBCD2Digit((char*) pSmsAddrField->szDiallingNum, (char*) &pAddrField[index], pSmsAddrField->DialNumLen);
-
-               printf("SmsUtilDecodeScAddrField: diallingNum [%s].\n", (char*) pSmsAddrField->szDiallingNum);
-               printf("length=%d , ton %d, npi =%d\n", pSmsAddrField->DialNumLen, pSmsAddrField->Ton, pSmsAddrField->Npi);
-       }
-
-       return ++length;
-}
-
-int SmsUtilEncodeScAddrField(TS_BYTE *pAddrField, TelSmsAddressInfo_t *pSmsAddrField)
-{
-       int index = 0;
-
-       if (pSmsAddrField == NULL || pAddrField == NULL)
-               return -1;
-
-       // Service Center address �ʵ忡���� length�� �ڿ� ������ byte�� ��
-       // -> ���� address ���̴� TON/API ����Ʈ�� �����ϰ� ������ ����Ʈ�� 2�� or 2�� - 1(���� ���̰� Ȧ���ΰ��)
-       if (pSmsAddrField->DialNumLen % 2) {
-               pAddrField[index++] = pSmsAddrField->DialNumLen / 2 + 1 + 1; // +1 �� TON/NPI �ʵ�, Ȧ������ ���� ������ ���߱� ���� �ѹ� �� +1
-       }
-       else {
-               pAddrField[index++] = pSmsAddrField->DialNumLen / 2 + 1; // +1 �� TON/NPI �ʵ�
-       }
-
-       SET_TON_NPI( pAddrField[index], pSmsAddrField->Ton, pSmsAddrField->Npi );
-
-       index++; // SET_TON_NPI �� MACRO �̹Ƿ� ���ο��� ������Ű�� ���׹߻�
-
-       SmsUtilConvertDigit2BCD((char*) &pAddrField[index], (char*) pSmsAddrField->szDiallingNum, pSmsAddrField->DialNumLen);
-
-       if (pSmsAddrField->DialNumLen % 2)
-               index += pSmsAddrField->DialNumLen / 2 + 1;
-       else
-               index += pSmsAddrField->DialNumLen / 2;
-
-       return index;
-}
-
-void SmsUtilDecodeDCS(tapi_nettext_coding_scheme *pCodingScheme, unsigned char dcs)
-{
-       assert( pCodingScheme != NULL );
-
-       memset(pCodingScheme, 0, sizeof(tapi_nettext_coding_scheme));
-
-       if (dcs < 0x40) // bits 7..4 = 00xx : general data coding indication
-       {
-               pCodingScheme->coding_group_type = TAPI_NETTEXT_CODGRP_SM_GENERAL_DCS;
-
-               if (dcs & 0x20) // bit 5 = 1 : indicates the text is compressed
-                       pCodingScheme->bCompressed = TRUE;
-
-               if (dcs & 0x10) // bit 4 = 1 : indicates that bits  1 to 0 have a message class meaning
-               {
-                       pCodingScheme->bmsg_class_set = TRUE;
-
-                       switch (dcs & 0x03) // bits 1 to 0 : message class
-                       {
-                               case 0x00:
-                                       pCodingScheme->class_type = TAPI_NETTEXT_CLASS_0;
-                                       break;
-                               case 0x01:
-                                       pCodingScheme->class_type = TAPI_NETTEXT_CLASS_1;
-                                       break;
-                               case 0x02:
-                                       pCodingScheme->class_type = TAPI_NETTEXT_CLASS_2;
-                                       break;
-                               case 0x03:
-                                       pCodingScheme->class_type = TAPI_NETTEXT_CLASS_3;
-                                       break;
-                       }
-               }
-               else {
-                       // bit 4 = 0 : indicates that bits 1 to 0 are reserved and have no message class meaning
-                       pCodingScheme->class_type = TAPI_NETTEXT_CLASS_NONE;
-               }
-
-               switch (dcs & 0x0C) // bits 4 to 3 : character set
-               {
-                       case 0x00:
-                               pCodingScheme->alphabet_type = TAPI_NETTEXT_ALPHABET_DEFAULT;
-                               break;
-                       case 0x04:
-                               pCodingScheme->alphabet_type = TAPI_NETTEXT_ALPHABET_8BIT;
-                               break;
-                       case 0x08:
-                               pCodingScheme->alphabet_type = TAPI_NETTEXT_ALPHABET_UCS2;
-                               break;
-                       case 0x0C:
-                               pCodingScheme->alphabet_type = TAPI_NETTEXT_ALPHABET_MAX;
-                               break;
-               }
-       }
-       else if (dcs >= 0x40 && dcs < 0x80) // bits 7..4 = 01xx : message marked for automatic deletion group. bits 5..0 are coded exactly the same as group 00xx
-       {
-               pCodingScheme->coding_group_type = TAPI_NETTEXT_CODGRP_SM_AUTO_DELETION;
-
-               if (dcs & 0x20) // bit 5 = 1 : indicates the text is compressed
-                       pCodingScheme->bCompressed = TRUE;
-
-               if (dcs & 0x10) // bit 4 = 1 : indicates that bits  1 to 0 have a message class meaning
-               {
-                       pCodingScheme->bmsg_class_set = TRUE;
-
-                       switch (dcs & 0x03) // bits 1 to 0 : message class
-                       {
-                               case 0x00:
-                                       pCodingScheme->class_type = TAPI_NETTEXT_CLASS_0;
-                                       break;
-                               case 0x01:
-                                       pCodingScheme->class_type = TAPI_NETTEXT_CLASS_1;
-                                       break;
-                               case 0x02:
-                                       pCodingScheme->class_type = TAPI_NETTEXT_CLASS_2;
-                                       break;
-                               case 0x03:
-                                       pCodingScheme->class_type = TAPI_NETTEXT_CLASS_3;
-                                       break;
-                       }
-               }
-               else {
-                       // bit 4 = 0 : indicates that bits 1 to 0 are reserved and have no message class meaning
-                       pCodingScheme->class_type = TAPI_NETTEXT_CLASS_NONE;
-               }
-
-               switch (dcs & 0x0C) // bits 4 to 3 : character set
-               {
-                       case 0x00:
-                               pCodingScheme->alphabet_type = TAPI_NETTEXT_ALPHABET_DEFAULT;
-                               break;
-                       case 0x04:
-                               pCodingScheme->alphabet_type = TAPI_NETTEXT_ALPHABET_8BIT;
-                               break;
-                       case 0x08:
-                               pCodingScheme->alphabet_type = TAPI_NETTEXT_ALPHABET_UCS2;
-                               break;
-                       case 0x0C:
-                               pCodingScheme->alphabet_type = TAPI_NETTEXT_ALPHABET_MAX;
-                               break;
-               }
-       }
-       // bits 7..4 = 1000 ~ 1011 : reserved
-       else if (dcs == 0xC0) // bits 7..4 = 1100 : message waiting indication group, discard message
-       {
-               pCodingScheme->coding_group_type = TAPI_NETTEXT_CODGRP_SM_WAITING_DISCARD;
-       }
-       else if (dcs < 0xE0) {
-               pCodingScheme->coding_group_type = TAPI_NETTEXT_CODGRP_SM_WAITING_STORE;
-
-               if (dcs & 0x08)
-                       pCodingScheme->bmsg_ind_active = TRUE;
-
-               switch (dcs & 0x03) {
-                       case 0x00:
-                               pCodingScheme->waiting_type = TAPI_NETTEXT_WAITING_VOICE_MSG;
-                               break;
-                       case 0x01:
-                               pCodingScheme->waiting_type = TAPI_NETTEXT_WAITING_FAX_MSG;
-                               break;
-                       case 0x02:
-                               pCodingScheme->waiting_type = TAPI_NETTEXT_WAITING_EMAIL_MSG;
-                               break;
-                       case 0x03:
-                               pCodingScheme->waiting_type = TAPI_NETTEXT_WAITING_OTHER_MSG;
-                               break;
-               }
-       }
-       else if (dcs < 0xF0) {
-               pCodingScheme->coding_group_type = TAPI_NETTEXT_CODGRP_SM_WAITING_STORE_UCS2;
-
-               if (dcs & 0x08)
-                       pCodingScheme->bmsg_ind_active = TRUE;
-
-               switch (dcs & 0x03) {
-                       case 0x00:
-                               pCodingScheme->waiting_type = TAPI_NETTEXT_WAITING_VOICE_MSG;
-                               break;
-                       case 0x01:
-                               pCodingScheme->waiting_type = TAPI_NETTEXT_WAITING_FAX_MSG;
-                               break;
-                       case 0x02:
-                               pCodingScheme->waiting_type = TAPI_NETTEXT_WAITING_EMAIL_MSG;
-                               break;
-                       case 0x03:
-                               pCodingScheme->waiting_type = TAPI_NETTEXT_WAITING_OTHER_MSG;
-                               break;
-               }
-       }
-       else {
-               pCodingScheme->coding_group_type = TAPI_NETTEXT_CODGRP_SM_CLASS_CODING;
-
-               if (dcs & 0x04)
-                       pCodingScheme->alphabet_type = TAPI_NETTEXT_ALPHABET_8BIT;
-
-               switch (dcs & 0x03) {
-                       case 0x00:
-                               pCodingScheme->class_type = TAPI_NETTEXT_CLASS_0;
-                               break;
-                       case 0x01:
-                               pCodingScheme->class_type = TAPI_NETTEXT_CLASS_1;
-                               break;
-                       case 0x02:
-                               pCodingScheme->class_type = TAPI_NETTEXT_CLASS_2;
-                               break;
-                       case 0x03:
-                               pCodingScheme->class_type = TAPI_NETTEXT_CLASS_3;
-                               break;
-               }
-       }
-}
-
-void SmsUtilEncodeDCS(TS_BYTE *pDCS, tapi_nettext_coding_scheme *pCodingScheme)
-{
-       printf("SmsUtilEncodeDCS Start\n");
-       TS_BYTE dcs = 0x00;
-
-       assert( pCodingScheme != NULL );
-
-       switch (pCodingScheme->coding_group_type) {
-               case TAPI_NETTEXT_CODGRP_SM_GENERAL_DCS: // bit 7..4 is 00xx
-                       if (pCodingScheme->bCompressed)
-                               dcs |= 0x20; // bit 5 is 1
-
-                       if (pCodingScheme->bmsg_class_set) {
-                               dcs |= 0x10; // bit 4 is 1
-
-                               switch (pCodingScheme->class_type) {
-                                       case TAPI_NETTEXT_CLASS_0: // bit 1..0 is 00
-                                               dcs |= 0x00;
-                                               break;
-                                       case TAPI_NETTEXT_CLASS_1: // bit 1..0 is 01
-                                               dcs |= 0x01;
-                                               break;
-                                       case TAPI_NETTEXT_CLASS_2: // bit 1..0 is 10
-                                               dcs |= 0x02;
-                                               break;
-                                       case TAPI_NETTEXT_CLASS_3: // bit 1..0 is 11
-                                               dcs |= 0x03;
-                                               break;
-                                       default:
-                                               break;
-                               }
-                       }
-
-                       switch (pCodingScheme->alphabet_type) {
-                               case TAPI_NETTEXT_ALPHABET_DEFAULT: // bit 3..2 is 00
-                                       dcs |= 0x00;
-                                       break;
-                               case TAPI_NETTEXT_ALPHABET_8BIT: // bit 3..2 is 01
-                                       dcs |= 0x04;
-                                       break;
-                               case TAPI_NETTEXT_ALPHABET_UCS2: // bit 3..2 is 10
-                                       dcs |= 0x08;
-                                       break;
-                               default: // bit 3..2 is 11
-                                       dcs |= 0x0C;
-                                       break;
-                       }
-                       break;
-
-               case TAPI_NETTEXT_CODGRP_SM_WAITING_DISCARD: // bit 7..4 is 1100
-                       dcs |= 0xC0;
-                       break;
-
-               case TAPI_NETTEXT_CODGRP_SM_WAITING_STORE: // bit 7..4 is 1101
-                       dcs |= 0xD0;
-
-                       if (pCodingScheme->bmsg_ind_active) // bit 3..2 is 10
-                               dcs |= 0x08;
-
-                       switch (pCodingScheme->waiting_type) {
-                               case TAPI_NETTEXT_WAITING_VOICE_MSG: // bit 1..0 is 00
-                                       dcs |= 0x00;
-                                       break;
-                               case TAPI_NETTEXT_WAITING_FAX_MSG: // bit 1..0 is 01
-                                       dcs |= 0x01;
-                                       break;
-                               case TAPI_NETTEXT_WAITING_EMAIL_MSG: // bit 1..0 is 10
-                                       dcs |= 0x02;
-                                       break;
-                               case TAPI_NETTEXT_WAITING_OTHER_MSG: // bit 1..0 is 11
-                                       dcs |= 0x03;
-                                       break;
-                               default:
-                                       break;
-                       }
-                       break;
-
-               case TAPI_NETTEXT_CODGRP_SM_WAITING_STORE_UCS2: // bit 7..4 is 1110
-                       dcs |= 0xE0;
-
-                       if (pCodingScheme->bmsg_ind_active) // bit 3..2 is 10
-                               dcs |= 0x08;
-
-                       switch (pCodingScheme->waiting_type) {
-                               case TAPI_NETTEXT_WAITING_VOICE_MSG: // bit 1..0 is 00
-                                       dcs |= 0x00;
-                                       break;
-                               case TAPI_NETTEXT_WAITING_FAX_MSG: // bit 1..0 is 01
-                                       dcs |= 0x01;
-                                       break;
-                               case TAPI_NETTEXT_WAITING_EMAIL_MSG: // bit 1..0 is 10
-                                       dcs |= 0x02;
-                                       break;
-                               case TAPI_NETTEXT_WAITING_OTHER_MSG: // bit 1..0 is 11
-                                       dcs |= 0x03;
-                                       break;
-                               default:
-                                       break;
-                       }
-
-                       break;
-               case TAPI_NETTEXT_CODGRP_SM_CLASS_CODING: // bit 7..4 is 1111
-                       dcs |= 0xF0;
-
-                       switch (pCodingScheme->alphabet_type) {
-                               case TAPI_NETTEXT_ALPHABET_DEFAULT: // bit 2 is 0
-                                       dcs |= 0x00;
-                                       break;
-                               case TAPI_NETTEXT_ALPHABET_8BIT: // bit 2 is 1
-                                       dcs |= 0x04;
-                                       break;
-                               default:
-                                       break;
-                       }
-
-                       switch (pCodingScheme->class_type) {
-                               case TAPI_NETTEXT_CLASS_0: // bit 1..0 is 00
-                                       break;
-                               case TAPI_NETTEXT_CLASS_1: // bit 1..0 is 01
-                                       dcs |= 0x01;
-                                       break;
-                               case TAPI_NETTEXT_CLASS_2: // bit 1..0 is 10
-                                       dcs |= 0x02;
-                                       break;
-                               case TAPI_NETTEXT_CLASS_3: // bit 1..0 is 11
-                                       dcs |= 0x03;
-                                       break;
-                               default:
-                                       break;
-                       }
-                       break;
-
-               default:
-                       break;
-       }
-
-       memcpy(pDCS, &dcs, sizeof(TS_BYTE));
-
-       printf("SmsUtilEncodeDCS End\n");
-}
-
-TS_UINT8 SmsUtilEncodeValidity(TS_BYTE *pValidity, tapi_nettext_vp *pVP)
-{
-       TS_UINT8 pos = 0;
-
-       switch (pVP->vp_type) {
-               case TAPI_NETTEXT_VP_NOT_USED:
-                       break;
-
-               case TAPI_NETTEXT_VP_RELATIVE:
-                       pValidity[pos] = (TS_UINT8) pVP->vpValue;
-                       pos++;
-                       break;
-
-               case TAPI_NETTEXT_VP_ABSOLUTE:
-                       //TO DO
-                       //SmsUtilEncodeTimeStamp( pValidity, pVP->vpValue );
-                       pos += 7;
-                       break;
-
-               case TAPI_NETTEXT_VP_ENHANCED:
-                       break;
-       }
-
-       return pos;
-}
-
-void EncodeSmsSubmitTPDU(TelSmsDatapackageInfo_t *pDataPackage, char *diallingNum, int dialNumLen, char *msg, int msg_len)
-{
-       TPDU_SMS_SUBMIT tpdu_submit;
-       TS_BYTE packet[TAPI_NETTEXT_MSG_SIZE_MAX];
-       TS_UINT8 tp_mr = 0x01;
-       TS_UINT8 tp_pid = 0; //reaplace type (65)
-       TS_UINT8 tp_dcs; //=17; //class_1(17),class_2(18)
-       TS_UINT8 tp_vp;
-
-       int pos;
-       int index = 0, ScIndex = 0;
-       int i;
-
-       char *SCA = VALID_SCA_NUM;
-
-       memset(packet, 0, TAPI_NETTEXT_MSG_SIZE_MAX);
-
-       ScIndex = SmsUtilEncodeAddrField(pDataPackage->Sca, SCA, strlen(SCA), 0x01, 0x01);
-
-       printf("ScIndex is %d\n", ScIndex);
-
-       for (i = 0; i < strlen((char *) pDataPackage->Sca); i++)
-               printf("[%02x]", pDataPackage->Sca[i]);
-       printf("\n");
-
-       tpdu_submit.msg_type = SMS_TPDU_SUBMIT;
-       tpdu_submit.rd = TRUE; //false :accept duplicate msg , true: reject duplicate msg
-       tpdu_submit.vpf = TAPI_NETTEXT_VP_RELATIVE;
-       tpdu_submit.srr = TRUE; //false :A status report is not requested , true: A status report is requested
-       tpdu_submit.udhi = FALSE; //false: contains only the short message , true :a Header in addition to the short message
-       tpdu_submit.rp = TRUE; //false :TP Reply Path parameter is not set in this SMS SUBMIT, true : TP Reply Path parameter is set in this SMS SUBMIT
-
-       packet[index] = tpdu_submit.msg_type;
-       packet[index] |= tpdu_submit.rd ? 0x04 : 0;
-       packet[index] |= tpdu_submit.vpf << 3;
-       packet[index] |= tpdu_submit.srr ? 0x20 : 0;
-       packet[index] |= tpdu_submit.udhi ? 0x40 : 0;
-       packet[index] |= tpdu_submit.rp ? 0x80 : 0;
-
-       index++;
-       printf("index of message ref is %d, msgref is %d\n", index, tp_mr);
-
-       packet[index++] = tp_mr;
-
-       index += SmsUtilEncodeAddrField(packet + index, diallingNum, dialNumLen, 0x01, 0x01);
-
-       //printf("DESTINATTION  ADDR Encoded =========\n");
-       packet[index++] = tp_pid;
-
-       tpdu_submit.dcs.bCompressed = FALSE;
-       tpdu_submit.dcs.bmsg_class_set = TRUE;
-       tpdu_submit.dcs.coding_group_type = TAPI_NETTEXT_CODGRP_SM_GENERAL_DCS;
-       tpdu_submit.dcs.alphabet_type = TAPI_NETTEXT_ALPHABET_DEFAULT;
-       tpdu_submit.dcs.class_type = TAPI_NETTEXT_CLASS_2;
-
-       SmsUtilEncodeDCS(&tp_dcs, &tpdu_submit.dcs);
-
-       packet[index++] = tp_dcs;
-
-       tpdu_submit.vp.vp_rel_type = TAPI_NETTEXT_VP_REL_6H;
-       tpdu_submit.vp.vp_type = TAPI_NETTEXT_VP_RELATIVE;
-       tpdu_submit.vp.vpValue = 0xff;
-
-       SmsUtilEncodeValidity(&tp_vp, &tpdu_submit.vp);
-
-       //tp_vp =65;
-       packet[index++] = tp_vp;
-       packet[index++] = msg_len;
-
-       /*********TP-UD **********/
-       if (tpdu_submit.dcs.alphabet_type == TAPI_NETTEXT_ALPHABET_DEFAULT) {
-               pos = SmsUtilPackGSMCode(packet + index, msg, msg_len);
-               index += pos;
-       }
-
-       printf("\nSend packet to phonseSever[%d] -----\n", index);
-
-       for (i = 0; i < index; i++) {
-               printf("[%02x]", packet[i]);
-               if (i % 10 == 9)
-                       printf("\n");
-       }
-       printf("\n");
-
-       // Copy the packet to the pDataPackage
-       pDataPackage->MsgLength = index;
-       memcpy(pDataPackage->szData, packet, index);
-}
-
-void PrepareMessage(TelSmsDatapackageInfo_t *pDataPackage)
-{
-       int msg_len = 0;
-       char buf[512];
-       char message[512];
-       char diallingNum[TAPI_NETTEXT_ADDRESS_LEN_MAX];
-       int diallingNum_len = 0;
-
-       memset(buf, 0, sizeof(buf));
-       memset(diallingNum, 0, sizeof(diallingNum));
-       memset(message, 0, sizeof(message));
-
-       strcpy(message, "This is a test message");
-       strncpy(diallingNum, RECEIPIENT, TAPI_NETTEXT_ADDRESS_LEN_MAX);
-
-       diallingNum_len = strlen(diallingNum);
-       printf("dialling num %s and dialling num len is %d\n", diallingNum, diallingNum_len);
-       diallingNum[diallingNum_len] = 0;
-       //      diallingNum_len = diallingNum_len-1;
-
-       msg_len = strlen(message);
-
-       printf("==========================\n");
-       printf("To :%s\n", diallingNum);
-       printf("Message: %s\nMsg Length:%d\n", message, msg_len);
-       printf("Dialling number Length : %d\n", diallingNum_len);
-       printf("==========================\n");
-
-       EncodeSmsSubmitTPDU(pDataPackage, diallingNum, diallingNum_len, message, msg_len);
-}
-
diff --git a/TC/telephony_TC/sms/unit/sms_util.h b/TC/telephony_TC/sms/unit/sms_util.h
deleted file mode 100644 (file)
index e0940d0..0000000
+++ /dev/null
@@ -1,455 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef __TET_SMS_UTIL_H_
-#define __TET_SMS_UTIL_H_
-
-#include "ITapiNetText.h"
-
-#define SIM_TON_UNKNOWN                                        0 //unknown
-#define        SIM_TON_INTERNATIONAL                   1 //international number
-#define        SIM_TON_NATIONAL                                2 //national number
-#define SIM_TON_NETWORK_SPECIFIC               3 //natwork specific number
-#define        SIM_TON_DEDICATED_ACCESS                4 //subscriber number
-#define        SIM_TON_ALPHA_NUMERIC                   5//alphanumeric, GSM 7-bit default alphabet)
-#define        SIM_TON_ABBREVIATED_NUMBER              6 //abbreviated number
-#define        SIM_TON_RESERVED_FOR_EXT                7 //reserved for extension
-
-
-#define MAX_UDH_LEN            137
-#define UDH_MAX                        7
-#define SMDATA_SIZE_MAX 160
-
-#define FAIL                   0x00
-#define SUCCESS                0x01
-
-//////////////////////////////////TPDU type////////////////////////////////
-typedef enum {
-       SMS_TPDU_DELIVER                        = 0x00, // sc -> ms
-       SMS_TPDU_DELIVER_REPORT         = 0x00, // ms -> sc
-       SMS_TPDU_SUBMIT                         = 0x01, // ms -> sc
-       SMS_TPDU_SUBMIT_REPORT          = 0x01, // sc -> ms
-       SMS_TPDU_STATUS_REPORT          = 0x02, // sc -> ms
-       SMS_TPDU_COMMAND                        = 0x02, // ms -> sc
-       SMS_PDU_INVALID_TYPE
-} SmsTPDUType;
-
-typedef enum {
-       SMS_DAEMON_UNKNOWN_MESSAGE,
-       SMS_DAEMON_RECEIVED_UNREAD_MESSAGE,
-       SMS_DAEMON_RECEIVED_READ_MESSAGE,
-       SMS_DAEMON_UNSENT_MESSAGE,
-       SMS_DAEMON_STORED_SENT_MESSAGE,
-} sd_message_status;
-
-
-/*
- * tapi_nettext_vp_type
- * This enumeration defines the validity period type.
- */
-typedef enum {
-       TAPI_NETTEXT_VP_NOT_USED = 0,           /**< validity period not used */
-       TAPI_NETTEXT_VP_RELATIVE = 2,           /**< after a predetermined time period after the service center has received the message */
-       TAPI_NETTEXT_VP_ABSOLUTE = 3,
-       TAPI_NETTEXT_VP_ENHANCED = 1,
-
-       TAPI_NETTEXT_VP_MAX
-} tapi_nettext_vp_type;
-
-/*
- * tapi_nettext_coding_group_type
- This enum defined the different sms coding group types
- */
-typedef enum {
-       TAPI_NETTEXT_CODGRP_SM_GENERAL_DCS,                     /**< Bits 7..4 00xx */
-       TAPI_NETTEXT_CODGRP_CB_GENERAL_LANG,            /**< 0000 */
-       TAPI_NETTEXT_CODGRP_CB_ALPHA,                           /**< 0001 */
-       TAPI_NETTEXT_CODGRP_CB_RES1,                            /**< 0010 */
-       TAPI_NETTEXT_CODGRP_CB_RES2,                            /**< 0011 */
-       TAPI_NETTEXT_CODGRP_SM_AUTO_DELETION,           /**< 01xx Bits 5..0 are coded the same as SM_GENERAL_DCS */
-       TAPI_NETTEXT_CODGRP_CB_GENERAL_DCS,                     /**< 01xx behavior is as SM_GENERAL_DCS */
-       TAPI_NETTEXT_CODGRP_SM_WAITING_DISCARD,         /**< 1100 */
-       TAPI_NETTEXT_CODGRP_SM_WAITING_STORE,           /**< 1101 */
-       TAPI_NETTEXT_CODGRP_SM_WAITING_STORE_UCS2,      /**< 1110 */
-       TAPI_NETTEXT_CODGRP_CB_WAP,                                     /**< 1110 Cell Broadcast */
-       TAPI_NETTEXT_CODGRP_SM_CLASS_CODING,            /**< 1111 */
-       TAPI_NETTEXT_CODGRP_CB_CLASS_CODING,            /**< 1111 Cell Broadcast */
-
-       TAPI_NETTEXT_CODGRP_MAX
-} tapi_nettext_coding_group_type;
-
-/*
- *  tapi_nettext_waiting_type
- Defines different types of waiting indicators
- */
-typedef enum {
-       TAPI_NETTEXT_WAITING_VOICE_MSG,         /**< voice message waiting */
-       TAPI_NETTEXT_WAITING_FAX_MSG,           /**< FAX message waiting */
-       TAPI_NETTEXT_WAITING_EMAIL_MSG,         /**< E-mail waiting */
-       TAPI_NETTEXT_WAITING_OTHER_MSG,         /**< Other message waiting */
-
-       TAPI_NETTEXT_WAITING_MAX
-} tapi_nettext_waiting_type;
-
-/*
- * tapi_nettext_alphabet_type
- Defines different alphabet types of an sms
- */
-typedef enum {
-       TAPI_NETTEXT_ALPHABET_DEFAULT,  /**< GSM alphabet default 7bit */
-       TAPI_NETTEXT_ALPHABET_8BIT,             /**< 8bit */
-       TAPI_NETTEXT_ALPHABET_UCS2,             /**< 16bit ucs2 */
-
-       TAPI_NETTEXT_ALPHABET_KSC5601,  /**< for Korean */
-
-       TAPI_NETTEXT_ALPHABET_MAX
-} tapi_nettext_alphabet_type;
-
-/*
- * tapi_nettext_class_type
- This enum defines the different classes of SMS which indicates the
- type of storage of the sms.
- */
-typedef enum {
-       TAPI_NETTEXT_CLASS_0,   /**< display immediately */
-       TAPI_NETTEXT_CLASS_1,   /**< may be stored */
-       TAPI_NETTEXT_CLASS_2,   /**< store in SIM */
-       TAPI_NETTEXT_CLASS_3,   /**< transfer to TE */
-       TAPI_NETTEXT_CLASS_NONE,
-
-       TAPI_NETTEXT_CLASS_MAX
-} tapi_nettext_class_type;
-
-/*
-This structure contains the information related to sms coding schemes
-
-*/
-typedef struct {
-       TS_BOOL                                                 bCompressed;            /**< if text is compressed this is TRUE */
-       TS_BOOL                                                 bmsg_class_set;         /**< message class indication. if TRUE = bits 1..0, if FALSE = reserved */
-       TS_BOOL                                                 bmsg_ind_active;                /**< message indication group. if TRUE = on, FALSE = off */
-       tapi_nettext_coding_group_type  coding_group_type;      /**< Coding group, GSM 03.38 */
-       tapi_nettext_waiting_type               waiting_type;           /**< Type of message waiting */
-       tapi_nettext_alphabet_type              alphabet_type;          /**< How to encode a message. */
-       tapi_nettext_class_type                 class_type;                     /**< The message class */
-} tapi_nettext_coding_scheme;
-
-/*
- *  tapi_nettext_vp_rel_Value
- * This structure defines the validity period types.
- */
-typedef enum {
-       TAPI_NETTEXT_VP_REL_1H,         /**< One hour */
-       TAPI_NETTEXT_VP_REL_6H,         /**< Six hours */
-       TAPI_NETTEXT_VP_REL_12H,        /**< Twelve hours */
-       TAPI_NETTEXT_VP_REL_1D,         /**< One day */
-       TAPI_NETTEXT_VP_REL_3D,         /**< Three days */
-       TAPI_NETTEXT_VP_REL_1W,         /**< One week */
-       TAPI_NETTEXT_VP_REL_1M,         /**< One Month */
-       TAPI_NETTEXT_VP_REL_MAX         /**< Max = 63 weeks */
-} tapi_nettext_vp_rel_Value;
-
-/*
-This structure contains all the information
-related to validity period of a message.
-*/
-typedef struct {
-       tapi_nettext_vp_type vp_type;                   /**< Validity period format */
-       tapi_nettext_vp_rel_Value vp_rel_type;  /**< Validity period value duration the message must retain in the service center while application attempts delivery */
-       TS_UINT32 vpValue;                                              /** Validity period value */
-} tapi_nettext_vp;
-
-
-/* This structure contains the details of delete status notification, which comes after calling
- tel_delete_sms_in_simMsg*/
-typedef struct {
-       TS_UINT16 result;
-       TS_UINT8 index;
-} tel_delete_sms_in_simMsg_status_ind;
-
-
-/* This structure contains the details of save status notification, which comes after calling
- tel_write_sms_in_simMsg*/
-
-typedef struct {
-       TS_UINT16 result;
-       TS_UINT8 index;
-} tapi_nettext_save_status_ind;
-
-typedef struct {
-       int year;
-       int month;
-       int day;
-       int hour;
-       int minute;
-       int second;
-} TmDateTime;
-
-
-#define BASE_YEAR                              70L             /* 1970 is the base year */
-#define MAX_YEAR                               130L    /* 2030 is the max year */
-#define        SIM_SMSP_ADDRESS_LEN    20              /* digit length */
-
-#define SET_TON_NPI(dest, ton, npi) {  \
-       dest = 0x80;                                            \
-       dest |= (ton & 0x07) << 4;                      \
-       dest |= npi & 0x0F;                                     \
-}
-
-typedef struct {
-       /************HEADER************/
-
-       // message type [M]
-       SmsTPDUType msg_type; //bit 0 ,1
-
-       // reject duplicates [M]
-       TS_BOOL rd; // bit 2
-
-       // validity period format [M]
-       tapi_nettext_vp_type vpf; //  bits 3, 4
-
-       // reply path [M]
-       TS_BOOL rp; //bit 7
-
-       // user data header indication
-       TS_BOOL udhi; //bit 6
-
-       // status report request
-       TS_BOOL srr; // bit 5
-
-       /************BODY************/
-
-       //message reference [M]
-       TS_UINT mr;
-
-       // destination address [M]
-       TelSmsAddressInfo_t desAddr;
-
-       // protocol identifier [M]
-       TS_BYTE pId;
-
-       // data coding scheme [M]
-       tapi_nettext_coding_scheme dcs;
-
-       // validity period
-       tapi_nettext_vp vp;
-
-       // user data length [M]
-       TS_UINT udl;
-
-       // user data
-       TS_BYTE * userData;
-
-} TPDU_SMS_SUBMIT;
-
-typedef struct {
-       /************HEADER************/
-
-       // message type [M]
-       SmsTPDUType msg_type; //bit 0 ,1
-
-       // user data header indication
-       TS_BOOL udhi; //bit 6
-
-       /************BODY************/
-
-       // failure Cause [M]
-       TS_UINT fcs;
-
-       // parameter indicator [M]
-       TS_BYTE paraInd;
-
-       // service centre time stamp [M]
-       TmDateTime scts;
-
-       // protocol identifier [M]
-       TS_BYTE pId;
-
-       // data coding scheme
-       tapi_nettext_coding_scheme dcs;
-
-       // user data length [M]
-       TS_UINT udl;
-
-       // user data
-       TS_BYTE * userData;
-
-} TPDU_SMS_SUBMIT_REPORT;
-
-typedef struct {
-       /************HEADER************/
-       SmsTPDUType msg_type; //bit 0 ,1
-
-       TS_BOOL mms; // bit 2
-
-       TS_BOOL rp; // bit 7
-
-       TS_BOOL udhi; //bit 6
-
-       TS_BOOL sri; // bit , 5status_report_indication
-
-       /************BODY************/
-
-       TelSmsAddressInfo_t orgAddr;
-
-       TS_BYTE pId;
-
-       TmDateTime scts;
-
-       tapi_nettext_coding_scheme dcs;
-
-       TS_UINT udl;
-
-       TS_BYTE * userData;
-
-} TPDU_SMS_DELIVER;
-
-typedef struct {
-       /************HEADER************/
-       SmsTPDUType msg_type; //bit 0 ,1
-
-       TS_BOOL udhi; //bit 6
-
-       /************BODY************/
-
-       TS_UINT fcs;
-
-       TS_BYTE paraInd;
-
-       TS_BYTE pId;
-
-       tapi_nettext_coding_scheme dcs;
-
-       TS_UINT udl;
-
-       TS_BYTE * userData;
-
-} TPDU_SMS_DELIVER_REPORT;
-
-typedef struct {
-       /************HEADER************/
-       SmsTPDUType msg_type; //bit 0 ,1
-
-       TS_BOOL udhi; //bit 6
-
-       TS_BOOL srr; //bit 5, status_report_request
-
-       /************BODY************/
-
-       TS_UINT mr; //message_ref
-
-       TS_BYTE pId;
-
-       TS_BYTE cmdType;
-
-       TS_BYTE msgNum;
-
-       TelSmsAddressInfo_t destAddr;
-
-       TS_UINT udl;
-
-       TS_BYTE * userData;
-
-} TPDU_SMS_COMMAND;
-
-typedef struct {
-       /************HEADER************/
-
-       SmsTPDUType msg_type; //bit 0 ,1
-
-       TS_BOOL udhi; //bit 6
-
-       TS_BOOL mms; //bit 2
-
-       TS_BOOL srq; //bit 5, status_report_qualifier
-
-       /************BODY************/
-
-       TS_UINT mr;
-
-       TelSmsAddressInfo_t rcpAddr; //recipient_addr
-
-       TmDateTime scts;
-
-       TmDateTime dt; //discharge_time
-
-       TS_BYTE status;
-
-       TS_BYTE paraInd;
-
-       TS_BYTE pId;
-
-       tapi_nettext_coding_scheme dcs;
-
-       TS_UINT udl;
-
-       TS_BYTE * userData;
-
-} TPDU_SMS_STATUS_REPORT;
-
-/**************************************************************************************
-*** (main.c) function header****************************************************************
-***************************************************************************************
-***************************************************************************************/
-int SendMessage();
-int ReadMessage();
-int DeleteMessage();
-int ReceiveMessage(int pdu_len, char * pPDU);
-int GetInformation();
-int Setting();
-
-TS_BOOL DecodeCellBroadcastMsg(int length, char * pPDU);
-TS_BOOL EncodeSmsSubmitTpdu(char* diallingNum, int dialNumLen, char* msg, int msg_len);
-TS_BOOL DecodeSmsSubmitTpdu(int pdu_len, char * pPDU);
-int DecodeSmsDeliverTpdu(int pdu_len, char * pPDU);
-TS_BOOL EncodeSmsDeliverReportTpdu();
-TS_BOOL DecodeSmsSubmitReportTpdu(int length, char *data);
-TS_BOOL DecodeSmsStatusReportTpdu(int pdu_len, char * pPDU);
-
-/***************************************************************************************/
-void reverse(char* x, int len);
-char* AcItoa(int n, char* str, int b);
-int AcToupper(int ch);
-
-char* SmsUtilUnpackGSMCode(char* szData, const TS_BYTE* pIn, int in_len);
-int SmsUtilPackGSMCode(TS_BYTE* pOut, const char* szData, int in_len);
-
-void SmsUtilConvertBCD2Digit(char* pDigits, char* pBCD, int digitLen);
-void SmsUtilConvertDigit2BCD(char* pBCD, char* pDigits, int digitLen);
-
-TmDateTime* SmsUtilDecodeTimeStamp(unsigned char* pTimeStamp, TmDateTime *tmDateTime);
-unsigned char* SmsUtilEncodeTimeStamp(TmDateTime* tmDateTime, unsigned char* pTimeStamp);
-
-void SmsUtilDecodeAddrField(char *diallingNum, unsigned char * pAddrField, int *result_ton, int *result_npi);
-int SmsUtilEncodeAddrField(unsigned char* pAddrField, char* diallingNum, int dialnumLen, int ton, int npi);
-
-int SmsUtilDecodeScAddrField(TelSmsAddressInfo_t* pSmsAddrField, TS_BYTE* pAddrField);
-int SmsUtilEncodeScAddrField(TS_BYTE* pAddrField, TelSmsAddressInfo_t * pSmsAddrField);
-
-void SmsUtilDecodeDCS(tapi_nettext_coding_scheme* pCodingScheme, unsigned char dcs);
-void SmsUtilEncodeDCS(TS_BYTE* pDCS, tapi_nettext_coding_scheme* pCodingScheme);
-TS_UINT8 SmsUtilEncodeValidity(TS_BYTE* pValidity, tapi_nettext_vp* pVP);
-
-void PrepareMessage(TelSmsDatapackageInfo_t *pDataPackage);
-
-#endif
-
-
diff --git a/TC/telephony_TC/sms/unit/tet_macro.h b/TC/telephony_TC/sms/unit/tet_macro.h
deleted file mode 100644 (file)
index b386b3e..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef TET_MACRO_H
-#define TET_MACRO_H
-
-
-#define TET_CHECK(x) if(x) tet_result(TET_PASS); else tet_result(TET_FAIL)
-#define TET_CHECK_EQUAL(x,y) if ((x)==(y)) tet_result(TET_PASS);  else tet_result(TET_FAIL)
-#define TET_CHECK_NOT_EQUAL(x,y) if ((x)!=(y)) tet_result(TET_PASS);  else tet_result(TET_FAIL)
-
-
-#define TET_CHECK_MESSAGE(x,y) if ((y)==(TRUE)) tet_result(TET_PASS); else {tet_result(TET_FAIL); tet_printf(x);}
-#define TET_CHECK_EQUAL_MESSAGE(x,y,z) if ((y)==(z)) tet_result(TET_PASS);  else {tet_result(TET_FAIL); tet_printf(x);}
-#define TET_CHECK_NOT_EQUAL_MESSAGE(x,y,z) if ((y)!=(z)) tet_result(TET_PASS);  else {tet_result(TET_FAIL); tet_printf(x);}
-
-
-#endif
-
diff --git a/TC/telephony_TC/sms/unit/tet_tapi_util_new.h b/TC/telephony_TC/sms/unit/tet_tapi_util_new.h
deleted file mode 100644 (file)
index a474546..0000000
+++ /dev/null
@@ -1,130 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _TET_UTIL_NEW_
-#define _TET_UTIL_NEW_
-
-#include <TelUtility.h>
-
-// TET_Error Code string return macro
-typedef struct {
-       TapiResult_t err;
-       char * string;
-} TAPI_Error_String;
-
-#ifndef BOOL
-typedef int BOOL;
-#endif
-
-#ifndef TRUE
-#define TRUE   1
-#endif
-
-#ifndef FALSE
-#define FALSE  0
-#endif
-
-#define TAPI_ERROR_MAX TAPI_API_MISC_VALIDITY_ERROR+1
-
-TAPI_Error_String g_ErrorString[TAPI_ERROR_MAX] = {
-
-       /* #################### COMMON START ################ */
-
-       {TAPI_API_SUCCESS, "No Error occured"},
-       {TAPI_API_INVALID_INPUT, "Input values are not correct"},
-       {TAPI_API_INVALID_PTR, "TAPI_API_INVALID_PTR"},
-       {TAPI_API_API_DEPRICATED, "This API is depricated and will be so in future also."},
-       {TAPI_API_SYSTEM_OUT_OF_MEM, "TAPI_API_SYSTEM_OUT_OF_MEM"},
-       {TAPI_API_SYSTEM_RPC_LINK_DOWN, "TAPI_API_SYSTEM_RPC_LINK_DOWN"},
-       {TAPI_API_SYSTEM_RPC_LINK_NOT_EST, "TAPI_API_SYSTEM_RPC_LINK_NOT_EST"},
-       {TAPI_API_SERVICE_NOT_READY, "Phone was powered on, but yet to receive the power up completed noti"},
-       {TAPI_API_SERVER_LAYER_FAILURE, "Erros happend in executing the following layer fucntions"},
-       {TAPI_API_TRANSPORT_LAYER_FAILURE, "TAPI_API_TRANSPORT_LAYER_FAILURE"},
-
-       /* #################### COMMON END ################ */
-
-       /* CALL */
-       {TAPI_API_INVALID_CALL_HANDLE, "TAPI_API_INVALID_CALL_HANDLE"},
-       {TAPI_API_INVALID_CALL_STATE, "TAPI_API_INVALID_CALL_STATE"},
-       {TAPI_API_INVALID_LINE_ID, "TAPI_API_INVALID_LINE_ID"},
-
-       /* POWER */
-       {TAPI_API_MODEM_ALREADY_ON, "TAPI_API_MODEM_ALREADY_ON"},
-       {TAPI_API_MODEM_ALREADY_OFF, "TAPI_API_MODEM_ALREADY_OFF"},
-
-       /* SAT */
-       {TAPI_API_SAT_PARSER_ENCODING_ERROR, "TAPI_API_SAT_PARSER_ENCODING_ERROR"},
-       {TAPI_API_SAT_COMMAND_NUMBER_INVALID, "TAPI_API_SAT_COMMAND_NUMBER_INVALID"},
-       {TAPI_API_SAT_COMMAND_NUMBER_MISMATCH, "TAPI_API_SAT_COMMAND_NUMBER_MISMATCH"},
-       {TAPI_API_SAT_COMMAND_TYPE_MISMATCH, "TAPI_API_SAT_COMMAND_TYPE_MISMATCH"},
-
-       /* Misc */
-       {TAPI_API_MISC_RETURN_NULL, "TAPI_API_MISC_RETURN_NULL"},
-       {TAPI_API_MISC_INPUTPARM_ERROR, "TAPI_API_MISC_INPUTPARM_ERROR"},
-       {TAPI_API_MISC_OUTPARAM_NULL, "TAPI_API_MISC_OUTPARAM_NULL"},
-       {TAPI_API_MISC_VALIDITY_ERROR, "TAPI_API_MISC_VALIDITY_ERROR"},
-};
-
-static const char *TET_ERROR_TO_STRING(TapiResult_t err_code)
-{
-       int index;
-       for (index = 0; g_ErrorString[index].err != TAPI_ERROR_MAX; index++) {
-               if (g_ErrorString[index].err == err_code || g_ErrorString[index].err == TAPI_ERROR_MAX)
-                       return g_ErrorString[index].string;
-       }
-       return NULL;
-}
-
-#define TET_CHECK(x1, y...) \
- { \
-   TapiResult_t err = y;\
-   if (err != (x1)) \
-       { \
-               tet_printf("%s[%d] : test fail. error code =%d [%s] ",__FILE__,__LINE__, err, TET_ERROR_TO_STRING(err) ); \
-               tet_result(TET_FAIL); \
-               return;\
-       } \
- }
-
-#define TET_CHECK2(x1,x2, y...) \
- { \
-   TapiResult_t err = y;\
-   if (!(err == (x1) || err == (x2))) \
-       { \
-               tet_printf("%s[%d] : test fail. error code =%d [%s] ",__FILE__,__LINE__, err, TET_ERROR_TO_STRING(err) ); \
-               tet_result(TET_FAIL); \
-               return;\
-       } \
- }
-
-#define TET_CHECK3(x1,x2,x3, y...) \
- { \
-   TapiResult_t err = y;\
-   if (!(err == (x1) || err == (x2) || err == (x3))) \
-       { \
-               tet_printf("%s[%d] : test fail. error code =%d [%s] ",__FILE__,__LINE__, err, TET_ERROR_TO_STRING(err) ); \
-               tet_result(TET_FAIL); \
-               return;\
-       } \
- }
-
-
-#endif //_TET_UTIL_
diff --git a/TC/telephony_TC/sms/unit/tslist b/TC/telephony_TC/sms/unit/tslist
deleted file mode 100644 (file)
index 0aa1b3d..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-/sms/unit/uts_tel_send_sms_deliver_report
-/sms/unit/uts_tel_delete_sms_in_sim
-/sms/unit/uts_tel_get_sms_cb_config
-/sms/unit/uts_tel_get_sms_count
-/sms/unit/uts_tel_get_sms_parameter_count
-/sms/unit/uts_tel_get_sms_parameters
-/sms/unit/uts_tel_get_sms_sca
-/sms/unit/uts_tel_read_sms_in_sim
-/sms/unit/uts_tel_send_sms
-/sms/unit/uts_tel_set_sms_cb_config
-/sms/unit/uts_tel_set_sms_memory_status
-/sms/unit/uts_tel_set_sms_message_status
-/sms/unit/uts_tel_set_sms_parameters
-/sms/unit/uts_tel_set_sms_sca
-/sms/unit/uts_tel_write_sms_in_sim
diff --git a/TC/telephony_TC/sms/unit/uts_tel_delete_sms_in_sim.c b/TC/telephony_TC/sms/unit/uts_tel_delete_sms_in_sim.c
deleted file mode 100644 (file)
index 5908435..0000000
+++ /dev/null
@@ -1,181 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-#include <malloc.h>
-
-#include <sys/types.h>
-#include <signal.h>
-
-#include <pthread.h>
-#include <assert.h>
-#include <glib.h>
-#include <ITapiNetText.h>
-
-#include <tet_api.h>
-#include "tet_macro.h"
-
-#include <TapiCommon.h>
-#include <gconf/gconf-client.h>
-
-#include "sms_callback_util.h"
-#include "uts_tel_delete_sms_in_sim.h"
-
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_delete_sms_in_sim_01, 1},
-       {utc_tel_delete_sms_in_sim_02, 2},
-       {utc_tel_delete_sms_in_sim_03, 3},
-       {NULL, 0}
-};
-
-static TapiResult_t gStartupSuccess;
-unsigned int subscription_id;
-
-void alarm_received(int sgi)
-{
-       gAsyncResult = FALSE;
-       printf("Signal [SIGALARM] Received. Close g_main_loop()");
-       G_MAIN_LOOP_CLOSE();
-}
-
-/*
- * Startup & Clean function : It is not test code, only for initialize and finalize test module
- */
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-
-       gStartupSuccess = tel_init();
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("tel_init() Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-       /* if( !(G_MAIN_INIT((EvtSysEventCb)on_sms_check_event_received, alarm_received) ) )
-
-        printf("G_MAIN_INIT() Failed\n"); */
-
-       gStartupSuccess = tel_register_event(TAPI_EVENT_NETTEXT_DELETE_STATUS_CNF, &subscription_id, tapi_sms_callback, NULL);
-
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-       else {
-               tel_register_app_name("org.samsung.test");
-               if (tel_get_app_name(&dname))
-                       printf("Dbus Get app name error\n");
-               else
-                       printf("Dbus Name is %s\n", dname.name);
-
-               tel_check_service_ready(&bStatus);
-               printf("Telephpny service  %d\n", bStatus);
-
-               printf("after TapiCommonRegisterEvent subscription_id is %d gStartupSuccess is %d\n", subscription_id, gStartupSuccess);
-       }
-}
-
-static void cleanup()
-{
-       if (gStartupSuccess == TAPI_API_SUCCESS)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-       return;
-}
-
-/**
- * @brief This tests TelTapiDeleteSms() API in normal conditions
- * @par ID:
- * UTC_TEL_DELETE_SMS_01
- * @param [in]  Index = 1
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS
- */
-void utc_tel_delete_sms_in_sim_01()
-{
-       TapiResult_t returnStatus;
-       int pRequestId;
-
-       returnStatus = tel_delete_sms_in_sim(1, &pRequestId);
-       gmain_loop_for_events(5000);
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-       if (returnStatus == TAPI_API_SUCCESS)
-               printf("uts_tel_delete_sms_01 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests TelTapiDeleteSms() API in abnormal conditions
- * @par ID:
- * UTC_TEL_DELETE_SMS_02
- * @param [in]  Index = 1
- * @param [out] pRequestId = NULL
- * @return TAPI_API_INVALID_PTR
- */
-void utc_tel_delete_sms_in_sim_02()
-{
-       TapiResult_t returnStatus;
-
-       returnStatus = tel_delete_sms_in_sim(1, NULL);
-       printf("The return value is %d\n", returnStatus);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("uts_tel_delete_sms_02 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests TelTapiDeleteSms() API in abnormal conditions
- * @par ID:
- * UTC_TEL_DELETE_SMS_03
- * @param [in] Index
- * @code
- Index = -1;
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_delete_sms_in_sim_03()
-{
-       TapiResult_t returnStatus;
-       int pRequestId;
-
-       returnStatus = tel_delete_sms_in_sim(-1, &pRequestId);
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);
-       if (returnStatus == TAPI_API_INVALID_INPUT)
-               printf("uts_tel_delete_sms_03 pass\n");
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sms/unit/uts_tel_delete_sms_in_sim.h b/TC/telephony_TC/sms/unit/uts_tel_delete_sms_in_sim.h
deleted file mode 100644 (file)
index 4d8e5bf..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef _UTS_DELETE_SMS_IN_SIM_H_
-#define _UTS_DELETE_SMS_IN_SIM_H_
-
-static void utc_tel_delete_sms_in_sim_01();
-static void utc_tel_delete_sms_in_sim_02();
-static void utc_tel_delete_sms_in_sim_03();
-
-#endif
diff --git a/TC/telephony_TC/sms/unit/uts_tel_get_sms_cb_config.c b/TC/telephony_TC/sms/unit/uts_tel_get_sms_cb_config.c
deleted file mode 100644 (file)
index cebbcaa..0000000
+++ /dev/null
@@ -1,153 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-#include <malloc.h>
-
-#include <sys/types.h>
-#include <signal.h>
-
-#include <pthread.h>
-#include <assert.h>
-#include <glib.h>
-#include <ITapiNetText.h>
-
-#include <tet_api.h>
-#include "tet_macro.h"
-
-#include <TapiCommon.h>
-#include <gconf/gconf-client.h>
-
-#include "sms_callback_util.h"
-#include "uts_tel_get_sms_cb_config.h"
-
-static TapiResult_t gStartupSuccess;
-unsigned int subscription_id;
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup)() = startup;
-void (*tet_cleanup)() = cleanup;
-struct tet_testlist tet_testlist[] = { { utc_tel_get_sms_cb_config_01, 1 }, { utc_tel_get_sms_cb_config_02, 2 }, { NULL, 0 } };
-
-void alarm_received(int sgi)
-{
-       gAsyncResult = FALSE;
-       printf("Signal [SIGALARM] Received. Close g_main_loop()");
-       G_MAIN_LOOP_CLOSE();
-}
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module */
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-
-       gStartupSuccess = tel_init();
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("tel_init() Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-
-       gStartupSuccess = tel_register_event(TAPI_EVENT_NETTEXT_GET_CB_CONFIG_CNF, &subscription_id, tapi_sms_callback, NULL);
-
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("tel_register_event Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-       else {
-               tel_register_app_name("org.samsung.test");
-               if (tel_get_app_name(&dname))
-                       printf("Dbus Get app name error\n");
-               else
-                       printf("Dbus Name is %s\n", dname.name);
-
-               tel_check_service_ready(&bStatus);
-               printf("Telephony service  %d\n", bStatus);
-
-               printf("after tel_register_event subscription_id is %d gStartupSuccess is %d\n", subscription_id, gStartupSuccess);
-       }
-}
-
-static void cleanup()
-{
-       if (gStartupSuccess == TAPI_API_SUCCESS)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-       return;
-}
-
-/**
- * @brief This tests tel_get_sms_cb_config() API in normal conditions
- * @par ID:
- * UTC_TEL_SMS_CB_GET_CONFIG_01
- * @param [in]  None
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS
- */
-void utc_tel_get_sms_cb_config_01()
-{
-       TapiResult_t returnStatus;
-       int pRequestId = -1;
-
-       /* CALLING TAPI SMS SET SMS GET CB CONFIG API */
-       returnStatus = tel_get_sms_cb_config(&pRequestId);
-
-       gmain_loop_for_events(5000);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-       if (returnStatus == TAPI_API_SUCCESS)
-               printf("utc_tel_get_cbconfig_01 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_get_sms_cb_config() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SMS_CB_GET_CONFIG_02
- * @param [in]  None
- * @param [out] pRequestId = NULL
- * @return TAPI_API_INVALID_PTR
- */
-void utc_tel_get_sms_cb_config_02()
-{
-       TapiResult_t returnStatus;
-
-       /* CALLING TAPI SMS SET SMS GET CB CONFIG API */
-       returnStatus = tel_get_sms_cb_config(NULL);
-
-       printf("The return value is %d\n", returnStatus);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("utc_tel_get_cbconfig_02 pass\n");
-
-       return;
-}
-/** @} */
-
diff --git a/TC/telephony_TC/sms/unit/uts_tel_get_sms_cb_config.h b/TC/telephony_TC/sms/unit/uts_tel_get_sms_cb_config.h
deleted file mode 100644 (file)
index d714699..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TEL_GET_SMS_CB_CONFIG_H_
-#define _UTS_TEL_GET_SMS_CB_CONFIG_H_
-
-static void utc_tel_get_sms_cb_config_01();
-static void utc_tel_get_sms_cb_config_02();
-
-#endif
diff --git a/TC/telephony_TC/sms/unit/uts_tel_get_sms_count.c b/TC/telephony_TC/sms/unit/uts_tel_get_sms_count.c
deleted file mode 100644 (file)
index baa4683..0000000
+++ /dev/null
@@ -1,152 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-#include <malloc.h>
-
-#include <sys/types.h>
-#include <signal.h>
-
-#include <pthread.h>
-#include <assert.h>
-#include <glib.h>
-#include <ITapiNetText.h>
-
-#include <tet_api.h>
-#include "tet_macro.h"
-
-#include <TapiCommon.h>
-#include <gconf/gconf-client.h>
-
-#include "sms_callback_util.h"
-#include "uts_tel_get_sms_count.h"
-
-static void startup();
-static void cleanup();
-void (*tet_startup)() = startup;
-void (*tet_cleanup)() = cleanup;
-
-struct tet_testlist tet_testlist[] = { { utc_tel_get_sms_count_01, 1 }, { utc_tel_get_sms_count_02, 2 }, { NULL, 0 } };
-
-static TapiResult_t gStartupSuccess;
-unsigned int subscription_id;
-
-void alarm_received(int sgi)
-{
-       gAsyncResult = FALSE;
-       printf("Signal [SIGALARM] Received. Close g_main_loop()");
-       G_MAIN_LOOP_CLOSE();
-}
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module
- */
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-
-       gStartupSuccess = tel_init();
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("tel_init() Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-
-       gStartupSuccess = tel_register_event(TAPI_EVENT_NETTEXT_GET_COUNT_CNF, &subscription_id, tapi_sms_callback, NULL);
-
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("tel_register_event Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-       else {
-               tel_register_app_name("org.samsung.test");
-               if (tel_get_app_name(&dname))
-                       printf("Dbus Get app name error\n");
-               else
-                       printf("Dbus Name is %s\n", dname.name);
-
-               tel_check_service_ready(&bStatus);
-               printf("Telephony service  %d\n", bStatus);
-
-               printf("after tel_register_event subscription_id is %d gStartupSuccess is %d\n", subscription_id, gStartupSuccess);
-       }
-}
-
-static void cleanup()
-{
-       if (gStartupSuccess == TAPI_API_SUCCESS)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-       return;
-}
-
-/**
- * @brief This tests tel_get_sms_count() API in normal conditions
- * @par ID:
- * UTC_TEL_SMS_GET_COUNT_01
- * @param [in]  None
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS
- */
-void utc_tel_get_sms_count_01()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int pRequestId = -1;
-
-       returnStatus = tel_get_sms_count(&pRequestId);
-
-       gmain_loop_for_events(5000);
-
-       printf("The request id value is %d\n", pRequestId);
-       printf("The return value is %d\n", returnStatus);
-
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-       if (returnStatus == TAPI_API_SUCCESS)
-               printf("utc_tel_get_count_01 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_get_sms_count() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SMS_GET_COUNT_02
- * @param [in]  None
- * @param [out] pRequestId = NULL
- * @return TAPI_API_INVALID_PTR
- */
-void utc_tel_get_sms_count_02()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-
-       returnStatus = tel_get_sms_count(NULL);
-
-       printf("The return value is %d\n", returnStatus);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("utc_tel_get_count_02 pass\n");
-
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sms/unit/uts_tel_get_sms_count.h b/TC/telephony_TC/sms/unit/uts_tel_get_sms_count.h
deleted file mode 100644 (file)
index e530f06..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TEL_GET_SMS_COUNT_H_
-#define _UTS_TEL_GET_SMS_COUNT_H_
-
-static void utc_tel_get_sms_count_01();
-static void utc_tel_get_sms_count_02();
-
-#endif
diff --git a/TC/telephony_TC/sms/unit/uts_tel_get_sms_parameter_count.c b/TC/telephony_TC/sms/unit/uts_tel_get_sms_parameter_count.c
deleted file mode 100644 (file)
index 623bc61..0000000
+++ /dev/null
@@ -1,151 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-#include <malloc.h>
-
-#include <sys/types.h>
-#include <signal.h>
-
-#include <pthread.h>
-#include <assert.h>
-#include <glib.h>
-#include <ITapiNetText.h>
-
-#include <tet_api.h>
-#include "tet_macro.h"
-
-#include <TapiCommon.h>
-#include <gconf/gconf-client.h>
-
-#include "sms_callback_util.h"
-#include "uts_tel_get_sms_parameter_count.h"
-
-static void startup();
-static void cleanup();
-
-void (*tet_startup)() = startup;
-void (*tet_cleanup)() = cleanup;
-struct tet_testlist tet_testlist[] = { { utc_tel_get_sms_parameter_count_01, 1 }, { utc_tel_get_sms_parameter_count_02, 2 }, { NULL, 0 } };
-
-static TapiResult_t gStartupSuccess;
-unsigned int subscription_id;
-
-void alarm_received(int sgi)
-{
-       gAsyncResult = FALSE;
-       printf("Signal [SIGALARM] Received. Close g_main_loop()");
-       G_MAIN_LOOP_CLOSE();
-}
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module
- */
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-
-       gStartupSuccess = tel_init();
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("tel_init() Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-       gStartupSuccess = tel_register_event(TAPI_EVENT_NETTEXT_PARAM_COUNT_IND, &subscription_id, tapi_sms_callback, NULL);
-
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("tel_register_event Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-       else {
-               tel_register_app_name("org.samsung.test");
-               if (tel_get_app_name(&dname))
-                       printf("Dbus Get app name error\n");
-               else
-                       printf("Dbus Name is %s\n", dname.name);
-
-               tel_check_service_ready(&bStatus);
-               printf("Telephony service  %d\n", bStatus);
-
-               printf("after tel_register_event subscription_id is %d gStartupSuccess is %d\n", subscription_id, gStartupSuccess);
-       }
-}
-
-static void cleanup()
-{
-       if (gStartupSuccess == TAPI_API_SUCCESS)
-               tel_deregister_event(subscription_id);
-
-       tel_deinit();
-       return;
-}
-
-/**
- * @brief This tests TelTapiGetParamCount() API in normal conditions
- * @par ID:
- * UTC_TEL_GET_PARAM_COUNT_01
- * @param [in]  None
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS
- */
-void utc_tel_get_sms_parameter_count_01()
-{
-       TapiResult_t returnStatus;
-       int pRequestId = -1;
-
-       returnStatus = tel_get_sms_parameter_count(&pRequestId);
-
-       gmain_loop_for_events(5000);
-       printf("The request id value is %d\n", pRequestId);
-       printf("The return value is %d\n", returnStatus);
-
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-       if (returnStatus == TAPI_API_SUCCESS)
-               printf("utc_tel_get_sms_parameter_count_01 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests TelTapiGetParamCount() API in abnormal conditions
- * @par ID:
- * UTC_TEL_GET_PARAM_COUNT_02
- * @param [in] None
- * @param [out] pRequestId = NULL
- * @return TAPI_API_INVALID_PTR
- */
-void utc_tel_get_sms_parameter_count_02()
-{
-       TapiResult_t returnStatus;
-
-       returnStatus = tel_get_sms_parameter_count(NULL);
-
-       printf("The return value is %d\n", returnStatus);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("utc_tel_get_sms_parameter_count_02 pass\n");
-
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sms/unit/uts_tel_get_sms_parameter_count.h b/TC/telephony_TC/sms/unit/uts_tel_get_sms_parameter_count.h
deleted file mode 100644 (file)
index 53b3012..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TEL_GET_SMS_PARAMETER_COUNT_H_
-#define _UTS_TEL_GET_SMS_PARAMETER_COUNT_H_
-
-static void utc_tel_get_sms_parameter_count_01();
-static void utc_tel_get_sms_parameter_count_02();
-
-#endif
diff --git a/TC/telephony_TC/sms/unit/uts_tel_get_sms_parameters.c b/TC/telephony_TC/sms/unit/uts_tel_get_sms_parameters.c
deleted file mode 100644 (file)
index 4984781..0000000
+++ /dev/null
@@ -1,236 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-#include <malloc.h>
-
-#include <sys/types.h>
-#include <signal.h>
-
-#include <pthread.h>
-#include <assert.h>
-#include <glib.h>
-#include <ITapiNetText.h>
-
-#include <tet_api.h>
-#include "tet_macro.h"
-
-#include <TapiCommon.h>
-#include <gconf/gconf-client.h>
-
-#include "sms_callback_util.h"
-#include "uts_tel_get_sms_parameters.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup)() = startup;
-void (*tet_cleanup)() = cleanup;
-struct tet_testlist tet_testlist[] = { { utc_tel_get_sms_parameters_01, 1 }, { utc_tel_get_sms_parameters_02, 2 }, { utc_tel_get_sms_parameters_03, 3 }, {
-               utc_tel_get_sms_parameters_04, 4 }, { utc_tel_get_sms_parameters_05, 5 }, { NULL, 0 } };
-
-unsigned int subscription_id;
-static TapiResult_t gStartupSuccess;
-
-void alarm_received(int sgi)
-{
-       gAsyncResult = FALSE;
-       printf("Signal [SIGALARM] Received. Close g_main_loop()");
-       G_MAIN_LOOP_CLOSE();
-}
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module */
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-
-       gStartupSuccess = tel_init();
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("tel_init() Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-
-       gStartupSuccess = tel_register_event(TAPI_EVENT_NETTEXT_GET_PARAM_CNF, &subscription_id, tapi_sms_callback, NULL);
-
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-       else {
-               tel_register_app_name("org.samsung.test");
-               if (tel_get_app_name(&dname))
-                       printf("Dbus Get app name error\n");
-               else
-                       printf("Dbus Name is %s\n", dname.name);
-
-               tel_check_service_ready(&bStatus);
-               printf("Telephony service  %d\n", bStatus);
-
-               printf("after TapiCommonRegisterEvent subscription_id is %d gStartupSuccess is %d\n", subscription_id, gStartupSuccess);
-       }
-}
-
-static void cleanup()
-{
-       if (gStartupSuccess == TAPI_API_SUCCESS)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-       return;
-}
-
-/**
- * @brief This tests tel_get_sms_parameters() API in normal conditions
- * @par ID:
- * UTC_TEL_GET_SMS_PARAM_01
- * @param [in]  SmsRecordIndex = 1
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS
- */
-void utc_tel_get_sms_parameters_01()
-{
-       TapiResult_t returnStatus;
-       int pRequestId;
-       int SmsRecordIndex = 1;
-
-       /* CALLING TAPI SMS GET PARAMETERS */
-       returnStatus = tel_get_sms_parameters(SmsRecordIndex, &pRequestId);
-       gmain_loop_for_events(5000);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-       if (returnStatus == TAPI_API_SUCCESS)
-               printf("utc_tel_get_sms_parameters_01 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_get_sms_parameters() API in normal conditions
- * @par ID:
- * UTC_TEL_GET_SMS_PARAM_02
- * @param [in]  SmsRecordIndex = 0
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS
- */
-void utc_tel_get_sms_parameters_02()
-{
-       TapiResult_t returnStatus;
-       int pRequestId;
-       int SmsRecordIndex = 0;
-
-       /* CALLING TAPI SMS GET PARAMETERS */
-       returnStatus = tel_get_sms_parameters(SmsRecordIndex, &pRequestId);
-       gmain_loop_for_events(5000);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-       if (returnStatus == TAPI_API_SUCCESS)
-               printf("utc_tel_get_sms_parameters_02 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_get_sms_parameters() API in abnormal conditions
- * @par ID:
- * UTC_TEL_GET_SMS_PARAM_03
- * @param [in]  SmsRecordIndex = -1
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_get_sms_parameters_03()
-{
-       TapiResult_t returnStatus;
-       int pRequestId;
-       int SmsRecordIndex = -1;
-
-       /* CALLING TAPI SMS GET PARAMETERS */
-       returnStatus = tel_get_sms_parameters(SmsRecordIndex, &pRequestId);
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);
-       if (returnStatus == TAPI_API_INVALID_INPUT)
-               printf("utc_tel_get_sms_parameters_03 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_get_sms_parameters() API in abnormal conditions
- * @par ID:
- * UTC_TEL_GET_SMS_PARAM_04
- * @param [in]  SmsRecordIndex = 256
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_get_sms_parameters_04()
-{
-       TapiResult_t returnStatus;
-       int pRequestId;
-       int SmsRecordIndex = 256;
-
-       /* CALLING TAPI SMS GET PARAMETERS */
-       returnStatus = tel_get_sms_parameters(SmsRecordIndex, &pRequestId);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);
-       if (returnStatus == TAPI_API_INVALID_INPUT)
-               printf("utc_tel_get_sms_parameters_04 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_get_sms_parameters() API in abnormal conditions
- * @par ID:
- * UTC_TEL_GET_SMS_PARAM_05
- * @param [in]  SmsRecordIndex = 1
- * @param [out] pRequestId = NULL
- * @return TAPI_API_INVALID_PTR
- */
-void utc_tel_get_sms_parameters_05()
-{
-       TapiResult_t returnStatus;
-       int SmsRecordIndex = 1;
-
-       /* CALLING TAPI SMS GET PARAMETERS */
-       returnStatus = tel_get_sms_parameters(SmsRecordIndex, NULL);
-
-       printf("The return value is %d\n", returnStatus);
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("utc_tel_get_sms_parameters_05 pass\n");
-
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sms/unit/uts_tel_get_sms_parameters.h b/TC/telephony_TC/sms/unit/uts_tel_get_sms_parameters.h
deleted file mode 100644 (file)
index f1c470c..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TEL_GET_SMS_PARAMETERS_H_
-#define _UTS_TEL_GET_SMS_PARAMETERS_H_
-
-static void utc_tel_get_sms_parameters_01();
-
-static void utc_tel_get_sms_parameters_02();
-
-static void utc_tel_get_sms_parameters_03();
-
-static void utc_tel_get_sms_parameters_04();
-
-static void utc_tel_get_sms_parameters_05();
-
-#endif
diff --git a/TC/telephony_TC/sms/unit/uts_tel_get_sms_preferred_bearer.c b/TC/telephony_TC/sms/unit/uts_tel_get_sms_preferred_bearer.c
deleted file mode 100644 (file)
index 611c01c..0000000
+++ /dev/null
@@ -1,150 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-#include <malloc.h>
-
-#include <sys/types.h>
-#include <signal.h>
-
-#include <pthread.h>
-#include <assert.h>
-#include <glib.h>
-#include <ITapiNetText.h>
-
-#include <tet_api.h>
-#include "tet_macro.h"
-
-#include <TapiCommon.h>
-#include <gconf/gconf-client.h>
-
-#include "sms_callback_util.h"
-#include "uts_tel_get_sms_preferred_bearer.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup)() = startup;
-void (*tet_cleanup)() = cleanup;
-struct tet_testlist tet_testlist[] = { { uts_tel_get_sms_preferred_bearer_01, 1 }, { uts_tel_get_sms_preferred_bearer_02, 2 }, { NULL, 0 } };
-
-static TapiResult_t gStartupSuccess;
-unsigned int subscription_id;
-
-void alarm_received(int sgi)
-{
-       gAsyncResult = FALSE;
-       printf("Signal [SIGALARM] Received. Close g_main_loop()");
-       G_MAIN_LOOP_CLOSE();
-}
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module */
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-
-       gStartupSuccess = tel_init();
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("tel_init() Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-       gStartupSuccess = tel_register_event(TAPI_EVENT_NETTEXT_GET_SMSBEARER_CNF, &subscription_id, tapi_sms_callback, NULL);
-
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("tel_register_event Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-       else {
-               tel_register_app_name("org.samsung.test");
-               if (tel_get_app_name(&dname))
-                       printf("Dbus Get app name error\n");
-               else
-                       printf("Dbus Name is %s\n", dname.name);
-
-               tel_check_service_ready(&bStatus);
-               printf("Telephony service  %d\n", bStatus);
-
-               printf("after tel_register_event subscription_id is %d gStartupSuccess is %d\n", subscription_id, gStartupSuccess);
-       }
-}
-
-static void cleanup()
-{
-       if (gStartupSuccess == TAPI_API_SUCCESS)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-       return;
-}
-
-/**
- * @brief This tests tel_get_sms_preferred_bearer() API in normal conditions
- * @par ID:
- * UTC_TEL_GET_PREFEERED_BEARER_01
- * @param [in]  None
- @param [out] pRequestId
- * @return TAPI_API_SUCCESS
- */
-void uts_tel_get_sms_preferred_bearer_01()
-{
-       TapiResult_t returnStatus;
-       int pRequestId = -1;
-
-       returnStatus = tel_get_sms_preferred_bearer(&pRequestId);
-
-       gmain_loop_for_events(5000);
-
-       printf("The request id value is %d\n", pRequestId);
-       printf("The return value is %d\n", returnStatus);
-
-       TET_CHECK(returnStatus == TAPI_API_NOT_SUPPORTED);
-       if (returnStatus == TAPI_API_NOT_SUPPORTED)
-               printf("uts_tel_get_sms_preferred_bearer_01 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_get_sms_preferred_bearer() API in abnormal conditions
- * @par ID:
- * UTC_TEL_GET_PREFEERED_BEARER_02
- * @param [in]  None
- * @param [out] pRequestId = NULL
- * @return TAPI_API_INVALID_PTR
- */
-void uts_tel_get_sms_preferred_bearer_02()
-{
-       TapiResult_t returnStatus;
-
-       returnStatus = tel_get_sms_preferred_bearer(NULL);
-
-       printf("The return value is %d\n", returnStatus);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("uts_tel_get_sms_preferred_bearer_02 pass\n");
-
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sms/unit/uts_tel_get_sms_preferred_bearer.h b/TC/telephony_TC/sms/unit/uts_tel_get_sms_preferred_bearer.h
deleted file mode 100644 (file)
index 3135dbb..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef _UTS_TEL_GET_SMS_PREFERRED_BEARER_H_
-#define _UTS_TEL_GET_SMS_PREFERRED_BEARER_H_
-
-static void uts_tel_get_sms_preferred_bearer_01();
-static void uts_tel_get_sms_preferred_bearer_02();
-
-#endif
diff --git a/TC/telephony_TC/sms/unit/uts_tel_get_sms_sca.c b/TC/telephony_TC/sms/unit/uts_tel_get_sms_sca.c
deleted file mode 100644 (file)
index 1d8f715..0000000
+++ /dev/null
@@ -1,179 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-#include <malloc.h>
-
-#include <sys/types.h>
-#include <signal.h>
-
-#include <pthread.h>
-#include <assert.h>
-#include <glib.h>
-#include <ITapiNetText.h>
-
-#include <tet_api.h>
-#include "tet_macro.h"
-
-#include <TapiCommon.h>
-#include <gconf/gconf-client.h>
-
-#include "sms_callback_util.h"
-#include "uts_tel_get_sms_sca.h"
-#include "sms_common.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup)() = startup;
-void (*tet_cleanup)() = cleanup;
-struct tet_testlist tet_testlist[] = { { utc_tel_get_sms_sca_01, 1 }, { utc_tel_get_sms_sca_02, 2 }, { NULL, 0 } };
-
-TelSmsAddressInfo_t *pSCA;
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module
- */
-static void startup()
-{
-#if 0
-       char scaNum[TAPI_NETTEXT_SCADDRESS_LEN_MAX];
-       int scaNum_len = 0;
-       int Index = 0;
-       int i = 0;
-       int pRequestId = -1;
-       TS_BYTE packet[500];
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-
-       pSCA = (TelSmsAddressInfo_t*) malloc(sizeof(TelSmsAddressInfo_t));
-       memset(pSCA, 0, sizeof(pSCA));
-
-       sprintf(scaNum, "%d", VALID_SCA_NUM);
-       scaNum_len = strlen(scaNum);
-       scaNum[scaNum_len] = '\0';
-       scaNum_len = scaNum_len - 1;
-
-       printf("Sca Number :%s\n", scaNum);
-       printf("sca  number length : %d \n", scaNum_len);
-
-       Index = SmsUtilEncodeAddrField(packet, scaNum, scaNum_len, 0x01, 0x01);
-
-       printf("Index =%d\n", Index);
-
-       for (i = 0; i < Index; i++)
-       printf("[%02x]", packet[i]);
-
-       pSCA->DialNumLen = Index;
-
-       memcpy(pSCA->szDiallingNum, packet, Index);
-#endif
-
-       tel_init();
-       tel_register_app_name("org.samsung.test");
-
-#if 0
-       printf("\nSET INVALID SERVICE CENTER ADDRESS\n");
-       /* Calling TAPI SMS SET SCA API */
-       returnStatus = tel_set_sms_sca(pSCA, Index, &pRequestId);
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-       if (returnStatus == TAPI_API_SUCCESS)
-       printf("Set SCA settings successful\n");
-#endif
-}
-
-static void cleanup()
-{
-       tel_deinit();
-
-       //free(pSCA);
-}
-
-/**
- * @brief This tests tel_get_sms_sca() API in normal conditions
- * @par ID:
- * UTC_TEL_GET_SERV_CENTER_ADDR_01
- * @param [in] Index = 0
- * @param [out] pSCA
- * @return TAPI_API_SUCCESS
- */
-void utc_tel_get_sms_sca_01()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       TelSmsAddressInfo_t *pSCA;
-       int req;
-
-       pSCA = (TelSmsAddressInfo_t *) malloc(sizeof(TelSmsAddressInfo_t));
-
-       returnStatus = tel_get_sms_sca(0, &req);
-
-       printf("The return value is %d\n", returnStatus);
-
-#if 0
-       TS_BYTE SCA[TAPI_NETTEXT_SCADDRESS_LEN_MAX];
-       char decode_sca_addr[TAPI_NETTEXT_SCADDRESS_LEN_MAX];
-       int sca_len = -1;
-
-       /* Decode the service center address */
-       printf("Service center addr returned from TAPI SCA address %s returnStatus %d\n", pSCA->szDiallingNum, returnStatus);
-       SmsUtilDecodeAddrField(decode_sca_addr, &(pSCA->szDiallingNum[0]), &(pSCA->Ton), &(pSCA->Npi));
-       sca_len = strlen(decode_sca_addr);
-
-       memcpy(SCA, decode_sca_addr, sca_len);
-       SCA[sca_len] = '\0';
-
-       printf("Decode SCA Address =========\n");
-       printf("SCA Number :%s, SCA Length :%d \n", SCA, sca_len);
-       printf("========================\n");
-       printf("decodeScaAddr :%s\n", decode_sca_addr);
-#endif
-
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-       if (returnStatus == TAPI_API_SUCCESS)
-               printf("utc_tel_set_sms_sca_01 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_get_sms_sca() API in abnormal conditions
- * @par ID:
- * UTC_TEL_GET_SERV_CENTER_ADDR_02
- * @param [in]  Index = 0
- * @param [out] pSCA = NULL
- * @return TAPI_API_INVALID_PTR
- */
-void utc_tel_get_sms_sca_02()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int req;
-
-       returnStatus = tel_get_sms_sca(-1, &req);
-
-       printf("The return value is %d\n", returnStatus);
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);
-       if (returnStatus == TAPI_API_INVALID_INPUT)
-               printf("utc_tel_set_sms_sca_02 pass\n");
-
-       return;
-}
-/** @} */
diff --git a/TC/telephony_TC/sms/unit/uts_tel_get_sms_sca.h b/TC/telephony_TC/sms/unit/uts_tel_get_sms_sca.h
deleted file mode 100644 (file)
index 9d36720..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TEL_GET_SMS_SCA_H_
-#define _UTS_TEL_GET_SMS_SCA_H_
-
-static void utc_tel_get_sms_sca_01();
-static void utc_tel_get_sms_sca_02();
-
-#endif //_UTS_GET_SERV_CENTER_ADDR_H_
diff --git a/TC/telephony_TC/sms/unit/uts_tel_read_sms_in_sim.c b/TC/telephony_TC/sms/unit/uts_tel_read_sms_in_sim.c
deleted file mode 100644 (file)
index 8c0670e..0000000
+++ /dev/null
@@ -1,202 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-#include <malloc.h>
-
-#include <sys/types.h>
-#include <signal.h>
-
-#include <pthread.h>
-#include <assert.h>
-#include <glib.h>
-#include <ITapiNetText.h>
-
-#include <tet_api.h>
-#include "tet_macro.h"
-
-#include <TapiCommon.h>
-#include <gconf/gconf-client.h>
-
-#include "sms_callback_util.h"
-#include "uts_tel_read_sms_in_sim.h"
-
-static void startup();
-static void cleanup();
-void (*tet_startup)() = startup;
-void (*tet_cleanup)() = cleanup;
-struct tet_testlist tet_testlist[] = { { utc_tel_read_sms_in_sim_01, 1 }, { utc_tel_read_sms_in_sim_02, 2 }, { utc_tel_read_sms_in_sim_03, 3 }, {
-               utc_tel_read_sms_in_sim_04, 4 }, { NULL, 0 } };
-
-static TapiResult_t gStartupSuccess;
-unsigned int subscription_id;
-
-void alarm_received(int sgi)
-{
-       gAsyncResult = FALSE;
-       printf("Signal [SIGALARM] Received. Close g_main_loop()");
-       G_MAIN_LOOP_CLOSE();
-}
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module
- */
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-
-       gStartupSuccess = tel_init();
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("tel_init() Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-
-       gStartupSuccess = tel_register_event(TAPI_EVENT_NETTEXT_READ_SMS_CNF, &subscription_id, tapi_sms_callback, NULL);
-
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-       else {
-               tel_register_app_name("org.samsung.test");
-               if (tel_get_app_name(&dname))
-                       printf("Dbus Get app name error\n");
-               else
-                       printf("Dbus Name is %s\n", dname.name);
-
-               tel_check_service_ready(&bStatus);
-               printf("Telephony service  %d\n", bStatus);
-
-               printf("TapiCommonRegisterEvent subscription_id is %d gStartupSuccess is %d\n", subscription_id, gStartupSuccess);
-       }
-}
-
-static void cleanup()
-{
-       if (gStartupSuccess == TAPI_API_SUCCESS)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-       return;
-}
-
-/**
- * @brief This tests tel_read_sms_in_sim() API in normal conditions
- * @par ID:
- * UTC_TEL_READ_SMS_01
- * @param [in]  Index = 1
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS
- */
-void utc_tel_read_sms_in_sim_01()
-{
-       TapiResult_t returnStatus;
-       int pRequestId;
-
-       returnStatus = tel_read_sms_in_sim(1, &pRequestId);
-       gmain_loop_for_events(5000);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-       if (returnStatus == TAPI_API_SUCCESS)
-               printf("utc_tel_read_sms_01 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_read_sms_in_sim() API in normal conditions
- * @par ID:
- * UTC_TEL_READ_SMS_02
- * @param [in]  Index = 0
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS
- */
-void utc_tel_read_sms_in_sim_02()
-{
-       TapiResult_t returnStatus;
-       int pRequestId;
-
-       returnStatus = tel_read_sms_in_sim(0, &pRequestId);
-
-       gmain_loop_for_events(5000);
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-       if (returnStatus == TAPI_API_SUCCESS)
-               printf("utc_tel_read_sms_02 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_read_sms_in_sim() API in abnormal conditions
- * @par ID:
- * UTC_TEL_READ_SMS_03
- * @param [in] Index = -1
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_read_sms_in_sim_03()
-{
-       TapiResult_t returnStatus;
-       int pRequestId = -1;
-
-       returnStatus = tel_read_sms_in_sim(-1, &pRequestId);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);
-       if (returnStatus == TAPI_API_INVALID_INPUT)
-               printf("utc_tel_read_sms_03 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_read_sms_in_sim() API in abnormal conditions
- * @par ID:
- * UTC_TEL_READ_SMS_04
- * @param [in]  Index = 1
- * @param [out] pRequestId = NULL
- * @return TAPI_API_INVALID_PTR
- */
-void utc_tel_read_sms_in_sim_04()
-{
-       TapiResult_t returnStatus;
-
-       returnStatus = tel_read_sms_in_sim(1, NULL);
-
-       printf("The return value is %d\n", returnStatus);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("utc_tel_read_sms_04 pass\n");
-
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sms/unit/uts_tel_read_sms_in_sim.h b/TC/telephony_TC/sms/unit/uts_tel_read_sms_in_sim.h
deleted file mode 100644 (file)
index 44daa6d..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef _UTS_TEL_READ_SMS_IN_SIM_H_
-#define _UTS_TEL_READ_SMS_IN_SIM_H_
-
-static void utc_tel_read_sms_in_sim_01();
-
-static void utc_tel_read_sms_in_sim_02();
-
-static void utc_tel_read_sms_in_sim_03();
-
-static void utc_tel_read_sms_in_sim_04();
-
-
-#endif
diff --git a/TC/telephony_TC/sms/unit/uts_tel_send_sms.c b/TC/telephony_TC/sms/unit/uts_tel_send_sms.c
deleted file mode 100644 (file)
index afccf52..0000000
+++ /dev/null
@@ -1,243 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-#include <malloc.h>
-
-#include <sys/types.h>
-#include <signal.h>
-
-#include <pthread.h>
-#include <assert.h>
-#include <glib.h>
-#include <ITapiNetText.h>
-
-#include "tet_api.h"
-#include "tet_macro.h"
-
-#include <TapiCommon.h>
-#include <gconf/gconf-client.h>
-
-#include "sms_callback_util.h"
-#include "sms_util.h"
-#include "uts_tel_send_sms.h"
-#include "sms_common.h"
-
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_send_sms_01, 1},
-       {utc_tel_send_sms_02, 2},
-       {utc_tel_send_sms_03, 3},
-       {utc_tel_send_sms_04, 4},
-       {utc_tel_send_sms_05, 5},
-       {NULL, 0}
-};
-
-static TapiResult_t gStartupSuccess;
-unsigned int subscription_id;
-
-void alarm_received(int sgi)
-{
-       gAsyncResult = FALSE;
-       printf("Signal [SIGALARM] Received. Close g_main_loop()");
-       G_MAIN_LOOP_CLOSE();
-}
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module
- */
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-
-       gStartupSuccess = tel_init();
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("tel_init() Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-
-       gStartupSuccess = tel_register_event(TAPI_EVENT_NETTEXT_SENTSTATUS_CNF, &subscription_id, tapi_sms_callback, NULL);
-
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-       else {
-               tel_register_app_name("org.samsung.test");
-               if (tel_get_app_name(&dname))
-                       printf("Dbus Get app name error\n");
-               else
-                       printf("Dbus Name is %s\n", dname.name);
-
-               tel_check_service_ready(&bStatus);
-               printf("Telephony service  %d\n", bStatus);
-
-               printf("TapiCommonRegisterEvent subscription_id is %d gStartupSuccess is %d\n", subscription_id, gStartupSuccess);
-       }
-}
-
-static void cleanup()
-{
-       if (gStartupSuccess == TAPI_API_SUCCESS)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-       return;
-}
-
-/**
- * @brief This tests tel_send_sms() API in normal conditions
- * @par ID:
- * UTC_TEL_SEND_SMS_01
- * @param [in] pDataPackage   = valid
- * @param [in] bMoreMsgToSend = FALSE
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS
- */
-void utc_tel_send_sms_01()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       TS_BOOL bMoreMsgToSend = FALSE;
-       int pRequestId = -1;
-       TelSmsDatapackageInfo_t smsDataPackage;
-
-       PrepareMessage(&smsDataPackage);
-       returnStatus = tel_send_sms(&smsDataPackage, bMoreMsgToSend, &pRequestId);
-       gmain_loop_for_events(5000);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-       if (returnStatus == TAPI_API_SUCCESS)
-               printf("utc_tel_send_sms_01 pass\n");
-       return;
-}
-
-/**
- * @brief This tests tel_send_sms() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SEND_SMS_02
- * @param [in] pDataPackage   = NULL
- * @param [in] bMoreMsgToSend = FALSE
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_PTR
- */
-void utc_tel_send_sms_02()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       TS_BOOL bMoreMsgToSend = FALSE;
-       int pRequestId = -1;
-
-       returnStatus = tel_send_sms(NULL, bMoreMsgToSend, &pRequestId);
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("utc_tel_send_sms_02 pass\n");
-       return;
-}
-
-/**
- * @brief This tests tel_send_sms() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SEND_SMS_03
- * @param [in]  pDataPackage = valid
- * @param [in]  bMoreMsgToSend = FALSE
- * @param [out] pRequestId = NULL
- * @return TAPI_API_INVALID_PTR
- */
-
-void utc_tel_send_sms_03()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       TelSmsDatapackageInfo_t smsDataPackage;
-       TS_BOOL bMoreMsgToSend = FALSE;
-       PrepareMessage(&smsDataPackage);
-       returnStatus = tel_send_sms(&smsDataPackage, bMoreMsgToSend, NULL);
-       printf("The return value is %d\n", returnStatus);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("utc_tel_send_sms_03 pass\n");
-       return;
-}
-
-/**
- * @brief This tests tel_send_sms() API in normal conditions
- * @par ID:
- * UTC_TEL_SEND_SMS_04
- * @param [in] pDataPackage   = valid
- * @param [in] bMoreMsgToSend = TRUE
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS
- */
-
-void utc_tel_send_sms_04()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       TS_BOOL bMoreMsgToSend = TRUE;
-       TelSmsDatapackageInfo_t smsDataPackage;
-       int pRequestId = -1;
-       PrepareMessage(&smsDataPackage);
-       returnStatus = tel_send_sms(&smsDataPackage, bMoreMsgToSend, &pRequestId);
-
-       gmain_loop_for_events(5000);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-       if (returnStatus == TAPI_API_SUCCESS)
-               printf("utc_tel_send_sms_04 pass\n");
-       return;
-}
-
-/**
- * @brief This tests tel_send_sms() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SEND_SMS_05
- * @param [in]  pDataPackage   = NULL
- * @param [in]  bMoreMsgToSend = FALSE
- * @param [out] pRequestId     = NULL
- * @return TAPI_API_INVALID_PTR
- */
-void utc_tel_send_sms_05()
-{
-
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       TS_BOOL bMoreMsgToSend = FALSE;
-       returnStatus = tel_send_sms(NULL, bMoreMsgToSend, NULL);
-
-       printf("The return value is %d\n", returnStatus);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("utc_tel_send_sms_05 pass\n");
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sms/unit/uts_tel_send_sms.h b/TC/telephony_TC/sms/unit/uts_tel_send_sms.h
deleted file mode 100644 (file)
index 83846ea..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef _UTS_TEL_SEND_SMS_H_
-#define _UTS_TEL_SEND_SMS_H_
-
-static void utc_tel_send_sms_01();
-static void utc_tel_send_sms_02();
-static void utc_tel_send_sms_03();
-static void utc_tel_send_sms_04();
-static void utc_tel_send_sms_05();
-
-#endif
diff --git a/TC/telephony_TC/sms/unit/uts_tel_send_sms_deliver_report.c b/TC/telephony_TC/sms/unit/uts_tel_send_sms_deliver_report.c
deleted file mode 100644 (file)
index 0832f48..0000000
+++ /dev/null
@@ -1,312 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-#include <malloc.h>
-
-#include <sys/types.h>
-#include <signal.h>
-
-#include <pthread.h>
-#include <assert.h>
-#include <glib.h>
-#include <ITapiNetText.h>
-
-#include <tet_api.h>
-#include "tet_macro.h"
-
-#include <TapiCommon.h>
-#include <gconf/gconf-client.h>
-
-#include "sms_common.h"
-#include "sms_callback_util.h"
-#include "uts_tel_send_sms_deliver_report.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_send_sms_deliver_report_01, 1},
-       {utc_tel_send_sms_deliver_report_02, 2},
-       {utc_tel_send_sms_deliver_report_03, 3},
-       {utc_tel_send_sms_deliver_report_04, 4},
-       {NULL, 0}
-};
-
-
-static TapiResult_t gStartupSuccess;
-unsigned int subscription_id;
-
-void alarm_received(int sgi)
-{
-       gAsyncResult = FALSE;
-       printf("Signal [SIGALARM] Received. Close g_main_loop()");
-       G_MAIN_LOOP_CLOSE();
-}
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module */
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-
-       gStartupSuccess = tel_init();
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("tel_init() Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-
-       gStartupSuccess = tel_register_event(TAPI_EVENT_NETTEXT_DELIVERY_REPORT_CNF, &subscription_id, tapi_sms_callback, (void *)TAPI_EVENT_NETTEXT_DELIVERY_REPORT_CNF);
-       gStartupSuccess = tel_register_event(TAPI_EVENT_NETTEXT_INCOM_IND, &subscription_id, tapi_sms_callback, (void *)TAPI_EVENT_NETTEXT_INCOM_IND);
-
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-       else {
-               tel_register_app_name("org.samsung.test");
-               if (tel_get_app_name(&dname))
-                       printf("Dbus Get app name error\n");
-               else
-                       printf("Dbus Name is %s\n", dname.name);
-
-               tel_check_service_ready(&bStatus);
-               printf("Telephony service  %d\n", bStatus);
-
-               printf("after TapiCommonRegisterEvent subscription_id1 is %d gStartupSuccess is %d\n", subscription_id, gStartupSuccess);
-       }
-
-       printf("\n## TEST START ##\n");
-}
-
-static void cleanup()
-{
-       if (gStartupSuccess == TAPI_API_SUCCESS)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-
-       printf("\n## TEST FINISH ##\n");
-       return;
-}
-
-void EncodeSmsDeliveryReportTpdu(TelSmsDatapackageInfo_t *pDataPackage)
-{
-       TPDU_SMS_DELIVER_REPORT deliver_report;
-       unsigned char packet[TAPI_NETTEXT_MSG_SIZE_MAX] = {0,};
-       char *SCA = VALID_SCA_NUM;
-
-       TS_BYTE tp_dcs;
-       TS_BYTE mask = 0x69;
-       int index = 0, ScIndex = 0, sca_len;
-       int i;
-
-       ScIndex = SmsUtilEncodeAddrField(pDataPackage->Sca, SCA, strlen(SCA), 0x01, 0x01);
-       sca_len = strlen(SCA);
-
-       /* TP-MTI , TP-UDHI */
-       deliver_report.msg_type = SMS_TPDU_DELIVER_REPORT;
-       deliver_report.udhi = FALSE;
-
-       packet[index] = deliver_report.msg_type; //DELIVER REPORT
-       packet[index] |= deliver_report.udhi ? 0x40 : 0; //bit 6
-
-       index++;
-
-       /* TP -PI */
-       deliver_report.paraInd = mask;
-       packet[index] = deliver_report.paraInd;
-
-       if ((mask != 0xFF) && (mask != 0)) {
-               index++;
-               /* TP-PID */
-               if (mask & 0x01) {
-                       deliver_report.pId = 0x65;
-                       packet[index++] = deliver_report.pId;
-               }
-
-               /* TP-DCS */
-               if (mask & 0x02) {
-                       deliver_report.dcs.bCompressed = FALSE;
-                       deliver_report.dcs.bmsg_class_set = TRUE;
-                       deliver_report.dcs.coding_group_type = TAPI_NETTEXT_CODGRP_SM_GENERAL_DCS;
-                       deliver_report.dcs.alphabet_type = TAPI_NETTEXT_ALPHABET_DEFAULT;
-                       deliver_report.dcs.class_type = TAPI_NETTEXT_CLASS_2;
-
-                       SmsUtilEncodeDCS(&tp_dcs, &deliver_report.dcs);
-                       packet[index++] = tp_dcs;
-               }
-               /* TP-UDL */
-               if (mask & 0x04) {
-                       deliver_report.udl = 0x00;
-                       packet[index++] = deliver_report.udl;
-
-                       /* TP-UD */
-
-                       if (deliver_report.dcs.alphabet_type == TAPI_NETTEXT_ALPHABET_DEFAULT) {
-                               //SmsUtilPackGSMCode( packet + index, msg, msg_len);
-                       }
-               }
-       }
-       printf("EncodeSmsDeliveryReportTpdu: Send packet to phonseSever[%d] : ", index);
-
-       for (i = 0; i < index; i++) {
-               printf("[%02x]", packet[i]);
-               if (i % 10 == 9)
-                       printf("\n");
-       }
-       printf("\n");
-
-       memcpy(pDataPackage->szData, packet, index);
-       pDataPackage->MsgLength = index;
-       printf("- msgLength:%d\n", pDataPackage->MsgLength);
-       printf("- SCA Number:[%s], SCA Length:%d\n", SCA, sca_len);
-       printf("- SCA Addr:");
-
-       for (i = 0; i < sca_len; i++) {
-               printf("%02x ",  pDataPackage->Sca[i]);
-               if (i % 10 == 9)
-                       printf("  ");
-       }
-       printf("\n\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_send_sms_deliver_report() API in normal conditions
- * @par ID:
- * UTC_TEL_SEND_DELIVERY_REPORT_01
- * @param [in] pDataPackage = valid
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS
- */
-void utc_tel_send_sms_deliver_report_01()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int pRequestId = 1;
-       TelSmsDatapackageInfo_t deliveryReportDataPackage = {{0,},0,{0,},};
-
-       printf("/******************************************\n");
-       printf("* Please send a message to tesing target  *\n");
-       printf("* within 60 seconds !!!                   *\n");
-       printf("*******************************************\n");
-
-       EncodeSmsDeliveryReportTpdu(&deliveryReportDataPackage);
-       returnStatus = tel_send_sms_deliver_report(&deliveryReportDataPackage, TAPI_NETTEXT_SENDSMS_SUCCESS, &pRequestId);
-
-       gmain_loop_for_events(5000);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       /* return TAPI_API_OEM_PLUGIN_FAILURE is ok. because call tel_send_sms_deliver_report() without tel_send_sms() */
-       TET_CHECK(returnStatus == TAPI_API_OEM_PLUGIN_FAILURE);
-       if (returnStatus == TAPI_API_OEM_PLUGIN_FAILURE)
-               printf("utc_tel_send_sms_deliver_report_01 pass\n");
-       else
-               printf("utc_tel_send_sms_deliver_report_01 fail\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_send_sms_deliver_report() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SEND_DELIVERY_REPORT_02
- * @param [in] pDataPackage = valid
- * @param [out] pRequestId  = NULL
- * @return TAPI_API_INVALID_PTR
- */
-void utc_tel_send_sms_deliver_report_02()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       TelSmsDatapackageInfo_t deliveryReportDataPackage;
-       EncodeSmsDeliveryReportTpdu(&deliveryReportDataPackage);
-
-       returnStatus = tel_send_sms_deliver_report(&deliveryReportDataPackage, TAPI_NETTEXT_SENDSMS_SUCCESS, NULL);
-
-       printf("The return value is %d\n", returnStatus);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("utc_tel_send_sms_deliver_report_02 pass\n");
-       else
-               printf("utc_tel_send_sms_deliver_report_02 fail\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_send_sms_deliver_report() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SEND_DELIVERY_REPORT_03
- * @param [in] pDataPackage = NULL
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_PTR
- */
-void utc_tel_send_sms_deliver_report_03()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int pRequestId = -1;
-
-       returnStatus = tel_send_sms_deliver_report(NULL, TAPI_NETTEXT_SENDSMS_SUCCESS, &pRequestId);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("utc_tel_send_sms_deliver_report_03 pass\n");
-       else
-               printf("utc_tel_send_sms_deliver_report_03 fail\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_write_sms_in_sim() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SEND_DELIVERY_REPORT_04
- * @param [in]  pDataPackage = NULL
- * @param [out] pRequestId  = NULL
- * @return TAPI_API_INVALID_PTR
- */
-void utc_tel_send_sms_deliver_report_04()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-
-       returnStatus = tel_send_sms_deliver_report(NULL, TAPI_NETTEXT_SENDSMS_SUCCESS, NULL);
-
-       printf("The return value is %d\n", returnStatus);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("utc_tel_send_sms_deliver_report_04 pass\n");
-       else
-               printf("utc_tel_send_sms_deliver_report_04 fail\n");
-
-       return;
-}
-/** @} */
diff --git a/TC/telephony_TC/sms/unit/uts_tel_send_sms_deliver_report.h b/TC/telephony_TC/sms/unit/uts_tel_send_sms_deliver_report.h
deleted file mode 100644 (file)
index 97b6db3..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef _UTS_TEL_SEND_SMS_DELIVER_REPORT_H_
-#define _UTS_TEL_SEND_SMS_DELIVER_REPORT_H_
-
-static void utc_tel_send_sms_deliver_report_01();
-static void utc_tel_send_sms_deliver_report_02();
-static void utc_tel_send_sms_deliver_report_03();
-static void utc_tel_send_sms_deliver_report_04();
-
-#endif
diff --git a/TC/telephony_TC/sms/unit/uts_tel_send_sms_msg.c b/TC/telephony_TC/sms/unit/uts_tel_send_sms_msg.c
deleted file mode 100644 (file)
index e55e271..0000000
+++ /dev/null
@@ -1,448 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-#include <malloc.h>
-
-#include <sys/types.h>
-#include <signal.h>
-
-#include <pthread.h>
-#include <assert.h>
-#include <glib.h>
-#include <ITapiNetText.h>
-
-#include "tet_api.h"
-#include "tet_macro.h"
-
-#include <TapiCommon.h>
-#include <gconf/gconf-client.h>
-
-#include "sms_callback_util.h"
-#include "uts_tel_send_sms_msg.h"
-#include "sms_common.h"
-
-#define BOOL int
-
-unsigned int SmsMsgId = 0;
-
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_send_sms_msg_01, 1},
-       {utc_tel_send_sms_msg_02, 2},
-       {utc_tel_send_sms_msg_03, 3},
-       {utc_tel_send_sms_msg_04, 4},
-       {NULL, 0}
-};
-
-TelSmsMsgInfo_t *pDataPackage;
-static TapiResult_t gStartupSuccess;
-unsigned int subscription_id;
-
-void EncodeCdmaSmsSubmitTpdu(char* diallingNum, int dialNumLen, char* msgTxt, int msg_len);
-void alarm_received(int sgi)
-{
-       gAsyncResult = FALSE;
-       printf("Signal [SIGALARM] Received. Close g_main_loop()");
-       G_MAIN_LOOP_CLOSE();
-}
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module
- */
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-
-       pDataPackage = malloc(sizeof(TelSmsMsgInfo_t));
-       memset(pDataPackage, 0, sizeof(TelSmsMsgInfo_t));
-
-       gStartupSuccess = tel_init();
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("tel_init() Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-
-       gStartupSuccess = tel_register_event(TAPI_EVENT_NETTEXT_SENTSTATUS_CNF, &subscription_id, tapi_sms_callback, NULL);
-
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-       else {
-               tel_register_app_name("org.samsung.test");
-               if (tel_get_app_name(&dname))
-                       printf("Dbus Get app name error\n");
-               else
-                       printf("Dbus Name is %s\n", dname.name);
-
-               tel_check_service_ready(&bStatus);
-               printf("Telephony service  %d\n", bStatus);
-
-               printf("TapiCommonRegisterEvent subscription_id is %d gStartupSuccess is %d\n", subscription_id, gStartupSuccess);
-       }
-}
-
-static void cleanup()
-{
-       free(pDataPackage);
-       if (gStartupSuccess == TAPI_API_SUCCESS)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-       return;
-}
-
-/////////////////////
-
-
-BOOL EncodeCdmaSmsParamTeleservice(int teleservice_id, ParamTeleserv_t *ParamTeleserv)
-{
-       BOOL ret = FALSE;
-
-       if (ParamTeleserv == NULL) {
-               printf("[EncodeCdmaSmsParamTeleservice] NULL pointer  \n");
-               return ret;
-       }
-
-       switch (teleservice_id) {
-               case TELESERVICEID_CPT95:
-               case TELESERVICEID_CMT95:
-               case TELESERVICEID_VMN95:
-               case TELESERVICEID_WAP:
-                       ret = TRUE;
-                       break;
-
-               default:
-                       ret = FALSE;
-       }
-
-       if (ret == TRUE) {
-               ParamTeleserv->param_id = PARAMID_TELESERVICE_ID;
-               ParamTeleserv->param_len = 2;
-               ParamTeleserv->teleserv_id = teleservice_id;
-       }
-
-       return ret;
-}
-
-BOOL EncodeCdmaSmsParamDestAddress(int NumberPlan, char *diallingNum, ParamAddress_t *ParamAddr)
-{
-       int length = 0;
-
-       if (ParamAddr == NULL || diallingNum == NULL) {
-               printf("[EncodeCdmaSmsParamAddress] NULL pointer  \n");
-               return FALSE;
-       }
-
-       length = strlen(diallingNum); //remove CR
-
-       ParamAddr->param_id = PARAMID_ADDRESS;
-       ParamAddr->len = length;
-       ParamAddr->digit = DIGITMODE_4BITDTMF;
-       ParamAddr->num = NUMMODE_NONE_DATANETWORK;
-       ParamAddr->numtype = NUMBER_TYPE_UNKNOWN;
-       ParamAddr->numplan = NumberPlan;
-
-       strncpy((char *) ParamAddr->CHARi, diallingNum, length);
-
-       length += 5;
-       ParamAddr->param_len = length;
-
-       return TRUE;
-}
-
-BOOL EncodeCdmaSmsParamCallbackAddress(int NumberPlan, char *diallingNum, ParamCallback_t *ParamCallback)
-{
-       int length = 0;
-
-       if (ParamCallback == NULL || diallingNum == NULL) {
-               printf("[EncodeCdmaSmsParamAddress] NULL pointer  \n");
-               return FALSE;
-       }
-
-       length = strlen(diallingNum); //remove CR
-
-       ParamCallback->param_id = PARAMID_CALLBACK;
-       ParamCallback->digit = DIGITMODE_4BITDTMF;
-       ParamCallback->numtype = NUMBER_TYPE_UNKNOWN;
-       ParamCallback->numplan = NumberPlan;
-       ParamCallback->len = length;
-       strncpy((char *) ParamCallback->CHARi, diallingNum, length);
-
-       length += 4;
-       ParamCallback->param_len = length;
-
-       return TRUE;
-}
-
-BOOL EncodeCdmaSmsParamMsgId(int type, ParamMsgId_t *ParamMsg)
-{
-       BOOL ret = FALSE;
-
-       if (ParamMsg == NULL) {
-               printf("[EncodeCdmaSmsParamMsgId] NULL pointer  \n");
-               return ret;
-       }
-
-       ParamMsg->param_id = PARAMID_MESSAGE_ID;
-       ParamMsg->param_len = 3;
-       ParamMsg->type = type;
-       ParamMsg->msg_id = SmsMsgId++;
-
-       ret = TRUE;
-
-       return ret;
-}
-
-BOOL EncodeCdmaSmsParamUserData(char *SendTxt, ParamUserData_t *ParamUser)
-{
-       BOOL ret = FALSE;
-       int length = 0;
-
-       if (ParamUser == NULL || SendTxt == NULL) {
-               printf("[EncodeCdmaSmsParamUserData] NULL pointer  \n");
-               return ret;
-       }
-
-       length = strlen(SendTxt);
-
-       ParamUser->param_id = PARAMID_USER_DATA;
-       ParamUser->encoding = MSGENCODING_7BIT_ASCII;
-       strncpy((char *) ParamUser->CHARi, SendTxt, length);
-
-       ParamUser->len = length;
-       length += 2;
-       ;
-       ParamUser->param_len = length;
-
-       ret = TRUE;
-
-       return ret;
-}
-////////////////////
-
-void EncodeCdmaSmsSubmitTpdu(char *diallingNum, int dialNumLen, char *msgTxt, int msg_len)
-{
-       ParamTeleserv_t ParamTeleserv = { 0, };
-       ParamAddress_t ParamAddr = { 0, };
-       ParamCallback_t Paramcallback = { 0, };
-       ParamMsgId_t ParamMsg = { 0, };
-       ParamUserData_t ParamUser = { 0, };
-       int i;
-       char CallbackNum[] = "1117908499";
-
-       printf("EncodeCdmaSmsSubmitTpdu Func Enter\n");
-
-       memset(pDataPackage, 0, sizeof(TelSmsMsgInfo_t));
-       pDataPackage->MsgType = TAPI_NETTEXT_MESSAGETYPE_SUBMIT;
-       EncodeCdmaSmsParamTeleservice(TELESERVICEID_CMT95, &ParamTeleserv);
-       pDataPackage->ParamMask |= TAPI_NETTEXT_PARAM_TELESERVICE_MASK;
-       memcpy(&pDataPackage->MsgData.OutSubmit.TeleService, &ParamTeleserv.teleserv_id, sizeof(unsigned short));
-       printf("teleservice at TEST APP=%x\n", pDataPackage->MsgData.OutSubmit.TeleService);
-
-       diallingNum[dialNumLen] = '\0';
-       EncodeCdmaSmsParamDestAddress(NUMBER_PLAN_TELEPHONY, diallingNum, &ParamAddr);
-       pDataPackage->ParamMask |= TAPI_NETTEXT_PARAM_ADDRESS_MASK;
-       pDataPackage->MsgData.OutSubmit.DstAddr.Digit = ParamAddr.digit;
-       pDataPackage->MsgData.OutSubmit.DstAddr.NumberMode = ParamAddr.num;
-       pDataPackage->MsgData.OutSubmit.DstAddr.NumberType = ParamAddr.numtype;
-       pDataPackage->MsgData.OutSubmit.DstAddr.NumberPlan = ParamAddr.numplan;
-       pDataPackage->MsgData.OutSubmit.DstAddr.szAddrLength = ParamAddr.len;
-       memcpy(pDataPackage->MsgData.OutSubmit.DstAddr.szAddress, ParamAddr.CHARi, ParamAddr.len);
-
-       EncodeCdmaSmsParamMsgId(MESSAGETYPE_SUBMIT, &ParamMsg);
-       pDataPackage->ParamMask |= TAPI_NETTEXT_PARAM_MESSAGE_ID_MASK;
-       pDataPackage->MsgData.OutSubmit.MsgId = ParamMsg.type;
-       pDataPackage->MsgType = ParamMsg.type;
-
-       EncodeCdmaSmsParamCallbackAddress(NUMBER_PLAN_UNKNOWN, CallbackNum, &Paramcallback);
-       pDataPackage->ParamMask |= TAPI_NETTEXT_PARAM_CALLBACK_MASK;
-       pDataPackage->MsgData.OutSubmit.CallBackNumber.Digit = Paramcallback.digit;
-       pDataPackage->MsgData.OutSubmit.CallBackNumber.NumberType = Paramcallback.numtype;
-       pDataPackage->MsgData.OutSubmit.CallBackNumber.NumberPlan = Paramcallback.numplan;
-       pDataPackage->MsgData.OutSubmit.CallBackNumber.szAddrLength = Paramcallback.len;
-       memcpy(pDataPackage->MsgData.OutSubmit.CallBackNumber.szAddress, Paramcallback.CHARi, Paramcallback.len);
-
-       msgTxt[msg_len - 1] = '\0';
-       EncodeCdmaSmsParamUserData(msgTxt, &ParamUser);
-       pDataPackage->ParamMask |= TAPI_NETTEXT_PARAM_USER_DATA_MASK;
-       pDataPackage->MsgData.OutSubmit.MsgEncoding = ParamUser.encoding;
-       pDataPackage->MsgData.OutSubmit.MsgLength = ParamUser.len;
-       memcpy(pDataPackage->MsgData.OutSubmit.szData, ParamUser.CHARi, ParamUser.len);
-
-       printf("\n=============== Test App Message =================\n");
-       printf("0000: ");
-       for (i = 0; i < sizeof(TelSmsMsgInfo_t); i++) {
-               printf("[%2x] ", *(((unsigned char *) pDataPackage) + i));
-               if ((i+1)%32 == 0) {
-                       printf("\n%04x: ", i+1);
-               }
-       }
-       printf("\n==============================================\n");
-}
-
-void PrepareCDMAMessage()
-{
-       int msg_len = 0;
-       char buf[512];
-       char message[512];
-       char diallingNum[TAPI_NETTEXT_ADDRESS_LEN_MAX];
-       int diallingNum_len = 0;
-
-       memset(buf, 0, sizeof(buf));
-       memset(diallingNum, 0, sizeof(diallingNum));
-       memset(message, 0, sizeof(message));
-
-       strcpy(message, "This is a test message");
-       strncpy(diallingNum, RECEIPIENT, TAPI_NETTEXT_ADDRESS_LEN_MAX);
-
-       diallingNum_len = strlen(diallingNum);
-       printf("dialling num %s and dialling num len is %d\n", diallingNum, diallingNum_len);
-       diallingNum[diallingNum_len] = 0;
-       diallingNum_len = diallingNum_len - 1;
-
-       msg_len = strlen(message);
-
-       printf("==========================\n");
-       printf("To :%s\n", diallingNum);
-       printf("Message: %s\nMsg Length:%d\n", message, msg_len);
-       printf("Dialling number Length : %d\n", diallingNum_len);
-       printf("==========================\n");
-
-       EncodeCdmaSmsSubmitTpdu(diallingNum, diallingNum_len, message, msg_len);
-}
-
-/**
- * @brief This tests tel_send_sms_msg() API in normal conditions
- * @par ID:
- * UTC_TEL_SEND_SMS_01
- * @param [in] pDataPackage   = valid
- * @param [in] bMoreMsgToSend = FALSE
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS
- */
-void utc_tel_send_sms_msg_01()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int pRequestId = -1;
-
-       PrepareCDMAMessage();
-       returnStatus = tel_send_sms_msg(pDataPackage, 0, &pRequestId);
-       gmain_loop_for_events(5000);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-       if (returnStatus == TAPI_API_SUCCESS)
-               printf("utc_tel_send_sms_msg_01 pass\n");
-       else
-               printf("utc_tel_send_sms_msg_01 fail\n");
-
-       printf("\n");
-       return;
-}
-
-void utc_tel_send_sms_msg_02()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       TS_BOOL bMoreMsgToSend = FALSE;
-       int pRequestId = -1;
-
-       returnStatus = tel_send_sms_msg(NULL, bMoreMsgToSend, &pRequestId);
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("utc_tel_send_sms_msg_02 pass\n");
-       else
-               printf("utc_tel_send_sms_msg_02 fail\n");
-
-       printf("\n");
-       return;
-}
-
-/**
- * @brief This tests tel_send_sms_msg() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SEND_SMS_03
- * @param [in]  pDataPackage = valid
- * @param [in]  bMoreMsgToSend = FALSE
- * @param [out] pRequestId = NULL
- * @return TAPI_API_INVALID_PTR
- */
-void utc_tel_send_sms_msg_03()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       TS_BOOL bMoreMsgToSend = FALSE;
-
-       returnStatus = tel_send_sms_msg(pDataPackage, bMoreMsgToSend, NULL);
-       printf("The return value is %d\n", returnStatus);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("utc_tel_send_sms_msg_03 pass\n");
-       else
-               printf("utc_tel_send_sms_msg_03 fail\n");
-
-       printf("\n");
-       return;
-}
-
-/**
- * @brief This tests tel_send_sms() API in normal conditions
- * @par ID:
- * UTC_TEL_SEND_SMS_04
- * @param [in] pDataPackage   = valid
- * @param [in] bMoreMsgToSend = TRUE
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS
- */
-void utc_tel_send_sms_msg_04()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       TS_BOOL bMoreMsgToSend = TRUE;
-       int pRequestId = -1;
-
-       PrepareCDMAMessage();
-       returnStatus = tel_send_sms_msg(pDataPackage, bMoreMsgToSend, &pRequestId);
-
-       gmain_loop_for_events(5000);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-       if (returnStatus == TAPI_API_SUCCESS)
-               printf("utc_tel_send_sms_msg_04 pass\n");
-       else
-               printf("utc_tel_send_sms_msg_04 fail\n");
-
-       printf("\n");
-       return;
-}
-/** @} */
diff --git a/TC/telephony_TC/sms/unit/uts_tel_send_sms_msg.h b/TC/telephony_TC/sms/unit/uts_tel_send_sms_msg.h
deleted file mode 100644 (file)
index 7952f7a..0000000
+++ /dev/null
@@ -1,149 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef _UTS_TEL_SEND_SMS_MSG_H_
-#define _UTS_TEL_SEND_SMS_MSG_H_
-
-static void utc_tel_send_sms_msg_01();
-static void utc_tel_send_sms_msg_02();
-static void utc_tel_send_sms_msg_03();
-static void utc_tel_send_sms_msg_04();
-
-#define MAXLENGTH_SMS_ADDRESS 20
-#define MAXLENGTH_SMS_USER_DATA 160
-#define TELESERVICEID_CMT95 0x1002
-#define NUMBER_PLAN_TELEPHONY 0x01
-#define NUMBER_PLAN_UNKNOWN  0
-#define MESSAGETYPE_SUBMIT 2
-
-/* Common TELESERVICE ID's */
-#define TELESERVICEID_CPT95                            0x1001  /* 4097 : Paging */
-#define TELESERVICEID_CMT95                            0x1002  /* 4098 : Text Message */
-#define TELESERVICEID_VMN95                            0x1003  /* 4099 : Voice Mail Notification */
-#define TELESERVICEID_WAP                              0x1004  /* WAP Message */
-
-/* DIGIT MODE : CHARi[] filed°¡ 4bit dtmf codeÀÎÁö 8bit codeÀÎÁöžŠ ÀǹÌÇÑŽÙ.
-*/
-#define DIGITMODE_4BITDTMF                     0x00
-#define DIGITMODE_8BITCODE                     0x01
-
-/* NUMBER MODE
-*/
-#define NUMMODE_NONE_DATANETWORK       0x00    /* in ANSI TI.607 */
-#define NUMMODE_DATANETWORK                    0x01
-
-/* MESSAGE_ENCODING
-*/
-#define MSGENCODING_UNSPECIFIED                                                0x00    /* OCTET */
-#define MSGENCODING_IS91_EXTENDED_PROTOCOL                     0x01    /* */
-#define MSGENCODING_7BIT_ASCII                                         0x02    /* */
-#define MSGENCODING_IA5                                                                0x03    /* */
-#define MSGENCODING_UNICODE                                                    0x04    /* */
-#define MSGENCODING_SHIFT_JIS                                          0x05    /* */
-#define MSGENCODING_KSC5601                                                    0x06    /* Korean */
-#define MSGENCODING_HEBREW                                                     0x07    /* ISO_8859_8 */
-#define MSGENCODING_LATIN                                                      0x08    /* ISO_8859_1 */
-#define MSGENCODING_KSC5601_3PCS                                       0x10    /* Korean Standard */
-
-
-/* NUMBER TYPE
-*/
-/* The following are used when number mode is not data network address.
-*/
-#define NUMBER_TYPE_UNKNOWN                    0x00
-#define NUMBER_TYPE_INTERNATIONAL      0x01
-#define NUMBER_TYPE_NATIONAL           0x02
-#define NUMBER_TYPE_NETWORK                    0x03
-#define NUMBER_TYPE_SUBSCRIBER         0x04
-#define NUMBER_TYPE_RESERVED_5         0x05
-#define NUMBER_TYPE_ABREVIATED         0x06
-#define NUMBER_TYPE_RESERVED_7         0x07
-
-//=============================================================
-#define PARAMID_TELESERVICE_ID                 0x01    /* Teleservice Identifier */
-#define PARAMID_SERVICE_CATEGORY               0x02    /* Broadcast Service Category */
-#define PARAMID_ADDRESS                                        0x03    /* Address */
-#define PARAMID_SUBADDRESS                             0x04    /* Subaddress */
-#define PARAMID_BEARER_REPLY                   0x05    /* Bearer Reply Option */
-#define PARAMID_CAUSE_CODES                            0x06    /* Cause Codes */
-#define PARAMID_MESSAGE_ID                             0x07    /* Message Identifier */
-#define PARAMID_USER_DATA                              0x08    /* User Data */
-#define PARAMID_USER_RESPONSE_CODE             0x09    /* User Response Code */
-#define PARAMID_MC_TIME_STAMP                  0x0A    /* Message Center Time Stamp */
-#define PARAMID_VALIDITY_PERIOD_ABS            0x0B    /* Validity Period - Absolute */
-#define PARAMID_VALIDITY_PERIOD_REL            0x0C    /* Validiry Period - Relative */
-#define PARAMID_DEFERRED_DELIVERY_ABS  0x0D    /* Deferred Delivery Time - Absolute */
-#define PARAMID_DEFERRED_DELIVERY_REL  0x0E    /* Deferred Delivery Time - Relative */
-#define PARAMID_PRIORITY                               0x0F    /* Priority Indicator */
-#define PARAMID_PRIVACY                                        0x10    /* Privacy Indicator */
-#define PARAMID_REPLY_OPTION                   0x11    /* Reply Option */
-#define PARAMID_NUMBER_OF_MESSAGE              0x12    /* Number of Messages : Voice Mail Count */
-#define PARAMID_ALERT_ON_DELIVERY              0x13    /* Alert on Message Delivery */
-#define PARAMID_LANGUAGE                               0x14    /* Langauge Indicator */
-#define PARAMID_CALLBACK                               0x15    /* Call Back Number */
-#define PARAMID_DISPLAY_MODE                   0x16    /* Display Mode */
-#define PARAMID_MULTI_ENCODING_USER_DATA       0x17    /* Multiply Encoding User Data */
-#define PARAMID_MEMORY_INDEX                   0x18    /* Memory address stored in Phone Memory */
-#define PARAMID_BEARER_DATA                            0x19    /* Bearer data - raw data  */
-
-typedef struct {
-       TS_UINT8 param_id;
-       TS_UINT8 param_len;
-       TS_UINT16 teleserv_id;
-} ParamTeleserv_t;
-
-typedef struct {
-       TS_UINT8 param_id;
-       TS_UINT8 param_len;
-       TS_UINT8 digit;
-       TS_UINT8 num;
-       TS_UINT8 numtype;
-       TS_UINT8 numplan;
-       TS_UINT8 len;
-       TS_UINT8 CHARi[MAXLENGTH_SMS_ADDRESS];
-} ParamAddress_t;
-
-typedef struct {
-       TS_UINT8 param_id;
-       TS_UINT8 param_len;
-       TS_UINT8 type;
-       TS_UINT16 msg_id;
-} ParamMsgId_t;
-
-typedef struct {
-       TS_UINT8 param_id;
-       TS_UINT8 param_len;
-       TS_UINT8 encoding;
-       TS_UINT8 len;
-       TS_UINT8 CHARi[MAXLENGTH_SMS_USER_DATA];
-} ParamUserData_t;
-
-typedef struct {
-       TS_UINT8 param_id;
-       TS_UINT8 param_len;
-       TS_UINT8 digit;
-       TS_UINT8 numtype;
-       TS_UINT8 numplan;
-       TS_UINT8 len;
-       TS_UINT8 CHARi[MAXLENGTH_SMS_ADDRESS];
-} ParamCallback_t;
-
-
-#endif
diff --git a/TC/telephony_TC/sms/unit/uts_tel_set_sms_cb_config.c b/TC/telephony_TC/sms/unit/uts_tel_set_sms_cb_config.c
deleted file mode 100644 (file)
index 276094b..0000000
+++ /dev/null
@@ -1,287 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-#include <malloc.h>
-
-#include <sys/types.h>
-#include <signal.h>
-
-#include <pthread.h>
-#include <assert.h>
-#include <glib.h>
-#include <ITapiNetText.h>
-
-#include <tet_api.h>
-#include "tet_macro.h"
-
-#include <TapiCommon.h>
-#include <gconf/gconf-client.h>
-
-#include "sms_callback_util.h"
-#include "uts_tel_set_sms_cb_config.h"
-
-/* Initialize TCM data structures */
-
-TelSmsCbConfig_t *pCBConfig;
-unsigned int subscription_id;
-
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_set_sms_cb_config_01, 1},
-       {utc_tel_set_sms_cb_config_02, 2},
-       {utc_tel_set_sms_cb_config_03, 3},
-       {utc_tel_set_sms_cb_config_04, 4},
-       {utc_tel_set_sms_cb_config_05, 5},
-       {NULL, 0}
-};
-
-
-static TapiResult_t gStartupSuccess;
-
-void alarm_received(int sgi)
-{
-       gAsyncResult = FALSE;
-       printf("Signal [SIGALARM] Received. Close g_main_loop()");
-       G_MAIN_LOOP_CLOSE();
-}
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module */
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-
-       pCBConfig = (TelSmsCbConfig_t *) malloc(sizeof(TelSmsCbConfig_t));
-
-       gStartupSuccess = tel_init();
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("tel_init() Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-       gStartupSuccess = tel_register_event(TAPI_EVENT_NETTEXT_SET_REQUEST_CNF, &subscription_id, tapi_sms_callback, NULL);
-
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-       else {
-               tel_register_app_name("org.samsung.test");
-               if (tel_get_app_name(&dname))
-                       printf("Dbus Get app name error\n");
-               else
-                       printf("Dbus Name is %s\n", dname.name);
-
-               tel_check_service_ready(&bStatus);
-               printf("Telephony service  %d\n", bStatus);
-
-               printf("after TapiCommonRegisterEvent subscription_id is %d gStartupSuccess is %d\n", subscription_id, gStartupSuccess);
-       }
-}
-
-static void cleanup()
-{
-       free(pCBConfig);
-       if (gStartupSuccess == TAPI_API_SUCCESS)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-       return;
-}
-
-
-/**
- * @brief This tests tel_set_sms_cb_config() API in normal conditions
- * @par ID:
- * UTC_TEL_SMS_CB_SET_CONFIG_01
- * @param [in] pCBConfig
- * @code
- pCBConfig->bCBEnabled = TRUE;
- pCBConfig->SelectedId = 0x01;
- pCBConfig->MsgIdCount = 0x04;
- pCBConfig->MsgIDs[0] = 0x03;
- pCBConfig->MsgIDs[1] = 0x0c;
- pCBConfig->MsgIDs[2] = 0x0d;
- pCBConfig->MsgIDs[3] = 0x0f;
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS
- */
-void utc_tel_set_sms_cb_config_01()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-
-       int pRequestId;
-       pCBConfig->bCBEnabled = TRUE;
-       pCBConfig->SelectedId = 0x01;
-       pCBConfig->MsgIdCount = 0x04;
-
-       pCBConfig->MsgIDs[0] = 0x03;
-       pCBConfig->MsgIDs[1] = 0x0c;
-       pCBConfig->MsgIDs[2] = 0x0d;
-       pCBConfig->MsgIDs[3] = 0x0f;
-
-       /* Calling TAPI SMS  SET CB CONFIG API */
-       returnStatus = tel_set_sms_cb_config(pCBConfig, &pRequestId);
-       gmain_loop_for_events(5000);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-       if (returnStatus == TAPI_API_SUCCESS)
-               printf("utc_tel_set_sms_cb_config_01 pass\n");
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_cb_config() API in normal conditions
- * @par ID:
- * UTC_TEL_SMS_CB_SET_CONFIG_02
- * @param [in] pCBConfig
- * @code
- pCBConfig->bCBEnabled = TRUE;
- pCBConfig->SelectedId = 0x02;
- pCBConfig->MsgIdCount = 0x04;
- pCBConfig->MsgIDs[0] = 0x0c;
- pCBConfig->MsgIDs[1] = 0x0d;
- pCBConfig->MsgIDs[2] = 0x0f;
- pCBConfig->MsgIDs[3] = 0x00;
- * @endcode
- * @param [out] pRequestId = NULL
- * @return TAPI_API_SUCCESS
- */
-void utc_tel_set_sms_cb_config_02()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       pCBConfig->bCBEnabled = TRUE;
-       pCBConfig->SelectedId = 0x02;
-       pCBConfig->MsgIdCount = 0x04;
-
-       pCBConfig->MsgIDs[0] = 0x0c;
-       pCBConfig->MsgIDs[1] = 0x0d;
-       pCBConfig->MsgIDs[2] = 0x0f;
-       pCBConfig->MsgIDs[3] = 0x00;
-
-       /* Calling TAPI SMS  SET CB CONFIG API */
-       returnStatus = tel_set_sms_cb_config(pCBConfig, NULL);
-       gmain_loop_for_events(5000);
-
-       printf("The return value is %d\n", returnStatus);
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("utc_tel_set_sms_cb_config_02 pass\n");
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_cb_config() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SMS_CB_SET_CONFIG_03
- * @param [in]  pCBConfig  = NULL
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_PTR
- */
-void utc_tel_set_sms_cb_config_03()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-
-       int pRequestId;
-
-       /* Calling TAPI SMS  SET CB CONFIG API */
-       returnStatus = tel_set_sms_cb_config(NULL, &pRequestId);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("utc_tel_set_sms_cb_config_03 pass\n");
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_cb_config() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SMS_CB_SET_CONFIG_04
- * @param [in]  pCBConfig  = NULL
- * @param [out] pRequestId = NULL
- * @return TAPI_API_INVALID_PTR
- */
-void utc_tel_set_sms_cb_config_04()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-
-       /* Calling TAPI SMS  SET CB CONFIG API */
-       returnStatus = tel_set_sms_cb_config(NULL, NULL);
-
-       printf("The return value is %d\n", returnStatus);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("utc_tel_set_sms_cb_config_04 pass\n");
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_cb_config() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SMS_CB_SET_CONFIG_05
- * @param [in] pCBConfig
- * @code
- pCBConfig->bCBEnabled = TRUE;
- pCBConfig->SelectedId = -1;
- pCBConfig->MsgIdCount = -1;
-
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_sms_cb_config_05()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int pRequestId;
-
-       pCBConfig->bCBEnabled = TRUE;
-       pCBConfig->SelectedId = -1;
-       pCBConfig->MsgIdCount = -1;
-
-       pCBConfig->MsgIDs[0] = 0x0c;
-       pCBConfig->MsgIDs[1] = 0x00;
-       pCBConfig->MsgIDs[2] = 0x0d;
-       pCBConfig->MsgIDs[3] = 0x0f;
-
-       /* Calling TAPI SMS  SET CB CONFIG API */
-       returnStatus = tel_set_sms_cb_config(pCBConfig, &pRequestId);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);
-       if (returnStatus == TAPI_API_INVALID_INPUT)
-               printf("utc_tel_set_sms_cb_config_05 pass\n");
-       return;
-}
-/** @} */
diff --git a/TC/telephony_TC/sms/unit/uts_tel_set_sms_cb_config.h b/TC/telephony_TC/sms/unit/uts_tel_set_sms_cb_config.h
deleted file mode 100644 (file)
index 30e47db..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TEL_SET_SMS_CB_CONFIG_H_
-#define _UTS_TEL_SET_SMS_CB_CONFIG_H_
-
-static void utc_tel_set_sms_cb_config_01();
-
-static void utc_tel_set_sms_cb_config_02();
-
-static void utc_tel_set_sms_cb_config_03();
-
-static void utc_tel_set_sms_cb_config_04();
-
-static void utc_tel_set_sms_cb_config_05();
-
-#endif
-
diff --git a/TC/telephony_TC/sms/unit/uts_tel_set_sms_memory_status.c b/TC/telephony_TC/sms/unit/uts_tel_set_sms_memory_status.c
deleted file mode 100644 (file)
index 34e466e..0000000
+++ /dev/null
@@ -1,240 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-#include <malloc.h>
-
-#include <sys/types.h>
-#include <signal.h>
-
-#include <pthread.h>
-#include <assert.h>
-#include <glib.h>
-#include <ITapiNetText.h>
-
-#include <tet_api.h>
-#include "tet_macro.h"
-
-#include <TapiCommon.h>
-#include <gconf/gconf-client.h>
-
-#include "sms_callback_util.h"
-#include "uts_tel_set_sms_memory_status.h"
-
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_set_sms_memory_status_01, 1},
-       {utc_tel_set_sms_memory_status_02, 2},
-       {utc_tel_set_sms_memory_status_03, 3},
-       {utc_tel_set_sms_memory_status_04, 4},
-       {utc_tel_set_sms_memory_status_05, 5},
-       {NULL, 0}
-};
-
-static TapiResult_t gStartupSuccess;
-unsigned int subscription_id;
-
-void alarm_received(int sgi)
-{
-       gAsyncResult = FALSE;
-       printf("Signal [SIGALARM] Received. Close g_main_loop()");
-       G_MAIN_LOOP_CLOSE();
-}
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module */
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-
-       gStartupSuccess = tel_init();
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("tel_init() Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-       gStartupSuccess = tel_register_event(TAPI_EVENT_NETTEXT_SET_REQUEST_CNF, &subscription_id, tapi_sms_callback, NULL);
-
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-       else {
-               tel_register_app_name("org.samsung.test");
-               if (tel_get_app_name(&dname))
-                       printf("Dbus Get app name error\n");
-               else
-                       printf("Dbus Name is %s\n", dname.name);
-
-               tel_check_service_ready(&bStatus);
-               printf("Telephony service  %d\n", bStatus);
-
-               printf("after TapiCommonRegisterEvent subscription_id is %d gStartupSuccess is %d\n", subscription_id, gStartupSuccess);
-       }
-}
-
-static void cleanup()
-{
-       if (gStartupSuccess == TAPI_API_SUCCESS)
-               tel_deregister_event(subscription_id);
-       //      G_MAIN_CLOSE();
-       tel_deinit();
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_memory_status() API in normal conditions
- * @par ID:
- * UTC_TEL_SET_MEMORY_STATUS_01
- * @param [in]  memory_status = TAPI_NETTEXT_MEMORY_STATUS_AVAILABLE
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS
- */
-void utc_tel_set_sms_memory_status_01()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int pRequestId = -1;
-
-       /* CALLING TAPI SET MEMORY STATUS API */
-
-       returnStatus = tel_set_sms_memory_status(TAPI_NETTEXT_PDA_MEMORY_STATUS_AVAILABLE, &pRequestId);
-       gmain_loop_for_events(5000);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-       if (returnStatus == TAPI_API_SUCCESS)
-               printf("utc_tel_set_sms_memory_status_01 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_memory_status() API in normal conditions
- * @par ID:
- * UTC_TEL_SET_MEMORY_STATUS_02
- * @param [in]  memory_status = TAPI_NETTEXT_MEMORY_STATUS_FULL
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS
- */
-void utc_tel_set_sms_memory_status_02()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int pRequestId = -1;
-
-       /* CALLING TAPI SET MEMORY STATUS API */
-
-       returnStatus = tel_set_sms_memory_status(TAPI_NETTEXT_PDA_MEMORY_STATUS_FULL, &pRequestId);
-       gmain_loop_for_events(5000);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-       if (returnStatus == TAPI_API_SUCCESS)
-               printf("utc_tel_set_sms_memory_status_02 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_memory_status() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SET_MEMORY_STATUS_03
- * @param [in]  memory_status = TAPI_NETTEXT_MEMORY_STATUS_AVAILABLE - 1
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_sms_memory_status_03()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int pRequestId = -1;
-
-       /* CALLING TAPI SET MEMORY STATUS API */
-
-       returnStatus = tel_set_sms_memory_status(TAPI_NETTEXT_PDA_MEMORY_STATUS_AVAILABLE - 1, &pRequestId);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);
-       if (returnStatus == TAPI_API_INVALID_INPUT)
-               printf("utc_tel_set_sms_memory_status_03 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_memory_status() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SET_MEMORY_STATUS_04
- * @param [in]  memory_status = TAPI_NETTEXT_MEMORY_STATUS_FULL + 1
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_sms_memory_status_04()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int pRequestId = -1;
-       returnStatus = tel_set_sms_memory_status(TAPI_NETTEXT_PDA_MEMORY_STATUS_FULL + 1, &pRequestId);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);
-       if (returnStatus == TAPI_API_INVALID_INPUT)
-               printf("utc_tel_set_sms_memory_status_04 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_memory_status() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SET_MEMORY_STATUS_05
- * @param [in]  memory_status = TAPI_NETTEXT_MEMORY_STATUS_FULL
- * @param [out] pRequestId = NULL
- * @return TAPI_API_INVALID_PTR
- */
-void utc_tel_set_sms_memory_status_05()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-
-       returnStatus = tel_set_sms_memory_status(TAPI_NETTEXT_PDA_MEMORY_STATUS_FULL, NULL);
-
-       printf("The return value is %d\n", returnStatus);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("utc_tel_set_sms_memory_status_05 pass\n");
-
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sms/unit/uts_tel_set_sms_memory_status.h b/TC/telephony_TC/sms/unit/uts_tel_set_sms_memory_status.h
deleted file mode 100644 (file)
index 4b825cb..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef _UTS_TEL_SET_SMS_MEMORY_STATUS_H_
-#define _UTS_TEL_SET_SMS_MEMORY_STATUS_H_
-
-static void utc_tel_set_sms_memory_status_01();
-
-static void utc_tel_set_sms_memory_status_02();
-
-static void utc_tel_set_sms_memory_status_03();
-
-static void utc_tel_set_sms_memory_status_04();
-
-static void utc_tel_set_sms_memory_status_05();
-
-#endif
diff --git a/TC/telephony_TC/sms/unit/uts_tel_set_sms_message_status.c b/TC/telephony_TC/sms/unit/uts_tel_set_sms_message_status.c
deleted file mode 100644 (file)
index 02b3e02..0000000
+++ /dev/null
@@ -1,335 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-#include <malloc.h>
-
-#include <sys/types.h>
-#include <signal.h>
-
-#include <pthread.h>
-#include <assert.h>
-#include <glib.h>
-#include <ITapiNetText.h>
-
-#include <tet_api.h>
-#include "tet_macro.h"
-
-#include <TapiCommon.h>
-#include <gconf/gconf-client.h>
-
-#include "sms_callback_util.h"
-#include "uts_tel_set_sms_message_status.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_set_sms_message_status_01, 1},
-       {utc_tel_set_sms_message_status_02, 2},
-       {utc_tel_set_sms_message_status_03, 3},
-       {utc_tel_set_sms_message_status_04, 4},
-       {utc_tel_set_sms_message_status_05, 5},
-       {utc_tel_set_sms_message_status_06, 6},
-       {utc_tel_set_sms_message_status_07, 7},
-       {utc_tel_set_sms_message_status_08, 8},
-       {NULL, 0}
-};
-
-static TapiResult_t gStartupSuccess;
-unsigned int subscription_id;
-
-void alarm_received(int sgi)
-{
-       gAsyncResult = FALSE;
-       printf("Signal [SIGALARM] Received. Close g_main_loop()");
-       G_MAIN_LOOP_CLOSE();
-}
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module */
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-
-       gStartupSuccess = tel_init();
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("tel_init() Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-       gStartupSuccess = tel_register_event(TAPI_EVENT_NETTEXT_SET_REQUEST_CNF, &subscription_id, tapi_sms_callback, NULL);
-
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-       else {
-               tel_register_app_name("org.samsung.test");
-               if (tel_get_app_name(&dname))
-                       printf("Dbus Get app name error\n");
-               else
-                       printf("Dbus Name is %s\n", dname.name);
-
-               tel_check_service_ready(&bStatus);
-               printf("Telephony service  %d\n", bStatus);
-
-               printf("after TapiCommonRegisterEvent subscription_id is %d gStartupSuccess is %d\n", subscription_id, gStartupSuccess);
-       }
-}
-
-static void cleanup()
-{
-       if (gStartupSuccess == TAPI_API_SUCCESS)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_message_status() API in normal conditions
- * @par ID:
- * UTC_TEL_SET_MESSAGE_STATUS_01
- * @param [in] Index     = 0
- * @param [in] msgStatus = TAPI_NETTEXT_STATUS_READ
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS
- */
-void utc_tel_set_sms_message_status_01()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int pRequestId = -1;
-
-       /* CALLING TAPI SET MSG STATUS API */
-
-       returnStatus = tel_set_sms_message_status(0, TAPI_NETTEXT_STATUS_READ, &pRequestId);
-       gmain_loop_for_events(5000);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-       if (returnStatus == TAPI_API_SUCCESS)
-               printf("utc_tel_set_sms_message_status_01 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_message_status() API in normal conditions
- * @par ID:
- * UTC_TEL_SET_MESSAGE_STATUS_02
- * @param [in]  Index     = 0
- * @param [in]  msgStatus = TAPI_NETTEXT_STATUS_UNREAD
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS
- */
-void utc_tel_set_sms_message_status_02()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int pRequestId = -1;
-
-       /* CALLING TAPI SET MSG STATUS API */
-
-       returnStatus = tel_set_sms_message_status(1, TAPI_NETTEXT_STATUS_UNREAD, &pRequestId);
-       gmain_loop_for_events(5000);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-       if (returnStatus == TAPI_API_SUCCESS)
-               printf("utc_tel_set_sms_message_status_02 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_message_status() API in normal conditions
- * @par ID:
- * UTC_TEL_SET_MESSAGE_STATUS_03
- * @param [in] Index     = 1
- * @param [in] msgStatus = TAPI_NETTEXT_STATUS_SENT
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS
- */
-void utc_tel_set_sms_message_status_03()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int pRequestId = -1;
-
-       /* CALLING TAPI SET MSG STATUS API */
-
-       returnStatus = tel_set_sms_message_status(1, TAPI_NETTEXT_STATUS_SENT, &pRequestId);
-       gmain_loop_for_events(5000);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-       if (returnStatus == TAPI_API_SUCCESS)
-               printf("utc_tel_set_sms_message_status_03 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_message_status() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SET_MESSAGE_STATUS_04
- * @param [in] Index     = -1
- * @param [in] msgStatus = TAPI_NETTEXT_STATUS_UNSENT
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_sms_message_status_04()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int pRequestId = -1;
-
-       /* CALLING TAPI SET MSG STATUS API */
-
-       returnStatus = tel_set_sms_message_status(-1, TAPI_NETTEXT_STATUS_UNSENT, &pRequestId);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);
-       if (returnStatus == TAPI_API_INVALID_INPUT)
-               printf("utc_tel_set_sms_message_status_04 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_message_status() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SET_MESSAGE_STATUS_05
- * @param [in] Index     = 256
- * @param [in] msgStatus = TAPI_NETTEXT_STATUS_RESERVED
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_sms_message_status_05()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int pRequestId = -1;
-
-       /* CALLING TAPI SET MSG STATUS API */
-
-       returnStatus = tel_set_sms_message_status(256, TAPI_NETTEXT_STATUS_RESERVED, &pRequestId);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);
-       if (returnStatus == TAPI_API_INVALID_INPUT)
-               printf("utc_tel_set_sms_message_status_05 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_message_status() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SET_MESSAGE_STATUS_06
- * @param [in] Index     = 1
- * @param [in] msgStatus = TAPI_NETTEXT_STATUS_RESERVED +1
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_sms_message_status_06()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int pRequestId = -1;
-
-       /* CALLING TAPI SET MSG STATUS API */
-
-       returnStatus = tel_set_sms_message_status(1, TAPI_NETTEXT_STATUS_RESERVED + 1, &pRequestId);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);
-       if (returnStatus == TAPI_API_INVALID_INPUT)
-               printf("utc_tel_set_sms_message_status_06 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_message_status() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SET_MESSAGE_STATUS_07
- * @param [in] Index     = 1
- * @param [in] msgStatus = TAPI_NETTEXT_STATUS_READ - 1
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_sms_message_status_07()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int pRequestId = -1;
-
-       /* CALLING TAPI SET MSG STATUS API */
-
-       returnStatus = tel_set_sms_message_status(1, TAPI_NETTEXT_STATUS_READ - 1, &pRequestId);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);
-       if (returnStatus == TAPI_API_INVALID_INPUT)
-               printf("utc_tel_set_sms_message_status_07 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_message_status() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SET_MESSAGE_STATUS_08
- * @param [in] Index       = 1
- * @param [in] msgStatus   = TAPI_NETTEXT_STATUS_DELIVERED
- * @param [out] pRequestId = NULL
- * @return TAPI_API_INVALID_PTR
- */
-void utc_tel_set_sms_message_status_08()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-
-       /* CALLING TAPI SET MSG STATUS API */
-
-       returnStatus = tel_set_sms_message_status(1, TAPI_NETTEXT_STATUS_DELIVERED, NULL);
-
-       printf("The return value is %d\n", returnStatus);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("utc_tel_set_sms_message_status_08 pass\n");
-
-       return;
-}
-/** @} */
diff --git a/TC/telephony_TC/sms/unit/uts_tel_set_sms_message_status.h b/TC/telephony_TC/sms/unit/uts_tel_set_sms_message_status.h
deleted file mode 100644 (file)
index 58cd061..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TEL_SET_SMS_MESSAGE_STATUS_H_
-#define _UTS_TEL_SET_SMS_MESSAGE_STATUS_H_
-
-static void utc_tel_set_sms_message_status_01();
-
-static void utc_tel_set_sms_message_status_02();
-
-static void utc_tel_set_sms_message_status_03();
-
-static void utc_tel_set_sms_message_status_04();
-
-static void utc_tel_set_sms_message_status_05();
-
-static void utc_tel_set_sms_message_status_06();
-
-static void utc_tel_set_sms_message_status_07();
-
-static void utc_tel_set_sms_message_status_08();
-
-#endif
diff --git a/TC/telephony_TC/sms/unit/uts_tel_set_sms_parameters.c b/TC/telephony_TC/sms/unit/uts_tel_set_sms_parameters.c
deleted file mode 100644 (file)
index a446a4d..0000000
+++ /dev/null
@@ -1,178 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-#include <malloc.h>
-
-#include <sys/types.h>
-#include <signal.h>
-
-#include <pthread.h>
-#include <assert.h>
-#include <glib.h>
-#include <ITapiNetText.h>
-
-#include <tet_api.h>
-#include "tet_macro.h"
-
-#include <TapiCommon.h>
-#include <gconf/gconf-client.h>
-
-#include "sms_callback_util.h"
-#include "uts_tel_set_sms_parameters.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {tel_set_sms_parameters_01, 1},
-       {tel_set_sms_parameters_02, 2},
-       {NULL, 0}
-};
-
-static TapiResult_t gStartupSuccess;
-unsigned int subscription_id;
-
-void alarm_received(int sgi)
-{
-       gAsyncResult = FALSE;
-       printf("Signal [SIGALARM] Received. Close g_main_loop()");
-       G_MAIN_LOOP_CLOSE();
-}
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module */
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-
-       gStartupSuccess = tel_init();
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("tel_init() Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-
-       gStartupSuccess = tel_register_event(TAPI_EVENT_NETTEXT_SET_REQUEST_CNF, &subscription_id, tapi_sms_callback, NULL);
-
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-       else {
-               tel_register_app_name("org.samsung.test");
-               if (tel_get_app_name(&dname))
-                       printf("Dbus Get app name error\n");
-               else
-                       printf("Dbus Name is %s\n", dname.name);
-
-               tel_check_service_ready(&bStatus);
-               printf("Telephony service  %d\n", bStatus);
-
-               printf("after TapiCommonRegisterEvent subscription_id is %d gStartupSuccess is %d\n", subscription_id, gStartupSuccess);
-       }
-}
-
-static void cleanup()
-{
-       if (gStartupSuccess == TAPI_API_SUCCESS)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-       return;
-}
-
-
-/**
- * @brief This tests tel_set_sms_parameters() API in normal conditions
- * @par ID:
- * UTC_SET_SMS_PARAMS_01
- * @param [in] smsParameters
- * @code
- smsParameters.RecordIndex = 0;
- smsParameters.RecordLen = 28;
- smsParameters.AlphaIdLen = 10;
- smsParameters.ParamIndicator = TAPI_SIM_SMSP_TP_DEST_ADDR_PRESENT;
- strcpy(smsParameters.TpDestAddr.szDiallingNum,DESTINATION_NUMBER);
- smsParameters.TpDestAddr.DialNumLen=strlen(smsParameters.TpDestAddr.szDiallingNum);
- smsParameters.TpDestAddr.Ton=TAPI_SIM_TON_NATIONAL;
- smsParameters.TpDestAddr.Npi=TAPI_SIM_NPI_NATIONAL;
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS
- */
-void tel_set_sms_parameters_01()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int pRequestId;
-       TelSmsParams_t smsParameters;
-
-       printf("****Setting SMS Parameters****\n");
-
-       smsParameters.RecordIndex = 0;
-       smsParameters.RecordLen = 28;
-       smsParameters.AlphaIdLen = 10;
-       returnStatus = tel_set_sms_parameters(&smsParameters, &pRequestId);
-       gmain_loop_for_events(5000);
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-
-       if (returnStatus == TAPI_API_SUCCESS)
-               printf("tel_set_sms_parameters_01 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_parameters() API in abnormal conditions
- * @par ID:
- * UTC_SET_SMS_PARAMS_02
- * @param [in] smsParameters
- * @param [out] pRequestId = NULL
- * @return TAPI_API_INVALID_PTR
- */
-
-void tel_set_sms_parameters_02()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       TelSmsParams_t smsParameters = { 0, };
-
-       printf("****Setting SMS Parameters****\n");
-
-       smsParameters.RecordIndex = 1;
-       smsParameters.RecordLen = 28;
-       returnStatus = tel_set_sms_parameters(&smsParameters, NULL);
-
-       printf("The return value is %d\n", returnStatus);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("tel_set_sms_parameters_03 pass\n");
-
-       return;
-}
-/** @} */
diff --git a/TC/telephony_TC/sms/unit/uts_tel_set_sms_parameters.h b/TC/telephony_TC/sms/unit/uts_tel_set_sms_parameters.h
deleted file mode 100644 (file)
index 41e4edc..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef _UTS_SET_SMS_PARAMETERS_H_
-#define _UTS_SET_SMS_PARAMETERS_H_
-
-static void tel_set_sms_parameters_01();
-static void tel_set_sms_parameters_02();
-
-
-#endif
diff --git a/TC/telephony_TC/sms/unit/uts_tel_set_sms_preferred_bearer.c b/TC/telephony_TC/sms/unit/uts_tel_set_sms_preferred_bearer.c
deleted file mode 100644 (file)
index 268c8c2..0000000
+++ /dev/null
@@ -1,291 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-#include <malloc.h>
-
-#include <sys/types.h>
-#include <signal.h>
-
-#include <pthread.h>
-#include <assert.h>
-#include <glib.h>
-#include <ITapiNetText.h>
-
-#include <tet_api.h>
-#include "tet_macro.h"
-
-#include <TapiCommon.h>
-#include <gconf/gconf-client.h>
-
-#include "sms_callback_util.h"
-#include "uts_tel_set_sms_preferred_bearer.h"
-
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_set_sms_preferred_bearer_01, 1},
-       {utc_tel_set_sms_preferred_bearer_02, 2},
-       {utc_tel_set_sms_preferred_bearer_03, 3},
-       {utc_tel_set_sms_preferred_bearer_04, 4},
-       {utc_tel_set_sms_preferred_bearer_05, 5},
-       {utc_tel_set_sms_preferred_bearer_06, 6},
-       {NULL, 0}
-};
-
-static TapiResult_t gStartupSuccess;
-unsigned int subscription_id;
-
-void alarm_received(int sgi)
-{
-       gAsyncResult = FALSE;
-       printf("Signal [SIGALARM] Received. Close g_main_loop()");
-       G_MAIN_LOOP_CLOSE();
-}
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module */
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-
-       gStartupSuccess = tel_init();
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("tel_init() Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-       gStartupSuccess = tel_register_event(TAPI_EVENT_NETTEXT_SET_REQUEST_CNF, &subscription_id, tapi_sms_callback, NULL);
-
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-       else {
-               tel_register_app_name("org.samsung.test");
-               if (tel_get_app_name(&dname))
-                       printf("Dbus Get app name error\n");
-               else
-                       printf("Dbus Name is %s\n", dname.name);
-
-               tel_check_service_ready(&bStatus);
-               printf("Telephony service  %d\n", bStatus);
-
-               printf("after TapiCommonRegisterEvent subscription_id is %d gStartupSuccess is %d\n", subscription_id, gStartupSuccess);
-       }
-}
-
-static void cleanup()
-{
-       if (gStartupSuccess == TAPI_API_SUCCESS)
-               tel_deregister_event(subscription_id);
-       //G_MAIN_CLOSE();
-       tel_deinit();
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_preferred_bearer() API in normal conditions
- * @par ID:
- * UTC_TEL_SET_PREFERRED_BEARER_01()
- * @param [in] BearerType = TAPI_NETTEXT_BEARER_PS_PREFERRED
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS
- */
-void utc_tel_set_sms_preferred_bearer_01()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-
-       int pRequestId = -1;
-       printf("SET PREFERRED BEARER TO PS MODE.\n");
-
-       returnStatus = tel_set_sms_preferred_bearer(TAPI_NETTEXT_BEARER_PS_PREFERRED, &pRequestId);
-
-       gmain_loop_for_events(5000);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-       if (returnStatus == TAPI_API_SUCCESS)
-               printf("utc_tel_set_sms_preferred_bearer pass\n");
-       else
-               printf("utc_tel_set_sms_preferred_bearer fail\n");
-
-       printf("\n");
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_preferred_bearer() API in normal conditions
- * @par ID:
- * UTC_TEL_SET_PREFERRED_BEARER_02()
- * @param [in] BearerType = TAPI_NETTEXT_BEARER_CS_PREFERRED
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS
- */
-void utc_tel_set_sms_preferred_bearer_02()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-
-       int pRequestId = -1;
-       printf("SET PREFERRED BEARER TO CS MODE.\n");
-
-       returnStatus = tel_set_sms_preferred_bearer(TAPI_NETTEXT_BEARER_CS_PREFERRED, &pRequestId);
-
-       gmain_loop_for_events(5000);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-       if (returnStatus == TAPI_API_SUCCESS)
-               printf("utc_tel_set_sms_preferred_bearer_02 pass\n");
-       else
-               printf("utc_tel_set_sms_preferred_bearer_02 fail\n");
-
-       printf("\n");
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_preferred_bearer() API in normal conditions
- * @par ID:
- * UTC_TEL_SET_PREFERRED_BEARER_03()
- * @param [in] BearerType = TAPI_NETTEXT_NO_PREFERRED_BEARER
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS
- */
-void utc_tel_set_sms_preferred_bearer_03()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-
-       int pRequestId = -1;
-       printf("SET PREFERRED BEARER to No Preferred Mode.\n");
-
-       returnStatus = tel_set_sms_preferred_bearer(TAPI_NETTEXT_NO_PREFERRED_BEARER, &pRequestId);
-
-       gmain_loop_for_events(5000);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-       if (returnStatus == TAPI_API_SUCCESS)
-               printf("utc_tel_set_sms_preferred_bearer_03 pass\n");
-       else
-               printf("utc_tel_set_sms_preferred_bearer_03 fail\n");
-
-       printf("\n");
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_preferred_bearer() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SET_PREFERRED_BEARER_04()
- * @param [in]  BearerType = TAPI_NETTEXT_NO_PREFERRED_BEARER + 1
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_sms_preferred_bearer_04()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-
-       int pRequestId = -1;
-       printf("SET PREFERRED BEARER TO INVALID MODE.\n");
-
-       returnStatus = tel_set_sms_preferred_bearer(TAPI_NETTEXT_NO_PREFERRED_BEARER + 1, &pRequestId);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);
-       if (returnStatus == TAPI_API_INVALID_INPUT)
-               printf("utc_tel_set_sms_preferred_bearer_04 pass\n");
-       else
-               printf("utc_tel_set_sms_preferred_bearer_04 fail\n");
-
-       printf("\n");
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_preferred_bearer() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SET_PREFERRED_BEARER_05()
- * @param [in] BearerType = TAPI_NETTEXT_BEARER_PS_ONLY - 1
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_sms_preferred_bearer_05()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-
-       int pRequestId = -1;
-       printf("SET PREFERRED BEARER TO INVALID MODE.\n");
-
-       returnStatus = tel_set_sms_preferred_bearer(TAPI_NETTEXT_BEARER_PS_ONLY - 1, &pRequestId);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);
-       if (returnStatus == TAPI_API_INVALID_INPUT)
-               printf("utc_tel_set_sms_preferred_bearer_05 pass\n");
-       else
-               printf("utc_tel_set_sms_preferred_bearer_05 fail\n");
-
-       printf("\n");
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_preferred_bearer() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SET_PREFERRED_BEARER_05()
- * @param [in]  BearerType = TAPI_NETTEXT_BEARER_PS_PREFERRED
- * @param [out] pRequestId = NULL
- * @return TAPI_API_INVALID_PTR
- */
-void utc_tel_set_sms_preferred_bearer_06()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-
-       returnStatus = tel_set_sms_preferred_bearer(TAPI_NETTEXT_BEARER_PS_PREFERRED, NULL);
-
-       printf("The return value is %d\n", returnStatus);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("utc_tel_set_sms_preferred_bearer_06 pass\n");
-       else
-               printf("utc_tel_set_sms_preferred_bearer_06 fail\n");
-
-       printf("\n");
-       return;
-}
-/** @} */
diff --git a/TC/telephony_TC/sms/unit/uts_tel_set_sms_preferred_bearer.h b/TC/telephony_TC/sms/unit/uts_tel_set_sms_preferred_bearer.h
deleted file mode 100644 (file)
index 631b78e..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef _UTS_TEL_SET_SMS_PREFERRED_BEARER_H_
-#define _UTS_TEL_SET_SMS_PREFERRED_BEARER_H_
-
-static void utc_tel_set_sms_preferred_bearer_01();
-
-static void utc_tel_set_sms_preferred_bearer_02();
-
-static void utc_tel_set_sms_preferred_bearer_03();
-
-static void utc_tel_set_sms_preferred_bearer_04();
-
-static void utc_tel_set_sms_preferred_bearer_05();
-
-static void utc_tel_set_sms_preferred_bearer_06();
-
-#endif
diff --git a/TC/telephony_TC/sms/unit/uts_tel_set_sms_sca.c b/TC/telephony_TC/sms/unit/uts_tel_set_sms_sca.c
deleted file mode 100644 (file)
index 02d5b8c..0000000
+++ /dev/null
@@ -1,408 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <errno.h>
-#include "string.h"
-#include <malloc.h>
-
-#include <sys/types.h>
-#include <signal.h>
-
-#include <pthread.h>
-#include <assert.h>
-#include <glib.h>
-#include <ITapiNetText.h>
-
-#include <TapiCommon.h>
-#include <gconf/gconf-client.h>
-
-#include <tet_api.h>
-#include "tet_macro.h"
-
-#include "sms_callback_util.h"
-#include "uts_tel_set_sms_sca.h"
-#include "sms_common.h"
-
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_set_sms_sca_01, 1},
-       {utc_tel_set_sms_sca_02, 2},
-       {utc_tel_set_sms_sca_03, 3},
-       {utc_tel_set_sms_sca_04, 4},
-       {utc_tel_set_sms_sca_05, 5},
-       {utc_tel_set_sms_sca_06, 6},
-       {NULL, 0}
-};
-
-TelSmsAddressInfo_t *pSCA;
-static TapiResult_t gStartupSuccess;
-unsigned int subscription_id;
-
-void alarm_received(int sgi)
-{
-       gAsyncResult = FALSE;
-       printf("Signal [SIGALARM] Received. Close g_main_loop()");
-       G_MAIN_LOOP_CLOSE();
-}
-
-/* Startup & Clean function : It is not test code, only for
- initialize and finalize test module */
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-
-       pSCA = (TelSmsAddressInfo_t*) malloc(sizeof(TelSmsAddressInfo_t));
-       memset(pSCA, 0, sizeof(pSCA));
-
-       gStartupSuccess = tel_init();
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("tel_init() Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-
-       gStartupSuccess = tel_register_event(TAPI_EVENT_NETTEXT_SET_REQUEST_CNF, &subscription_id, tapi_sms_callback, NULL);
-
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-       else {
-               tel_register_app_name("org.samsung.test");
-               if (tel_get_app_name(&dname))
-                       printf("Dbus Get app name error\n");
-               else
-                       printf("Dbus Name is %s\n", dname.name);
-
-               tel_check_service_ready(&bStatus);
-               printf("Telephony service  %d\n", bStatus);
-
-               printf("TapiCommonRegisterEvent subscription_id is %d gStartupSuccess is %d\n", subscription_id, gStartupSuccess);
-       }
-}
-
-static void cleanup()
-{
-       if (gStartupSuccess == TAPI_API_SUCCESS)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-       return;
-}
-
-
-/**
- * @brief This tests tel_set_sms_sca() API in normal conditions
- * @par ID:
- * UTC_TEL_SET_SERV_CENTER_ADDR_01
- * @param [in] pSCA
- * @param [in] Index = 0
- * @code
- sprintf (scaNum,"%d", VALID_SCA_NUM);
- scaNum_len = strlen(scaNum);
- scaNum[scaNum_len] = '\0';
- pSCA->DialNumLen = scaNum_len;
- pSCA->Ton = SIM_TON_NATIONAL;
- pSCA->Npi = TAPI_SIM_NPI_ISDN_TEL;
- memcpy(pSCA->szDiallingNum,scaNum,scaNum_len);
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS
- */
-void utc_tel_set_sms_sca_01()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int pRequestId = -1;
-       char scaNum[TAPI_SIM_SMSP_ADDRESS_LEN + 1];
-       int scaNum_len = 0;
-       int Index = 0;
-       int i = 0;
-       TS_BYTE packet[500];
-
-       sprintf(scaNum, "%s", VALID_SCA_NUM);
-       scaNum_len = strlen(scaNum);
-       scaNum[scaNum_len] = '\0';
-       scaNum_len = scaNum_len - 1;
-
-       printf("Sca Number :%s\n", scaNum);
-       printf("sca  number length : %d \n", scaNum_len);
-
-       Index = SmsUtilEncodeAddrField(packet, scaNum, scaNum_len, 0x01, 0x01);
-
-       printf("Index =%d\n", Index);
-
-       for (i = 0; i < Index; i++)
-               printf("[%02x]", packet[i]);
-
-       pSCA->DialNumLen = Index;
-
-       memcpy(pSCA->szDiallingNum, packet, Index);
-
-       printf("\nSET VALID SERVICE CENTER ADDRESS\n");
-       /* Calling TAPI SMS SET SCA API */
-       returnStatus = tel_set_sms_sca(pSCA, 0, &pRequestId);
-
-       gmain_loop_for_events(5000);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-       if (returnStatus == TAPI_API_SUCCESS)
-               printf("utc_tel_set_sms_sca_01 pass\n");
-
-       return;
-}
-
-
-/**
- * @brief This tests tel_set_sms_sca() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SET_SERV_CENTER_ADDR_02
- * @param [in] pSCA
- * @param [in] Index = 0
- * @code
- sprintf (scaNum,"%d", INVALID_SCA_ADDR);
- scaNum_len = strlen(scaNum);
- scaNum[scaNum_len] = '\0';
- pSCA->DialNumLen = scaNum_len;
- pSCA->Ton = SIM_TON_NATIONAL;
- pSCA->Npi = TAPI_SIM_NPI_ISDN_TEL;
- memcpy(pSCA->szDiallingNum,scaNum,scaNum_len);
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_sms_sca_02()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int pRequestId = -1;
-       char scaNum[TAPI_NETTEXT_SCADDRESS_LEN_MAX];
-       int scaNum_len = 0;
-       int Index = 0;
-       int i = 0;
-       TS_BYTE packet[500];
-
-       sprintf(scaNum, "%s", INVALID_SCA_ADDR);
-       scaNum_len = strlen(scaNum);
-       scaNum[scaNum_len] = '\0';
-       scaNum_len = scaNum_len - 1;
-
-       printf("Sca Number :%s\n", scaNum);
-       printf("sca  number length : %d \n", scaNum_len);
-
-       Index = SmsUtilEncodeAddrField(packet, scaNum, scaNum_len, 0x01, 0x01);
-
-       printf("Index =%d\n", Index);
-
-       for (i = 0; i < Index; i++)
-               printf("[%02x]", packet[i]);
-
-       pSCA->DialNumLen = Index;
-
-       memcpy(pSCA->szDiallingNum, packet, Index);
-
-       printf("\nSET INVALID SERVICE CENTER ADDRESS\n");
-       /* Calling TAPI SMS SET SCA API */
-       returnStatus = tel_set_sms_sca(pSCA, Index, &pRequestId);
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       if (Index != 0) {
-               TET_CHECK(returnStatus == TAPI_API_NOT_SUPPORTED);
-               if (returnStatus == TAPI_API_NOT_SUPPORTED)
-                       printf("utc_tel_set_sms_sca_02 pass\n");
-       }
-       else {
-               TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-               if (returnStatus == TAPI_API_SUCCESS)
-                       printf("utc_tel_set_sms_sca_02 pass\n");
-       }
-       return;
-
-}
-
-/**
- * @brief This tests tel_set_sms_sca() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SET_SERV_CENTER_ADDR_03()
- * @param [in] pSCA
- * @param [in] Index = 0
- * @code
- sprintf (scaNum,"%d", VALID_SCA_NUM);
- scaNum_len = strlen(scaNum);
- scaNum[scaNum_len] = '\0';
- pSCA->DialNumLen = -1;
- pSCA->Ton = SIM_TON_NATIONAL;
- pSCA->Npi = TAPI_SIM_NPI_ISDN_TEL;
- memcpy(pSCA->szDiallingNum,scaNum,scaNum_len);
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_set_sms_sca_03()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int pRequestId = -1;
-       char scaNum[TAPI_NETTEXT_SCADDRESS_LEN_MAX];
-       int scaNum_len = 0;
-       int Index = 0;
-       int i = 0;
-       TS_BYTE packet[500];
-
-       sprintf(scaNum, "%s", VALID_SCA_NUM);
-       scaNum_len = strlen(scaNum);
-       scaNum[scaNum_len] = '\0';
-       scaNum_len = scaNum_len - 1;
-
-       printf("Sca Number :%s\n", scaNum);
-       printf("sca  number length : %d \n", scaNum_len);
-
-       Index = SmsUtilEncodeAddrField(packet, scaNum, scaNum_len, 0x01, 0x01);
-
-       printf("Index =%d\n", Index);
-
-       for (i = 0; i < Index; i++)
-               printf("[%02x]", packet[i]);
-
-       pSCA->DialNumLen = -1;
-
-       memcpy(pSCA->szDiallingNum, packet, Index);
-
-       printf("\nSET INVALID SERVICE CENTER ADDRESS LENGTH\n");
-       /* Calling TAPI SMS SET SCA API */
-       returnStatus = tel_set_sms_sca(pSCA, Index, &pRequestId);
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);
-       if (returnStatus == TAPI_API_INVALID_INPUT)
-               printf("utc_tel_set_sms_sca_03 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_sca() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SET_SERV_CENTER_ADDR_04()
- * @param [in] pSCA
- * @param [in] Index = 0
- * @code
- sprintf (scaNum,"%d", VALID_SCA_NUM);
- scaNum_len = strlen(scaNum);
- scaNum[scaNum_len] = '\0';
- pSCA->DialNumLen = -1;
- pSCA->Ton = SIM_TON_NATIONAL;
- pSCA->Npi = TAPI_SIM_NPI_ISDN_TEL;
- memcpy(pSCA->szDiallingNum,scaNum,scaNum_len);
- * @endcode
- * @param [out] pRequestId = NULL
- * @return TAPI_API_INVALID_PTR
- */
-void utc_tel_set_sms_sca_04()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       //int  pRequestId = -1;
-       char scaNum[TAPI_NETTEXT_SCADDRESS_LEN_MAX];
-       int scaNum_len = 0;
-       int Index = 0;
-
-       sprintf(scaNum, "%s", VALID_SCA_NUM);
-       scaNum_len = strlen(scaNum); //shlee, temporary divide the length by 2
-       scaNum[scaNum_len] = '\0';
-
-       pSCA->DialNumLen = scaNum_len;
-       pSCA->Ton = SIM_TON_NATIONAL;
-       pSCA->Npi = TAPI_SIM_NPI_ISDN_TEL;
-
-       memcpy(pSCA->szDiallingNum, scaNum, scaNum_len);
-
-       /* Calling TAPI SMS SET SCA API */
-       returnStatus = tel_set_sms_sca(pSCA, Index, NULL);
-       printf("The return value is %d\n", returnStatus);
-       //printf ("The pRequestId value is %d\n",pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("utc_tel_set_sms_sca_04 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_sca() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SET_SERV_CENTER_ADDR_05()
- * @param [in] pSCA  = NULL
- * @param [in] Index = 0
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_PTR
- */
-void utc_tel_set_sms_sca_05()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int pRequestId = -1;
-
-       int Index = 0;
-       /* Calling TAPI SMS SET SCA API */
-       returnStatus = tel_set_sms_sca(NULL, Index, &pRequestId);
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("utc_tel_set_sms_sca_05 pass\n");
-
-       return;
-}
-
-/**
- * @brief This tests tel_set_sms_sca() API in abnormal conditions
- * @par ID:
- * UTC_TEL_SET_SERV_CENTER_ADDR_06()
- * @param [in] pSCA  = NULL
- * @param [in] Index = 0
- * @param [out] pRequestId = NULL
- * @return TAPI_API_INVALID_PTR
- */
-
-void utc_tel_set_sms_sca_06()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int Index = 0;
-       /* Calling TAPI SMS SET SCA API */
-       returnStatus = tel_set_sms_sca(NULL, Index, NULL);
-       printf("The return value is %d\n", returnStatus);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("utc_tel_set_sms_sca_06 pass\n");
-
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sms/unit/uts_tel_set_sms_sca.h b/TC/telephony_TC/sms/unit/uts_tel_set_sms_sca.h
deleted file mode 100644 (file)
index 1519e84..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef _UTS_SET_SERV_ADDR_H_
-#define _UTS_SET_SERV_ADDR_H_
-
-#define INVALID_SCA_ADDR "919910010000"
-
-static void utc_tel_set_sms_sca_01();
-
-static void utc_tel_set_sms_sca_02();
-
-static void utc_tel_set_sms_sca_03();
-
-static void utc_tel_set_sms_sca_04();
-
-static void utc_tel_set_sms_sca_05();
-
-static void utc_tel_set_sms_sca_06();
-
-
-#endif
diff --git a/TC/telephony_TC/sms/unit/uts_tel_write_sms_in_sim.c b/TC/telephony_TC/sms/unit/uts_tel_write_sms_in_sim.c
deleted file mode 100644 (file)
index 933ae53..0000000
+++ /dev/null
@@ -1,360 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <errno.h>
-#include "string.h"
-#include <malloc.h>
-
-#include <sys/types.h>
-#include <signal.h>
-
-#include <pthread.h>
-#include "assert.h"
-#include "glib.h"
-#include <ITapiNetText.h>
-#include <tet_api.h>
-#include "tet_macro.h"
-
-
-#include "TapiCommon.h"
-#include <gconf/gconf-client.h>
-
-#include "sms_callback_util.h"
-#include "uts_tel_write_sms_in_sim.h"
-
-
-
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_write_sms_in_sim_01, 1},
-       {utc_tel_write_sms_in_sim_02, 2},
-       {utc_tel_write_sms_in_sim_03, 3},
-       {utc_tel_write_sms_in_sim_04, 4},
-       {utc_tel_write_sms_in_sim_05, 5},
-       {utc_tel_write_sms_in_sim_06, 6},
-       {utc_tel_write_sms_in_sim_07, 7},
-       {NULL, 0}
-};
-
-static TapiResult_t gStartupSuccess;
-unsigned int subscription_id;
-
-void alarm_received(int sgi)
-{
-       gAsyncResult = FALSE;
-       printf("Signal [SIGALARM] Received. Close g_main_loop()");
-       G_MAIN_LOOP_CLOSE();
-}
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-
-       gStartupSuccess = tel_init();
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("tel_init() Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-       gStartupSuccess = tel_register_event(TAPI_EVENT_NETTEXT_SAVE_STATUS_CNF, &subscription_id, tapi_sms_callback, NULL);
-
-       if (gStartupSuccess != TAPI_API_SUCCESS) {
-               printf("TapiCommonRegisterEvent Failed gStartupSuccess = %d \n", gStartupSuccess);
-       }
-       else {
-               tel_register_app_name("org.samsung.test");
-               if (tel_get_app_name(&dname))
-                       printf("Dbus Get app name error\n");
-               else
-                       printf("Dbus Name is %s\n", dname.name);
-
-               tel_check_service_ready(&bStatus);
-               printf("Telephony service  %d\n", bStatus);
-
-               printf("TapiCommonRegisterEvent subscription_id1 is %d gStartupSuccess is %d\n", subscription_id, gStartupSuccess);
-       }
-}
-
-static void cleanup()
-{
-
-       if (gStartupSuccess == TAPI_API_SUCCESS)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-       return;
-}
-
-
-
-/**
- * @brief This tests tel_write_sms_in_sim() API in normal conditions
- * @par ID:
- * UTC_TEL_WRITE_SMS_01
- * @param [in] MsgStatus    = TAPI_NETTEXT_STATUS_READ
- * @param [in] pDataPackage
- * @code
- pDataPackage->SimIndex = 0;
- pDataPackage->MsgLength = pdu_len;
- memcpy(pDataPackage->szData, pPDU, pDataPackage->MsgLength);
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_SUCCESS
- */
-void utc_tel_write_sms_in_sim_01()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int pRequestId = -1;
-       char *scaNum = "8210911111";
-       char *pPDU = "This is a Test SMS";
-       int pdu_len = strlen(pPDU);
-       TelSmsData_t WriteData;
-
-       memset(&WriteData, 0, sizeof(TelSmsData_t));
-       memcpy(WriteData.SmsData.Sca, scaNum, strlen(scaNum));
-       WriteData.SmsData.MsgLength = pdu_len;
-       memcpy(WriteData.SmsData.szData, pPDU, pdu_len);
-       WriteData.MsgStatus = TAPI_NETTEXT_STATUS_READ;
-
-       returnStatus = tel_write_sms_in_sim(&WriteData, &pRequestId);
-
-       gmain_loop_for_events(5000);
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-       if (returnStatus == TAPI_API_SUCCESS)
-               printf("utc_tel_write_sms_in_sim_01 pass\n");
-       return;
-}
-
-/**
- * @brief This tests tel_write_sms_in_sim() API in abnormal conditions
- * @par ID:
- * UTC_TEL_WRITE_SMS_02
- * @param [in] MsgStatus   = TAPI_NETTEXT_STATUS_READ - 1
- * @param [in] pDataPackage
- * @code
- pDataPackage->SimIndex = 2;
- pDataPackage->MsgLength = pdu_len;
- memcpy(pDataPackage->szData, pPDU, pDataPackage->MsgLength);
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_write_sms_in_sim_02()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int pRequestId = -1;
-       char *scaNum = "8210911111";
-       char *pPDU = "This is a Test SMS";
-       int pdu_len = strlen(pPDU);
-
-       TelSmsData_t WriteData;
-
-       memset(&WriteData, 0, sizeof(TelSmsData_t));
-       memcpy(WriteData.SmsData.Sca, scaNum, strlen(scaNum));
-       WriteData.SmsData.MsgLength = pdu_len;
-       memcpy(WriteData.SmsData.szData, pPDU, pdu_len);
-       WriteData.MsgStatus = TAPI_NETTEXT_STATUS_READ - 1;
-
-       returnStatus = tel_write_sms_in_sim(&WriteData, &pRequestId);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);
-       if (returnStatus == TAPI_API_INVALID_INPUT)
-               printf("utc_tel_write_sms_in_sim_02 pass\n");
-       return;
-}
-
-/**
- * @brief This tests tel_write_sms_in_sim() API in abnormal conditions
- * @par ID:
- * UTC_TEL_WRITE_SMS_03
- * @param [in] MsgStatus   = TAPI_NETTEXT_STATUS_RESERVED + 1
- * @param [in] pDataPackage
- * @code
- pDataPackage->SimIndex = 0;
- pDataPackage->MsgLength = pdu_len;
- memcpy(pDataPackage->szData, pPDU, pDataPackage->MsgLength);
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_write_sms_in_sim_03()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int pRequestId = -1;
-       char *scaNum = "8210911111";
-       char *pPDU = "This is a Test SMS";
-       int pdu_len = strlen(pPDU);
-
-       TelSmsData_t WriteData;
-
-       memset(&WriteData, 0, sizeof(TelSmsData_t));
-       memcpy(WriteData.SmsData.Sca, scaNum, strlen(scaNum));
-       WriteData.SmsData.MsgLength = pdu_len;
-       memcpy(WriteData.SmsData.szData, pPDU, pdu_len);
-       WriteData.MsgStatus = TAPI_NETTEXT_STATUS_RESERVED + 1;
-
-       returnStatus = tel_write_sms_in_sim(&WriteData, &pRequestId);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);
-       if (returnStatus == TAPI_API_INVALID_INPUT)
-               printf("utc_tel_write_sms_in_sim_03 pass\n");
-       return;
-}
-
-/**
- * @brief This tests tel_write_sms_in_sim() API in normal conditions
- * @par ID:
- * UTC_TEL_WRITE_SMS_04
- * @param [in] MsgStatus   = TAPI_NETTEXT_STATUS_SENT
- * @param [in] pDataPackage
- * @code
- pDataPackage->SimIndex = 1;
- pDataPackage->MsgLength = pdu_len;
- memcpy(pDataPackage->szData, pPDU, pDataPackage->MsgLength);
- memcpy(pDataPackage->pSCA, pSCA, strlen(pSCA));
- * @endcode
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_INPUT
- */
-void utc_tel_write_sms_in_sim_04()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int pRequestId = -1;
-
-       char *scaNum = "8210911111";
-       char *pPDU = "This is a Test SMS";
-       int pdu_len = strlen(pPDU);
-
-       TelSmsData_t WriteData;
-
-       memset(&WriteData, 0, sizeof(TelSmsData_t));
-       memcpy(WriteData.SmsData.Sca, scaNum, strlen(scaNum));
-       WriteData.SmsData.MsgLength = pdu_len;
-       memcpy(WriteData.SmsData.szData, pPDU, pdu_len);
-       WriteData.MsgStatus = TAPI_NETTEXT_STATUS_SENT;
-
-       returnStatus = tel_write_sms_in_sim(&WriteData, &pRequestId);
-       gmain_loop_for_events(5000);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);
-       if (returnStatus == TAPI_API_SUCCESS)
-               printf("utc_tel_write_sms_in_sim_04 pass\n");
-       return;
-}
-
-/**
- * @brief This tests tel_write_sms_in_sim() API in abnormal conditions
- * @par ID:
- * UTC_TEL_WRITE_SMS_05
- * @param [in] MsgStatus    = TAPI_NETTEXT_STATUS_READ
- * @param [in] pDataPackage = NULL
- * @param [out] pRequestId
- * @return TAPI_API_INVALID_PTR
- */
-void utc_tel_write_sms_in_sim_05()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       int pRequestId = -1;
-
-       returnStatus = tel_write_sms_in_sim(NULL, &pRequestId);
-
-       printf("The return value is %d\n", returnStatus);
-       printf("The pRequestId value is %d\n", pRequestId);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("utc_tel_write_sms_in_sim_05 pass\n");
-       return;
-}
-
-/**
- * @brief This tests tel_write_sms_in_sim() API in abnormal conditions
- * @par ID:
- * UTC_TEL_WRITE_SMS_06
- * @param [in] MsgStatus   = TAPI_NETTEXT_STATUS_READ
- * @param [in] pDataPackage
- * @param [out] pRequestId = NULL
- * @return TAPI_API_INVALID_PTR
- */
-void utc_tel_write_sms_in_sim_06()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-       char *scaNum = "8210911111";
-       char *pPDU = "This is a Test SMS";
-       int pdu_len = strlen(pPDU);
-
-       TelSmsData_t WriteData;
-
-       memset(&WriteData, 0, sizeof(TelSmsData_t));
-       memcpy(WriteData.SmsData.Sca, scaNum, strlen(scaNum));
-       WriteData.SmsData.MsgLength = pdu_len;
-       memcpy(WriteData.SmsData.szData, pPDU, pdu_len);
-       WriteData.MsgStatus = TAPI_NETTEXT_STATUS_SENT;
-
-       returnStatus = tel_write_sms_in_sim(&WriteData, NULL);
-
-       printf("The return value is %d\n", returnStatus);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("utc_tel_write_sms_in_sim_06 pass\n");
-       return;
-}
-
-/**
- * @brief This tests tel_write_sms_in_sim() API in abnormal conditions
- * @par ID:
- * UTC_TEL_WRITE_SMS_07
- * @param [in] MsgStatus    = TAPI_NETTEXT_STATUS_READ
- * @param [in] pDataPackage = NULL
- * @param [out] pRequestId  = NULL
- * @return TAPI_API_INVALID_PTR
- */
-void utc_tel_write_sms_in_sim_07()
-{
-       TapiResult_t returnStatus = TAPI_API_SUCCESS;
-
-       returnStatus = tel_write_sms_in_sim(NULL, NULL);
-
-       printf("The return value is %d\n", returnStatus);
-
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);
-       if (returnStatus == TAPI_API_INVALID_PTR)
-               printf("utc_tel_write_sms_in_sim_07 pass\n");
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/sms/unit/uts_tel_write_sms_in_sim.h b/TC/telephony_TC/sms/unit/uts_tel_write_sms_in_sim.h
deleted file mode 100644 (file)
index 716edff..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef _UTS_WRITE_SMS_IN_SIM_H_
-#define _UTS_WRITE_SMS_IN_SIM_H_
-
-static void utc_tel_write_sms_in_sim_01();
-
-static void utc_tel_write_sms_in_sim_02();
-
-static void utc_tel_write_sms_in_sim_03();
-
-static void utc_tel_write_sms_in_sim_04();
-
-static void utc_tel_write_sms_in_sim_05();
-
-static void utc_tel_write_sms_in_sim_06();
-
-static void utc_tel_write_sms_in_sim_07();
-
-#endif
diff --git a/TC/telephony_TC/sound/unit/async_util.c b/TC/telephony_TC/sound/unit/async_util.c
deleted file mode 100644 (file)
index 0b5bdbc..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include "sound_callback_util.h"
-#include "async_util.h"
-
-static void G_MAIN_TIMER_HANDLER(int sgi);
-
-// Global variable for G_MAIN system
-static int gEventHandle=0;
-static GMainLoop * context_loop = NULL;
-static EvtAlarmCb gpAlarm_Handler = NULL;
-static unsigned int gSubscription_id;
-
-void G_MAIN_LOOP_CLOSE()
-{
-    g_main_loop_quit(context_loop);
-}
-
-void G_MAIN_TIMER_HANDLER(int sgi)
-{
-    if (gpAlarm_Handler)
-       gpAlarm_Handler(sgi);
-    else
-    {
-       fprintf(stderr, "SIGALRM received. But user handler not registered. Close g_main_loop()");
-       G_MAIN_LOOP_CLOSE();
-    }
-}
-
-void G_MAIN_LOOP_RUN(int sec)
-{
-    (void) signal(SIGALRM, G_MAIN_TIMER_HANDLER);
-    alarm(sec);
-    context_loop = g_main_loop_new(NULL, FALSE);
-    g_main_loop_run(context_loop);
-    alarm(0);
-}
diff --git a/TC/telephony_TC/sound/unit/async_util.h b/TC/telephony_TC/sound/unit/async_util.h
deleted file mode 100644 (file)
index d60d2d5..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef _ASYNC_UTIL_H_
-#define _ASYNC_UTIL_H_
-
-#include <TelCall.h>
-
-typedef void (*EvtAlarmCb) (int sgi);
-TS_BOOL gAsyncResult;
-void G_MAIN_LOOP_RUN(int sec);
-void G_MAIN_LOOP_CLOSE();
-
-#endif //_ASYNC_UTIL_H_
diff --git a/TC/telephony_TC/sound/unit/makefile b/TC/telephony_TC/sound/unit/makefile
deleted file mode 100644 (file)
index 170109a..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-CC=gcc -Wall
-
-TS1  =  uts_tel_get_sound_volume_info
-TS2  =  uts_tel_set_sound_volume_info
-TS3  =  uts_tel_set_sound_path
-TS4  =  uts_tel_set_sound_mute_status
-TS5  =  uts_tel_get_sound_mute_status
-#TS6  =  uts_tel_control_sound_voice_recording
-#TS7  =  uts_tel_set_sound_loopback
-#TS8  =  uts_tel_set_sound_clock
-
-LIBS  = `pkg-config --libs  glib-2.0 gconf-2.0 dbus-1 dbus-glib-1 gthread-2.0 tapi`
-LIBS +=$(TET_ROOT)/lib/tet3/tcm.o
-LIBS +=-L$(TET_ROOT)/lib/tet3 -lapi
-       
-INCS  =  -I. `pkg-config --cflags  glib-2.0 gconf-2.0 dbus-1 dbus-glib-1 gthread-2.0 tapi`
-INCS  += -I$(TET_ROOT)/inc/tet3 
-
-CFLAGS += $(INCS) -D__arm__ -D_ARM_TOUCH -DTELEPHONY_TIMER 
-CC +=$(CFLAGS)
-LDFLAGS = $(LIBS)
-
-#ifeq ($(ARCH),target)
-#CC += -g -mabi=aapcs-linux
-#endif
-
-all : $(TS1) $(TS2) $(TS3) $(TS4) $(TS5)
-
-clean :
-       rm -rf *~ *.o tet_lock tet_captured $(TS1)  $(TS2) $(TS3) $(TS4) $(TS5)
-
-$(TS1): $(TS1).c
-       $(CC) -o $(TS1) $(TS1).c sound_callback_util.c  $(LDFLAGS)
-$(TS2): $(TS2).c
-       $(CC) -o $(TS2) $(TS2).c sound_callback_util.c  $(LDFLAGS)
-$(TS3): $(TS3).c
-       $(CC) -o $(TS3) $(TS3).c sound_callback_util.c  $(LDFLAGS)
-$(TS4): $(TS4).c
-       $(CC) -o $(TS4) $(TS4).c sound_callback_util.c  $(LDFLAGS)
-$(TS5): $(TS5).c
-       $(CC) -o $(TS5) $(TS5).c sound_callback_util.c  $(LDFLAGS)
diff --git a/TC/telephony_TC/sound/unit/sound_callback_util.c b/TC/telephony_TC/sound/unit/sound_callback_util.c
deleted file mode 100644 (file)
index a661b71..0000000
+++ /dev/null
@@ -1,145 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "sound_callback_util.h"
-
-static unsigned int subscription_id[7];
-GMainLoop *main_loop = NULL;
-
-int  app_sound_callback (const TelTapiEvent_t * TapiEvent)
-{
-
-       int     eventClass;
-       int     eventType;
-       int                             requestId;
-       int                             status;
-       void                    *EventData = NULL;
-
-       eventClass = TapiEvent->EventClass;
-       eventType = TapiEvent->EventType;
-       requestId = TapiEvent->RequestId;
-       status = TapiEvent->Status;
-       EventData = TapiEvent->pData;
-
-       printf("\nClass:[%d], Event Type:[%d], RequestId:[%d], Status:[%d] \n", eventClass, eventType , requestId, status );
-
-       if( EventData==NULL)
-       {\r
-               printf("\n******  EventData is NULL.........   ******\n");\r
-       }\r
-\r
-       switch(eventClass)\r
-       {\r
-                       case TAPI_EVENT_CLASS_SOUND:\r
-                               switch(eventType)\r
-                               {\r
-                                       case TAPI_EVENT_SOUND_VOLUMECTRL_RSP :\r
-                                               printf("***  TAPI_EVENT_SOUND_VOLUMECTRL_RSP received : %x ****\n", eventType);\r
-                                               break;\r
-\r
-                                       //case TAPI_EVENT_SOUND_MICGAINCTRL_RSP:\r
-                                       //      printf("*** TAPI_EVENT_SOUND_MICGAINCTRL_RSP received  : %x ****\n", eventType);\r
-                                       //      break;\r
-\r
-                                       case TAPI_EVENT_SOUND_MICMUTECTRL_RSP:\r
-                                               printf("***  TAPI_EVENT_SOUND_MICMUTECTRL_RSP received : %x ****\n", eventType);\r
-                                               break;\r
-\r
-                                       case TAPI_EVENT_SOUND_AUDIOPATHCTRL_NOTI:\r
-                                               printf("***  TAPI_EVENT_SOUND_AUDIOPATHCTRL_NOTI received : %x ****\n", eventType);\r
-                                               break;\r
-\r
-                                       case TAPI_EVENT_SOUND_AUDIOSOURCECTRL_NOTI:\r
-                                               printf("***  TAPI_EVENT_SOUND_AUDIOSOURCECTRL_NOTI received : %x ****\n", eventType);\r
-                                               break;\r
-\r
-                                       case TAPI_EVENT_SOUND_ERROR_IND:\r
-                                               printf("***  TAPI_EVENT_SOUND_ERROR_IND received : %x ****\n", eventType);\r
-                                               break;\r
-                                       //case TAPI_EVENT_SOUND_USRCONFIGURATIONCTRL_RSP:\r
-                                       //      printf("***  TAPI_EVENT_SOUND_USRCONFIGURATIONCTRL_RSP received : %x ****\n", eventType);\r
-                                       //      break;\r
-                                       default:\r
-                                               printf("***  Default Event  %x ****\n", eventType);\r
-                                               break;\r
-\r
-                               }\r
-\r
-                               break;\r
-\r
-                       default:\r
-                               printf("*** Other TAPI EVENT received : class : %x ****\n", eventClass);\r
-                               break;\r
-       }
-       return 0;
-}
-
-gboolean TimeOutFun (void *data)\r
-{
-       g_main_loop_quit (main_loop);
-       printf ("Exit from this callback\n");
-       return FALSE;
-}
-
-int gmain_loop_for_tapi_events(int delay)
-{
-       main_loop = g_main_loop_new (NULL, FALSE);
-       g_timeout_add (delay, TimeOutFun, NULL);
-       g_main_loop_run (main_loop);
-
-       return 0;
-}
-
-void print_all_subsciption_ids()
-{
-       int i=0;
-       for(i=0;i<7;i++)
-       {
-               printf("\n subscription_id[%d] has value %d \n",i,subscription_id[i]);
-       }
-}
-\r
-TapiResult_t register_all_events()
-{
-       TapiResult_t api_err = TAPI_API_SUCCESS;
-
-       api_err = tel_register_event(TAPI_EVENT_SOUND_VOLUMECTRL_RSP, &subscription_id[0], (TelAppCallback)&app_sound_callback,NULL);
-
-       //api_err = tel_register_event(TAPI_EVENT_SOUND_USRCONFIGURATIONCTRL_RSP, &subscription_id[1], (TelAppCallback)&app_sound_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_SOUND_ERROR_IND, &subscription_id[2], (TelAppCallback)&app_sound_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_SOUND_AUDIOPATHCTRL_NOTI, &subscription_id[3],(TelAppCallback)&app_sound_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_SOUND_AUDIOSOURCECTRL_NOTI, &subscription_id[4],(TelAppCallback) &app_sound_callback,NULL);
-       api_err = tel_register_event(TAPI_EVENT_SOUND_MICMUTECTRL_RSP, &subscription_id[5],(TelAppCallback) &app_sound_callback,NULL);
-//     api_err = tel_register_event(TAPI_EVENT_SOUND_MICGAINCTRL_RSP, &subscription_id[6], (TelAppCallback)&app_sound_callback,NULL);\r
-       print_all_subsciption_ids();
-       return 0;
-}
-\r
-TapiResult_t deregister_all()\r
-{
-       tel_deregister_event(subscription_id[0]);
-       tel_deregister_event(subscription_id[1]);
-       tel_deregister_event(subscription_id[2]);
-       tel_deregister_event(subscription_id[3]);
-       tel_deregister_event(subscription_id[4]);
-       tel_deregister_event(subscription_id[5]);
-       tel_deregister_event(subscription_id[6]);
-       return 0;\r
-}\r
diff --git a/TC/telephony_TC/sound/unit/sound_callback_util.h b/TC/telephony_TC/sound/unit/sound_callback_util.h
deleted file mode 100644 (file)
index 7d3f781..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#ifndef _SOUND_CALLBACK_UTIL_H_\r
-#define _SOUND_CALLBACK_UTIL_H_\r
-\r
-\r
-#include <stdlib.h>\r
-#include <signal.h>\r
-#include <errno.h>\r
-#include "string.h"\r
-#include "assert.h"\r
-#include <sys/types.h>\r
-#include <sys/stat.h>\r
-#include <fcntl.h>\r
-#include <unistd.h>\r
-#include <glib.h>\r
-#include <pthread.h>\r
-#include <stdio.h>\r
-\r
-#include <ITapiSound.h>\r
-#include <tet_api.h>\r
-#include "tet_macro.h"\r
-#include <gconf/gconf-client.h>\r
-#include <ITapiCall.h>\r
-#include <TapiCommon.h>\r
-#include <TelErr.h>\r
-\r
-\r
-#define TIME_DELAY 5000\r
-\r
-extern int app_sound_callback (const TelTapiEvent_t * TapiEvent);\r
-\r
-extern TapiResult_t register_all_events();\r
-extern  TapiResult_t deregister_all();\r
-void print_all_subsciption_ids();\r
-extern int gmain_loop_for_tapi_events(int delay);\r
-extern gboolean TimeOutFun (void *data);\r
-\r
-#endif //_SOUND_CALLBACK_UTIL_H_
diff --git a/TC/telephony_TC/sound/unit/tet_macro.h b/TC/telephony_TC/sound/unit/tet_macro.h
deleted file mode 100644 (file)
index 89744c0..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#ifndef TET_MACRO_H\r
-#define TET_MACRO_H\r
-\r
-#define TET_CHECK(x) if(x) tet_result(TET_PASS); else tet_result(TET_FAIL)\r
-#define TET_CHECK_EQUAL(x,y) if ((x)==(y)) tet_result(TET_PASS);  else tet_result(TET_FAIL)\r
-#define TET_CHECK_NOT_EQUAL(x,y) if ((x)!=(y)) tet_result(TET_PASS);  else tet_result(TET_FAIL)\r
-\r
-#define TET_CHECK_MESSAGE(x,y) if ((y)==(TRUE)) tet_result(TET_PASS); else {tet_result(TET_FAIL); tet_printf(x);}\r
-#define TET_CHECK_EQUAL_MESSAGE(x,y,z) if ((y)==(z)) tet_result(TET_PASS);  else {tet_result(TET_FAIL); tet_printf(x);}\r
-#define TET_CHECK_NOT_EQUAL_MESSAGE(x,y,z) if ((y)!=(z)) tet_result(TET_PASS);  else {tet_result(TET_FAIL); tet_printf(x);}\r
-\r
-#endif\r
-\r
diff --git a/TC/telephony_TC/sound/unit/tslist b/TC/telephony_TC/sound/unit/tslist
deleted file mode 100644 (file)
index c129d13..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-/sound/unit/uts_tel_get_sound_mute_status
-/sound/unit/uts_tel_set_sound_mute_status
-/sound/unit/uts_tel_set_sound_path
-/sound/unit/uts_tel_get_sound_volume_info
-/sound/unit/uts_tel_set_sound_volume_info
diff --git a/TC/telephony_TC/sound/unit/uts_tel_control_sound_voice_recording.c b/TC/telephony_TC/sound/unit/uts_tel_control_sound_voice_recording.c
deleted file mode 100644 (file)
index 8a23dda..0000000
+++ /dev/null
@@ -1,268 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-/**\r
-* @ingroup     TELEPHONY_FRAMEWORK_API\r
-* @addtogroup  MMS\r
-*/\r
-\r
-/**\r
-* @ingroup     SOUND\r
-* @addtogroup  UTS_TEL_CONTROL_SOUND_VOICE_RECORDING Unit\r
-*/\r
-\r
-/**\r
-* @ingroup     UTS_TEL_CONTROL_SOUND_VOICE_RECORDING Unit\r
-* @addtogroup  UTS_TEL_CONTROL_SOUND_VOICE_RECORDING_ Uts_Tel_Control_Sound_Voice_Recording\r
-* @{\r
-*/\r
-\r
-/**\r
-* @file uts_tel_control_sound_voice_recording.c\r
-* @brief This is a suit of unit test cases to test tel_control_sound_voice_recording() API function\r
-* @author Gautam Nand Sinha (gnand.sinha@samsung.com)\r
-* @version Initial Creation Version 0.1\r
-* @date 2008.09.08\r
-*/\r
-\r
-#include "uts_tel_control_sound_voice_recording.h"\r
-\r
-\r
-static void startup();\r
-static void cleanup();\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-\r
-\r
-static TapiResult_t gStartupSuccess;\r
-\r
-/* Startup & Clean function : It is not test code, only for\r
-   initialize and finalize test module */\r
-\r
-static void startup()\r
-{\r
-       tapi_dbus_connection_name dname;\r
-       int bStatus;\r
-\r
-       gStartupSuccess =  tel_init();\r
-       if(gStartupSuccess != TAPI_API_SUCCESS)\r
-       {\r
-               printf("tel_init() Failed gStartupSuccess = %d \n",gStartupSuccess);\r
-       }\r
-       \r
-       register_all_events();\r
-       tel_register_app_name("org.samsung.test");\r
-       if(tel_get_app_name(&dname))\r
-               printf("Dbus Get app name error\n");\r
-       else \r
-               printf("Dbus Name is %s\n",dname.name);\r
-               \r
-       tel_check_service_ready(&bStatus);\r
-       printf("Telephpny service  %d\n",bStatus);\r
-\r
-}\r
-\r
-static void cleanup()\r
-{\r
-       deregister_all();\r
-       tel_deinit();\r
-       return;\r
-\r
-}\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tel_control_sound_voice_recording_000, 1},\r
-       {utc_tel_control_sound_voice_recording_001, 2},\r
-       {utc_tel_control_sound_voice_recording_002, 3},\r
-       {utc_tel_control_sound_voice_recording_003, 4},\r
-       {NULL, 0}\r
-};\r
-\r
-\r
-\r
-\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  utc_tel_control_sound_voice_recording_000\r
- * @param [in]  mic_mute\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  snd_mask\r
- * @param [out]  snd_value\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-\r
-\r
-void utc_tel_control_sound_voice_recording_000()\r
-{\r
-\r
-\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       returnStatus = tel_control_sound_voice_recording(TAPI_SOUND_VOICE_RECORDING_OFF,&pRequestId);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-        {\r
-        tet_infoline("utc_tel_control_sound_voice_recording_000 pass\n");\r
-         tet_result(TET_PASS);\r
-         }\r
-          else\r
-          {\r
-           tet_infoline("utc_tel_control_sound_voice_recording_000 has failed\n");\r
-           tet_result(TET_FAIL);\r
-           }\r
-\r
-\r
-\r
-}\r
-\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  utc_tel_control_sound_voice_recording_001\r
- * @param [in]  mic_mute\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  snd_mask\r
- * @param [out]  snd_value\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-\r
-\r
-void utc_tel_control_sound_voice_recording_001()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       returnStatus = tel_control_sound_voice_recording(TAPI_SOUND_VOICE_RECORDING_ON,&pRequestId);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-        {\r
-        tet_infoline("utc_tel_control_sound_voice_recording_001 pass\n");\r
-         tet_result(TET_PASS);\r
-         }\r
-          else\r
-          {\r
-           tet_infoline("utc_tel_control_sound_voice_recording_001 has failed\n");\r
-           tet_result(TET_FAIL);\r
-           }\r
-\r
-\r
-}\r
-\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  utc_tel_control_sound_voice_recording_002\r
- * @param [in]  mic_mute\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  snd_mask\r
- * @param [out]  snd_value\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-\r
-\r
-void utc_tel_control_sound_voice_recording_002()\r
-{\r
-\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       returnStatus = tel_control_sound_voice_recording(TAPI_SOUND_VOICE_RECORDING_ON + 1,&pRequestId);\r
-\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       if(returnStatus == TAPI_API_INVALID_INPUT)\r
-        {\r
-        tet_infoline("utc_tel_control_sound_voice_recording_002 pass\n");\r
-         tet_result(TET_PASS);\r
-         }\r
-          else\r
-          {\r
-           tet_infoline("utc_tel_control_sound_voice_recording_002 has failed\n");\r
-           tet_result(TET_FAIL);\r
-           }\r
-\r
-\r
-}\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  utc_tel_control_sound_voice_recording_003\r
- * @param [in]  mic_mute\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  snd_mask\r
- * @param [out]  snd_value\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-\r
-\r
-void utc_tel_control_sound_voice_recording_003()\r
-{\r
-\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       returnStatus = tel_control_sound_voice_recording(TAPI_SOUND_VOICE_RECORDING_OFF - 1,&pRequestId);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       if(returnStatus == TAPI_API_INVALID_INPUT)\r
-        {\r
-        tet_infoline("utc_tel_control_sound_voice_recording_003 pass\n");\r
-         tet_result(TET_PASS);\r
-         }\r
-          else\r
-          {\r
-           tet_infoline("utc_tel_control_sound_voice_recording_003 has failed\n");\r
-           tet_result(TET_FAIL);\r
-           }\r
-\r
-}\r
-\r
-\r
-\r
-/** @} */\r
-\r
diff --git a/TC/telephony_TC/sound/unit/uts_tel_control_sound_voice_recording.h b/TC/telephony_TC/sound/unit/uts_tel_control_sound_voice_recording.h
deleted file mode 100644 (file)
index d24bb9c..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-/**\r
-* @ingroup     TELEPHONY_FRAMEWORK_API\r
-* @addtogroup  MMS\r
-*/\r
-\r
-/**\r
-* @ingroup     SOUND\r
-* @addtogroup  UTS_TEL_CONTROL_SOUND_VOICE_RECORDING Unit\r
-*/\r
-\r
-/**\r
-* @ingroup     UTS_TEL_CONTROL_SOUND_VOICE_RECORDING Unit\r
-* @addtogroup  UTS_TEL_CONTROL_SOUND_VOICE_RECORDING_ Uts_Tel_Control_Sound_Voice_Recording\r
-* @{\r
-*/\r
-\r
-/**\r
-* @file uts_tel_control_sound_voice_recording.c\r
-* @brief This is a suit of unit test cases to test tel_control_sound_voice_recording() API function\r
-* @author Gautam Nand Sinha (gnand.sinha@samsung.com)\r
-* @version Initial Creation Version 0.1\r
-* @date 2008.09.08\r
-*/\r
-\r
-#include "sound_callback_util.h"\r
-\r
-#ifndef  _UTC_TEL_CONTROL_SOUND_VOICE_RECORDING_\r
-#define  _UTC_TEL_CONTROL_SOUND_VOICE_RECORDING_\r
-\r
-\r
-\r
-void utc_tel_control_sound_voice_recording_000();\r
-\r
-\r
-\r
-void utc_tel_control_sound_voice_recording_001();\r
-\r
-\r
-\r
-void utc_tel_control_sound_voice_recording_002();\r
-\r
-\r
-\r
-void utc_tel_control_sound_voice_recording_003();\r
-\r
-\r
-\r
-#endif // _UTC_TEL_CONTROL_SOUND_VOICE_RECORDING_\r
-\r
diff --git a/TC/telephony_TC/sound/unit/uts_tel_get_sound_mute_status.c b/TC/telephony_TC/sound/unit/uts_tel_get_sound_mute_status.c
deleted file mode 100644 (file)
index 90f928a..0000000
+++ /dev/null
@@ -1,216 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
-* @ingroup     TELEPHONY_FRAMEWORK_API
-* @addtogroup  MMS
-*/
-
-/**
-* @ingroup     SOUND
-* @addtogroup  UTS_TEL_GET_SOUND_MUTE_STATUS Unit
-*/
-
-/**
-* @ingroup     UTS_TEL_GET_SOUND_MUTE_STATUS Unit
-* @addtogroup  UTS_TEL_GET_SOUND_MUTE_STATUS_ Uts_Tel_Get_Sound_Mute_Status
-* @{
-*/
-
-/**
-* @file uts_tel_get_sound_mute_status.c
-* @brief This is a suit of unit test cases to test tel_get_sound_mute_status() API function
-* @author Gautam Nand Sinha (gnand.sinha@samsung.com)
-* @version Initial Creation Version 0.1
-* @date 2008.09.08
-*/
-
-#include "uts_tel_get_sound_mute_status.h"
-
-
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-
-
-static TapiResult_t gStartupSuccess;
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module */
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-
-       gStartupSuccess =  tel_init();
-       if(gStartupSuccess != TAPI_API_SUCCESS)
-       {
-               printf("tel_init() Failed gStartupSuccess = %d \n",gStartupSuccess);
-       }
-               register_all_events();
-       tel_register_app_name("org.samsung.test");
-       if(tel_get_app_name(&dname))
-               printf("Dbus Get app name error\n");
-       else 
-               printf("Dbus Name is %s\n",dname.name);
-               
-       tel_check_service_ready(&bStatus);
-       printf("Telephony service  %d\n",bStatus);
-
-}
-
-static void cleanup()
-{
-       deregister_all();
-       tel_deinit();
-       return;
-
-}
-
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_sound_mute_status_000, 1},
-       {utc_tel_get_sound_mute_status_001, 2},
-       {utc_tel_get_sound_mute_status_002, 3},
-       {NULL, 0}
-};
-
-
-
-
-
-/**
- * @brief This tests
- * @par ID:
- *  utc_tel_get_sound_mute_status_000
- * @param [out]  pRequestId
- * @code
- * @endcode
- * @return TapiResult_t
-*/
-
-
-void utc_tel_get_sound_mute_status_000()
-{
-
-
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;
-       int pRequestId = -1;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-       tel_set_sound_mute_status(TAPI_SOUND_MIC_MUTE,&pRequestId);
-        returnStatus = tel_get_sound_mute_status(&pRequestId);
-       gmain_loop_for_tapi_events(TIME_DELAY);
-       tet_printf ("The return value is %d\n", returnStatus);
-       tet_printf ("The pRequestId value is %d\n",pRequestId);
-
-       
-       if(returnStatus == TAPI_API_SUCCESS)
-        {
-        tet_infoline("utc_tel_set_sound_mute_status_000 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_sound_mute_status_000 has failed\n");
-           tet_result(TET_FAIL);
-           }
-
-
-
-}
-
-
-/**
- * @brief This tests
- * @par ID:
- *  utc_tel_get_sound_mute_status_001
- * @param [out]  pRequestId
- * @code
- * @endcode
- * @return TapiResult_t
-*/
-
-
-
-void utc_tel_get_sound_mute_status_001()
-{
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;
-       int pRequestId = -1;
-       gmain_loop_for_tapi_events(TIME_DELAY);
-       tel_set_sound_mute_status(TAPI_SOUND_MIC_UNMUTE,&pRequestId);
-        returnStatus = tel_get_sound_mute_status(&pRequestId);
-       gmain_loop_for_tapi_events(TIME_DELAY);
-       tet_printf ("The return value is %d\n", returnStatus);
-       tet_printf ("The pRequestId value is %d\n",pRequestId);
-
-       if(returnStatus == TAPI_API_SUCCESS)
-        {
-        tet_infoline("utc_tel_set_sound_mute_status_001 pass\n");
-         tet_result(TET_PASS);
-         }
-          else
-          {
-           tet_infoline("utc_tel_set_sound_mute_status_001 has failed\n");
-           tet_result(TET_FAIL);
-           }
-
-
-}
-
-
-
-
-/**
- * @brief This tests
- * @par ID:
- *  utc_tel_get_sound_mute_status_002
- * @param [out]  pRequestId
- * @code
- * @endcode
- * @return TapiResult_t
-*/
-
-
-void utc_tel_get_sound_mute_status_002()
-{
-
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;
-        returnStatus = tel_get_sound_mute_status(NULL);
-       gmain_loop_for_tapi_events(TIME_DELAY);
-
-       tet_printf ("The return value is %d\n", returnStatus);
-
-       if(returnStatus == TAPI_API_INVALID_PTR)
-    {
-                tet_infoline("utc_tel_set_sound_mute_status_002 pass\n");
-         tet_result(TET_PASS);
-     }
-     else
-     {
-           tet_infoline("utc_tel_set_sound_mute_status_002 has failed\n");
-           tet_result(TET_FAIL);
-      }
-
-
-}
-
-/** @} */
-
diff --git a/TC/telephony_TC/sound/unit/uts_tel_get_sound_mute_status.h b/TC/telephony_TC/sound/unit/uts_tel_get_sound_mute_status.h
deleted file mode 100644 (file)
index 4f6364f..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-/**\r
-* @ingroup     TELEPHONY_FRAMEWORK_API\r
-* @addtogroup  MMS\r
-*/\r
-\r
-/**\r
-* @ingroup     SOUND\r
-* @addtogroup  UTS_TEL_GET_SOUND_MUTE_STATUS Unit\r
-*/\r
-\r
-/**\r
-* @ingroup     UTS_TEL_GET_SOUND_MUTE_STATUS Unit\r
-* @addtogroup  UTS_TEL_GET_SOUND_MUTE_STATUS_ Uts_Tel_Get_Sound_Mute_Status\r
-* @{\r
-*/\r
-\r
-/**\r
-* @file uts_tel_get_sound_mute_status.h\r
-* @brief This is a suit of unit test cases to test tel_get_sound_mute_status() API function\r
-* @author Gautam Nand Sinha (gnand.sinha@samsung.com)\r
-* @version Initial Creation Version 0.1\r
-* @date 2008.09.08\r
-*/\r
-#include "sound_callback_util.h"\r
-\r
-#ifndef  _UTC_TEL_GET_SOUND_MUTE_STATUS_\r
-#define  _UTC_TEL_GET_SOUND_MUTE_STATUS_\r
-\r
-\r
-\r
-void utc_tel_get_sound_mute_status_000();\r
-\r
-\r
-\r
-void utc_tel_get_sound_mute_status_001();\r
-\r
-\r
-\r
-void utc_tel_get_sound_mute_status_002();\r
-\r
-\r
-\r
-void utc_tel_get_sound_mute_status_003();
-
-void utc_tel_get_sound_mute_status_004();\r
-\r
-\r
-\r
-#endif // _UTC_TEL_GET_SOUND_MUTE_STATUS_\r
-\r
diff --git a/TC/telephony_TC/sound/unit/uts_tel_get_sound_volume_info.c b/TC/telephony_TC/sound/unit/uts_tel_get_sound_volume_info.c
deleted file mode 100644 (file)
index bc1128f..0000000
+++ /dev/null
@@ -1,278 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#include "uts_tel_get_sound_volume_info.h"\r
-\r
-static void startup();\r
-static void cleanup();\r
-\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-\r
-\r
-static TapiResult_t gStartupSuccess;\r
-\r
-/* Startup & Clean function : It is not test code, only for\r
-   initialize and finalize test module */\r
-\r
-static void startup()\r
-{\r
-       tapi_dbus_connection_name dname;\r
-       int bStatus;\r
-       \r
-       gStartupSuccess =  tel_init();\r
-       if(gStartupSuccess != TAPI_API_SUCCESS)\r
-       {\r
-               printf("tel_init() Failed gStartupSuccess = %d \n",gStartupSuccess);\r
-       }\r
-\r
-       register_all_events();\r
-       tel_register_app_name("org.samsung.test");\r
-       if(tel_get_app_name(&dname))\r
-               printf("Dbus Get app name error\n");\r
-       else \r
-               printf("Dbus Name is %s\n",dname.name);\r
-               \r
-       tel_check_service_ready(&bStatus);\r
-       printf("Telephony service  %d\n",bStatus);\r
-\r
-}\r
-\r
-static void cleanup()\r
-{\r
-       deregister_all();\r
-       tel_deinit();\r
-       return;\r
-\r
-}\r
-\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tel_get_sound_volume_info_000, 1},\r
-       {utc_tel_get_sound_volume_info_001, 2},\r
-       {utc_tel_get_sound_volume_info_002, 3},\r
-       {utc_tel_get_sound_volume_info_003, 4},\r
-       {utc_tel_get_sound_volume_info_004, 5},\r
-       {utc_tel_get_sound_volume_info_005, 6},\r
-       {utc_tel_get_sound_volume_info_006, 7},\r
-       {NULL, 0}\r
-};\r
-\r
-\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  UTC_TEL_GET_SOUND_VOLUME_INFO_000\r
- * @param [in]  vol_control_type\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vol_control_type\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-\r
-\r
-void utc_tel_get_sound_volume_info_000()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       returnStatus = tel_get_sound_volume_info(TAPI_SOUND_VOL_SPK_PHONE, &pRequestId);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);\r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-               printf("utc_tel_get_sound_volume_info_000 pass\n");\r
-}\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  UTC_TEL_GET_SOUND_VOLUME_INFO_001\r
- * @param [in]  vol_control_type\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vol_control_type\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-void utc_tel_get_sound_volume_info_001()\r
-{\r
-\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       returnStatus = tel_get_sound_volume_info(TAPI_SOUND_VOL_BT_VOICE, &pRequestId);\r
-\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);\r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-               printf("utc_tel_get_sound_volume_info_001 pass\n");\r
-\r
-}\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  UTC_TEL_GET_SOUND_VOLUME_INFO_002\r
- * @param [in]  vol_control_type\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vol_control_type\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-void utc_tel_get_sound_volume_info_002()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       returnStatus = tel_get_sound_volume_info(TAPI_SOUND_VOL_TYPE_ALL, &pRequestId);\r
-\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);\r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-               printf("utc_tel_get_sound_volume_info_002 pass\n");\r
-}\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  UTC_TEL_GET_SOUND_VOLUME_INFO_003\r
- * @param [in]  vol_control_type\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vol_control_type\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-\r
-\r
-void utc_tel_get_sound_volume_info_003()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       returnStatus = tel_get_sound_volume_info(TAPI_SOUND_VOL_VOICE - 1, &pRequestId);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);\r
-       if(returnStatus == TAPI_API_INVALID_INPUT)\r
-               printf("utc_tel_get_sound_volume_info_003 pass\n");\r
-}\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  UTC_TEL_GET_SOUND_VOLUME_INFO_004\r
- * @param [in]  vol_control_type\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vol_control_type\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-void utc_tel_get_sound_volume_info_004()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       returnStatus = tel_get_sound_volume_info(TAPI_SOUND_VOL_VOICE - 1, &pRequestId);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);\r
-       if(returnStatus == TAPI_API_INVALID_INPUT)\r
-               printf("utc_tel_get_sound_volume_info_004 pass\n");\r
-}\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  UTC_TEL_GET_SOUND_VOLUME_INFO_005\r
- * @param [in]  vol_control_type\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vol_control_type\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-void utc_tel_get_sound_volume_info_005()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       returnStatus = tel_get_sound_volume_info(TAPI_SOUND_VOL_TYPE_ALL + 1, &pRequestId);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);\r
-       if(returnStatus == TAPI_API_INVALID_INPUT)\r
-               printf("utc_tel_get_sound_volume_info_005 pass\n");\r
-}\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  UTC_TEL_GET_SOUND_VOLUME_INFO_006\r
- * @param [in]  vol_control_type\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vol_control_type\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-void utc_tel_get_sound_volume_info_006()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       returnStatus = tel_get_sound_volume_info(TAPI_SOUND_VOL_VOICE, NULL);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);\r
-       if(returnStatus == TAPI_API_INVALID_PTR)\r
-       printf("utc_tel_get_sound_volume_info_006 pass\n");\r
-}\r
-\r
-/** @} */\r
diff --git a/TC/telephony_TC/sound/unit/uts_tel_get_sound_volume_info.h b/TC/telephony_TC/sound/unit/uts_tel_get_sound_volume_info.h
deleted file mode 100644 (file)
index ccbfea7..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#include "sound_callback_util.h"\r
-\r
-#ifndef  _UTC_TAPI_GET_SOUND_VOLUME_INFO_\r
-#define  _UTC_TAPI_GET_SOUND_VOLUME_INFO_\r
-\r
-\r
-\r
-void utc_tel_get_sound_volume_info_000();\r
-\r
-\r
-\r
-void utc_tel_get_sound_volume_info_001();\r
-\r
-\r
-\r
-void utc_tel_get_sound_volume_info_002();\r
-\r
-\r
-\r
-void utc_tel_get_sound_volume_info_003();\r
-\r
-void utc_tel_get_sound_volume_info_004();\r
-\r
-void utc_tel_get_sound_volume_info_005();\r
-\r
-void utc_tel_get_sound_volume_info_006();\r
-\r
-\r
-#endif // _UTC_TAPI_GET_SOUND_VOLUME_INFO_\r
diff --git a/TC/telephony_TC/sound/unit/uts_tel_set_sound_clock.c b/TC/telephony_TC/sound/unit/uts_tel_set_sound_clock.c
deleted file mode 100644 (file)
index 0ea84f8..0000000
+++ /dev/null
@@ -1,238 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#include "uts_tel_set_sound_clock.h"\r
-\r
-\r
-static void startup();\r
-static void cleanup();\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-\r
-\r
-static TapiResult_t gStartupSuccess;\r
-\r
-/* Startup & Clean function : It is not test code, only for\r
-   initialize and finalize test module */\r
-\r
-static void startup()\r
-{\r
-       tapi_dbus_connection_name dname;\r
-       int bStatus;\r
-       \r
-       gStartupSuccess =  tel_init();\r
-       if(gStartupSuccess != TAPI_API_SUCCESS)\r
-       {\r
-               printf("tel_init() Failed gStartupSuccess = %d \n",gStartupSuccess);\r
-       }\r
-\r
-       register_all_events();\r
-       \r
-       tel_register_app_name("org.samsung.test");\r
-       if(tel_get_app_name(&dname))\r
-               printf("Dbus Get app name error\n");\r
-       else \r
-               printf("Dbus Name is %s\n",dname.name);\r
-               \r
-       tel_check_service_ready(&bStatus);\r
-       printf("Telephony service  %d\n",bStatus);\r
-\r
-}\r
-\r
-static void cleanup()\r
-{\r
-       deregister_all();\r
-       tel_deinit();\r
-       return;\r
-\r
-}\r
-\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tel_set_sound_clock_000, 1},\r
-       {utc_tel_set_sound_clock_001, 2},\r
-       {utc_tel_set_sound_clock_002, 3},\r
-       {utc_tel_set_sound_clock_003, 4},\r
-       {NULL, 0}\r
-};\r
-\r
-\r
-\r
-\r
-\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  UTC_TEL_SET_SOUND_CLOCK_000\r
- * @param [in]  vc_clock\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vc_clock\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-\r
-\r
-void utc_tel_set_sound_clock_000()\r
-{\r
-\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       returnStatus = tel_set_sound_clock(1, &pRequestId);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-\r
-       tet_printf ("The return value is %d\n", returnStatus);\r
-       tet_printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       \r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-        {\r
-         tet_printf("utc_tel_set_sound_clock_000 pass\n");\r
-          tet_result(TET_PASS);\r
-         }\r
-          else\r
-           {\r
-           tet_printf("utc_tel_set_sound_clock_000 has failed\n");\r
-            tet_result(TET_FAIL);\r
-           }\r
-          \r
-}\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  UTC_TEL_SET_SOUND_CLOCK_001\r
- * @param [in]  vc_clock\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vc_clock\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-\r
-\r
-void utc_tel_set_sound_clock_001()\r
-{\r
-\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       returnStatus = tel_set_sound_clock(0, &pRequestId);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-\r
-       tet_printf ("The return value is %d\n", returnStatus);\r
-       tet_printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       \r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-        {\r
-         tet_printf("utc_tel_set_sound_clock_000 pass\n");\r
-          tet_result(TET_PASS);\r
-         }\r
-          else\r
-           {\r
-           tet_printf("utc_tel_set_sound_clock_000 has failed\n");\r
-            tet_result(TET_FAIL);\r
-           }\r
-          \r
-}\r
-\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  UTC_TEL_SET_SOUND_CLOCK_002\r
- * @param [in]  vc_clock\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vc_clock\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-void utc_tel_set_sound_clock_002()\r
-{\r
-\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       returnStatus = tel_set_sound_clock(0, NULL);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-\r
-       tet_printf ("The return value is %d\n", returnStatus);\r
-       tet_printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       \r
-       if(returnStatus == TAPI_API_INVALID_PTR)\r
-        {\r
-         tet_printf("utc_tel_set_sound_clock_003 pass\n");\r
-          tet_result(TET_PASS);\r
-         }\r
-          else\r
-           {\r
-           tet_printf("utc_tel_set_sound_clock_003 has failed\n");\r
-            tet_result(TET_FAIL);\r
-           }\r
-          \r
-}\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  UTC_TEL_SET_SOUND_CLOCK_003\r
- * @param [in]  vc_clock\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vc_clock\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-void utc_tel_set_sound_clock_003()\r
-{\r
-\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       returnStatus = tel_set_sound_clock(1, NULL);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-\r
-       tet_printf ("The return value is %d\n", returnStatus);\r
-       tet_printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       \r
-       if(returnStatus == TAPI_API_INVALID_PTR)\r
-        {\r
-         tet_printf("utc_tel_set_sound_clock_003 pass\n");\r
-          tet_result(TET_PASS);\r
-         }\r
-          else\r
-           {\r
-           tet_printf("utc_tel_set_sound_clock_003 has failed\n");\r
-            tet_result(TET_FAIL);\r
-           }\r
-          \r
-}\r
-\r
-\r
-/** @} */\r
diff --git a/TC/telephony_TC/sound/unit/uts_tel_set_sound_clock.h b/TC/telephony_TC/sound/unit/uts_tel_set_sound_clock.h
deleted file mode 100644 (file)
index eee8c6b..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#include "sound_callback_util.h"\r
-\r
-#ifndef  _UTC_TEL_SET_SOUND_CLOCK_\r
-#define  _UTC_TEL_SET_SOUND_CLOCK_\r
-\r
-\r
-\r
-void utc_tel_set_sound_clock_000();\r
-\r
-\r
-\r
-void utc_tel_set_sound_clock_001();\r
-\r
-\r
-\r
-void utc_tel_set_sound_clock_002();\r
-\r
-\r
-\r
-void utc_tel_set_sound_clock_003();\r
-\r
-void utc_tel_set_sound_clock_004();\r
-\r
-void utc_tel_set_sound_clock_005();
-
-void utc_tel_set_sound_clock_006();\r
-\r
-\r
-#endif // _UTC_TEL_SET_SOUND_CLOCK_\r
diff --git a/TC/telephony_TC/sound/unit/uts_tel_set_sound_loopback.c b/TC/telephony_TC/sound/unit/uts_tel_set_sound_loopback.c
deleted file mode 100644 (file)
index aa3db5b..0000000
+++ /dev/null
@@ -1,359 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#include "uts_tel_set_sound_loopback.h"\r
-\r
-\r
-static void startup();\r
-static void cleanup();\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-\r
-\r
-static TapiResult_t gStartupSuccess;\r
-\r
-/* Startup & Clean function : It is not test code, only for\r
-   initialize and finalize test module */\r
-\r
-static void startup()\r
-{\r
-       tapi_dbus_connection_name dname;\r
-       int bStatus;\r
-       \r
-       gStartupSuccess =  tel_init();\r
-       if(gStartupSuccess != TAPI_API_SUCCESS)\r
-       {\r
-               printf("tel_init() Failed gStartupSuccess = %d \n",gStartupSuccess);\r
-       }\r
-\r
-       register_all_events();\r
-       \r
-       tel_register_app_name("org.samsung.test");\r
-       if(tel_get_app_name(&dname))\r
-               printf("Dbus Get app name error\n");\r
-       else \r
-               printf("Dbus Name is %s\n",dname.name);\r
-               \r
-       tel_check_service_ready(&bStatus);\r
-       printf("Telephony service  %d\n",bStatus);\r
-\r
-}\r
-\r
-static void cleanup()\r
-{\r
-       deregister_all();\r
-       tel_deinit();\r
-       return;\r
-\r
-}\r
-\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tel_set_sound_loopback_000, 1},\r
-       {utc_tel_set_sound_loopback_001, 2},\r
-       {utc_tel_set_sound_loopback_002, 3},\r
-       {utc_tel_set_sound_loopback_003, 4},\r
-       {utc_tel_set_sound_loopback_004, 5},\r
-       {utc_tel_set_sound_loopback_005, 6},\r
-        {utc_tel_set_sound_loopback_006, 7},\r
-       {NULL, 0}\r
-};\r
-\r
-\r
-\r
-\r
-\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  UTC_TEL_SET_SOUND_LOOPBACK_000\r
- * @param [in]  vc_loopback\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vc_loopback\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-void utc_tel_set_sound_loopback_000()\r
-{\r
-\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-       TelAudioLoopbackMode_t Mode;\r
-       Mode.path = TAPI_SOUND_HANDSET;\r
-       Mode.status =  TAPI_SOUND_AUDIO_LOOPBACK_OFF;\r
-\r
-       returnStatus = tel_set_sound_loopback(Mode, &pRequestId);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-\r
-       tet_printf ("The return value is %d\n", returnStatus);\r
-       tet_printf ("The pRequestId value is %d\n",pRequestId);\r
-       \r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-       {\r
-               tet_printf("utc_tel_set_sound_loopback_000 pass\n");\r
-               tet_result(TET_PASS);\r
-       }\r
-       else\r
-       {\r
-               tet_printf("utc_tel_set_sound_loopback_000 has failed\n");\r
-               tet_result(TET_FAIL);\r
-       }     \r
-}\r
-\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  UTC_TEL_SET_SOUND_LOOPBACK_001\r
- * @param [in]  vc_loopback\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vc_loopback\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-void utc_tel_set_sound_loopback_001()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-       TelAudioLoopbackMode_t Mode;\r
-       Mode.path = TAPI_SOUND_STEREO_BLUETOOTH;\r
-       Mode.status =  TAPI_SOUND_AUDIO_LOOPBACK_OFF;\r
-\r
-       returnStatus = tel_set_sound_loopback(Mode, &pRequestId);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-\r
-       tet_printf ("The return value is %d\n", returnStatus);\r
-       tet_printf ("The pRequestId value is %d\n",pRequestId);\r
-       \r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-       {\r
-               tet_printf("utc_tel_set_sound_loopback_001 pass\n");\r
-               tet_result(TET_PASS);\r
-       }\r
-       else\r
-       {\r
-               tet_printf("utc_tel_set_sound_loopback_001 has failed\n");\r
-               tet_result(TET_FAIL);\r
-       }\r
-}\r
-\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  UTC_TEL_SET_SOUND_LOOPBACK_002\r
- * @param [in]  vc_loopback\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vc_loopback\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-void utc_tel_set_sound_loopback_002()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-       TelAudioLoopbackMode_t Mode;\r
-       Mode.path = TAPI_SOUND_HEADSET_3_5PI;\r
-       Mode.status =  TAPI_SOUND_AUDIO_LOOPBACK_OFF;\r
-\r
-       returnStatus = tel_set_sound_loopback(Mode, &pRequestId);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-\r
-       tet_printf ("The return value is %d\n", returnStatus);\r
-       tet_printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       \r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-       {\r
-               tet_printf("utc_tel_set_sound_loopback_002 pass\n");\r
-               tet_result(TET_PASS);\r
-       }\r
-       else\r
-       {\r
-               tet_printf("utc_tel_set_sound_loopback_002 has failed\n");\r
-               tet_result(TET_FAIL);\r
-       }\r
-}\r
-\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  UTC_TEL_SET_SOUND_LOOPBACK_003\r
- * @param [in]  vc_loopback\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vc_loopback\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-void utc_tel_set_sound_loopback_003()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-       TelAudioLoopbackMode_t Mode;\r
-       Mode.path = TAPI_SOUND_HANDSET;\r
-       Mode.status =  TAPI_SOUND_AUDIO_LOOPBACK_ON;\r
-\r
-       returnStatus = tel_set_sound_loopback(Mode, &pRequestId);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-\r
-       tet_printf ("The return value is %d\n", returnStatus);\r
-       tet_printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       \r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-       {\r
-               tet_printf("utc_tel_set_sound_loopback_003 pass\n");\r
-               tet_result(TET_PASS);\r
-       }\r
-       else\r
-       {\r
-               tet_printf("utc_tel_set_sound_loopback_003 has failed\n");\r
-               tet_result(TET_FAIL);\r
-       }\r
-}\r
-\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  UTC_TEL_SET_SOUND_LOOPBACK_004\r
- * @param [in]  vc_loopback\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vc_loopback\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-void utc_tel_set_sound_loopback_004()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-       TelAudioLoopbackMode_t Mode;\r
-       Mode.path = TAPI_SOUND_STEREO_BLUETOOTH;\r
-       Mode.status =  TAPI_SOUND_AUDIO_LOOPBACK_ON;\r
-\r
-       returnStatus = tel_set_sound_loopback(Mode, &pRequestId);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-\r
-       tet_printf ("The return value is %d\n", returnStatus);\r
-       tet_printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       \r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-       {\r
-               tet_printf("utc_tel_set_sound_loopback_004 pass\n");\r
-               tet_result(TET_PASS);\r
-       }\r
-       else\r
-       {\r
-               tet_printf("utc_tel_set_sound_loopback_004 has failed\n");\r
-               tet_result(TET_FAIL);\r
-       }\r
-}\r
-\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  UTC_TEL_SET_SOUND_LOOPBACK_005\r
- * @param [in]  vc_loopback\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vc_loopback\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-\r
-void utc_tel_set_sound_loopback_005()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-       TelAudioLoopbackMode_t Mode;\r
-       Mode.path = TAPI_SOUND_STEREO_BLUETOOTH;\r
-       Mode.status =  TAPI_SOUND_AUDIO_LOOPBACK_MAX + 1;\r
-\r
-       returnStatus = tel_set_sound_loopback(Mode, &pRequestId);\r
-\r
-       tet_printf ("The return value is %d\n", returnStatus);\r
-       tet_printf ("The pRequestId value is %d\n",pRequestId);\r
-       \r
-       if(returnStatus == TAPI_API_INVALID_PTR)\r
-       {\r
-               tet_printf("utc_tel_set_sound_loopback_005 pass\n");\r
-               tet_result(TET_PASS);\r
-       }\r
-       else\r
-       {\r
-               tet_printf("utc_tel_set_sound_loopback_005 has failed\n");\r
-               tet_result(TET_FAIL);\r
-       }\r
-}\r
-\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  UTC_TEL_SET_SOUND_LOOPBACK_005\r
- * @param [in]  vc_loopback\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vc_loopback\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-void utc_tel_set_sound_loopback_006()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-       TelAudioLoopbackMode_t Mode;\r
-       Mode.path = TAPI_SOUND_HEADSET_3_5PI + 1;\r
-       Mode.status =  TAPI_SOUND_AUDIO_LOOPBACK_MAX + 1;\r
-\r
-       returnStatus = tel_set_sound_loopback(Mode, &pRequestId);\r
-\r
-       tet_printf ("The return value is %d\n", returnStatus);\r
-       tet_printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       if(returnStatus == TAPI_API_INVALID_PTR)\r
-       {\r
-               tet_printf("utc_tel_set_sound_loopback_006 pass\n");\r
-               tet_result(TET_PASS);\r
-       }\r
-       else\r
-       {\r
-               tet_printf("utc_tel_set_sound_loopback_006 has failed\n");\r
-               tet_result(TET_FAIL);\r
-       }\r
-}\r
-\r
-/** @} */\r
diff --git a/TC/telephony_TC/sound/unit/uts_tel_set_sound_loopback.h b/TC/telephony_TC/sound/unit/uts_tel_set_sound_loopback.h
deleted file mode 100644 (file)
index 689e3ad..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#include "sound_callback_util.h"
-#include <ITapiSound_ext.h>\r
-\r
-#ifndef  _UTC_TEL_SET_SOUND_LOOPBACK_\r
-#define  _UTC_TEL_SET_SOUND_LOOPBACK_\r
-\r
-\r
-\r
-void utc_tel_set_sound_loopback_000();\r
-\r
-\r
-\r
-void utc_tel_set_sound_loopback_001();\r
-\r
-\r
-\r
-void utc_tel_set_sound_loopback_002();\r
-\r
-\r
-\r
-void utc_tel_set_sound_loopback_003();\r
-\r
-void utc_tel_set_sound_loopback_004();\r
-\r
-void utc_tel_set_sound_loopback_005();
-
-void utc_tel_set_sound_loopback_006();\r
-\r
-\r
-#endif // _UTC_TEL_SET_SOUND_LOOPBACK_\r
diff --git a/TC/telephony_TC/sound/unit/uts_tel_set_sound_mute_status.c b/TC/telephony_TC/sound/unit/uts_tel_set_sound_mute_status.c
deleted file mode 100644 (file)
index 5304295..0000000
+++ /dev/null
@@ -1,199 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-\r
-#include "uts_tel_set_sound_mute_status.h"\r
-\r
-\r
-static void startup();\r
-static void cleanup();\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-\r
-\r
-static TapiResult_t gStartupSuccess;\r
-\r
-/* Startup & Clean function : It is not test code, only for\r
-   initialize and finalize test module */\r
-\r
-static void startup()\r
-{\r
-       tapi_dbus_connection_name dname;\r
-       int bStatus;\r
-\r
-       gStartupSuccess =  tel_init();\r
-       if(gStartupSuccess != TAPI_API_SUCCESS)\r
-       {\r
-               printf("tel_init() Failed gStartupSuccess = %d \n",gStartupSuccess);\r
-       }\r
-               register_all_events();\r
-       tel_register_app_name("org.samsung.test");\r
-       if(tel_get_app_name(&dname))\r
-               printf("Dbus Get app name error\n");\r
-       else \r
-               printf("Dbus Name is %s\n",dname.name);\r
-               \r
-       tel_check_service_ready(&bStatus);\r
-       printf("Telephony service  %d\n",bStatus);\r
-\r
-}\r
-\r
-static void cleanup()\r
-{\r
-       deregister_all();\r
-       tel_deinit();\r
-       return;\r
-\r
-}\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tel_set_sound_mute_status_000, 1},\r
-       {utc_tel_set_sound_mute_status_001, 2},\r
-       {utc_tel_set_sound_mute_status_002, 3},\r
-       {utc_tel_set_sound_mute_status_003, 4},\r
-       {NULL, 0}\r
-};\r
-\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  utc_tel_set_sound_mute_status_000\r
- * @param [in]  mic_mute\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  snd_mask\r
- * @param [out]  snd_value\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-\r
-\r
-void utc_tel_set_sound_mute_status_000()\r
-{\r
-\r
-\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-\r
-       returnStatus = tel_set_sound_mute_status(TAPI_SOUND_MIC_MUTE,&pRequestId);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);\r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-               printf("utc_tel_set_sound_mute_status_000 pass\n");\r
-}\r
-\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  utc_tel_set_sound_mute_status_001\r
- * @param [in]  mic_mute\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  snd_mask\r
- * @param [out]  snd_value\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-\r
-\r
-void utc_tel_set_sound_mute_status_001()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-\r
-       returnStatus = tel_set_sound_mute_status(TAPI_SOUND_MIC_UNMUTE,&pRequestId);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);\r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-               printf("utc_tel_set_sound_mute_status_001 pass\n");\r
-}\r
-\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  utc_tel_set_sound_mute_status_002\r
- * @param [in]  mic_mute\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  snd_mask\r
- * @param [out]  snd_value\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-void utc_tel_set_sound_mute_status_002()\r
-{\r
-\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-\r
-       returnStatus = tel_set_sound_mute_status(TAPI_SOUND_MIC_MUTE + 1,&pRequestId);\r
-\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);\r
-       if(returnStatus == TAPI_API_INVALID_INPUT)\r
-               printf("utc_tel_set_sound_mute_status_002 pass\n");\r
-\r
-}\r
-\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  utc_tel_set_sound_mute_status_003\r
- * @param [in]  mic_mute\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  snd_mask\r
- * @param [out]  snd_value\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-void utc_tel_set_sound_mute_status_003()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-\r
-       returnStatus = tel_set_sound_mute_status(TAPI_SOUND_MIC_UNMUTE - 1,&pRequestId);\r
-\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);\r
-       if(returnStatus == TAPI_API_INVALID_INPUT)\r
-               printf("utc_tel_set_sound_mute_status_003 pass\n");\r
-\r
-}\r
-\r
-/** @} */\r
diff --git a/TC/telephony_TC/sound/unit/uts_tel_set_sound_mute_status.h b/TC/telephony_TC/sound/unit/uts_tel_set_sound_mute_status.h
deleted file mode 100644 (file)
index 85822de..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#include "sound_callback_util.h"\r
-\r
-#ifndef  _UTC_TEL_SET_SOUND_MUTE_STATUS_\r
-#define  _UTC_TEL_SET_SOUND_MUTE_STATUS_\r
-\r
-\r
-\r
-void utc_tel_set_sound_mute_status_000();\r
-\r
-\r
-\r
-void utc_tel_set_sound_mute_status_001();\r
-\r
-\r
-\r
-void utc_tel_set_sound_mute_status_002();\r
-\r
-\r
-\r
-void utc_tel_set_sound_mute_status_003();\r
-\r
-\r
-\r
-#endif // _UTC_TEL_SET_SOUND_MUTE_STATUS_\r
-\r
diff --git a/TC/telephony_TC/sound/unit/uts_tel_set_sound_path.c b/TC/telephony_TC/sound/unit/uts_tel_set_sound_path.c
deleted file mode 100644 (file)
index 800bb23..0000000
+++ /dev/null
@@ -1,256 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#include "uts_tel_set_sound_path.h"\r
-\r
-\r
-static void startup();\r
-static void cleanup();\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-\r
-\r
-static TapiResult_t gStartupSuccess;\r
-\r
-/* Startup & Clean function : It is not test code, only for\r
-   initialize and finalize test module */\r
-\r
-static void startup()\r
-{\r
-       tapi_dbus_connection_name dname;\r
-       int bStatus;\r
-       \r
-       gStartupSuccess =  tel_init();\r
-       if(gStartupSuccess != TAPI_API_SUCCESS)\r
-       {\r
-               printf("tel_init() Failed gStartupSuccess = %d \n",gStartupSuccess);\r
-       }\r
-\r
-       register_all_events();\r
-\r
-       tel_register_app_name("org.samsung.test");\r
-       if(tel_get_app_name(&dname))\r
-               printf("Dbus Get app name error\n");\r
-       else \r
-               printf("Dbus Name is %s\n",dname.name);\r
-               \r
-       tel_check_service_ready(&bStatus);\r
-       printf("Telephony service  %d\n",bStatus);\r
-\r
-}\r
-\r
-static void cleanup()\r
-{\r
-       deregister_all();\r
-       tel_deinit();\r
-       return;\r
-\r
-}\r
-\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tel_set_sound_path_000, 1},\r
-       {utc_tel_set_sound_path_001, 2},\r
-       {utc_tel_set_sound_path_002, 3},\r
-       {utc_tel_set_sound_path_003, 4},\r
-       {utc_tel_set_sound_path_004, 5},\r
-       {utc_tel_set_sound_path_005, 6},\r
-       {NULL, 0}\r
-};\r
-\r
-\r
-\r
-\r
-\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  UTC_TEL_SET_SOUND_PATH_000\r
- * @param [in]  vc_path\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vc_path\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-\r
-\r
-void utc_tel_set_sound_path_000()\r
-{\r
-\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-\r
-       returnStatus = tel_set_sound_path(TAPI_SOUND_HANDSET, &pRequestId);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);\r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-               printf("utc_tel_set_sound_path_000 pass\n");\r
-}\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  UTC_TEL_SET_SOUND_PATH_001\r
- * @param [in]  vc_path\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vc_path\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-\r
-\r
-void utc_tel_set_sound_path_001()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-\r
-       returnStatus = tel_set_sound_path(TAPI_SOUND_STEREO_BLUETOOTH, &pRequestId);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);\r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-               printf("utc_tel_set_sound_path_001 pass\n");\r
-}\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  UTC_TEL_SET_SOUND_PATH_002\r
- * @param [in]  vc_path\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vc_path\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-\r
-void utc_tel_set_sound_path_002()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-\r
-       returnStatus = tel_set_sound_path(TAPI_SOUND_HEADSET_3_5PI, &pRequestId);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);\r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-               printf("utc_tel_set_sound_path_002 pass\n");\r
-}\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  UTC_TEL_SET_SOUND_PATH_003\r
- * @param [in]  vc_path\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vc_path\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-void utc_tel_set_sound_path_003()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-\r
-       returnStatus = tel_set_sound_path(TAPI_SOUND_HANDSET-1, &pRequestId);\r
-\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);\r
-       if(returnStatus == TAPI_API_INVALID_INPUT)\r
-               printf("utc_tel_set_sound_path_003 pass\n");\r
-}\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  UTC_TEL_SET_SOUND_PATH_004\r
- * @param [in]  vc_path\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vc_path\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-void utc_tel_set_sound_path_004()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-\r
-       returnStatus = tel_set_sound_path(TAPI_SOUND_HEADSET_3_5PI +1, &pRequestId);\r
-\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);\r
-       if(returnStatus == TAPI_API_INVALID_INPUT)\r
-               printf("utc_tel_set_sound_path_004 pass\n");\r
-}\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  UTC_TEL_SET_SOUND_PATH_005\r
- * @param [in]  vc_path\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vc_path\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-\r
-void utc_tel_set_sound_path_005()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       int pRequestId = -1;\r
-\r
-       returnStatus = tel_set_sound_path(TAPI_SOUND_HANDSET , NULL);\r
-\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);\r
-       if(returnStatus == TAPI_API_INVALID_PTR)\r
-               printf("utc_tel_set_sound_path_005 pass\n");\r
-}\r
-\r
-\r
-/** @} */\r
diff --git a/TC/telephony_TC/sound/unit/uts_tel_set_sound_path.h b/TC/telephony_TC/sound/unit/uts_tel_set_sound_path.h
deleted file mode 100644 (file)
index b03cb5f..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#include "sound_callback_util.h"\r
-\r
-#ifndef  _UTC_TEL_SET_SOUND_PATH_\r
-#define  _UTC_TEL_SET_SOUND_PATH_\r
-\r
-\r
-\r
-void utc_tel_set_sound_path_000();\r
-\r
-\r
-\r
-void utc_tel_set_sound_path_001();\r
-\r
-\r
-\r
-void utc_tel_set_sound_path_002();\r
-\r
-\r
-\r
-void utc_tel_set_sound_path_003();\r
-\r
-void utc_tel_set_sound_path_004();\r
-\r
-void utc_tel_set_sound_path_005();\r
-\r
-\r
-#endif // _UTC_TEL_SET_SOUND_PATH_\r
diff --git a/TC/telephony_TC/sound/unit/uts_tel_set_sound_volume_info.c b/TC/telephony_TC/sound/unit/uts_tel_set_sound_volume_info.c
deleted file mode 100644 (file)
index c64d5eb..0000000
+++ /dev/null
@@ -1,316 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#include "uts_tel_set_sound_volume_info.h"\r
-\r
-static void startup();\r
-static void cleanup();\r
-void (*tet_startup) () = startup;\r
-void (*tet_cleanup) () = cleanup;\r
-\r
-\r
-static TapiResult_t gStartupSuccess;\r
-\r
-/* Startup & Clean function : It is not test code, only for\r
-   initialize and finalize test module */\r
-\r
-static void startup()\r
-{\r
-       tapi_dbus_connection_name dname;\r
-       int bStatus;\r
-       \r
-       gStartupSuccess =  tel_init();\r
-       if(gStartupSuccess != TAPI_API_SUCCESS)\r
-       {\r
-               printf("tel_init() Failed gStartupSuccess = %d \n",gStartupSuccess);\r
-       }\r
-\r
-       register_all_events();\r
-\r
-       tel_register_app_name("org.samsung.test");\r
-       if(tel_get_app_name(&dname))\r
-               printf("Dbus Get app name error\n");\r
-       else \r
-               printf("Dbus Name is %s\n",dname.name);\r
-               \r
-       tel_check_service_ready(&bStatus);\r
-       printf("Telephony service  %d\n",bStatus);\r
-\r
-}\r
-\r
-static void cleanup()\r
-{\r
-       deregister_all();\r
-       tel_deinit();\r
-       return;\r
-\r
-}\r
-\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_tel_set_sound_volume_info_000, 1},\r
-       {utc_tel_set_sound_volume_info_001, 2},\r
-       {utc_tel_set_sound_volume_info_002, 3},\r
-       {utc_tel_set_sound_volume_info_003, 4},\r
-       {utc_tel_set_sound_volume_info_004, 5},\r
-       {utc_tel_set_sound_volume_info_005, 6},\r
-       {utc_tel_set_sound_volume_info_006, 7},\r
-       {NULL, 0}\r
-};\r
-\r
-\r
-\r
-/**\r
- * @brief This tests sound volume control api valid case\r
- * @par ID:\r
- *  TEL_SET_SOUND_VOLUME_INFO_000\r
- * @param [in]  vol_control\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vol_control\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-\r
-\r
-void utc_tel_set_sound_volume_info_000()\r
-{\r
-\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       tapi_sound_volume_control_t vol_control;\r
-       vol_control.volume = TAPI_SOUND_MUTE;\r
-       vol_control.vol_type = TAPI_SOUND_VOL_VOICE;\r
-\r
-       int pRequestId = -1;\r
-\r
-       returnStatus = tel_set_sound_volume_info(vol_control, &pRequestId);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);\r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-               printf("utc_tel_set_sound_volume_info_000 pass\n");\r
-\r
-}\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  TEL_SET_SOUND_VOLUME_INFO_001\r
- * @param [in]  vol_control\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vol_control\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-\r
-\r
-void utc_tel_set_sound_volume_info_001()\r
-{\r
-\r
-\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       tapi_sound_volume_control_t vol_control;\r
-       vol_control.volume = TAPI_SOUND_VOLUME_LEVEL_6;\r
-       vol_control.vol_type = TAPI_SOUND_VOL_HFK_KEYTONE;\r
-\r
-       int pRequestId = -1;\r
-\r
-       returnStatus = tel_set_sound_volume_info(vol_control, &pRequestId);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);\r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-               printf("utc_tel_set_sound_volume_info_001 pass\n");\r
-}\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  TEL_SET_SOUND_VOLUME_INFO_002\r
- * @param [in]  vol_control\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vol_control\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-\r
-\r
-void utc_tel_set_sound_volume_info_002()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       tapi_sound_volume_control_t vol_control;\r
-       vol_control.volume = TAPI_SOUND_VOLUME_LEVEL_8;\r
-       vol_control.vol_type = TAPI_SOUND_VOL_TYPE_ALL;\r
-\r
-       int pRequestId = -1;\r
-\r
-       returnStatus = tel_set_sound_volume_info(vol_control, &pRequestId);\r
-       gmain_loop_for_tapi_events(TIME_DELAY);\r
-\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_SUCCESS);\r
-       if(returnStatus == TAPI_API_SUCCESS)\r
-               printf("utc_tel_set_sound_volume_info_002 pass\n");\r
-\r
-}\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  TEL_SET_SOUND_VOLUME_INFO_003\r
- * @param [in]  vol_control\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vol_control\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-void utc_tel_set_sound_volume_info_003()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       tapi_sound_volume_control_t vol_control;\r
-       vol_control.volume = TAPI_SOUND_MUTE - 1;\r
-       vol_control.vol_type = TAPI_SOUND_VOL_TYPE_ALL;\r
-\r
-       int pRequestId = -1;\r
-\r
-       returnStatus = tel_set_sound_volume_info(vol_control, &pRequestId);\r
-\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);\r
-       if(returnStatus == TAPI_API_INVALID_INPUT)\r
-               printf("utc_tel_set_sound_volume_info_003 pass\n");\r
-}\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  TEL_SET_SOUND_VOLUME_INFO_004\r
- * @param [in]  vol_control\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vol_control\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-void utc_tel_set_sound_volume_info_004()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       tapi_sound_volume_control_t vol_control;\r
-       vol_control.volume = TAPI_SOUND_MUTE;\r
-       vol_control.vol_type = TAPI_SOUND_VOL_TYPE_ALL + 1;\r
-\r
-       int pRequestId = -1;\r
-\r
-       returnStatus = tel_set_sound_volume_info(vol_control, &pRequestId);\r
-\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);\r
-       if(returnStatus == TAPI_API_INVALID_INPUT)\r
-               printf("utc_tel_set_sound_volume_info_004 pass\n");\r
-}\r
-\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  TEL_SET_SOUND_VOLUME_INFO_005\r
- * @param [in]  vol_control\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vol_control\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-\r
-\r
-void utc_tel_set_sound_volume_info_005()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       tapi_sound_volume_control_t vol_control;\r
-       vol_control.volume = TAPI_SOUND_VOLUME_LEVEL_8 + 1  ;\r
-       vol_control.vol_type = TAPI_SOUND_VOL_VOICE  - 1;\r
-\r
-       int pRequestId = -1;\r
-\r
-       returnStatus = tel_set_sound_volume_info(vol_control, &pRequestId);\r
-\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_INVALID_INPUT);\r
-       if(returnStatus == TAPI_API_INVALID_INPUT)\r
-               printf("utc_tel_set_sound_volume_info_005 pass\n");\r
-}\r
-\r
-/**\r
- * @brief This tests\r
- * @par ID:\r
- *  TEL_SET_SOUND_VOLUME_INFO_006\r
- * @param [in]  vol_control\r
- * @param [in]  *pRequestId\r
- * @code\r
- * @endcode\r
- * @param [out]  vol_control\r
- * @param [out]  *pRequestId\r
- * @return TapiResult_t\r
-*/\r
-\r
-\r
-void utc_tel_set_sound_volume_info_006()\r
-{\r
-       TapiResult_t  returnStatus = TAPI_API_SUCCESS;\r
-       tapi_sound_volume_control_t vol_control;\r
-       vol_control.volume = TAPI_SOUND_VOLUME_LEVEL_8 + 1  ;\r
-       vol_control.vol_type = TAPI_SOUND_VOL_VOICE  - 1;\r
-\r
-       int pRequestId = -1;\r
-\r
-       returnStatus = tel_set_sound_volume_info(vol_control, NULL);\r
-\r
-       printf ("The return value is %d\n", returnStatus);\r
-       printf ("The pRequestId value is %d\n",pRequestId);\r
-\r
-       TET_CHECK(returnStatus == TAPI_API_INVALID_PTR);\r
-       if(returnStatus == TAPI_API_INVALID_PTR)\r
-               printf("utc_tel_set_sound_volume_info_006 pass\n");\r
-}\r
-\r
-\r
-/** @} */\r
diff --git a/TC/telephony_TC/sound/unit/uts_tel_set_sound_volume_info.h b/TC/telephony_TC/sound/unit/uts_tel_set_sound_volume_info.h
deleted file mode 100644 (file)
index ceda084..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-\r
-#include "sound_callback_util.h"\r
-\r
-#ifndef  _UTC_TEL_SET_SOUND_VOLUME_INFO_\r
-#define  _UTC_TEL_SET_SOUND_VOLUME_INFO_\r
-\r
-\r
-\r
-void utc_tel_set_sound_volume_info_000();\r
-\r
-\r
-\r
-void utc_tel_set_sound_volume_info_001();\r
-\r
-\r
-\r
-void utc_tel_set_sound_volume_info_002();\r
-\r
-\r
-\r
-void utc_tel_set_sound_volume_info_003();\r
-\r
-void utc_tel_set_sound_volume_info_004();\r
-\r
-void utc_tel_set_sound_volume_info_005();\r
-\r
-void utc_tel_set_sound_volume_info_006();\r
-\r
-\r
-\r
-#endif // _UTC_TEL_SET_SOUND_VOLUME_INFO_\r
diff --git a/TC/telephony_TC/ss/README b/TC/telephony_TC/ss/README
deleted file mode 100644 (file)
index 6aebe55..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-=================================================================================
-*                              README                                                                          *
-=================================================================================
-
-1. The SS Test Script directory (TestCases) includes:
-
-       telephony-framework/ss
-               |-- README                                          ; This file
-               `-- Unit                                            ; contains Unit TCs
-                   |-- makefile
-                   |-- tslist
-                   `-- Unit test case source codes
-       
-
-2. The $(TEST_ROOT) directory must includes following files:
-
-       /$(TEST_ROOT)
-               |-- tet_scen
-               |-- tetbuild.cfg
-               |-- tetclean.cfg
-               |-- tetexec.cfg
-               `-- ...(elipsis)
-
-=================================================================================
-*                                  Preconditions                                *
----------------------------------------------------------------------------------
-|  Before Testing SMS Module, you should check the following conditions         |
-=================================================================================
-
-1. Prepare a vaild SIM card.
-
-2. One target for the execution of testcases.
-
-4. Modify the mobile number
-       - ss_common.h
-       - Followings are the macro for mobile number customized as per the country.
-        - Barring password should be valid. Otherwise, it cause blocking of all barring features.
-       
-               #define BARRING_PWD     "4291"
-               #define FWD_NUM "01030018654"
-               #define OLD_PWD "4291"
-               #define NEW_PWD "4291"
-
-=================================================================================
-*                                  Change log                                   *
-=================================================================================
-1. 18-Dec-2008
-       - Initial draft.
-
-2. 6-Oct-2010
-       - Revised
-       
-=================================================================================
-*                                      NOTE                                     *
-=================================================================================
-1. In order to ensure successful working of the Test Scripts, please ensure that all of the IPKG files are installed normally.
-2. Testing SS Module can be executed under target system environment (not simulator).
-
-
diff --git a/TC/telephony_TC/ss/ss_common.h b/TC/telephony_TC/ss/ss_common.h
deleted file mode 100644 (file)
index de82b66..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-/**********************************************
- * Caution               
- * If you use invalid barring password, 
- * it can block all barring feature
- * ********************************************/
-
-#define BARRING_PWD     "4291"
-#define FWD_NUM "01030018654"
-#define OLD_PWD "4291"
-#define NEW_PWD "4291"
-
diff --git a/TC/telephony_TC/ss/unit/makefile b/TC/telephony_TC/ss/unit/makefile
deleted file mode 100644 (file)
index e3711d5..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-CC=gcc -Wall\r
-\r
-LB1  = tet_tapi_util\r
-TS1  = uts_tel_change_ss_barring_password\r
-TS2  = uts_tel_get_ss_aoc_info\r
-TS3  = uts_tel_get_ss_barring_status\r
-TS4  = uts_tel_get_ss_cli_status\r
-TS5  = uts_tel_get_ss_forward_status\r
-TS6  = uts_tel_get_ss_waiting_status\r
-TS7  = uts_tel_send_ss_ussd_cancel\r
-TS8  = uts_tel_send_ss_ussd_request\r
-TS9 = uts_tel_send_ss_ussd_response\r
-TS10 = uts_tel_set_ss_barring\r
-TS11 = uts_tel_set_ss_forward\r
-#TS12 = uts_tapi_ussd_send_rsp\r
-TS12  = uts_tel_set_ss_aoc_info\r
-TS13 = uts_tel_set_ss_waiting\r
-\r
-LIBS =$(LB1).o\r
-LIBS +=`pkg-config --libs gconf-2.0 glib-2.0 dbus-1 dbus-glib-1 gthread-2.0 tapi`\r
-LIBS +=$(TET_ROOT)/lib/tet3/tcm.o\r
-LIBS +=-L$(TET_ROOT)/lib/tet3 -lapi\r
-\r
-INCS = -I. `pkg-config --cflags gconf-2.0 glib-2.0 dbus-1 dbus-glib-1 gthread-2.0 tapi`\r
-INCS += -I$(TET_ROOT)/inc/tet3 \r
-INCS += -I../\r
-\r
-CFLAGS += $(INCS) -D__arm__ -D_ARM_TOUCH -DTELEPHONY_TIMER\r
-CC +=$(CFLAGS)\r
-LDFLAGS = $(LIBS)\r
-\r
-#ifeq ($(ARCH),target)\r
-#CC += -g -mabi=aapcs-linux\r
-#endif\r
-\r
-all : $(LB1) $(TS1) $(TS2) $(TS3) $(TS4) $(TS5) $(TS6) $(TS7) $(TS8) $(TS9) $(TS10) $(TS11) $(TS12)  $(TS13) \r
-\r
-clean :\r
-       rm -rf *~ *.o tet_lock tet_captured $(LB1) $(TS1) $(TS2) $(TS3) $(TS4) $(TS5) $(TS6) $(TS7) $(TS8) $(TS9) $(TS10) $(TS11) $(TS12)  $(TS13) \r
-\r
-$(LB1): $(LB1).c\r
-       $(CC) -c $(LB1).c\r
-\r
-$(TS1): $(TS1).c $(LB1)\r
-       $(CC) -o $(TS1) $(TS1).c  $(LDFLAGS)\r
-\r
-$(TS2): $(TS2).c $(LB1)\r
-       $(CC) -o $(TS2) $(TS2).c  $(LDFLAGS)\r
-\r
-$(TS3): $(TS3).c $(LB1)\r
-       $(CC) -o $(TS3) $(TS3).c  $(LDFLAGS)\r
-\r
-$(TS4): $(TS4).c $(LB1)\r
-       $(CC) -o $(TS4) $(TS4).c  $(LDFLAGS)\r
-\r
-$(TS5): $(TS5).c $(LB1)\r
-       $(CC) -o $(TS5) $(TS5).c  $(LDFLAGS)\r
-\r
-$(TS6): $(TS6).c $(LB1)\r
-       $(CC) -o $(TS6) $(TS6).c  $(LDFLAGS)\r
-\r
-$(TS7): $(TS7).c $(LB1)\r
-       $(CC) -o $(TS7) $(TS7).c  $(LDFLAGS)\r
-\r
-$(TS8): $(TS8).c $(LB1)\r
-       $(CC) -o $(TS8) $(TS8).c  $(LDFLAGS)\r
-\r
-$(TS9): $(TS9).c $(LB1)\r
-       $(CC) -o $(TS9) $(TS9).c  $(LDFLAGS)\r
-\r
-$(TS10): $(TS10).c $(LB1)\r
-       $(CC) -o $(TS10) $(TS10).c  $(LDFLAGS)\r
-\r
-$(TS11): $(TS11).c $(LB1)\r
-       $(CC) -o $(TS11) $(TS11).c  $(LDFLAGS)\r
-\r
-$(TS12): $(TS12).c $(LB1)\r
-       $(CC) -o $(TS12) $(TS12).c  $(LDFLAGS)\r
-\r
-$(TS13): $(TS13).c $(LB1)\r
-       $(CC) -o $(TS13) $(TS13).c  $(LDFLAGS)\r
diff --git a/TC/telephony_TC/ss/unit/tet_tapi_util.c b/TC/telephony_TC/ss/unit/tet_tapi_util.c
deleted file mode 100644 (file)
index ebb6461..0000000
+++ /dev/null
@@ -1,439 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <tet_api.h>
-#include "tet_tapi_util.h"
-#include "glib.h"
-
-GMainLoop *nw_context_loop = NULL;
-
-void G_MAIN_LOOP_CLOSE()
-{
-       g_main_loop_quit(nw_context_loop);
-}
-
-gboolean g_timeout_callback(void * data)
-{
-       G_MAIN_LOOP_CLOSE();
-       return FALSE;
-}
-
-int G_MAIN_LOOP_RUN(int sec)
-{
-       nw_context_loop = g_main_loop_new(NULL, FALSE);
-       g_timeout_add_seconds(sec, g_timeout_callback, NULL);
-       g_main_loop_run(nw_context_loop);
-
-       return 0;
-}
-#if 0
-#define TAPI_EVENT_CLASS_MAX TAPI_EVENT_CLASS_SAT+2
-
-
-TAPI_EventClass_String g_TAPI_event_class_string[TAPI_EVENT_CLASS_MAX] = {     /* Tapi Call Related Event Types */
-       {TAPI_EVENT_NONE,"TAPI_EVENT_NONE"},                                            /**< Event None */
-       {TAPI_EVENT_CLASS_CALL_VOICE, "TAPI_EVENT_CLASS_CALL_VOICE"},   /**<    Voice Call Event Class  */
-       {TAPI_EVENT_CLASS_CALL_DATA,"TAPI_EVENT_CLASS_CALL_DATA"},      /**<    Data Call Event Class   */
-       {TAPI_EVENT_CLASS_NETTEXT,"TAPI_EVENT_CLASS_NETTEXT"},  /**<    Nettext (SMS/CB) Event Class    */
-       {TAPI_EVENT_CLASS_NETWORK,"TAPI_EVENT_CLASS_NETWORK"},  /**<    Network Event  Class    */
-       {TAPI_EVENT_CLASS_SS,"TAPI_EVENT_CLASS_SS"},                    /**<    SS Event  Class */
-       {TAPI_EVENT_CLASS_SIM,"TAPI_EVENT_CLASS_SIM"},                  /**<    SIM Event  Class        */
-//     {TAPI_EVENT_CLASS_ERR,"TAPI_EVENT_CLASS_ERR"},                  /**<    Fatal error Event  Class        */
-//     {TAPI_EVENT_CLASS_UTIL,"TAPI_EVENT_CLASS_UTIL"},                        /**<    Utility Events  Class   */
-//     {TAPI_EVENT_CLASS_POWER,"TAPI_EVENT_CLASS_POWER"},              /**<    POWEREvents  Class      */
-//     {TAPI_EVENT_CLASS_DISPLAY,"TAPI_EVENT_CLASS_DISPLAY"},  /**<    DISPLAY Events  Class   */
-//     {TAPI_EVENT_CLASS_MISC,"TAPI_EVENT_CLASS_MISC"},                        /**<    MISC Events  Class      */
-       {TAPI_EVENT_CLASS_DATA,"TAPI_EVENT_CLASS_DATA"},                        /**<    DATA Events  Class      */
-       {TAPI_EVENT_CLASS_SOUND,"TAPI_EVENT_CLASS_SOUND"},              /**<    SOUND Events  Class     */
-       {TAPI_EVENT_CLASS_SAT,"TAPI_EVENT_CLASS_SAT"},                  /**<    SAT Events  Class       */
-//     {TAPI_EVENT_CLASS_GPS,"TAPI_EVENT_CLASS_GPS"},                  /**<GPS Events  Class   */
-//     {TAPI_EVENT_CLASS_ALL,"TAPI_EVENT_CLASS_ALL"},
-};
-
-#define TAPI_EVENT_MAX TAPI_EVENT_TYPE_MAX+1
-
-
-TAPI_Event_String g_TAPI_EventString[TAPI_EVENT_MAX] = {
-       /*      Events releated to Call -voice   */
-       {TAPI_EVENT_CALL_SETUP_CNF,"TAPI_EVENT_CLASS_CALL_VOICE"},  /**<0x0000,""},     This event indicates the Call Setup request triggred */
-       {TAPI_EVENT_CALL_ALERT_IND,"TAPI_EVENT_CALL_ALERT_IND"},                        /**<    This event indicates the Call is in Alerting stage*/
-       {TAPI_EVENT_CALL_CONNECTING_IND,"TAPI_EVENT_CALL_CONNECTING_IND"},      /**<    This event indicates the Call is in Connecting stage*/
-       {TAPI_EVENT_CALL_CONNECTED_IND,"TAPI_EVENT_CALL_CONNECTED_IND"},        /**<            This event indicates the Call is Connected */
-       {TAPI_EVENT_CALL_INCOM_IND    ,"TAPI_EVENT_CALL_INCOM_IND"},            /**<            This event indicates Incoming Call indication to Application*/
-       {TAPI_EVENT_CALL_ANSWER_CNF," TAPI_EVENT_CALL_ANSWER_CNF"},             /**<    Incoming call was answered*/
-       {TAPI_EVENT_CALL_RETRIEVE_CNF,"TAPI_EVENT_CALL_RETRIEVE_CNF"},  /**<    This event indicates Call is retrieved from held state*/
-       {TAPI_EVENT_CALL_RETRIEVE_IND,"TAPI_EVENT_CALL_RETRIEVE_IND"},          /**<    This event indicates that other party has retrieved the call from hold*/
-       {TAPI_EVENT_CALL_HOLD_IND,"TAPI_EVENT_CALL_HOLD_IND"},          /**<    This event indicates that other party is has put the call on hold*/
-       {TAPI_EVENT_CALL_HOLD_CNF ," TAPI_EVENT_CALL_HOLD_CNF"},                /**<    This event indicates is call is put on hold*/
-       {TAPI_EVENT_CALL_TRANSFER_CNF,"TAPI_EVENT_CALL_TRANSFER_CNF"},  /**<    This event indicates is call is explicitly transferred*/
-       {TAPI_EVENT_CALL_TRANSFER_IND,"TAPI_EVENT_CALL_TRANSFER_IND"},  /**<    Call Transfer Indication*/
-       {TAPI_EVENT_CALL_SETUPCONFERENCE_CNF,"TAPI_EVENT_CALL_SETUPCONFERENCE_CNF"},            /**<    This event indicates that Call is joined in a conference*/
-       {TAPI_EVENT_CALL_SETUPCONFERENCE_IND,"TAPI_EVENT_CALL_SETUPCONFERENCE_IND"},            /**<    Conference setup indication*/
-       {TAPI_EVENT_CALL_SPLITCONFERENCE_CNF,"TAPI_EVENT_CALL_SPLITCONFERENCE_CNF"},            /**<    This event indicates Call is split from conference*/
-       {TAPI_EVENT_CALL_SEND_DTMF_CNF," TAPI_EVENT_CALL_SEND_DTMF_CNF"},       /**<    This event indicates the confirmation for sending DTMF Digits to the network*/
-       {TAPI_EVENT_CALL_WAITING_IND,"TAPI_EVENT_CALL_WAITING_IND"},                    /**<    Call waiting indication*/
-       {TAPI_EVENT_CALL_FORWARD_IND,"TAPI_EVENT_CALL_FORWARD_IND"},            /**<    This event indication for Call is forwarded */
-//     {TAPI_EVENT_CALL_USERINFO_IND,"TAPI_EVENT_CALL_USERINFO_IND"},          /**<    This event is indicated when User Information is exchanged during the call */
-       {TAPI_EVENT_CALL_RELEASE_CNF,"TAPI_EVENT_CALL_RELEASE_CNF"},            /**<    This event is indicated when a specific call is released requested by the application*/
-       {TAPI_EVENT_CALL_RELEASE_ALL_CNF,"TAPI_EVENT_CALL_RELEASE_ALL_CNF"},    /**<    This event is indicated when all the calls released requested by the application*/
-       {TAPI_EVENT_CALL_RELEASE_ALL_ACTIVE_CNF,"TAPI_EVENT_CALL_RELEASE_ALL_ACTIVE_CNF"},      /**<    This event is indicated when all the active calls released requested by the application*/
-       {TAPI_EVENT_CALL_END_IND,"TAPI_EVENT_CALL_END_IND"},                     /**<   This event indicates the Call is Ended. This event can be solicited/unsolicited.*/
-       {TAPI_EVENT_CALL_GET_LINEID_CNF," TAPI_EVENT_CALL_GET_LINEID_CNF"},     /**<    Error in Get Line ID    */
-       {TAPI_EVENT_CALL_SET_LINEID_CNF,"TAPI_EVENT_CALL_SET_LINEID_CNF"}, /**<                 Error in Set Line Id            */
-       {TAPI_EVENT_CALL_SWAP_CNF," TAPI_EVENT_CALL_SWAP_CNF"}, /**< Call Swap Confirmation */
-
-       {TAPI_EVENT_CALL_BARRING_IND,"TAPI_EVENT_CALL_BARRING_IND"},                    /**<    This event indicates the Call is Barred*/
-       {TAPI_EVENT_CALL_CUGINFO_IND,"TAPI_EVENT_CALL_CUGINFO_IND"},            /**<    This event indicates CUG information */
-       {TAPI_EVENT_CALL_AOCINFO_IND,"TAPI_EVENT_CALL_AOCINFO_IND"},    /**<    This event indicates the AOC Information*/
-//     {TAPI_EVENT_CALL_SSNOTIFY_IND,"TAPI_EVENT_CALL_SSNOTIFY_IND"},  /**<    This event indicates SS Notification*/
-       {TAPI_EVENT_CALL_CALLINGNAMEINFO_IND,"TAPI_EVENT_CALL_CALLINGNAMEINFO_IND"},    /**<    This event indicates the Calling Name Information*/
-       {TAPI_EVENT_CALL_CONNECTEDNUMBERINFO_IND,"TAPI_EVENT_CALL_CONNECTEDNUMBERINFO_IND"},    /**<    This event indicates the Connected Number Information*/
-       {TAPI_EVENT_CALL_CLISUPRESSIONREJ_IND,"TAPI_EVENT_CALL_CLISUPRESSIONREJ_IND"},  /**<    This event indicates the CLI Suppression Indication*/
-       {TAPI_EVENT_CALL_UNCOND_FORWARDING_IND,"TAPI_EVENT_CALL_UNCOND_FORWARDING_IND"},        /**<    This event indicates the Call is unconditionally forwarded*/
-       {TAPI_EVENT_CALL_COND_FORWARDING_IND,"TAPI_EVENT_CALL_COND_FORWARDING_IND"},    /**<    This event indicates the Call is conditionally forwarded*/
-       {TAPI_EVENT_CALL_CONNECTED_ECT_REMOTE_IND," TAPI_EVENT_CALL_CONNECTED_ECT_REMOTE_IND"}, /**<    This event indicates the ECT remote connection  */
-       {TAPI_EVENT_CALL_ON_HOLD_RELEASED_IND,"TAPI_EVENT_CALL_ON_HOLD_RELEASED_IND"},  /**<    This event indicates the Call on hold is released*/
-       {TAPI_EVENT_CALL_ALERT_ECT_REMOTE_IND," TAPI_EVENT_CALL_ALERT_ECT_REMOTE_IND"}, /**<    This event indicates the ECT remote alert*/
-       {TAPI_EVENT_CALL_SS_FORWARDED_MSG_RXED_IND,"TAPI_EVENT_CALL_SS_FORWARDED_MSG_RXED_IND"},        /**<    This event indicates that the forwarded msg has been received*/
-
-       /*      Events releated to Call         video */
-       {TAPI_EVENT_CALL_SETUP_CNF," TAPI_EVENT_DATA_SETUP_CNF"},               /**<0x0100,""}, This event indicates the Call Setup request triggred */
-       {TAPI_EVENT_CALL_ALERT_IND," TAPI_EVENT_DATA_ALERT_IND"},               /**<    This event indicates the Call is in Alerting stage*/
-       {TAPI_EVENT_CALL_CONNECTED_IND,"TAPI_EVENT_DATA_CONNECTED_IND"},        /**<            This event indicates the Call is Connected */
-       {TAPI_EVENT_CALL_INCOM_IND    ,"{TAPI_EVENT_DATA_INCOM_IND"},           /**<            This event indicates Incoming Call indication to Application*/
-       {TAPI_EVENT_CALL_ANSWER_CNF,"TAPI_EVENT_DATA_ANSWER_CNF"},              /**<    Incoming call was answered*/
-       {TAPI_EVENT_CALL_FORWARD_IND," TAPI_EVENT_DATA_FORWARD_IND"},           /**<    This event indication for Call is forwarded */
-       {TAPI_EVENT_CALL_RELEASE_CNF,"TAPI_EVENT_DATA_RELEASE_CNF"},            /**<    This event is indicated when all the calls released requested by the application*/
-       {TAPI_EVENT_CALL_END_IND," TAPI_EVENT_DATA_END_IND"},                    /**<   This event indicates the Call is Ended. This event can be solicited/unsolicited.*/
-
-       {TAPI_EVENT_CALL_BARRING_IND,"TAPI_EVENT_DATA_BARRING_IND"},                    /**<    This event indicates the Call is in Alerting stage*/
-       {TAPI_EVENT_CALL_AOCINFO_IND,"TAPI_EVENT_DATA_AOCINFO_IND"},    /**<    This event indicates the Call is in Alerting stage*/
-       {TAPI_EVENT_CALL_CONNECTEDNUMBERINFO_IND," TAPI_EVENT_DATA_CONNECTEDNUMBERINFO_IND"},   /**<    This event indicates the Call is in Alerting stage*/
-       {TAPI_EVENT_CALL_UNCOND_FORWARDING_IND," TAPI_EVENT_DATA_UNCOND_FORWARDING_IND"},       /**<    This event indicates the Call is in Alerting stage*/
-       {TAPI_EVENT_CALL_COND_FORWARDING_IND," TAPI_EVENT_DATA_COND_FORWARDING_IND"},   /**<    This event indicates the Call is in Alerting stage*/
-       {TAPI_EVENT_CALL_CONNECTED_ECT_REMOTE_IND,"TAPI_EVENT_DATA_CONNECTED_ECT_REMOTE_IND"},  /**<    This event indicates the Call is in Alerting stage*/
-
-
-       /* Events related on Nettext Messages  */
-       {TAPI_EVENT_NETTEXT_READ_SMS_CNF,"TAPI_EVENT_CLASS_NETTEXT"},           /**<0x0200,""},         This event is returned in response to SMS Read message*/
-       {TAPI_EVENT_NETTEXT_GET_COUNT_CNF,"TAPI_EVENT_NETTEXT_GET_COUNT_CNF"},          /**<    This event is returned in response to Get Number of messages stored in SIM*/
-       {TAPI_EVENT_NETTEXT_SENTSTATUS_CNF,"TAPI_EVENT_NETTEXT_SENTSTATUS_CNF"},                /**<    This event is returned in response to SMS  message sent*/
-       {TAPI_EVENT_NETTEXT_GET_PARAM_CNF,"TAPI_EVENT_NETTEXT_GET_PARAM_CNF"},          /**<    This event is returned in response to NetText Get parameters*/
-       {TAPI_EVENT_NETTEXT_DELETE_STATUS_CNF," TAPI_EVENT_NETTEXT_DELETE_STATUS_CNF"}, /**<    This confirmation event is a returned indicating the delete message e status*/
-       {TAPI_EVENT_NETTEXT_SAVE_STATUS_CNF,"TAPI_EVENT_NETTEXT_SAVE_STATUS_CNF"},      /**<    This confirmation event is a returned indicating the Save SMS into SIM status*/
-       {TAPI_EVENT_NETTEXT_SET_REQUEST_CNF," TAPI_EVENT_NETTEXT_SET_REQUEST_CNF"},     /**<    This event is returned as a confirmation for SET nettext APIs*/
-       {TAPI_EVENT_NETTEXT_GET_CB_CONFIG_CNF," TAPI_EVENT_NETTEXT_GET_CB_CONFIG_CNF"},         /**<    This event is returned with Get CB configuration details*/
-       {TAPI_EVENT_NETTEXT_GET_SMSBEARER_CNF,"TAPI_EVENT_NETTEXT_GET_SMSBEARER_CNF"},  /**<    This event is returned as a response to get preferred bearer used for SMS Transport*/
-       {TAPI_EVENT_NETTEXT_DELIVERY_REPORT_CNF,"TAPI_EVENT_NETTEXT_DELIVERY_REPORT_CNF"},/**<  This event is returned in response to send delivery report*/
-       {TAPI_EVENT_NETTEXT_INCOM_IND,"TAPI_EVENT_NETTEXT_INCOM_IND"},                  /**<    This is an unsolicited Incoming SMS Event*/
-       {TAPI_EVENT_NETTEXT_CB_INCOM_IND,"TAPI_EVENT_NETTEXT_CB_INCOM_IND"},            /**<    This is an unsolicited Incoming cell broadcast message*/
-       {TAPI_EVENT_NETTEXT_MEMORY_STATUS_IND,"TAPI_EVENT_NETTEXT_MEMORY_STATUS_IND"},  /**<    This event is an unsolicited event indicating SIM memory status */
-       {TAPI_EVENT_NETTEXT_DEVICE_READY_IND,"TAPI_EVENT_NETTEXT_DEVICE_READY_IND"}, /**< Device Ready indication */
-       {TAPI_EVENT_NETTEXT_PARAM_COUNT_IND,"TAPI_EVENT_NETTEXT_PARAM_COUNT_IND"},  /**< Param count indication */
-       /* Events related on Network Messages  */
-       {TAPI_EVENT_NETWORK_GETNWBAND_CNF,"TAPI_EVENT_NETWORK_GETNWBAND_CNF"},          /**<0x0300,""}, This event indicates the Network Band has been identified and returned*/
-       {TAPI_EVENT_NETWORK_SETNWBAND_CNF,"TAPI_EVENT_NETWORK_SETNWBAND_CNF"},          /**<    This event indicates the Network Band has been set*/
-       {TAPI_EVENT_NETWORK_GETSERVICEDOMAIN_CNF," TAPI_EVENT_NETWORK_GETSERVICEDOMAIN_CNF"},   /**<    This event confirms the request to get the service domain */
-       {TAPI_EVENT_NETWORK_SETSERVICEDOMAIN_CNF,"TAPI_EVENT_NETWORK_SETSERVICEDOMAIN_CNF"},    /**<    This event confirms the request to set the service domain */
-//     {TAPI_EVENT_NETWORK_CANCELMANUALSEARCH_CNF,"TAPI_EVENT_NETWORK_CANCELMANUALSEARCH_CNF"},        /**<    This event is returned on cancellation of manual network search*/
-       {TAPI_EVENT_NETWORK_GETNWMODE_CNF," TAPI_EVENT_NETWORK_GETNWMODE_CNF"},/**<     This event is returned on getting network mode*/
-       {TAPI_EVENT_NETWORK_SETNWMODE_CNF,"TAPI_EVENT_NETWORK_SETNWMODE_CNF"},  /**<    This event is returned on setting network mode*/
-       {TAPI_EVENT_NETWORK_SELECT_CNF," TAPI_EVENT_NETWORK_SELECT_CNF"},       /**<    This confirmation event is returned when user manually selected a network from list for Network selection */
-       {TAPI_EVENT_NETWORK_SEARCH_CNF," TAPI_EVENT_NETWORK_SEARCH_CNF"},       /**<    This event is returned as confirmation for manual Network search with the available network list*/
-       {TAPI_EVENT_NETWORK_GETSELECTIONMODE_CNF,"TAPI_EVENT_NETWORK_GETSELECTIONMODE_CNF"},    /**<    This event is returned on getting network selection mode*/
-//     {TAPI_EVENT_NETWORK_GETNETWORKINFO_CNF,"TAPI_EVENT_NETWORK_GETNETWORKINFO_CNF"},        /**<    This event is returned when Get network information is requested*/
-       {TAPI_EVENT_NETWORK_GETPREFFEREDPLMN_CNF," TAPI_EVENT_NETWORK_GETPREFFEREDPLMN_CNF"},   /**<    This event indicates that the PLMN used has been identified and returned */
-       {TAPI_EVENT_NETWORK_SETPREFFEREDPLMN_CNF,"TAPI_EVENT_NETWORK_SETPREFFEREDPLMN_CNF"},    /**<    This event indicates the preferred PLMN has been set*/
-       {TAPI_EVENT_NETWORK_LOCATIONCELLINFO_IND,"TAPI_EVENT_NETWORK_LOCATIONCELLINFO_IND"},    /**<    This event indicates the LAC and CELLID has been obtained*/
-//     {TAPI_EVENT_NETWORK_IDENTITY_IND,"TAPI_EVENT_NETWORK_IDENTITY_IND"},    /**<    This event indicates the Network ID has been detected*/
-       {TAPI_EVENT_NETWORK_CHANGE_IND," TAPI_EVENT_NETWORK_CHANGE_IND"},       /**<    This event indicates there is a change in Network*/
-//     {TAPI_EVENT_NETWORK_SELECT_IND," TAPI_EVENT_NETWORK_SELECT_IND"},       /**<    This event indicates the chosen network has been selected*/
-//     {TAPI_EVENT_NETWORK_SEARCH_IND," TAPI_EVENT_NETWORK_SEARCH_IND"},       /**<    This event indicates that available networks are being searched for */
-//     {TAPI_EVENT_NETWORK_RADIO_INFO_IND," TAPI_EVENT_NETWORK_RADIO_INFO_IND"},       /**<    This event indicates the Radio Information is got*/
-//     {TAPI_EVENT_NETWORK_PLMNLIST_INFO,"TAPI_EVENT_NETWORK_PLMNLIST_INFO"},  /**<    This event indicates the list of available PLMN's is got*/
-//     {TAPI_EVENT_NETWORK_SPN_INFO,"TAPI_EVENT_NETWORK_SPN_INFO"},    /**<    This event indicates the SPN info is got*/
-//     {TAPI_EVENT_NETWORK_DISPLAYINFO_IND," TAPI_EVENT_NETWORK_DISPLAYINFO_IND"},     /**<    This event indicates the Display Information is obtained*/
-
-       /* Events Related on Supplementary services      */
-//     {TAPI_EVENT_SS_BARRING_CNF, "TAPI_EVENT_CLASS_SS"},   /**<0x0400," "},  This confirmation event is sent when Barring activation/deactivation is requested*/
-       {TAPI_EVENT_SS_BARRING_CHANGEPASS_CNF," TAPI_EVENT_SS_BARRING_CHANGEPASS_CNF"},   /**<  This event is returned as Barring password change confirmation*/
-       {TAPI_EVENT_SS_BARRING_QUERYSTATUS_CNF," TAPI_EVENT_SS_BARRING_QUERYSTATUS_CNF"},   /**<        This event is returned  as Barring status query confirmation*/
-       {TAPI_EVENT_SS_FORWARD_CNF," TAPI_EVENT_SS_FORWARD_CNF"},   /**<        This event is returned as confirmation for Forward Activation/Deactivation/Registration/Erasure */
-       {TAPI_EVENT_SS_FORWARD_QUERYSTATUS_CNF,"TAPI_EVENT_SS_FORWARD_QUERYSTATUS_CNF "},   /**<        This event is returned as confirmation for Forward Status query confirmation*/
-       {TAPI_EVENT_SS_WAITING_CNF,"TAPI_EVENT_SS_WAITING_CNF "},   /**<        This event is returned as confirmation for Call waiting activation/deactivation*/
-       {TAPI_EVENT_SS_WAITING_QUERYSTATUS_CNF,"TAPI_EVENT_SS_WAITING_QUERYSTATUS_CNF "},   /**<        This event is returned as Call waiting status query confirmation*/
-       {TAPI_EVENT_SS_USSD_CNF,"TAPI_EVENT_SS_USSD_CNF "},   /**<      This event is returned as USSD send confirmation*/
-//     {TAPI_EVENT_SS_QUERYCAPABILITY_INFO_CNF,"TAPI_EVENT_SS_QUERYCAPABILITY_INFO_CNF "},   /**<      Event associated with the interrogation of supported supplementary services at OEM.*/
-       {TAPI_EVENT_SS_USSD_IND," TAPI_EVENT_SS_USSD_IND"},   /**<      This is an unsolicited USSD indication*/
-//     {TAPI_EVENT_SS_GET_PASSWORD_IND," TAPI_EVENT_SS_GET_PASSWORD_IND"},   /**<      This event is indicated to the Application when network requests for Call barring Get password for barring operation*/
-//     {TAPI_EVENT_SS_CLI_QUERYSTATUS_CNF,"TAPI_EVENT_SS_CLI_QUERYSTATUS_CNF "},   /**<        This event is indicated to the Application for CLI service interrogation*/
-//     {TAPI_EVENT_SS_REL_COMP_MSG_NOTIFY,"TAPI_EVENT_SS_REL_COMP_MSG_NOTIFY "}, /**<  This event is indicated to the Application when tapi receives Release complete message notiification for any SS transactions*/
-//     {TAPI_EVENT_SS_ERROR_IND," TAPI_EVENT_SS_ERROR_IND"},                           /**<This event is used to indicate ss related errors sent by the network*/
-//     {TAPI_EVENT_SS_AOC_RSP," TAPI_EVENT_SS_AOC_RSP"},                               /**<This event is used to send the aoc information */
-//     {TAPI_EVENT_SS_SET_AOC_CNF,"TAPI_EVENT_SS_SET_AOC_CNF "},                       /**<This event is used to send the confirmation for setting aoc values */
-//     {TAPI_EVENT_SS_BARRING_TYPE_IND,"TAPI_EVENT_SS_BARRING_TYPE_IND "},             /**<This event is used to send the barring type while making an MO call */
-
-       /* Events Related on SIM services        */
-//     {TAPI_EVENT_SIM_FILE_INFO_CNF, "TAPI_EVENT_CLASS_SIM "},        /**<0x0500," "},          File info */
-//     {TAPI_EVENT_SIM_READ_FILE_CNF," TAPI_EVENT_SIM_READ_FILE_CNF"}, /**< Read file */
-//     {TAPI_EVENT_SIM_UPDATE_FILE_CNF," TAPI_EVENT_SIM_UPDATE_FILE_CNF"},     /**< Updated file */
-//     {TAPI_EVENT_SIM_VERIFY_PIN_CNF," TAPI_EVENT_SIM_VERIFY_PIN_CNF"},       /**< Verified Chv */
-//     {TAPI_EVENT_SIM_CHANGE_PIN_CNF,"TAPI_EVENT_SIM_CHANGE_PIN_CNF "},       /**< Changed Chv */
-//     {TAPI_EVENT_SIM_DISABLE_PIN_CNF," TAPI_EVENT_SIM_DISABLE_PIN_CNF"},     /**< Disabled Chv */
-//     {TAPI_EVENT_SIM_ENABLE_PIN_CNF,"TAPI_EVENT_SIM_ENABLE_PIN_CNF "},       /**< Enabled Chv */
-//     {TAPI_EVENT_SIM_UNBLOCK_PIN_CNF,"TAPI_EVENT_SIM_UNBLOCK_PIN_CNF "},     /**< Unblocked Chv */
-//     {TAPI_EVENT_SIM_DISABLE_FDN_CNF,"TAPI_EVENT_SIM_DISABLE_FDN_CNF "},     /**< Disabled Fdn */
-//     {TAPI_EVENT_SIM_ENABLE_FDN_CNF,"TAPI_EVENT_SIM_ENABLE_FDN_CNF "},       /**< Enabled Fdn */
-
-//     {TAPI_EVENT_SIM_PB_STORAGE_COUNT_CNF," TAPI_EVENT_SIM_PB_STORAGE_COUNT_CNF"}, /**<Phonebook storage count*/
-//     {TAPI_EVENT_SIM_PB_ENTRY_INFO_CNF," TAPI_EVENT_SIM_PB_ENTRY_INFO_CNF"},        /**<Phonebook entry information*/
-//     {TAPI_EVENT_SIM_PB_ACCESS_READ_CNF," TAPI_EVENT_SIM_PB_ACCESS_READ_CNF"},     /**<Phonebook access read*/
-
-//     {TAPI_EVENT_SIM_PB_UPDATE_CNF," TAPI_EVENT_SIM_PB_UPDATE_CNF"},       /**<Phonebook update result*/
-//     {TAPI_EVENT_SIM_PB_DELETE_CNF,"TAPI_EVENT_SIM_PB_DELETE_CNF "},       /**<Phonebook delete result*/
-//     {TAPI_EVENT_SIM_STATUS_IND,"TAPI_EVENT_SIM_STATUS_IND "},         /**<Unsolicited event --- whenever there is a changes in SIM status*/
-//     {TAPI_EVENT_SIM_FDN_STATUS_IND,"TAPI_EVENT_SIM_FDN_STATUS_IND "},         /**<Unsolicited event --- whenever there is a changes in FDN status */
-
-       /* Extensions */
-       {TAPI_EVENT_SIM_PB_CAPABILITY_INFO_CNF,"TAPI_EVENT_SIM_PB_CAPABILITY_INFO_CNF "}, /** < 3G SIM PB capability Info */
-       {TAPI_EVENT_SIM_AUTHENTICATION_CNF,"TAPI_EVENT_SIM_AUTHENTICATION_CNF "}, /**< ISIM authentication confirmation*/
-       {TAPI_EVENT_SIM_SAP_CONNECT_NOTI,"TAPI_EVENT_SIM_SAP_CONNECT_NOTI "}, /**<SAP connect notification */
-       {TAPI_EVENT_SIM_SAP_CONNECT_CNF,"TAPI_EVENT_SIM_SAP_CONNECT_CNF "}, /**< SAP connect confirmation */
-       {TAPI_EVENT_SIM_SAP_CONNECT_STATUS_CNF," TAPI_EVENT_SIM_SAP_CONNECT_STATUS_CNF"}, /**< SAP connection status confirmation*/
-       {TAPI_EVENT_SIM_SAP_TRANSFER_ATR_CNF," TAPI_EVENT_SIM_SAP_TRANSFER_ATR_CNF"}, /**< SAP transfer ATR confirmation */
-       {TAPI_EVENT_SIM_SAP_TRANSFER_APDU_CNF," TAPI_EVENT_SIM_SAP_TRANSFER_APDU_CNF"}, /**< SAP transfer APDU confirmation */
-       {TAPI_EVENT_SIM_SAP_SET_PROTOCOL_CNF," TAPI_EVENT_SIM_SAP_SET_PROTOCOL_CNF"}, /**< SAP set protocaol confirmation */
-       {TAPI_EVENT_SIM_SAP_SET_SIM_POWER_CNF," TAPI_EVENT_SIM_SAP_SET_SIM_POWER_CNF"}, /**< SAP set sim power confirmation */
-       {TAPI_EVENT_SIM_SAP_CARD_READER_STATUS_CNF," TAPI_EVENT_SIM_SAP_CARD_READER_STATUS_CNF"}, /**< SAP card reader status confirmation*/
-//     {TAPI_EVENT_SIM_ENABLE_PERSONALIZATION_CNF,"TAPI_EVENT_SIM_ENABLE_PERSONALIZATION_CNF "}, /**< Enable personalization confirmation*/
-//     {TAPI_EVENT_SIM_DISABLE_PERSONALIZATION_CNF," TAPI_EVENT_SIM_DISABLE_PERSONALIZATION_CNF"}, /**<Disable personalization confirmation*/
-
-       /* Error Class Events*/
-       /*      fatal Error Event*/
-       //{TAPI_EVENT_ERR,"TAPI_EVENT_CLASS_ERR "},             /**0x0600," "},   <  Fatal Error Information */
-//     {TAPI_EVENT_ERR_MODEM_OFF," TAPI_EVENT_ERR_MODEM_OFF"},
-//     {TAPI_EVENT_ERR_MODEM_RESET," TAPI_EVENT_ERR_MODEM_RESET"},
-//     {TAPI_EVENT_ERR_RESERVED1_IND ,"TAPI_EVENT_ERR_RESERVED1_IND "},        /**< This event is notified to application about some error has occurred at OEM and can be used for debugging purpose */
-//     {TAPI_EVENT_ERR_RESERVED2_IND," TAPI_EVENT_ERR_RESERVED2_IND"}, /**< This event is notified to application about some error has occurred at OEM and can be used for debugging purpose */
-//     {TAPI_EVENT_ERR_RESERVED3_IND," TAPI_EVENT_ERR_RESERVED3_IND"}, /**< This event is notified to application about some error has occurred at OEM and can be used for debugging purpose */
-//     {TAPI_EVENT_ERR_RESERVED4_IND," TAPI_EVENT_ERR_RESERVED4_IND"}, /**< This event is notified to application about some error has occurred at OEM and can be used for debugging purpose */
-//     {TAPI_EVENT_ERR_RESERVED5_IND," TAPI_EVENT_ERR_RESERVED5_IND"}, /**< This event is notified to application about some error has occurred at OEM and can be used for debugging purpose */
-
-    /* Power Module Event Types...     */
-//     {TAPI_EVENT_POWER_PHONE_OFF, "TAPI_EVENT_CLASS_POWER"},                 /**0x0800," "},  <  Modem powerd Off    */
-       /*      Display Module Event Types...   */
-//     {TAPI_EVENT_DISPLAY_ICON_INFO_IND, "TAPI_EVENT_CLASS_DISPLAY"},         /**0x0900," "}, <  Display Icon Info Indication */
-//     {TAPI_EVENT_DISPLAY_HMZ_O2_IND," TAPI_EVENT_DISPLAY_HMZ_O2_IND"},                               /**<  Home Zone Info Indication */
-
-//     {TAPI_EVENT_MISC_NITZ_GETCNF, "TAPI_EVENT_CLASS_MISC"}, /**< 0x0A00," "}, */
-//     {TAPI_EVENT_MISC_NITZ_NOTIFY,"TAPI_EVENT_MISC_NITZ_NOTIFY "},      /**<     */
-//     {TAPI_EVENT_MISC_NITZ_IND," TAPI_EVENT_MISC_NITZ_IND"},      /**<     */
-
-       /*      PACKET CALL Events      */
-       {TAPI_EVENT_PS_PDP_ACT_RSP , "API_EVENT_CLASS_DATA"},   /**< 0x0B00," "},   -  PDP activation response event */
-       {TAPI_EVENT_PS_PDP_DEACT_RSP,"TAPI_EVENT_PS_PDP_DEACT_RSP "},                           /**<      PDP deactivation response event */
-       {TAPI_EVENT_PS_PDP_DEACT_IND," TAPI_EVENT_PS_PDP_DEACT_IND"},                   /**<     PDP deactivation indication event. */
-       {TAPI_EVENT_PS_STATUS,"TAPI_EVENT_PS_STATUS "},                 /**<     PDP status event. */
-       {TAPI_EVENT_PS_CALL_STATISTICS," TAPI_EVENT_PS_CALL_STATISTICS"},               /**<     publish notification or response of the call statistics  */
-//     {TAPI_EVENT_PS_PDP_CONTEXTINFO_RSP," TAPI_EVENT_PS_PDP_CONTEXTINFO_RSP"},       /**<     */
-//     {TAPI_EVENT_PS_CALL_STATUS_RSP," TAPI_EVENT_PS_CALL_STATUS_RSP"},      /**<     */
-//     {TAPI_EVENT_PS_PDP_ADDRESS_RSP," TAPI_EVENT_PS_PDP_ADDRESS_RSP"},      /**<     */
-//     {TAPI_EVENT_PS_QOS_PROFILE_RSP,"TAPI_EVENT_PS_QOS_PROFILE_RSP "},      /**<     */
-//     {TAPI_EVENT_PS_QOS_3G_PROFILE_RSP,"TAPI_EVENT_PS_QOS_3G_PROFILE_RSP "},      /**<     */
-//     {TAPI_EVENT_PS_NETWORK_STATUS_RSP," TAPI_EVENT_PS_NETWORK_STATUS_RSP"},      /**<     */
-//     {TAPI_EVENT_PS_HSDPA_STATUS_NOTI," TAPI_EVENT_PS_HSDPA_STATUS_NOTI"},      /**<     */
-//     {TAPI_EVENT_PS_BTDUN_PINCONTROL_NOTI,"TAPI_EVENT_PS_BTDUN_PINCONTROL_NOTI "},      /**<     */
-       {TAPI_EVENT_PS_PDP_ACT_IPCONFIG_INFO," TAPI_EVENT_PS_PDP_ACT_IPCONFIG_INFO"},      /**<     */
-       {TAPI_EVENT_PS_ERROR_IND," TAPI_EVENT_PS_ERROR_IND"},      /**<     */
-
-       {TAPI_EVENT_SOUND_VOLUMECTRL_RSP, "TAPI_EVENT_CLASS_SOUND"},          /**<     */
-//     {TAPI_EVENT_SOUND_USRCONFIGURATIONCTRL_RSP," TAPI_EVENT_SOUND_USRCONFIGURATIONCTRL_RSP"},      /**<     */
-       {TAPI_EVENT_SOUND_ERROR_IND," TAPI_EVENT_SOUND_ERROR_IND"},      /**<     */
-       {TAPI_EVENT_SOUND_AUDIOPATHCTRL_NOTI," TAPI_EVENT_SOUND_AUDIOPATHCTRL_NOTI"},      /**<     */
-       {TAPI_EVENT_SOUND_AUDIOSOURCECTRL_NOTI," TAPI_EVENT_SOUND_AUDIOSOURCECTRL_NOTI"},      /**<     */
-       {TAPI_EVENT_SOUND_MICMUTECTRL_RSP,"TAPI_EVENT_SOUND_MICMUTECTRL_RSP "},      /**<     */
-//     {TAPI_EVENT_SOUND_MICGAINCTRL_RSP,"TAPI_EVENT_SOUND_MICGAINCTRL_RSP "},      /**<     */
-
-/*SAT events*/
-//     {TAPI_EVENT_SAT_DISPLAY_TEXT_IND, "TAPI_EVENT_CLASS_SAT"},      /**< 0x0D00," "}, SAT Dsiplay Text Event*/
-//     {TAPI_EVENT_SAT_GET_INKEY_IND," TAPI_EVENT_SAT_GET_INKEY_IND"},                                       /**< SAT Get Inkey Event */
-//     {TAPI_EVENT_SAT_GET_INPUT_IND," TAPI_EVENT_SAT_GET_INPUT_IND"},                                     /**< SAT Get Input Event */
-//     {TAPI_EVENT_SAT_UI_PLAY_TONE_IND,"TAPI_EVENT_SAT_UI_PLAY_TONE_IND "},                              /**< SAT Play Tone Event for UI client*/
-//     {TAPI_EVENT_SAT_PLAY_TONE_IND ," TAPI_EVENT_SAT_PLAY_TONE_IND"},                                     /**< SAT Play Tone Event for MM client */
-  //   {TAPI_EVENT_SAT_UI_REFRESH_IND," TAPI_EVENT_SAT_UI_REFRESH_IND"},                                     /**< SAT Refresh Event for UI client*/
-//     {TAPI_EVENT_SAT_SETUP_MENU_IND," TAPI_EVENT_SAT_SETUP_MENU_IND"},                                 /**< SAT Setup Menu Event */
-//     {TAPI_EVENT_SAT_SELECT_ITEM_IND," TAPI_EVENT_SAT_SELECT_ITEM_IND"},                                   /**< SAT Select Item Event */
-//     {TAPI_EVENT_SAT_UI_SEND_SMS_IND,"TAPI_EVENT_SAT_UI_SEND_SMS_IND "},                                                /**< SAT Send SMS Event for UI client */
-//     {TAPI_EVENT_SAT_UI_SEND_SS_IND," TAPI_EVENT_SAT_UI_SEND_SS_IND"},                                  /**< SAT Send SS Event for UI client */
-//     {TAPI_EVENT_SAT_UI_SEND_USSD_IND,"TAPI_EVENT_SAT_UI_SEND_USSD_IND "},                              /**< SAT Send USSD Event for UI client */
-//     {TAPI_EVENT_SAT_UI_SETUP_CALL_IND,"TAPI_EVENT_SAT_UI_SETUP_CALL_IND "},                             /**< SAT Setup Call Event for UI client */
-//     {TAPI_EVENT_SAT_PROVIDE_LOCAL_INFO_IND," TAPI_EVENT_SAT_PROVIDE_LOCAL_INFO_IND"}, /**< SAT Provide Local Information Event*/
-//     {TAPI_EVENT_SAT_SETUP_IDLE_MODE_TEXT_IND," TAPI_EVENT_SAT_SETUP_IDLE_MODE_TEXT_IND"}, /**< SAT Setup Idle Mode Event*/
-//     {TAPI_EVENT_SAT_UI_SEND_DTMF_IND," TAPI_EVENT_SAT_UI_SEND_DTMF_IND"},         /**< SAT Send DTMF Event for UI client*/
-//     {TAPI_EVENT_SAT_LANGUAGE_NOTIFICATION_IND,"TAPI_EVENT_SAT_LANGUAGE_NOTIFICATION_IND "},      /**< SAT Language notification Event */
-//     {TAPI_EVENT_SAT_UI_LAUNCH_BROWSER_IND," TAPI_EVENT_SAT_UI_LAUNCH_BROWSER_IND"},             /**< SAT Launch Browser Event for UI client*/
-//     {TAPI_EVENT_SAT_OPEN_CHANNEL_LOCAL_LINK_IND," TAPI_EVENT_SAT_OPEN_CHANNEL_LOCAL_LINK_IND"},
-//     {TAPI_EVENT_SAT_OPEN_CHANNEL_CSB_IND,"TAPI_EVENT_SAT_OPEN_CHANNEL_CSB_IND "},
-//     {TAPI_EVENT_SAT_OPEN_CHANNEL_GPRS_IND," TAPI_EVENT_SAT_OPEN_CHANNEL_GPRS_IND"},
-//     {TAPI_EVENT_SAT_CLOSE_CHANNEL_IND," TAPI_EVENT_SAT_CLOSE_CHANNEL_IND"},
-//     {TAPI_EVENT_SAT_RECEIVE_DATA_IND," TAPI_EVENT_SAT_RECEIVE_DATA_IND"},
-//     {TAPI_EVENT_SAT_SEND_DATA_IND," TAPI_EVENT_SAT_SEND_DATA_IND"},
-//     {TAPI_EVENT_SAT_GET_CHANNEL_STATUS_IND," TAPI_EVENT_SAT_GET_CHANNEL_STATUS_IND"},
-//     {TAPI_EVENT_SAT_END_PROACTIVE_SESSION_IND," TAPI_EVENT_SAT_END_PROACTIVE_SESSION_IND"},       /**< SAT End Proactive Command Session Event. This is to indicate that Proactive UICC Session ended*/
-       {TAPI_EVENT_SAT_MENU_SELECTION_CNF,"TAPI_EVENT_SAT_MENU_SELECTION_CNF "},      /**< response from sim for menu selection request */
-       {TAPI_EVENT_SAT_CALL_CONTROL_IND," TAPI_EVENT_SAT_CALL_CONTROL_IND"},               /**< response from sim for call control by USIM. This is to indicate that the voice call/ss/ussd parameters have been modified by USIM  */
-       {TAPI_EVENT_SAT_MO_SMS_CONTROL_IND," TAPI_EVENT_SAT_MO_SMS_CONTROL_IND"},               /**< response from sim for Mo sms control bu USIM. This is to indicate that the SMS parameters have been modified by USIM */
-       {TAPI_EVENT_SAT_EVENT_DOWNLOAD_CNF,"TAPI_EVENT_SAT_EVENT_DOWNLOAD_CNF "},               /**< response from sim for event download request */
-
-       /**EVENTS SENT TO OTHER APPS**/
-       {TAPI_EVENT_SAT_SMS_REFRESH_IND," TAPI_EVENT_SAT_SMS_REFRESH_IND"},      /**< SAT Refresh Event for SMS client */
-       {TAPI_EVENT_SAT_PB_REFRESH_IND," TAPI_EVENT_SAT_PB_REFRESH_IND"},        /**< SAT Refresh Event for Phonebook client*/
-       {TAPI_EVENT_SAT_IDLE_REFRESH_IND,"TAPI_EVENT_SAT_IDLE_REFRESH_IND "}, /**< SAT Refresh Event for Idle Mode client */
-       {TAPI_EVENT_SAT_SEND_SMS_IND," TAPI_EVENT_SAT_SEND_SMS_IND"}, /**< SAT Send SMS Event for SMS client*/
-       {TAPI_EVENT_SAT_SETUP_CALL_IND," TAPI_EVENT_SAT_SETUP_CALL_IND"},        /**< SAT Setup Call Event for Call client */
-       {TAPI_EVENT_SAT_SEND_SS_IND,"TAPI_EVENT_SAT_SEND_SS_IND "},        /**< SAT Send SS Event for SS client*/
-       {TAPI_EVENT_SAT_SEND_USSD_IND," TAPI_EVENT_SAT_SEND_USSD_IND"},        /**< SAT Send SS Event for USSD client */
-       {TAPI_EVENT_SAT_SEND_DTMF_IND,"TAPI_EVENT_SAT_SEND_DTMF_IND "},      /**< SAT Send DTMF Event for UI client*/
-       {TAPI_EVENT_SAT_LAUNCH_BROWSER_IND," TAPI_EVENT_SAT_LAUNCH_BROWSER_IND"},   /**< SAT Launch Browser Event for Browser */
-       {TAPI_EVENT_SAT_END_OF_APP_EXEC_IND," TAPI_EVENT_SAT_END_OF_APP_EXEC_IND"},    /**< SAT End Proactive command Execution Event. This event will be indicated to the application to end the execution of a Proactive Command when required  */
-
-
-       //{TAPI_GPS_EVENT_START_SESSION_RESP, "TAPI_EVENT_CLASS_GPS"},          /**<0x0F00," "},        Start session response event type.              */
-       //{TAPI_GPS_EVENT_OPTION_SET_RESP,"TAPI_GPS_EVENT_OPTION_SET_RESP "},                   /**<    GPS option set response  event type.            */
-
-//     {TAPI_GPS_EVENT_CLOSE_SESSION_RESP,"TAPI_GPS_EVENT_CLOSE_SESSION_RESP "},                               /**<    Close session response event type */
-
-//     {TAPI_GPS_EVENT_AGPS_SSL_SET_RESP," TAPI_GPS_EVENT_AGPS_SSL_SET_RESP"},      /**<     */
-//     {TAPI_GPS_EVENT_AGPS_BEARER_SET_RESP," TAPI_GPS_EVENT_AGPS_BEARER_SET_RESP"},      /**<     */
-
-//     {TAPI_GPS_EVENT_AGPS_PDP_CONNECTION_IND," TAPI_GPS_EVENT_AGPS_PDP_CONNECTION_IND"},                     /**<    .               */
-
-//     {TAPI_GPS_EVENT_AGPS_SSL_GET_RESPONSE," TAPI_GPS_EVENT_AGPS_SSL_GET_RESPONSE"},      /**<     */
-
-//     {TAPI_GPS_EVENT_DEVSTATE_NOTI,"TAPI_GPS_EVENT_DEVSTATE_NOTI "},                                         /**<    Device state notification event type .          */
-//     {TAPI_GPS_EVENT_DEVSTATE_RESP," TAPI_GPS_EVENT_DEVSTATE_RESP"},                                         /**<    Device state response type.             */
-//     {TAPI_GPS_EVENT_VERIFICATION_IND," TAPI_GPS_EVENT_VERIFICATION_IND"},                                   /**<    Verification indication event type.             */
-//     {TAPI_GPS_EVENT_SUPL_NOTI,"TAPI_GPS_EVENT_SUPL_NOTI "},                                                 /**<    SUPL Notification event type .          */
-
-       /*      All please add your events if any," "}, above this one  */
-       {TAPI_EVENT_TYPE_MAX," "},/**< Event Max */
-
-       /* Events Related on Supplementary services      */
-       {TAPI_EVENT_SS_BARRING_CNF,"TAPI_EVENT_SS_BARRING_CNF"},
-       {TAPI_EVENT_SS_BARRING_CHANGEPASS_CNF,"TAPI_EVENT_SS_BARRING_CHANGEPASS_CNF"},
-       {TAPI_EVENT_SS_BARRING_QUERYSTATUS_CNF,"TAPI_EVENT_SS_BARRING_QUERYSTATUS_CNF"},
-       {TAPI_EVENT_SS_FORWARD_CNF,"TAPI_EVENT_SS_FORWARD_CNF"},
-       {TAPI_EVENT_SS_FORWARD_QUERYSTATUS_CNF,"TAPI_EVENT_SS_FORWARD_QUERYSTATUS_CNF"},
-       {TAPI_EVENT_SS_WAITING_CNF,"TAPI_EVENT_SS_WAITING_CNF"},
-       {TAPI_EVENT_SS_WAITING_QUERYSTATUS_CNF,"TAPI_EVENT_SS_WAITING_QUERYSTATUS_CNF"},
-       {TAPI_EVENT_SS_USSD_CNF,"TAPI_EVENT_SS_USSD_CNF"},
-};
-#endif
-
-#define TAPI_ERROR_MAX TAPI_API_SERVER_LAYER_FAILURE+1
-
-TAPI_Error_String g_TAPI_ErrorString[200] = {
-
-       /* #################### COMMON START ################ */
-       {TAPI_API_SUCCESS,              "TAPI_API_SUCCESS : No Error occured"},
-       {TAPI_API_INVALID_INPUT,        "TAPI_API_INVALID_INPUT : Input values are not correct in TAPI Library"},
-       {TAPI_API_INVALID_PTR,          "TAPI_API_INVALID_PTR : Invalid pointer"},
-       {TAPI_API_NOT_SUPPORTED,        "TAPI_API_NOT_SUPPORTED: The feature corresponding to requested API is not supported. This may be due to market/network/vendor reasons such as the feature is not available in the network"},
-       {TAPI_API_DEPRICATED,           "TAPI_API_DEPRICATED : This API is deprecated and will be so in future also"},
-       {TAPI_API_SYSTEM_OUT_OF_MEM,    "TAPI_API_SYSTEM_OUT_OF_MEM : Out of memory"},
-       {TAPI_API_SYSTEM_RPC_LINK_DOWN, "TAPI_API_SYSTEM_RPC_LINK_DOWN : RPC link down"},
-       {TAPI_API_MODEM_POWERED_OFF,    "TAPI_API_MODEM_POWERED_OFF : The Modem is powered off"},
-       {TAPI_API_SERVICE_NOT_READY,    "TAPI_API_SERVICE_NOT_READY : Phone was powered on, but yet to receive the power up completed notification"},
-       {TAPI_API_SERVER_FAILURE ,      "TAPI_API_SERVER_FAILURE : error occurred in Telephony server"},
-       {TAPI_API_OEM_PLUGIN_FAILURE ,  "TAPI_API_OEM_PLUGIN_FAILURE  : Plug-in layer failure"},
-       {TAPI_API_TRANSPORT_LAYER_FAILURE, "TAPI_API_TRANSPORT_LAYER_FAILURE"},
-
-       {TAPI_API_INVALID_CALL_HANDLE,  "TAPI_API_INVALID_CALL_HANDLE : Invalid call handle"},
-       {TAPI_API_INVALID_CALL_STATE,   "TAPI_API_INVALID_CALL_STATE : Invalid call state- Newly added. Need to raise a CR for this"},
-
-       {TAPI_API_INVALID_DATA_LEN,     "TAPI_API_INVALID_DATA_LEN : Invalid data length"},
-       {TAPI_API_SIM_NOT_FOUND,        "TAPI_API_SIM_NOT_FOUND : Sim is not present / removed "},
-       {TAPI_API_SIM_BUSY,             "TAPI_API_SIM_BUSY : SIM is busy"},
-       {TAPI_API_SIM_INVALID_CARD_TYPE, "TAPI_API_SIM_INVALID_CARD_TYPE : Sim card is unknown "},
-       {TAPI_API_SIM_CARD_PERMANENT_ERROR, "TAPI_API_SIM_CARD_PERMANENT_ERROR : SIM error/blocked state"},
-       {TAPI_API_SIM_NOT_INITIALIZED,  "TAPI_API_SIM_NOT_INITIALIZED : SIM has not initialized yet (waiting for PIN verifcation, etc)"},
-       {TAPI_API_REQUEST_MAX_IN_PROGRESS, "TAPI_API_REQUEST_MAX_IN_PROGRESS : Maximum number of API Request for the same service are already in progress "},
-       {TAPI_API_OFFLINE_MODE_ERROR,   "TAPI_API_OFFLINE_MODE_ERROR : OEM Telephony Provider is in Offline mode"},
-       {TAPI_EVENT_CLASS_UNKNOWN,      "TAPI_EVENT_CLASS_UNKNOWN : Event class specified is not present in Event Class list"},
-       {TAPI_EVENT_UNKNOWN,            "TAPI_EVENT_UNKNOWN : Event specified is not present in TAPI Unsolicited Event list"},
-       {TAPI_REGISTRATION_OP_FAILED,   "TAPI_REGISTRATION_OP_FAILED : Callback Registration/De-registration failed"},
-       {TAPI_NETTEXT_SCADDRESS_NOT_SET, "TAPI_NETTEXT_SCADDRESS_NOT_SET"},
-       {TAPI_API_OPERATION_FAILED,     "TAPI_API_OPERATION_FAILED"},
-       {TAPI_API_INVALID_OPERATION,    "TAPI_API_INVALID_OPERATION"},
-};
-
-/*static char * nondefined_event_class = "Non defined event class";
-static const char* TET_EVENT_CLASS_TO_STRING(int event_class)
-{
-       int index;
-       for( index=0; g_TAPI_event_class_string[index].event_class != TAPI_EVENT_CLASS_MAX ; index++)
-       {
-               if (g_TAPI_event_class_string[index].event_class == event_class || g_TAPI_event_class_string[index].event_class == TAPI_EVENT_CLASS_MAX)
-                       return g_TAPI_event_class_string[index].string;
-       }
-       return nondefined_event_class;
-}
-
-static char * nondefined_event = "Non defined event";
-static const char* TET_EVENT_TO_STRING(int event_class)
-{
-       int index;
-       for( index=0; g_TAPI_EventString[index].event != TAPI_EVENT_MAX ; index++)
-       {
-               if (g_TAPI_EventString[index].event == event_class || g_TAPI_EventString[index].event == TAPI_EVENT_MAX)
-                       return g_TAPI_EventString[index].string;
-       }
-       return nondefined_event;
-}*/
-
-char * nondefined_err = "Non defined error code";
-const char* TET_RESULT_TO_STRING(TapiResult_t err_code)
-{
-       int index;
-       for( index=0; g_TAPI_ErrorString[index].err != TAPI_ERROR_MAX ; index++)
-       {
-               if (g_TAPI_ErrorString[index].err == err_code || g_TAPI_ErrorString[index].err == TAPI_ERROR_MAX)
-                       return g_TAPI_ErrorString[index].string;
-       }
-       return nondefined_err;
-}
-
-void  ss_utc_callback(TelTapiEvent_t *Event, void *data)
-{
-       int eventClass;
-       int eventType;
-
-       eventClass= Event->EventClass;
-       eventType= Event->EventType;
-
-       int expected_event = (int)data;
-
-       if(expected_event == data){
-               printf("expected event=%d, received=%d\n", expected_event, eventType);
-               G_MAIN_LOOP_CLOSE();
-       }       
-       
-       return;
-}
diff --git a/TC/telephony_TC/ss/unit/tet_tapi_util.h b/TC/telephony_TC/ss/unit/tet_tapi_util.h
deleted file mode 100644 (file)
index 7e406b4..0000000
+++ /dev/null
@@ -1,250 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef _TET_TAPI_UTIL_
-#define _TET_TAPI_UTIL_
-
-//#include <tapi_err.h>
-#include "TapiCommon.h"
-
-extern void G_MAIN_LOOP_CLOSE();
-extern int G_MAIN_LOOP_RUN(int);
-extern void  ss_utc_callback(TelTapiEvent_t *, void *data);
-extern const char* TET_RESULT_TO_STRING(TapiResult_t err_code);
-
-typedef enum{
-       SS_NO_RESPONSE,
-       SS_OK,
-       SS_FAIL
-} SsAsyncResponse_t;
-
-#ifndef BOOL
-    typedef int                 BOOL;
-#endif
-
-#ifndef TRUE
-#define TRUE                1
-#endif
-
-#ifndef FALSE
-#define FALSE           0
-#endif
-
-// TET_Error Code string return macro
-typedef struct {
-       TapiResult_t err;
-       char * string;
-}TAPI_Error_String;
-
-// TET_Event Code string return macro
-typedef struct {
-       int event_class;
-       char * string;
-}TAPI_EventClass_String;
-
-
-// TET_Event Code string return macro
-typedef struct {
-       int event;
-       char * string;
-}TAPI_Event_String;
-
-
-/////////////////////////////////////////////////////////////////////////
-//                      TETware Utility Function
-/////////////////////////////////////////////////////////////////////////
-
-
-// TET_STAMP ******************************************************************************
-#define TET_STAMP_START(log) \
-do {\
-       tet_printf("\n###########################################\n## %s \n## %s ", __FUNCTION__,log);\
-} while(0)
-
-#define TET_STAMP_PASS() \
-do {\
-       tet_printf("%s : pass",__FUNCTION__);\
-       tet_result(TET_PASS);\
-} while(0)
-
-#define TET_STAMP_FAIL() \
-do {\
-       tet_printf("%s : fail",__FUNCTION__);\
-       tet_result(TET_FAIL);\
-} while(0)
-
-#define TET_STAMP(result) \
-do {\
-       tet_printf("%s[%d] %s() TET_STAMP(%d)",__FILE__,__LINE__,__FUNCTION__,result); \
-       tet_result(result);\
-} while(0)
-
-// TET_RESULT Function *********************************************************************
-#define TET_RESULT_IF_EQUAL(result,x1,x2) \
-do { \
-   if ((x1) == (x2)) \
-       { \
-          tet_printf("[line %d] Expected Result: %d  Actual Result: %d",__LINE__, x1,x2); \
-          tet_result(result); \
-          if(result==TET_PASS || result==TET_FAIL || result == TET_UNTESTED) return;\
-       } \
- } while(0)
-
-#define TET_RESULT_IF_EQUAL_THEN_GOTO(result,label,x1,x2) \
-do { \
-   if ((x1) == (x2)) \
-       { \
-           tet_result(result); \
-           goto label; \
-       } \
-   else \
-   { \
-       tet_printf("[line %d] Expected Result: %d  Actual Result: %d",__LINE__, x1,x2); \
-   } \
- } while(0)
-
-#define TET_RESULT_IF_NOT_EQUAL(result,x1,x2) \
-do { \
-   if ((x1) != (x2)) \
-       { \
-       tet_printf("[line %d] Expected Result: %d  Actual Result: %d",__LINE__, x1,x2); \
-          tet_result(result); \
-          if(result==TET_PASS || result==TET_FAIL || result == TET_UNTESTED) return; \
-       } \
- } while(0)
-
-
-#define TET_RESULT_IF_NOT_EQUAL_THEN_GOTO(result,label,x1,x2) \
-do { \
-   if ((x1) != (x2)) \
-       { \
-       tet_printf("[line %d] Expected Result: %d  Actual Result: %d",__LINE__, x1,x2); \
-          tet_result(result); \
-          tet_result(result); \
-          goto label;\
-       } \
- } while(0)
-
-
-// TET_CHECK Macro : TAPI api return value test macro. If it is not TAPI_API_SUCCESS, tet_retult(TET_FAIL) is called
-#define TET_CHECK(x1, y...) \
-do { \
-   TapiResult_t err = y;\
-   if (err != (x1)) \
-       { \
-       tet_printf("[line %d] Expected Result: %d  Actual Result: %d",__LINE__, x1,x2); \
-               tet_result(TET_FAIL); \
-               return;\
-       } \
- } while(0)
-
-
-#define TET_PRECONDITION(x1, y...) \
-do { \
-   TapiResult_t err = y;\
-   if (err != (x1)) \
-       { \
-               tet_printf("%s[%d] %s : Test precondition fail. error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, err, TET_ERROR_TO_STRING(err) ); \
-               tet_result(TET_UNTESTED); \
-               return;\
-       } \
- } while(0)
-
-#define TET_PRECONDITION2(x1, x2, y...) \
-do { \
-   TapiResult_t err = y;\
-   if ( !(err == (x1) || err == (x2))) \
-       { \
-               tet_printf("%s[%d] %s : Test precondition fail. error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, err, TET_ERROR_TO_STRING(err) ); \
-               tet_result(TET_UNTESTED); \
-               return;\
-       } \
- } while(0)
-
-
-#define TET_CHECK_GOTO(x1,label, y...) \
-do { \
-   TapiResult_t err = y;\
-   if (err != (x1)) \
-       { \
-               tet_printf("%s[%d] %s() : test fail. error code =%x [%s] ",__FILE__,__LINE__,__FUNCTION__, err, TET_ERROR_TO_STRING(err) ); \
-               tet_result(TET_FAIL); \
-               goto label;\
-       } \
- } while(0)
-
-#define TET_PRECONDITION_GOTO(x1,label, y...) \
-do { \
-   TapiResult_t err = y;\
-   if (err != (x1)) \
-       { \
-               tet_printf("%s[%d] %s() : Test precondition fail. error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, err, TET_ERROR_TO_STRING(err) ); \
-               tet_result(TET_UNTESTED); \
-               goto label;\
-       } \
- } while(0)
-
-#define TET_PRECONDITION2_GOTO(x1,x2,label, y...) \
-do { \
-   TapiResult_t err = y;\
-   if ( !(err == (x1)||err == (x2))) \
-       { \
-               tet_printf("%s[%d] %s() : Test precondition fail. error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, err, TET_ERROR_TO_STRING(err) ); \
-               tet_result(TET_UNTESTED); \
-               goto label;\
-       } \
- } while(0)
-
-
-#define TET_CHECK2(x1,x2, y...) \
-do { \
-   TapiResult_t err = y;\
-   if (!(err == (x1) || err == (x2))) \
-       { \
-               tet_printf("%s[%d] %s() : test fail. error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, err, TET_ERROR_TO_STRING(err) ); \
-               tet_result(TET_FAIL); \
-               return;\
-       } \
- } while(0)
-
-#define TET_CHECK2_GOTO(x1,x2, label, y...) \
-do { \
-   TapiResult_t err = y;\
-   if (!(err == (x1) || err == (x2))) \
-       { \
-               tet_printf("%s[%d] %s() : test fail. error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, err, TET_ERROR_TO_STRING(err) ); \
-               tet_result(TET_FAIL); \
-               goto label;\
-       } \
-   else tet_printf("%s[%d] %s() : test success. error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, err, TET_ERROR_TO_STRING(err) ); \
- } while(0)
-
-
-#define TET_CHECK3(x1,x2,x3, y...) \
-do { \
-   TapiResult_t err = y;\
-   if (!(err == (x1) || err == (x2) || err == (x3))) \
-       { \
-               tet_printf("%s[%d] %s() : test fail. error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, err, TET_ERROR_TO_STRING(err) ); \
-               tet_result(TET_FAIL); \
-               return;\
-       } \
- } while(0)
-#endif //_TET_TAPI_UTIL_
diff --git a/TC/telephony_TC/ss/unit/tslist b/TC/telephony_TC/ss/unit/tslist
deleted file mode 100644 (file)
index 8f06a23..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-/ss/unit/uts_tel_set_ss_barring
-/ss/unit/uts_tel_get_ss_barring_status
-/ss/unit/uts_tel_change_ss_barring_password
-/ss/unit/uts_tel_set_ss_forward
-/ss/unit/uts_tel_get_ss_forward_status
-/ss/unit/uts_tel_set_ss_waiting
-/ss/unit/uts_tel_get_ss_waiting_status
-/ss/unit/uts_tel_get_ss_cli_status
-/ss/unit/uts_tel_send_ss_ussd_request
-/ss/unit/uts_tel_send_ss_ussd_response
-/ss/unit/uts_tel_send_ss_ussd_cancel
diff --git a/TC/telephony_TC/ss/unit/uts_tel_change_ss_barring_password.c b/TC/telephony_TC/ss/unit/uts_tel_change_ss_barring_password.c
deleted file mode 100644 (file)
index 91cedd8..0000000
+++ /dev/null
@@ -1,299 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include <tet_api.h>
-#include "uts_tel_change_ss_barring_password.h"
-
-#include <ITapiCall.h>
-#include <ITapiSs.h>
-#include <stdlib.h>
-#include <signal.h>
-#include <stdio.h>
-#include <errno.h>
-#include <sys/types.h>
-
-#include <pthread.h>
-#include "assert.h"
-#include "glib.h"
-
-#include "TapiCommon.h"
-//#include "tapi_utility.h"
-#include <gconf/gconf-client.h>
-#include "string.h"
-
-#include "tet_tapi_util.h"
-#include <ss_common.h>
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_change_ss_barring_password_01, 1},
-       {utc_tel_change_ss_barring_password_02, 2},
-       {utc_tel_change_ss_barring_password_03, 3},
-       {utc_tel_change_ss_barring_password_04, 4},
-       {utc_tel_change_ss_barring_password_05, 5},
-       {utc_tel_change_ss_barring_password_06, 6},
-       {NULL, 0}
-};
-
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       gStartupSuccess = FALSE;
-       if(tel_init() == TAPI_API_SUCCESS)
-       {
-               if(tel_register_event(TAPI_EVENT_SS_BARRING_CHANGEPASS_CNF, &subscription_id, (TelAppCallback)ss_utc_callback,NULL) == TAPI_API_SUCCESS)
-               {
-                       gStartupSuccess = TRUE;
-                       tel_register_app_name("org.samsung.test");
-                       if(tel_get_app_name(&dname))
-                               printf("Dbus Get app name error\n");
-                       else 
-                               printf("Dbus Name is %s\n",dname.name);
-
-                       tel_check_service_ready(&bStatus);
-                       printf("Telephpny service  %d\n",bStatus);
-
-               }
-               else
-                       tet_infoline("startup fail. tel_register_event()");
-       }else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-
-       return;
-}
-
-static void cleanup()
-{
-       if(gStartupSuccess == TRUE)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-       return;
-}
-
-
-/**
- * @brief This tests TelTapiSsChangeBarPassword() API in normal conditions
- * @par ID:
- * UTC_TAPI_SS_CHANGE_BAR_PASSWORD_001
- * @param [in] oldPwd "0000"
- * @param [in] newPwd "1111"
-* @param [out] RequestId
-* @return TAPI_API_SUCCESS
-*/
-
-void utc_tel_change_ss_barring_password_01()
-{
-       TET_STAMP_START("Positive Test");
-
-
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-       int pRequestId;
-
-       char *oldPwd=OLD_PWD;
-       char *newPwd=OLD_PWD;
-       char *newPwdAgain=OLD_PWD;
-
-       ret_status = tel_change_ss_barring_password(oldPwd,newPwd,newPwdAgain, &pRequestId);
-
-       TET_RESULT_IF_NOT_EQUAL_THEN_GOTO(TET_FAIL, exit, TAPI_API_SUCCESS, ret_status );
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_PASS);
-exit:
-       return;
-}
-
-
-/**
- * @brief Error handling of the old password for TelTapiSsChangeBarPassword() API
- * @par ID:
- * UTC_TAPI_SS_CHANGE_BAR_PASSWORD_002
- * @param [in] oldPwd "00000"  //Long password
- * @param [in] newPwd "1111"
-* @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_change_ss_barring_password_02()
-{
-       TET_STAMP_START("Invalid long old password");
-
-
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-       int pRequestId;
-       char *oldPwd="00000";
-       char *newPwd="1111";
-        char *newPwdAgain="1111";
-
-       ret_status = tel_change_ss_barring_password(oldPwd,newPwd,newPwdAgain, &pRequestId);
-
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status);
-
-       G_MAIN_LOOP_RUN(7);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Error handling of the new password for TelTapiSsChangeBarPassword() API
- * @par ID:
- * UTC_TAPI_SS_CHANGE_BAR_PASSWORD_003
- * @param [in] oldPwd "0000"
- * @param [in] newPwd "11111"   //Long password
-* @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_change_ss_barring_password_03()
-{
-       TET_STAMP_START("Invalid long new password");
-
-
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-       int pRequestId;
-       char *oldPwd="0000";
-       char *newPwd="11111";
-       char *newPwdAgain="11111";
-
-       ret_status = tel_change_ss_barring_password(oldPwd,newPwd,newPwdAgain, &pRequestId);
-
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status);
-
-       G_MAIN_LOOP_RUN(7);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Null testing of the old password for TelTapiSsChangeBarPassword() API
- * @par ID:
- * UTC_TAPI_SS_CHANGE_BAR_PASSWORD_004
- * @param [in] oldPwd NULL
- * @param [in] newPwd "1111"
-* @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_change_ss_barring_password_04()
-{
-       TET_STAMP_START("Null old password");
-
-
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-       int pRequestId;
-       char *oldPwd=NULL;
-       char *newPwd="1111";
-       char *newPwdAgain="1111";
-
-       ret_status = tel_change_ss_barring_password(oldPwd,newPwd,newPwdAgain, &pRequestId);
-
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_PTR, ret_status);
-
-       G_MAIN_LOOP_RUN(7);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Null testing of the new password for TelTapiSsChangeBarPassword() API
- * @par ID:
- * UTC_TAPI_SS_CHANGE_BAR_PASSWORD_005
- * @param [in] oldPwd "0000"
- * @param [in] newPwd NULL
-* @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_change_ss_barring_password_05()
-{
-       TET_STAMP_START("Null new password");
-
-
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-       int pRequestId;
-       char *oldPwd="0000";
-       char *newPwd=NULL;
-       char *newPwdAgain=NULL;
-
-       ret_status = tel_change_ss_barring_password(oldPwd,newPwd,newPwdAgain, &pRequestId);
-
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_PTR, ret_status);
-
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Null testing of the request ID for TelTapiSsChangeBarPassword() API
- * @par ID:
- * UTC_TAPI_SS_CHANGE_BAR_PASSWORD_006
- * @param [in] oldPwd "0000"
- * @param [in] newPwd "1111"
-* @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_change_ss_barring_password_06()
-{
-       TET_STAMP_START("Null RequstId");
-
-
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-       char *oldPwd="0000";
-       char *newPwd="1111";
-        char *newPwdAgain="1111";
-
-       ret_status = tel_change_ss_barring_password(oldPwd,newPwd,newPwdAgain, NULL);
-
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_PTR, ret_status);
-
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-
-
-/** @} */
diff --git a/TC/telephony_TC/ss/unit/uts_tel_change_ss_barring_password.h b/TC/telephony_TC/ss/unit/uts_tel_change_ss_barring_password.h
deleted file mode 100644 (file)
index 0f0d1cc..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef _UTS_TAPI_SS_CHANGE_BAR_PASSWORD_H_
-#define _UTS_TAPI_SS_CHANGE_BAR_PASSWORD_H_
-
-static void utc_tel_change_ss_barring_password_01();
-static void utc_tel_change_ss_barring_password_02();
-static void utc_tel_change_ss_barring_password_03();
-static void utc_tel_change_ss_barring_password_04();
-static void utc_tel_change_ss_barring_password_05();
-static void utc_tel_change_ss_barring_password_06();
-
-#endif //_ITS_TAPI_CALL_BARRING_ACT_H_
diff --git a/TC/telephony_TC/ss/unit/uts_tel_get_ss_aoc_info.c b/TC/telephony_TC/ss/unit/uts_tel_get_ss_aoc_info.c
deleted file mode 100644 (file)
index 601fa2e..0000000
+++ /dev/null
@@ -1,203 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <ITapiCall.h>
-#include <ITapiSs.h>
-#include <stdlib.h>
-#include <signal.h>
-#include <stdio.h>
-#include <errno.h>
-#include <sys/types.h>
-
-#include <pthread.h>
-#include "assert.h"
-#include "glib.h"
-
-#include "TapiCommon.h"
-#include <tet_api.h>
-#include "uts_tel_get_ss_aoc_info.h"
-#include "tet_tapi_util.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_ss_aoc_info_01, 1},
-       {utc_tel_get_ss_aoc_info_02, 2},
-       {utc_tel_get_ss_aoc_info_03, 3},
-       {utc_tel_get_ss_aoc_info_04, 4},
-       {NULL, 0}
-};
-
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       
-       gStartupSuccess = FALSE;
-       if(tel_init() != TAPI_API_SUCCESS)
-       {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-
-       return;
-}
-
-static void cleanup()
-{
-       if(gStartupSuccess == TRUE)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-       return;
-}
-
-/**
- * @brief This tests TelTapiReadAocInfoRequest() API in normal conditions
- * @par ID:
- * UTC_TAPI_READ_AOC_INFO_REQUEST_001
- * @param [in] aoc_type  TAPI_SS_AOC_TYPE_CCM
- * @param [out] RequestId
-* @return TAPI_API_SUCCESS
-*/
-
-static void utc_tel_get_ss_aoc_info_01()
-{
-       TET_STAMP_START("Positive Test");
-
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-       int request_id;
-       TelSsAocType_t aoc_type;
-       aoc_type =(TelSsAocType_t)TAPI_SS_AOC_TYPE_CCM;
-       
-       if(tel_register_event(TAPI_EVENT_SS_AOC_RSP, &subscription_id, (TelAppCallback)ss_utc_callback,TAPI_EVENT_SS_AOC_RSP) == TAPI_API_SUCCESS)
-       {
-               gStartupSuccess = TRUE;
-               tel_register_app_name("org.samsung.test");
-       }
-
-       ret_status = tel_get_ss_aoc_info(aoc_type,&request_id);
-
-       TET_RESULT_IF_NOT_EQUAL_THEN_GOTO(TET_FAIL, exit, TAPI_API_SUCCESS, ret_status );
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_PASS);
-exit:
-       return;
-}
-
-
-/**
- * @brief Lower boundary testing of the AoC type for TelTapiReadAocInfoRequest() API
- * @par ID:
- * UTC_TAPI_READ_AOC_INFO_REQUEST_002
- * @param [in] aoc_type  -1
- * @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-static void utc_tel_get_ss_aoc_info_02()
-{
-       TET_STAMP_START("Invalid AoC type -1");
-
-
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-       int request_id;
-       TelSsAocType_t aoc_type;
-       aoc_type =(TelSsAocType_t) -1;
-
-       ret_status = tel_get_ss_aoc_info(aoc_type,&request_id);
-
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status );
-       G_MAIN_LOOP_RUN(5);
-       tet_result(TET_FAIL);
-
-exit:
-       return;
-}
-
-/**
- * @brief Upper boundary testing of the AoC type for TelTapiReadAocInfoRequest() API
- * @par ID:
- * UTC_TAPI_READ_AOC_INFO_REQUEST_003
- * @param [in] aoc_type  TAPI_SS_AOC_TYPE_PUC+1
- * @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-static void utc_tel_get_ss_aoc_info_03()
-{
-       TET_STAMP_START("Invalid AoC type +1");
-
-
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-       int request_id;
-       TelSsAocType_t aoc_type;
-       aoc_type =(TelSsAocType_t)( TAPI_SS_AOC_TYPE_PUC+1);
-
-       ret_status = tel_get_ss_aoc_info(aoc_type,&request_id);
-
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status );
-       G_MAIN_LOOP_RUN(5);
-       tet_result(TET_FAIL);
-
-exit:
-       return;
-}
-
-/**
- * @brief Null testing of the request ID for TelTapiReadAocInfoRequest() API
- * @par ID:
- * UTC_TAPI_READ_AOC_INFO_REQUEST_004
- * @param [in] aoc_type  TAPI_SS_AOC_TYPE_PUC
- * @param [out] RequestId NULL
-* @return TAPI_API_INVALID_PTR
-*/
-
-static void utc_tel_get_ss_aoc_info_04()
-{
-       TET_STAMP_START("Null Request ID");
-
-
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-
-       TelSsAocType_t aoc_type;
-       aoc_type =TAPI_SS_AOC_TYPE_PUC;
-
-       ret_status = tel_get_ss_aoc_info(aoc_type,NULL);
-
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_PTR, ret_status );
-       G_MAIN_LOOP_RUN(5);
-       tet_result(TET_FAIL);
-
-exit:
-       return;
-}
-
-
-/** @} */
diff --git a/TC/telephony_TC/ss/unit/uts_tel_get_ss_aoc_info.h b/TC/telephony_TC/ss/unit/uts_tel_get_ss_aoc_info.h
deleted file mode 100644 (file)
index 948119e..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TAPI_READ_AOC_INFO_REQUEST_H_
-#define _UTS_TAPI_READ_AOC_INFO_REQUEST_H_
-
-static void utc_tel_get_ss_aoc_info_01();
-static void utc_tel_get_ss_aoc_info_02();
-static void utc_tel_get_ss_aoc_info_03();
-static void utc_tel_get_ss_aoc_info_04();
-
-#endif //_ITS_TAPI_CALL_BARRING_ACT_H_
diff --git a/TC/telephony_TC/ss/unit/uts_tel_get_ss_barring_status.c b/TC/telephony_TC/ss/unit/uts_tel_get_ss_barring_status.c
deleted file mode 100644 (file)
index 730cd00..0000000
+++ /dev/null
@@ -1,300 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include <tet_api.h>
-#include <ITapiCall.h>
-#include <ITapiSs.h>
-#include <stdlib.h>
-#include <signal.h>
-#include <stdio.h>
-#include <errno.h>
-#include <sys/types.h>
-
-#include <pthread.h>
-#include "assert.h"
-#include "glib.h"
-
-#include "TapiCommon.h"
-//#include "tapi_utility.h"
-#include <gconf/gconf-client.h>
-#include "string.h"
-
-#include "tet_tapi_util.h"
-
-#include "uts_tel_get_ss_barring_status.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_ss_barring_status_01, 1},
-       {utc_tel_get_ss_barring_status_02, 2},
-       {utc_tel_get_ss_barring_status_03, 3},
-       {utc_tel_get_ss_barring_status_04, 4},
-       {utc_tel_get_ss_barring_status_05, 5},
-       {utc_tel_get_ss_barring_status_06, 6},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       
-       gStartupSuccess = FALSE;
-       if(tel_init() == TAPI_API_SUCCESS)
-       {
-               if(tel_register_event(TAPI_EVENT_SS_BARRING_QUERYSTATUS_CNF, &subscription_id, (TelAppCallback)ss_utc_callback,NULL) == TAPI_API_SUCCESS)
-               {
-                       gStartupSuccess = TRUE;
-                       tel_register_app_name("org.samsung.test");
-                       if(tel_get_app_name(&dname))
-                               printf("Dbus Get app name error\n");
-                       else 
-                               printf("Dbus Name is %s\n",dname.name);
-                               
-                       tel_check_service_ready(&bStatus);
-                       printf("Telephony service  %d\n",bStatus);
-               }
-               else
-                       tet_infoline("startup fail. tel_register_event()");
-       }else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-
-       return;
-}
-
-static void cleanup()
-{
-       if(gStartupSuccess == TRUE)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-       return;
-}
-
-
-
-/**
- * @brief This tests TelTapiSsGetCallbarringStatus() API in normal conditions
- * @par ID:
- * UTC_TAPI_SS_GET_CALL_BARRING_STATUS_001
- * @param [in] bar_type TAPI_CALL_BARRING_OUTGOING
- * @param [in] CallType  TAPI_CALL_TYPE_VOICE_EV
- * @param [out] RequestId
- * @return TAPI_API_SUCCESS
-*/
-
-void utc_tel_get_ss_barring_status_01()
-{
-       TET_STAMP_START("Positive Test");
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-       TelSsCallBarType_t bar_type;
-       TelSsCallType_t call_type;
-       int request_id;
-
-       bar_type = TAPI_CALL_BARRING_OUTGOING;
-       call_type = TAPI_CALL_TYPE_VOICE_EV;
-
-       ret_status = tel_get_ss_barring_status(bar_type, call_type, &request_id);
-
-       TET_RESULT_IF_NOT_EQUAL_THEN_GOTO(TET_FAIL, exit, TAPI_API_SUCCESS, ret_status );
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_PASS);
-exit:
-       return;
-}
-
-/**
- * @brief Lower boundary testing of the barring type for TelTapiSsGetCallBarringStatus() API
- * @par ID:
- * UTC_TAPI_SS_GET_CALL_BARRING_STATUS_002
- * @param [in] bar_type  -1
- * @param [in] call_type TAPI_CALL_TYPE_VOICE_EV
- * @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_get_ss_barring_status_02()
-{
-       TET_STAMP_START("Invalid Barring type -1");
-
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-       TelSsCallBarType_t bar_type;
-       TelSsCallType_t call_type;
-       int request_id;
-
-       bar_type = (TelSsCallBarType_t)-1;//TAPI_CALL_BARRING_OUTGOING;
-       call_type = TAPI_CALL_TYPE_VOICE_EV;
-
-       ret_status = tel_get_ss_barring_status(bar_type, call_type, &request_id);
-
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status);
-
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Upper boundary testing of the barring type for TelTapiSsGetCallBarringStatus() API
- * @par ID:
- * UTC_TAPI_SS_GET_CALL_BARRING_STATUS_003
- * @param [in] bar_type  TAPI_CALL_BARRING_ALL_INCOMING_CALLS_INSIM+1
- * @param [in] call_type TAPI_CALL_TYPE_VOICE_EV
- * @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_get_ss_barring_status_03()
-{
-       TET_STAMP_START("Invalid Barring type +1");
-
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-       TelSsCallBarType_t bar_type;
-       TelSsCallType_t call_type;
-       int request_id;
-
-       bar_type = (TelSsCallBarType_t)(TAPI_CALL_BARRING_ALL_INCOMING_CALLS_INSIM+1);
-       call_type = TAPI_CALL_TYPE_VOICE_EV;
-
-       ret_status = tel_get_ss_barring_status(bar_type, call_type, &request_id);
-
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status);
-
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Lower boundary testing for the call type of TelTapiSsGetCallBarringStatus() API
- * @par ID:
- * UTC_TAPI_SS_GET_CALL_BARRING_STATUS_004
- * @param [in] bar_type  TAPI_CALL_BARRING_ALL_OUTGOING_CALLS
- * @param [in] call_type -1
- * @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_get_ss_barring_status_04()
-{
-       TET_STAMP_START("Invalid Call type -1");
-
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-       TelSsCallBarType_t bar_type;
-       TelSsCallType_t call_type;
-       int request_id;
-
-       bar_type = TAPI_CALL_BARRING_ALL_OUTGOING_CALLS;
-       call_type = (TelSsCallType_t)-1;
-
-       ret_status = tel_get_ss_barring_status(bar_type, call_type, &request_id);
-
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status);
-
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Upper boundary testing for the call type of TelTapiSsGetCallBarringStatus() API
- * @par ID:
- * UTC_TAPI_SS_GET_CALL_BARRING_STATUS_005
- * @param [in] bar_type  TAPI_CALL_BARRING_ALL_OUTGOING_CALLS
- * @param [in] call_type TAPI_CALL_TYPE_ALL_TELE+1
- * @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_get_ss_barring_status_05()
-{
-       TET_STAMP_START("Invalid Call Type +1");
-
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-       TelSsCallBarType_t bar_type;
-       TelSsCallType_t call_type;
-       int request_id;
-
-       bar_type = TAPI_CALL_BARRING_ALL_OUTGOING_CALLS;
-       call_type = (TelSsCallType_t)(TAPI_CALL_TYPE_ALL_TELE+1);
-
-       ret_status = tel_get_ss_barring_status(bar_type, call_type, &request_id);
-
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status);
-
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Null testing for the request ID of TelTapiSsGetCallBarringStatus() API
- * @par ID:
- * UTC_TAPI_SS_GET_CALL_BARRING_STATUS_005
- * @param [in] bar_type  TAPI_CALL_BARRING_ALL_OUTGOING_CALLS
- * @param [in] call_type TAPI_CALL_TYPE_VOICE_EV
- * @param [out] RequestId NULL
-* @return TAPI_API_INVALID_PTR
-*/
-
-void utc_tel_get_ss_barring_status_06()
-{
-       TET_STAMP_START("Null request id");
-
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-       TelSsCallBarType_t bar_type;
-       TelSsCallType_t call_type;
-
-       bar_type = TAPI_CALL_BARRING_ALL_OUTGOING_CALLS;
-       call_type = (TelSsCallType_t)TAPI_CALL_TYPE_VOICE_EV;
-
-       ret_status = tel_get_ss_barring_status(bar_type, call_type, NULL);
-
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_PTR, ret_status);
-
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-
-
diff --git a/TC/telephony_TC/ss/unit/uts_tel_get_ss_barring_status.h b/TC/telephony_TC/ss/unit/uts_tel_get_ss_barring_status.h
deleted file mode 100644 (file)
index c4afe6d..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TAPI_CALL_BARRING_STATUS_H_
-#define _UTS_TAPI_CALL_BARRING_STATUS_H_
-
-static void utc_tel_get_ss_barring_status_01();
-
-       static void utc_tel_get_ss_barring_status_02();
-       static void utc_tel_get_ss_barring_status_03();
-       static void utc_tel_get_ss_barring_status_04();
-       static void utc_tel_get_ss_barring_status_05();
-       static void utc_tel_get_ss_barring_status_06();
-
-#endif //_UTS_TAPI_CALL_BARRING_ACT_H_
diff --git a/TC/telephony_TC/ss/unit/uts_tel_get_ss_cli_status.c b/TC/telephony_TC/ss/unit/uts_tel_get_ss_cli_status.c
deleted file mode 100644 (file)
index 27f7421..0000000
+++ /dev/null
@@ -1,145 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <tet_api.h>
-#include <ITapiCall.h>
-#include <ITapiSs.h>
-#include <stdlib.h>
-#include <signal.h>
-#include <stdio.h>
-#include <errno.h>
-#include <sys/types.h>
-
-#include <pthread.h>
-#include "assert.h"
-#include "glib.h"
-
-#include "TapiCommon.h"
-//#include "tapi_utility.h"
-#include <gconf/gconf-client.h>
-//#include "tapi_proxy_utility.h"
-#include "string.h"
-
-#include "tet_tapi_util.h"
-#include "uts_tel_get_ss_cli_status.h"
-#include <ss_common.h>
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_ss_cli_status_01, 1},
-       {utc_tel_get_ss_cli_status_02, 2},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static int gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-
-       gStartupSuccess = FALSE;
-       if(tel_init() == TAPI_API_SUCCESS)
-       {
-               if(tel_register_event(TAPI_EVENT_SS_CLI_QUERYSTATUS_CNF, &subscription_id, (TelAppCallback)ss_utc_callback,NULL) == TAPI_API_SUCCESS)
-               {
-                       gStartupSuccess = TRUE;
-
-                       tel_register_app_name("org.samsung.test");
-                       if(tel_get_app_name(&dname))
-                               printf("Dbus Get app name error\n");
-                       else 
-                               printf("Dbus Name is %s\n",dname.name);
-                               
-                       tel_check_service_ready(&bStatus);
-                       printf("Telephony service  %d\n",bStatus);
-
-               }
-               else
-                       tet_infoline("startup fail. tel_register_event()");
-       }else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-
-       return;
-}
-
-static void cleanup()
-{
-       if(gStartupSuccess == TRUE)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-       return;
-}
-
-
-/**
- * @brief This tests TelTapiSsCliServiceStatus API in normal condition
- * @par ID:
- * UTS_TAPI_SS_QUERY_CLI_SERVICE_STATUS_001
- * @param [in] pBarringInfo
- * @param [out] RequestId
- * @return TAPI_API_SUCCESS
-*/
-
-void utc_tel_get_ss_cli_status_01()
-{
-       TET_STAMP_START("Positive Test");
-
-       TapiResult_t  ret_status = TAPI_API_SUCCESS;
-       TelSsCliType_t Cli_Service_Type;
-       int pRequestId=0;
-       Cli_Service_Type = TAPI_SS_CLI_CLIP;
-       ret_status = tel_get_ss_cli_status(Cli_Service_Type,  &pRequestId );
-       TET_RESULT_IF_NOT_EQUAL_THEN_GOTO(TET_FAIL, exit, TAPI_API_SUCCESS, ret_status );
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_PASS);
-exit:
-       return;
-}
-
-void utc_tel_get_ss_cli_status_02()
-{
-       TET_STAMP_START("Positive Test");
-
-       TapiResult_t  ret_status = TAPI_API_SUCCESS;
-       TelSsCliType_t Cli_Service_Type;
-       int pRequestId=0;
-       Cli_Service_Type = TAPI_SS_CLI_CLIP;
-       ret_status = tel_get_ss_cli_status(Cli_Service_Type, NULL );
-       if(ret_status ==tel_get_ss_cli_status)
-               tet_result(TET_FAIL);
-
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_PASS);
-
-       return;
-}
-
diff --git a/TC/telephony_TC/ss/unit/uts_tel_get_ss_cli_status.h b/TC/telephony_TC/ss/unit/uts_tel_get_ss_cli_status.h
deleted file mode 100644 (file)
index 64f8731..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TAPI_SS_QUERY_CLI_SERVICE_STATUS_H_
-#define _UTS_TAPI_SS_QUERY_CLI_SERVICE_STATUS_H_
-
-       static void utc_tel_get_ss_cli_status_01();
-       static void utc_tel_get_ss_cli_status_02();
-
-#endif //_UTS_TAPI_SS_QUERY_CLI_SERVICE_STATUS_H
-
diff --git a/TC/telephony_TC/ss/unit/uts_tel_get_ss_forward_status.c b/TC/telephony_TC/ss/unit/uts_tel_get_ss_forward_status.c
deleted file mode 100644 (file)
index ba116c1..0000000
+++ /dev/null
@@ -1,281 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <tet_api.h>
-#include <ITapiCall.h>
-#include <ITapiSs.h>
-#include <stdlib.h>
-#include <signal.h>
-#include <stdio.h>
-#include <errno.h>
-#include <sys/types.h>
-
-#include <pthread.h>
-#include "assert.h"
-#include "glib.h"
-
-#include "TapiCommon.h"
-//#include "tapi_utility.h"
-#include <gconf/gconf-client.h>
-#include "string.h"
-
-#include "tet_tapi_util.h"
-#include "uts_tel_get_ss_forward_status.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_ss_forward_status_01, 1},
-       {utc_tel_get_ss_forward_status_02, 2},
-       {utc_tel_get_ss_forward_status_03, 3},
-       {utc_tel_get_ss_forward_status_04, 4},
-       {utc_tel_get_ss_forward_status_05, 5},
-       {utc_tel_get_ss_forward_status_06, 6},
-       {NULL, 0}
-};
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       gStartupSuccess = FALSE;
-       if(tel_init() == TAPI_API_SUCCESS)
-       {
-               if(tel_register_event(TAPI_EVENT_SS_FORWARD_QUERYSTATUS_CNF, &subscription_id, (TelAppCallback)ss_utc_callback,NULL) == TAPI_API_SUCCESS)
-               {
-                       gStartupSuccess = TRUE;
-                       tel_register_app_name("org.samsung.test");
-                       if(tel_get_app_name(&dname))
-                               printf("Dbus Get app name error\n");
-                       else 
-                               printf("Dbus Name is %s\n",dname.name);
-                               
-                       tel_check_service_ready(&bStatus);
-                       printf("Telephony service  %d\n",bStatus);
-
-               }
-               else
-                       tet_infoline("startup fail. tel_register_event()");
-       }else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-
-       return;
-}
-
-static void cleanup()
-{
-       if(gStartupSuccess == TRUE)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-       return;
-}
-
-
-
-/**
- * @brief This tests TelTapiSsGetCallForwardStatus() API in normal conditions
- * @par ID:
- * UTC_TAPI_SS_GET_CALL_FORWARD_STATUS_001
- * @param [in] forward_type TAPI_CS_FORWARD_TYPE_VOICE_EV
- * @param [in] Condition  TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV
- * @param [out] RequestId
- * @return TAPI_API_SUCCESS
-*/
-
-void utc_tel_get_ss_forward_status_01()
-{
-       TET_STAMP_START("Positive Test");
-
-
-       TapiResult_t  ret_status = TAPI_API_SUCCESS;
-       TelSsForwardType_t Type = TAPI_CS_FORWARD_TYPE_VOICE_EV;
-       TelSsForwardWhen_t  Condition = TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV;
-       int pRequestId=0;
-
-/* Calling TAPI SS Call Frwd Query Req Status Api */
-       ret_status = tel_get_ss_forward_status(Type,Condition,&pRequestId);
-       TET_RESULT_IF_NOT_EQUAL_THEN_GOTO(TET_FAIL, exit, TAPI_API_SUCCESS, ret_status );
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_PASS);
-exit:
-       return;
-}
-
-/**
- * @brief Lower boundary testing of the forward type for TelTapiSsGetCallForwardStatus() API
- * @par ID:
- * UTC_TAPI_SS_GET_CALL_FORWARD_STATUS_001
- * @param [in] forward_type -1
- * @param [in] Condition  TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV
- * @param [out] RequestId
- * @return TAPI_API_INVALID_INPUT
-*/
-
-
-void utc_tel_get_ss_forward_status_02()
-{
-       TET_STAMP_START("Invalid Forward type -1");
-
-
-       TapiResult_t  ret_status = TAPI_API_SUCCESS;
-       TelSsForwardType_t Type = (TelSsForwardType_t)-1;//TAPI_CS_FORWARD_TYPE_VOICE_EV;
-       TelSsForwardWhen_t  Condition = TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV;
-       int pRequestId=0;
-
-       ret_status = tel_get_ss_forward_status(Type,Condition,&pRequestId);
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status);
-
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Upper boundary testing of the forward type for TelTapiSsGetCallForwardStatus() API
- * @par ID:
- * UTC_TAPI_SS_GET_CALL_FORWARD_STATUS_003
- * @param [in] forward_type TAPI_CS_FORWARD_TYPE_ALL_TELE+1
- * @param [in] Condition  TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV
- * @param [out] RequestId
- * @return TAPI_API_INVALID_INPUT
-*/
-
-
-void utc_tel_get_ss_forward_status_03()
-{
-
-       TET_STAMP_START("Invalid Forward Type +1");
-
-
-       TapiResult_t  ret_status = TAPI_API_SUCCESS;
-       TelSsForwardType_t Type = (TelSsForwardType_t)(TAPI_CS_FORWARD_TYPE_ALL_TELE+1);
-       TelSsForwardWhen_t  Condition = TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV;
-       int pRequestId=0;
-
-       ret_status = tel_get_ss_forward_status(Type,Condition,&pRequestId);
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status );
-       G_MAIN_LOOP_RUN(7);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Lower boundary testing of the forward condition for TelTapiSsGetCallForwardStatus() API
- * @par ID:
- * UTC_TAPI_SS_GET_CALL_FORWARD_STATUS_004
- * @param [in] forward_type TAPI_CS_FORWARD_TYPE_VOICE_EV
- * @param [in] Condition  -1
- * @param [out] RequestId
- * @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_get_ss_forward_status_04()
-{
-       TET_STAMP_START("Invalid Condition -1");
-
-
-       TapiResult_t  ret_status = TAPI_API_SUCCESS;
-       TelSsForwardType_t Type = TAPI_CS_FORWARD_TYPE_VOICE_EV;
-       TelSsForwardWhen_t  Condition = (TelSsForwardWhen_t)-1;
-       int pRequestId=0;
-
-       ret_status = tel_get_ss_forward_status(Type,Condition,&pRequestId);
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status );
-       G_MAIN_LOOP_RUN(7);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief upper boundary testing of the forward condition for TelTapiSsGetCallForwardStatus() API
- * @par ID:
- * UTC_TAPI_SS_GET_CALL_FORWARD_STATUS_004
- * @param [in] forward_type TAPI_CS_FORWARD_TYPE_VOICE_EV
- * @param [in] Condition  TAPI_SS_FORWARD_WHEN_ALL_CONDITIONAL_EV+1
- * @param [out] RequestId
- * @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_get_ss_forward_status_05()
-{
-       TET_STAMP_START("Invalid Condition +1");
-
-
-       TapiResult_t  ret_status = TAPI_API_SUCCESS;
-       TelSsForwardType_t Type = TAPI_CS_FORWARD_TYPE_VOICE_EV;
-       TelSsForwardWhen_t  Condition = (TelSsForwardWhen_t)(TAPI_SS_FORWARD_WHEN_ALL_CONDITIONAL_EV+1);
-       int pRequestId=0;
-
-       ret_status = tel_get_ss_forward_status(Type,Condition,&pRequestId);
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status );
-       G_MAIN_LOOP_RUN(7);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Null testing for the request ID of TelTapiSsGetCallForwardStatus() API
- * @par ID:
- * UTC_TAPI_SS_GET_CALL_FORWARD_STATUS_006
- * @param [in] forward_type TAPI_CS_FORWARD_TYPE_VOICE_EV
- * @param [in] Condition  TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV
- * @param [out] RequestId
- * @return TAPI_API_INVALID_PTR
-*/
-
-
-void utc_tel_get_ss_forward_status_06()
-{
-       TET_STAMP_START("Null Request Id");
-
-
-       TapiResult_t  ret_status = TAPI_API_SUCCESS;
-       TelSsForwardType_t Type = TAPI_CS_FORWARD_TYPE_VOICE_EV;
-       TelSsForwardWhen_t  Condition = TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV;
-
-       ret_status = tel_get_ss_forward_status(Type,Condition,NULL);
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_PTR, ret_status );
-       G_MAIN_LOOP_RUN(7);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-
-
diff --git a/TC/telephony_TC/ss/unit/uts_tel_get_ss_forward_status.h b/TC/telephony_TC/ss/unit/uts_tel_get_ss_forward_status.h
deleted file mode 100644 (file)
index b58a3ef..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-static void utc_tel_get_ss_forward_status_01();
-static void utc_tel_get_ss_forward_status_02();
-static void utc_tel_get_ss_forward_status_03();
-static void utc_tel_get_ss_forward_status_04();
-static void utc_tel_get_ss_forward_status_05();
-static void utc_tel_get_ss_forward_status_06();
-
diff --git a/TC/telephony_TC/ss/unit/uts_tel_get_ss_waiting_status.c b/TC/telephony_TC/ss/unit/uts_tel_get_ss_waiting_status.c
deleted file mode 100644 (file)
index 64e80cf..0000000
+++ /dev/null
@@ -1,205 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#include <tet_api.h>
-#include <ITapiCall.h>
-#include <ITapiSs.h>
-#include <stdlib.h>
-#include <signal.h>
-#include <stdio.h>
-#include <errno.h>
-#include <sys/types.h>
-
-#include <pthread.h>
-#include "assert.h"
-#include "glib.h"
-
-#include "TapiCommon.h"
-//#include "tapi_utility.h"
-#include <gconf/gconf-client.h>
-#include "string.h"
-
-#include "tet_tapi_util.h"
-#include "uts_tel_get_ss_waiting_status.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_get_ss_waiting_status_01, 1},
-       {utc_tel_get_ss_waiting_status_02, 2},
-       {utc_tel_get_ss_waiting_status_03, 3},
-       {utc_tel_get_ss_waiting_status_04, 4},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       
-       gStartupSuccess = FALSE;
-       if(tel_init() == TAPI_API_SUCCESS)
-       {
-               if(tel_register_event(TAPI_EVENT_SS_WAITING_QUERYSTATUS_CNF, &subscription_id, (TelAppCallback)ss_utc_callback,NULL) == TAPI_API_SUCCESS)
-               {
-                       gStartupSuccess = TRUE;
-
-                       tel_register_app_name("org.samsung.test");
-                       if(tel_get_app_name(&dname))
-                               printf("Dbus Get app name error\n");
-                       else 
-                               printf("Dbus Name is %s\n",dname.name);
-                               
-                       tel_check_service_ready(&bStatus);
-                       printf("Telephony service  %d\n",bStatus);
-               }
-               else
-                       tet_infoline("startup fail. tel_register_event()");
-       }else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-
-       return;
-}
-
-static void cleanup()
-{
-       if(gStartupSuccess == TRUE)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-       return;
-}
-
-
-/**
- * @brief This tests TelTapiSsGetCallWaitingStatus() API in normal conditions
- * @par ID:
- * UTC_TAPI_SS_GET_CALL_WAITING_STATUS_001
- * @param [in] CallType  TAPI_CALL_TYPE_VOICE_EV
-* @param [out] RequestId
-* @return TAPI_API_SUCCESS
-*/
-
-void utc_tel_get_ss_waiting_status_01()
-{
-       TET_STAMP_START("Positive Test");
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       TelSsCallType_t CallType = TAPI_CALL_TYPE_VOICE_EV;
-       int request_id=0;
-
-       ret_status = tel_get_ss_waiting_status(CallType, &request_id);
-
-       TET_RESULT_IF_NOT_EQUAL_THEN_GOTO(TET_FAIL, exit, TAPI_API_SUCCESS, ret_status );
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_PASS);
-exit:
-       return;
-}
-
-/**
- * @brief Upper boundary testing of the ss call type for TelTapiSsGetCallWaitingStatus() API
- * @par ID:
- * UTC_TAPI_SS_GET_CALL_WAITING_STATUS_002
- * @param [in] CallType  (TelSsCallType_t)(TAPI_CALL_TYPE_ALL_TELE+1)
-* @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_get_ss_waiting_status_02()
-{
-       TET_STAMP_START("Invalid call type +1");
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       TelSsCallType_t CallType = (TelSsCallType_t)(TAPI_CALL_TYPE_ALL_TELE+1);
-       int request_id=0;
-
-       ret_status = tel_get_ss_waiting_status(CallType, &request_id);
-
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status);
-
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Lower boundary testing of the ss call type for TelTapiSsGetCallWaitingStatus() API
- * @par ID:
- * UTC_TAPI_SS_GET_CALL_WAITING_STATUS_003
- * @param [in] CallType  (TelSsCallType_t)-1
-* @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_get_ss_waiting_status_03()
-{
-       TET_STAMP_START("Invalid call type -1");
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       TelSsCallType_t CallType = (TelSsCallType_t)-1;//TAPI_CALL_TYPE_VOICE_EV;
-       int request_id=0;
-
-       ret_status = tel_get_ss_waiting_status(CallType, &request_id);
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status);
-
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Null test of the forward info for TelTapiSsGetCallWaitingStatus() API
- * @par ID:
- * UTC_TAPI_SS_GET_CALL_WAITING_STATUS_004
- * @param [in] CallType  TAPI_CALL_TYPE_VOICE_EV
-* @param [out] RequestId NULL
-* @return TAPI_API_INVALID_PTR
-*/
-
-void utc_tel_get_ss_waiting_status_04()
-{
-       TET_STAMP_START("Null request ID");
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       TelSsCallType_t CallType = TAPI_CALL_TYPE_VOICE_EV;
-
-       ret_status = tel_get_ss_waiting_status(CallType, NULL);
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_PTR, ret_status );
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/ss/unit/uts_tel_get_ss_waiting_status.h b/TC/telephony_TC/ss/unit/uts_tel_get_ss_waiting_status.h
deleted file mode 100644 (file)
index 80cedde..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TAPI_SS_SET_CALL_WAITING_STATUS_H_
-#define _UTS_TAPI_SS_SET_CALL_WAITING_STATUS_H_
-
-       static void utc_tel_get_ss_waiting_status_01();
-       static void utc_tel_get_ss_waiting_status_02();
-       static void utc_tel_get_ss_waiting_status_03();
-       static void utc_tel_get_ss_waiting_status_04();
-
-#endif //_UTS_TAPI_CALL_BARRING_ACT_H_
-
diff --git a/TC/telephony_TC/ss/unit/uts_tel_send_ss_ussd_cancel.c b/TC/telephony_TC/ss/unit/uts_tel_send_ss_ussd_cancel.c
deleted file mode 100644 (file)
index a5c0738..0000000
+++ /dev/null
@@ -1,134 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <tet_api.h>
-#include "uts_tel_send_ss_ussd_cancel.h"
-#include <ITapiCall.h>
-#include <ITapiSs.h>
-#include <stdlib.h>
-#include <signal.h>
-#include <stdio.h>
-#include <errno.h>
-#include "TapiCommon.h"
-#include "tet_tapi_util.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_send_ss_ussd_cancel_01, 1},
-       {utc_tel_send_ss_ussd_cancel_02, 2},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       
-       gStartupSuccess = FALSE;
-       if(tel_init() == TAPI_API_SUCCESS)
-       {
-               if(tel_register_event(TAPI_EVENT_SS_USSD_CANCEL_CNF, &subscription_id, (TelAppCallback)ss_utc_callback,NULL) == TAPI_API_SUCCESS)
-               {
-                       gStartupSuccess = TRUE;
-                               tel_register_app_name("org.samsung.test");
-                       if(tel_get_app_name(&dname))
-                               printf("Dbus Get app name error\n");
-                       else 
-                               printf("Dbus Name is %s\n",dname.name);
-                               
-                       tel_check_service_ready(&bStatus);
-                       printf("Telephony service  %d\n",bStatus);
-               }
-               else
-                       tet_infoline("startup fail. tel_register_event()");
-       }else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-
-       return;
-}
-
-static void cleanup()
-{
-       if(gStartupSuccess == TRUE)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-       return;
-}
-
-
-/**
- * @brief This tests TelTapiUssdSendCancel() API in normal conditions
- * @par ID:
- * UTC_TAPI_USSD_SEND_CANCEL_001
- * @param [out] RequestId
- * @return TAPI_API_SUCCESS
-*/
-
-void utc_tel_send_ss_ussd_cancel_01()
-{
-       TET_STAMP_START("Positive Test");
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-       int pRequestId;
-
-       ret_status = tel_send_ss_ussd_cancel(&pRequestId);
-//     tet_printf("%s",TET_RESULT_TO_STRING(ret_status));
-
-//     TET_RESULT_IF_NOT_EQUAL_THEN_GOTO(TET_FAIL, exit, TAPI_API_SUCCESS, ret_status );
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_PASS);
-       return;
-}
-
-
-/**
- * @brief This tests TelTapiUssdSendCancel() API in normal conditions
- * @par ID:
- * UTC_TAPI_USSD_SEND_CANCEL_002
- * @param [out] RequestId
- * @return TAPI_API_SUCCESS
-*/
-
-void utc_tel_send_ss_ussd_cancel_02()
-{
-       TET_STAMP_START("Test with Null Parameter");
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-
-       ret_status = tel_send_ss_ussd_cancel(NULL);
-       tet_printf("ret_status %d",ret_status);
-//     tet_infoline("aaa");
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_PTR,ret_status);
-
-       G_MAIN_LOOP_RUN(7);
-       tet_result(TET_FAIL);
-       exit:
-               return;
-}
diff --git a/TC/telephony_TC/ss/unit/uts_tel_send_ss_ussd_cancel.h b/TC/telephony_TC/ss/unit/uts_tel_send_ss_ussd_cancel.h
deleted file mode 100644 (file)
index 0e021cf..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TAPI_USSD_SEND_CANCEL_H_
-#define _UTS_TAPI_USSD_SEND_CANCEL_H_
-
-       static void utc_tel_send_ss_ussd_cancel_01();
-       static void utc_tel_send_ss_ussd_cancel_02();
-#endif //_UTS_TAPI_USSD_SEND_CANCEL_H_
-
diff --git a/TC/telephony_TC/ss/unit/uts_tel_send_ss_ussd_request.c b/TC/telephony_TC/ss/unit/uts_tel_send_ss_ussd_request.c
deleted file mode 100644 (file)
index 85a91e8..0000000
+++ /dev/null
@@ -1,198 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <tet_api.h>
-#include "uts_tel_send_ss_ussd_request.h"
-
-
-#include <ITapiCall.h>
-#include <ITapiSs.h>
-#include <stdlib.h>
-#include <signal.h>
-#include <stdio.h>
-#include <errno.h>
-#include <sys/types.h>
-
-#include <pthread.h>
-#include "assert.h"
-#include "glib.h"
-
-#include "TapiCommon.h"
-#include <gconf/gconf-client.h>
-#include "string.h"
-
-#include "tet_tapi_util.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_send_ss_ussd_request_01, 1},
-       {utc_tel_send_ss_ussd_request_02, 2},
-       {utc_tel_send_ss_ussd_request_03, 3},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       
-       gStartupSuccess = FALSE;
-       if(tel_init() == TAPI_API_SUCCESS)
-       {
-               if(tel_register_event(TAPI_EVENT_SS_USSD_CNF, &subscription_id, (TelAppCallback)ss_utc_callback,NULL) == TAPI_API_SUCCESS)
-               {
-                       gStartupSuccess = TRUE;
-
-                       tel_register_app_name("org.samsung.test");
-                       if(tel_get_app_name(&dname))
-                               printf("Dbus Get app name error\n");
-                       else 
-                               printf("Dbus Name is %s\n",dname.name);
-                               
-                       tel_check_service_ready(&bStatus);
-                       printf("Telephony service  %d\n",bStatus);
-               }
-               else
-                       tet_infoline("startup fail. tel_register_event()");
-       }else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-
-       return;
-}
-
-static void cleanup()
-{
-       if(gStartupSuccess == TRUE)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-       return;
-}
-
-
-/**
- * @brief This tests TelTapiUssdSendRequest() API in normal conditions
- * @par ID:
- * UTC_TAPI_USSD_SEND_REQUEST_001
- * @param [in] forward_type TAPI_CS_FORWARD_TYPE_VOICE_EV
- * @param [in] Condition  TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV
- * @param [out] RequestId
- * @return TAPI_API_SUCCESS
-*/
-
-void utc_tel_send_ss_ussd_request_01()
-{
-       TET_STAMP_START("Positive Test");
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-       TelSsUssdMsgInfo_t pAppMsg;
-       int pRequestId;
-
-       char ussd_str[25] = {"*123*0#"};
-       strncpy(pAppMsg.szUssdString, ussd_str, strlen(ussd_str));
-       pAppMsg.UssdStringLength = strlen(pAppMsg.szUssdString);
-
-       ret_status = tel_send_ss_ussd_request(&pAppMsg, &pRequestId);
-       tet_printf("%s",TET_RESULT_TO_STRING(ret_status));
-
-       TET_RESULT_IF_NOT_EQUAL_THEN_GOTO(TET_FAIL, exit, TAPI_API_SUCCESS, ret_status );
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_PASS);
-exit:
-       return;
-}
-
-/**
- * @brief Null testing of the pAppMsg for TelTapiUssdSendRequest() API
- * @par ID:
- * UTC_TAPI_USSD_SEND_REQUEST_002
- * @param [in] pAppMsg NULL
- * @param [out] RequestId
- * @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_send_ss_ussd_request_02()
-{
-       TET_STAMP_START("Test for null pAppMsg");
-
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-       TelSsUssdMsgInfo_t *pAppMsg=NULL;
-       int pRequestId;
-
-       ret_status = tel_send_ss_ussd_request(pAppMsg, &pRequestId);
-       tet_printf("ret_status %d",ret_status);
-       tet_infoline("aaa");
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_PTR,ret_status);
-
-       G_MAIN_LOOP_RUN(7);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Null testing of the request ID for TelTapiUssdSendRequest() API
- * @par ID:
- * UTC_TAPI_USSD_SEND_REQUEST_003
- * @param [in] pAppMsg
- * @code
-       pAppMsg.Dcs  = 0x0f;
-       pAppMsg.IndType = TAPI_USSD_IND_NOTIFY;
-       char ussd_str[25] = {"*123*0#"};
-       strcpy(pAppMsg.szUssdString,ussd_str);
-       pAppMsg.UssdStringLength = strlen(ussd_str);
-* @endcode
- * @param [out] RequestId NULL
- * @return TAPI_API_INVALID_INPUT
-*/
-
-
-void utc_tel_send_ss_ussd_request_03()
-{
-       TET_STAMP_START("Test for null pRequestId");
-
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-       TelSsUssdMsgInfo_t pAppMsg;
-
-       char ussd_str[25] = {"*123*0#"};
-       strncpy(pAppMsg.szUssdString, ussd_str, strlen(ussd_str));
-       pAppMsg.UssdStringLength = strlen(ussd_str);
-
-       ret_status = tel_send_ss_ussd_request(&pAppMsg, NULL);
-
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_PTR,ret_status);
-       G_MAIN_LOOP_RUN(7);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
diff --git a/TC/telephony_TC/ss/unit/uts_tel_send_ss_ussd_request.h b/TC/telephony_TC/ss/unit/uts_tel_send_ss_ussd_request.h
deleted file mode 100644 (file)
index b0396d1..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef _ITS_TAPI_USSD_SEND_REQUEST_H_
-#define _ITS_TAPI_USSD_SEND_REQUEST_H_
-
-       static void utc_tel_send_ss_ussd_request_01();
-       static void utc_tel_send_ss_ussd_request_02();
-       static void utc_tel_send_ss_ussd_request_03();
-
-#endif //_ITS_TAPI_CALL_BARRING_ACT_H_
diff --git a/TC/telephony_TC/ss/unit/uts_tel_send_ss_ussd_response.c b/TC/telephony_TC/ss/unit/uts_tel_send_ss_ussd_response.c
deleted file mode 100644 (file)
index 72ed039..0000000
+++ /dev/null
@@ -1,175 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include <tet_api.h>
-#include "uts_tel_send_ss_ussd_response.h"
-
-
-#include <ITapiCall.h>
-#include <ITapiSs.h>
-#include <stdlib.h>
-#include <signal.h>
-#include <stdio.h>
-#include <errno.h>
-#include <sys/types.h>
-
-#include <pthread.h>
-#include "assert.h"
-#include "glib.h"
-
-#include "TapiCommon.h"
-#include <gconf/gconf-client.h>
-#include "string.h"
-
-#include "tet_tapi_util.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_send_ss_ussd_response_01, 1},
-       {utc_tel_send_ss_ussd_response_02, 2},
-       {utc_tel_send_ss_ussd_response_03, 3},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       
-       gStartupSuccess = FALSE;
-       if(tel_init() == TAPI_API_SUCCESS)
-       {
-               if(tel_register_event(TAPI_EVENT_SS_USSD_CNF, &subscription_id, (TelAppCallback)ss_utc_callback,NULL) == TAPI_API_SUCCESS)
-               {
-                       gStartupSuccess = TRUE;
-                       tel_register_app_name("org.samsung.test");
-                       if(tel_get_app_name(&dname))
-                               printf("Dbus Get app name error\n");
-                       else 
-                               printf("Dbus Name is %s\n",dname.name);
-                               
-                       tel_check_service_ready(&bStatus);
-                       printf("Telephony service  %d\n",bStatus);
-               }
-               else
-                       tet_infoline("startup fail. tel_register_event()");
-       }else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-
-       return;
-}
-
-static void cleanup()
-{
-       if(gStartupSuccess == TRUE)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-       return;
-}
-
-
-/**
- * @brief This tests TelTapiUssdSendRequest() API in normal conditions
- * @par ID:
- * UTC_TAPI_USSD_SEND_REQUEST_001
- * @param [in] forward_type TAPI_CS_FORWARD_TYPE_VOICE_EV
- * @param [in] Condition  TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV
- * @param [out] RequestId
- * @return TAPI_API_SUCCESS
-*/
-
-void utc_tel_send_ss_ussd_response_01()
-{
-       TET_STAMP_START("Positive Test");
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-       TelSsUssdMsgInfo_t pAppMsg;
-       int pRequestId;
-
-       char ussd_str[25] = {"*123*0#"};
-       strncpy(pAppMsg.szUssdString, ussd_str, TAPI_SS_USSD_DATA_SIZE_MAX);
-       pAppMsg.UssdStringLength = strlen(pAppMsg.szUssdString);
-
-       ret_status = tel_send_ss_ussd_response(&pAppMsg, &pRequestId);
-//     tet_printf("%s",TET_RESULT_TO_STRING(ret_status));
-
-//     TET_RESULT_IF_NOT_EQUAL_THEN_GOTO(TET_FAIL, exit, TAPI_API_SUCCESS, ret_status );
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_PASS);
-       return;
-}
-
-void utc_tel_send_ss_ussd_response_02()
-{
-       TET_STAMP_START("Negative Test");
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-       TelSsUssdMsgInfo_t pAppMsg;
-       int pRequestId;
-
-       char ussd_str[25] = {"*123*0#"};
-       strncpy(pAppMsg.szUssdString, ussd_str, TAPI_SS_USSD_DATA_SIZE_MAX);
-       pAppMsg.UssdStringLength = strlen(pAppMsg.szUssdString);
-
-       ret_status = tel_send_ss_ussd_response(&pAppMsg, NULL);
-       if(ret_status ==TAPI_API_SUCCESS)
-               tet_result(TET_FAIL);
-//     tet_printf("%s",TET_RESULT_TO_STRING(ret_status));
-
-//     TET_RESULT_IF_NOT_EQUAL_THEN_GOTO(TET_FAIL, exit, TAPI_API_SUCCESS, ret_status );
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_PASS);
-       return;
-}
-
-void utc_tel_send_ss_ussd_response_03()
-{
-       TET_STAMP_START("Negative Test");
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-       TelSsUssdMsgInfo_t pAppMsg;
-       int pRequestId;
-
-       char ussd_str[25] = {"*123*0#"};
-       strncpy(pAppMsg.szUssdString, ussd_str, TAPI_SS_USSD_DATA_SIZE_MAX);
-       pAppMsg.UssdStringLength = strlen(pAppMsg.szUssdString);
-
-       ret_status = tel_send_ss_ussd_response(NULL, &pRequestId);
-       if(ret_status ==TAPI_API_SUCCESS)
-               tet_result(TET_FAIL);
-//     tet_printf("%s",TET_RESULT_TO_STRING(ret_status));
-
-//     TET_RESULT_IF_NOT_EQUAL_THEN_GOTO(TET_FAIL, exit, TAPI_API_SUCCESS, ret_status );
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_PASS);
-       return;
-}
diff --git a/TC/telephony_TC/ss/unit/uts_tel_send_ss_ussd_response.h b/TC/telephony_TC/ss/unit/uts_tel_send_ss_ussd_response.h
deleted file mode 100644 (file)
index ce553e6..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TAPI_USSD_SEND_RSP_H_
-#define _UTS_TAPI_USSD_SEND_RSP_H_
-
-
-       static void utc_tel_send_ss_ussd_response_01();
-       static void utc_tel_send_ss_ussd_response_02();
-       static void utc_tel_send_ss_ussd_response_03();
-
-#endif //_UTS_TAPI_USSD_SEND_RSP_H_
-
diff --git a/TC/telephony_TC/ss/unit/uts_tel_set_ss_aoc_info.c b/TC/telephony_TC/ss/unit/uts_tel_set_ss_aoc_info.c
deleted file mode 100644 (file)
index e35fbe3..0000000
+++ /dev/null
@@ -1,207 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <ITapiCall.h>
-#include <ITapiSs.h>
-#include <stdlib.h>
-#include <signal.h>
-#include <stdio.h>
-#include <errno.h>
-#include <sys/types.h>
-
-#include <pthread.h>
-#include "assert.h"
-#include "glib.h"
-
-#include "TapiCommon.h"
-#include <tet_api.h>
-#include "uts_tel_set_ss_aoc_info.h"
-#include "tet_tapi_util.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_set_ss_aoc_info_01, 1},
-       {utc_tel_set_ss_aoc_info_02, 2},
-       {utc_tel_set_ss_aoc_info_03, 3},
-       {utc_tel_set_ss_aoc_info_04, 4},
-       {utc_tel_set_ss_aoc_info_05, 5},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       
-       gStartupSuccess = FALSE;
-       if(tel_init() == TAPI_API_SUCCESS)
-       {
-               if(tel_register_event(TAPI_EVENT_SS_SET_AOC_CNF, &subscription_id, (TelAppCallback)ss_utc_callback,NULL) == TAPI_API_SUCCESS)
-               {
-                       gStartupSuccess = TRUE;
-
-                       tel_register_app_name("org.samsung.test");
-                       if(tel_get_app_name(&dname))
-                               printf("Dbus Get app name error\n");
-                       else 
-                               printf("Dbus Name is %s\n",dname.name);
-                               
-                       tel_check_service_ready(&bStatus);
-                       printf("Telephony service  %d\n",bStatus);
-
-               }
-               else
-                       tet_infoline("startup fail. tel_register_event()");
-       }else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-
-       return;
-}
-
-static void cleanup()
-{
-       if(gStartupSuccess == TRUE)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-       return;
-}
-
-/**
- * @brief This tests TelTapiReadAocInfoRequest() API in normal conditions
- * @par ID:
- * UTC_TAPI_SET_AOC_INFO_REQUEST_001
- * @param [in] aoc_type  TAPI_SS_AOC_TYPE_CCM
- * @param [out] RequestId
-* @return TAPI_API_SUCCESS
-*/
-
-void utc_tel_set_ss_aoc_info_01()
-{
-       TET_STAMP_START("Positive Test");
-
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-       int request_id;
-       TelCallAocInfo_t aocInfo;
-
-       aocInfo.AocType=TAPI_SS_AOC_TYPE_MAXACM;
-       aocInfo.MaxAcm=10;
-
-       ret_status = tel_set_ss_aoc_info(&aocInfo,&request_id);
-
-       TET_RESULT_IF_NOT_EQUAL_THEN_GOTO(TET_FAIL, exit, TAPI_API_SUCCESS, ret_status );
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_PASS);
-exit:
-       return;
-}
-
-
-/**
- * @brief Lower boundary testing of the AoC type for TelTapiReadAocInfoRequest() API
- * @par ID:
- * UTC_TAPI_SET_AOC_INFO_REQUEST_002
- * @param [in] aoc_type  -1
- * @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-void utc_tel_set_ss_aoc_info_02()
-{
-
-       TET_STAMP_START("InvalidAocType -1");
-
-        TapiResult_t ret_status = TAPI_API_SUCCESS;
-        int request_id;
-        TelCallAocInfo_t aocInfo;
-
-       aocInfo.AocType=(TelSsAocType_t)-1;
-        aocInfo.MaxAcm=10;
-
-       ret_status = tel_set_ss_aoc_info(&aocInfo,&request_id);
-
-       TET_RESULT_IF_NOT_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status );
-        G_MAIN_LOOP_RUN(5);
-
-        tet_result(TET_PASS);
-exit:
-         return;
-}
-
-void utc_tel_set_ss_aoc_info_03()
-{
-       TET_STAMP_START("Invalid AocType +1");
-       TapiResult_t ret_status=TAPI_API_SUCCESS;
-       int request_id;
-       TelCallAocInfo_t aocInfo;
-       aocInfo.AocType=(TelSsAocType_t)( TAPI_SS_AOC_TYPE_PUC+1);
-       aocInfo.MaxAcm=10;
-       ret_status = tel_set_ss_aoc_info(&aocInfo,&request_id);
-
-       TET_RESULT_IF_NOT_EQUAL_THEN_GOTO(TET_PASS,exit,TAPI_API_INVALID_INPUT,ret_status);
-       G_MAIN_LOOP_RUN(50);
-
-       tet_result(TET_PASS);
-
-exit:
-       return;
-}
-
-void utc_tel_set_ss_aoc_info_04()
-{
-       TET_STAMP_START("NULL RequestId");
-       TapiResult_t ret_status=TAPI_API_SUCCESS;
-       TelCallAocInfo_t aocInfo;
-       aocInfo.AocType=TAPI_SS_AOC_TYPE_MAXACM;
-       aocInfo.MaxAcm=10;
-       ret_status = tel_set_ss_aoc_info(&aocInfo,NULL);
-
-       TET_RESULT_IF_NOT_EQUAL_THEN_GOTO(TET_PASS,exit,TAPI_API_INVALID_INPUT,ret_status);
-       G_MAIN_LOOP_RUN(50);
-       tet_result(TET_PASS);
-exit:
-       return;
-}
-
-
-void utc_tel_set_ss_aoc_info_05()
-{
-      TET_STAMP_START("NULL AocInfo");
-      TapiResult_t ret_status=TAPI_API_SUCCESS;
-      int request_id;
-      ret_status = tel_set_ss_aoc_info(NULL,&request_id);
-
-      TET_RESULT_IF_NOT_EQUAL_THEN_GOTO(TET_PASS,exit,TAPI_API_INVALID_INPUT,ret_status);
-      G_MAIN_LOOP_RUN(50);
-      tet_result(TET_PASS);
-exit:
-      return;
-}
-
diff --git a/TC/telephony_TC/ss/unit/uts_tel_set_ss_aoc_info.h b/TC/telephony_TC/ss/unit/uts_tel_set_ss_aoc_info.h
deleted file mode 100644 (file)
index ba02c28..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TAPI_SET_AOC_INFO_REQUEST_H_
-#define _UTS_TAPI_SET_AOC_INFO_REQUEST_H_
-
-static void utc_tel_set_ss_aoc_info_01();
-static void utc_tel_set_ss_aoc_info_02();
-static void utc_tel_set_ss_aoc_info_03();
-static void utc_tel_set_ss_aoc_info_04();
-static void utc_tel_set_ss_aoc_info_05();
-
-#endif //_ITS_TAPI_CALL_BARRING_ACT_H_
diff --git a/TC/telephony_TC/ss/unit/uts_tel_set_ss_barring.c b/TC/telephony_TC/ss/unit/uts_tel_set_ss_barring.c
deleted file mode 100644 (file)
index b2ea7ef..0000000
+++ /dev/null
@@ -1,534 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include <tet_api.h>
-#include <ITapiCall.h>
-#include <ITapiSs.h>
-#include <stdlib.h>
-#include <signal.h>
-#include <stdio.h>
-#include <errno.h>
-#include <sys/types.h>
-
-#include <pthread.h>
-#include "assert.h"
-#include "glib.h"
-
-#include "TapiCommon.h"
-//#include "tapi_utility.h"
-#include <gconf/gconf-client.h>
-//#include "tapi_proxy_utility.h"
-#include "string.h"
-
-#include "tet_tapi_util.h"
-#include "uts_tel_set_ss_barring.h"
-#include <ss_common.h>
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_set_ss_barring_01, 1},
-       {utc_tel_set_ss_barring_02, 2},
-       {utc_tel_set_ss_barring_03, 3},
-       {utc_tel_set_ss_barring_04, 4},
-       {utc_tel_set_ss_barring_05, 5},
-       {utc_tel_set_ss_barring_06, 6},
-       {utc_tel_set_ss_barring_07, 7},
-       {utc_tel_set_ss_barring_08, 8},
-       {utc_tel_set_ss_barring_09, 9},
-       {utc_tel_set_ss_barring_10, 10},
-       {utc_tel_set_ss_barring_11, 11},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static int gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       
-       gStartupSuccess = FALSE;
-       if(tel_init() == TAPI_API_SUCCESS)
-       {
-               if(tel_register_event(TAPI_EVENT_SS_BARRING_CNF, &subscription_id, (TelAppCallback)ss_utc_callback,NULL) == TAPI_API_SUCCESS)
-               {
-                       gStartupSuccess = TRUE;
-                       tel_register_app_name("org.samsung.test");
-                       if(tel_get_app_name(&dname))
-                               printf("Dbus Get app name error\n");
-                       else 
-                               printf("Dbus Name is %s\n",dname.name);
-                               
-                       tel_check_service_ready(&bStatus);
-                       printf("Telephony service  %d\n",bStatus);
-
-               }
-               else
-                       tet_infoline("startup fail. tel_register_event()");
-       }else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-
-       return;
-}
-
-static void cleanup()
-{
-       //Erase the service registration
-       TelSsCallBarringInfo_t  pBarringInfo;// = {0,};
-       int pRequestId=0;
-       char bar_pwd[5]=BARRING_PWD;//{'0','0','0','0',};
-       pBarringInfo.Mode = TAPI_SS_CALL_BAR_DEACTIVATE;
-       pBarringInfo.Type = TAPI_CALL_BARRING_ALL;
-       pBarringInfo.CallType = TAPI_CALL_TYPE_ALL_TELE;
-       strncpy(pBarringInfo.szPassword, bar_pwd, TAPI_SS_GSM_BARR_PW_LEN_MAX);
-
-       tel_set_ss_barring(&pBarringInfo,&pRequestId);
-       G_MAIN_LOOP_RUN(5);
-
-       if(gStartupSuccess == TRUE)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-       return;
-}
-
-
-/**
- * @brief This tests TelTapiSsSetCallBarring() API in normal conditions
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_BARRING_001
- * @param [in] pBarringInfo
- * @code
-       char bar_pwd[5]="0000";
-       pBarringInfo.Mode = TAPI_SS_CALL_BAR_DEACTIVATE;
-       pBarringInfo.Type = TAPI_CALL_BARRING_ALL_OUTGOING_CALLS;
-       pBarringInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;
-       strcpy(pBarringInfo.szPassword,bar_pwd);
-* @endcode
-* @param [out] RequestId
-* @return TAPI_API_SUCCESS
-*/
-
-void utc_tel_set_ss_barring_01()
-{
-       TET_STAMP_START("Positive Test");
-
-       TapiResult_t  ret_status = TAPI_API_SUCCESS;
-       TelSsCallBarringInfo_t  pBarringInfo;// = {0,};
-       int pRequestId=0;
-       char bar_pwd[5]=BARRING_PWD;//{'0','0','0','0',};
-       pBarringInfo.Mode = TAPI_SS_CALL_BAR_DEACTIVATE;
-       pBarringInfo.Type = TAPI_CALL_BARRING_ALL_OUTGOING_CALLS;
-       pBarringInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;
-       strncpy(pBarringInfo.szPassword,bar_pwd,4);
-
-       ret_status = tel_set_ss_barring(&pBarringInfo,&pRequestId);
-       TET_RESULT_IF_NOT_EQUAL_THEN_GOTO(TET_FAIL, exit, TAPI_API_SUCCESS, ret_status );
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_PASS);
-exit:
-       return;
-}
-
-
-/**
- * @brief Lower boundary testing of the barring mode for TelTapiSsSetCallBarring() API
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_BARRING_002
- * @param [in] pBarringInfo
- * @code
-       char bar_pwd[5] ="0000";
-       pBarringInfo.Mode = (TelSsCallBarOperationMode_t)-1;//TAPI_SS_CALL_BAR_DEACTIVATE+1
-       pBarringInfo.Type = TAPI_CALL_BARRING_ALL_OUTGOING_CALLS;//TAPI_CALL_BARRING_ALL_INCOMING_CALLS_INSIM+1
-       pBarringInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;//TAPI_CALL_TYPE_DATA_CIRCUIT_SYNC_EV+1
-       strcpy(pBarringInfo.szPassword,bar_pwd);
-* @endcode
-* @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_set_ss_barring_02()
-{
-       TET_STAMP_START("Invalid Operation Mode -1");
-       TapiResult_t  ret_status = TAPI_API_SUCCESS;
-       TelSsCallBarringInfo_t  pBarringInfo;// = {0,};
-
-       int pRequestId=0;
-       char bar_pwd[5] =BARRING_PWD;
-       pBarringInfo.Mode = (TelSsCallBarOperationMode_t)-1;//TAPI_SS_CALL_BAR_DEACTIVATE+1
-       pBarringInfo.Type = TAPI_CALL_BARRING_ALL_OUTGOING_CALLS;//TAPI_CALL_BARRING_ALL_INCOMING_CALLS_INSIM+1
-       pBarringInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;//TAPI_CALL_TYPE_DATA_CIRCUIT_SYNC_EV+1
-       strncpy(pBarringInfo.szPassword,bar_pwd,4);
-
-       ret_status = tel_set_ss_barring(&pBarringInfo,&pRequestId);
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status);
-
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Upper boundary testing of the barring mode for TelTapiSsSetCallBarring() API
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_BARRING_003
- * @param [in] pBarringInfo
- * @code
-       char bar_pwd[5] ="0000";
-       pBarringInfo.Mode = (TelSsCallBarOperationMode_t)-1;//TAPI_SS_CALL_BAR_DEACTIVATE+1
-       pBarringInfo.Type = TAPI_CALL_BARRING_ALL_OUTGOING_CALLS;//TAPI_CALL_BARRING_ALL_INCOMING_CALLS_INSIM+1
-       pBarringInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;//TAPI_CALL_TYPE_DATA_CIRCUIT_SYNC_EV+1
-       strcpy(pBarringInfo.szPassword,bar_pwd);
-* @endcode
-* @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_set_ss_barring_03()
-{
-       TET_STAMP_START("Invalid Operation Mode +1");
-       TapiResult_t  ret_status = TAPI_API_SUCCESS;
-       TelSsCallBarringInfo_t  pBarringInfo;// = {0,};
-
-       int pRequestId=0;
-       char bar_pwd[5] =BARRING_PWD;
-       pBarringInfo.Mode = (TelSsCallBarOperationMode_t)(TAPI_SS_CALL_BAR_DEACTIVATE+1);
-       pBarringInfo.Type = TAPI_CALL_BARRING_ALL_OUTGOING_CALLS;
-       pBarringInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;
-       strncpy(pBarringInfo.szPassword, bar_pwd, TAPI_SS_GSM_BARR_PW_LEN_MAX);
-
-       ret_status = tel_set_ss_barring(&pBarringInfo,&pRequestId);
-
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status);
-
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;}
-
-/**
- * @brief Lower boundary testing of the call type for TelTapiSsSetCallBarring() API
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_BARRING_004
- * @param [in] pBarringInfo
- * @code
-       char bar_pwd[5] ="0000";
-       pBarringInfo.Mode = TAPI_SS_CALL_BAR_ACTIVATE;
-       pBarringInfo.Type = TAPI_CALL_BARRING_ALL_OUTGOING_CALLS;
-       pBarringInfo.CallType = (TelSsCallType_t)-1;
-       strcpy(pBarringInfo.szPassword,bar_pwd);
-* @endcode
-* @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_set_ss_barring_04()
-{
-       TET_STAMP_START("Invalid Call Type -1");
-       TapiResult_t  ret_status = TAPI_API_SUCCESS;
-       TelSsCallBarringInfo_t  pBarringInfo;// = {0,};
-
-       int pRequestId=0;
-       char bar_pwd[5] =BARRING_PWD;
-       pBarringInfo.Mode = TAPI_SS_CALL_BAR_ACTIVATE;
-       pBarringInfo.Type = TAPI_CALL_BARRING_ALL_OUTGOING_CALLS;
-       pBarringInfo.CallType = (TelSsCallType_t)-1;
-       strncpy(pBarringInfo.szPassword, bar_pwd, TAPI_SS_GSM_BARR_PW_LEN_MAX);
-
-       ret_status = tel_set_ss_barring(&pBarringInfo,&pRequestId);
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status);
-
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;}
-
-/**
- * @brief Upper boundary testing of the call type for TelTapiSsSetCallBarring() API
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_BARRING_005
- * @param [in] pBarringInfo
- * @code
-       char bar_pwd[5] ="0000";
-       pBarringInfo.Mode = TAPI_SS_CALL_BAR_ACTIVATE;
-       pBarringInfo.Type = TAPI_CALL_BARRING_ALL_OUTGOING_CALLS;
-       pBarringInfo.CallType = (TelSsCallType_t)TAPI_CALL_TYPE_ALL_TELE+1;
-       strcpy(pBarringInfo.szPassword,bar_pwd);
-* @endcode
-* @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_set_ss_barring_05()
-{
-       TET_STAMP_START("Invalid Call Type +1");
-       TapiResult_t  ret_status = TAPI_API_SUCCESS;
-       TelSsCallBarringInfo_t  pBarringInfo;// = {0,};
-
-       int pRequestId=0;
-       char bar_pwd[5] =BARRING_PWD;
-       pBarringInfo.Mode = TAPI_SS_CALL_BAR_ACTIVATE;
-       pBarringInfo.Type = TAPI_CALL_BARRING_ALL_OUTGOING_CALLS;//TAPI_CALL_BARRING_ALL_INCOMING_CALLS_INSIM+1
-       pBarringInfo.CallType = (TelSsCallType_t)TAPI_CALL_TYPE_ALL_TELE+1;
-       strncpy(pBarringInfo.szPassword, bar_pwd, TAPI_SS_GSM_BARR_PW_LEN_MAX);
-
-       ret_status = tel_set_ss_barring(&pBarringInfo,&pRequestId);
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status);
-
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Lower boundary testing of the barring type for TelTapiSsSetCallBarring() API
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_BARRING_006
- * @param [in] pBarringInfo
- * @code
-       char bar_pwd[5] ="0000";
-       pBarringInfo.Mode = TAPI_SS_CALL_BAR_ACTIVATE;
-       pBarringInfo.Type = (TelSsCallBarType_t)-1;
-       pBarringInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;
-       strcpy(pBarringInfo.szPassword,bar_pwd);
-* @endcode
-* @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_set_ss_barring_06()
-{
-       TET_STAMP_START("Invalid Barring Type -1");
-       TapiResult_t  ret_status = TAPI_API_SUCCESS;
-       TelSsCallBarringInfo_t  pBarringInfo;// = {0,};
-
-       int pRequestId=0;
-       char bar_pwd[5] =BARRING_PWD;
-       pBarringInfo.Mode = TAPI_SS_CALL_BAR_ACTIVATE;
-       pBarringInfo.Type = (TelSsCallBarType_t)-1;//TAPI_CALL_BARRING_ALL_OUTGOING_CALLS;//TAPI_CALL_BARRING_ALL_INCOMING_CALLS_INSIM+1
-       pBarringInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;//TAPI_CALL_TYPE_DATA_CIRCUIT_SYNC_EV+1
-       strncpy(pBarringInfo.szPassword, bar_pwd, TAPI_SS_GSM_BARR_PW_LEN_MAX);
-
-       ret_status = tel_set_ss_barring(&pBarringInfo,&pRequestId);
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status);
-
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Upper boundary testing of the barring type for TelTapiSsSetCallBarring() API
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_BARRING_007
- * @param [in] pBarringInfo
- * @code
-       char bar_pwd[5] ="0000";
-       pBarringInfo.Mode = TAPI_SS_CALL_BAR_ACTIVATE;
-       pBarringInfo.Type = (TelSsCallBarType_t)(TAPI_CALL_BARRING_ALL_INCOMING_CALLS_INSIM+1);
-       pBarringInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;
-       strcpy(pBarringInfo.szPassword,bar_pwd);
-* @endcode
-* @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-
-void utc_tel_set_ss_barring_07()
-{
-       TET_STAMP_START("Invalid Barring Type +1");
-       TapiResult_t  ret_status = TAPI_API_SUCCESS;
-       TelSsCallBarringInfo_t  pBarringInfo;// = {0,};
-
-       int pRequestId=0;
-       char bar_pwd[5] =BARRING_PWD;
-       pBarringInfo.Mode = TAPI_SS_CALL_BAR_ACTIVATE;
-       pBarringInfo.Type = (TelSsCallBarType_t)(TAPI_CALL_BARRING_ALL_INCOMING_CALLS_INSIM+1);
-       pBarringInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;//TAPI_CALL_TYPE_DATA_CIRCUIT_SYNC_EV+1
-       strncpy(pBarringInfo.szPassword, bar_pwd, TAPI_SS_GSM_BARR_PW_LEN_MAX);
-
-       ret_status = tel_set_ss_barring(&pBarringInfo,&pRequestId);
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status);
-
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Error handling for the invaild long password of TelTapiSsSetCallBarring() API
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_BARRING_008
- * @param [in] pBarringInfo
- * @code
-       char bar_pwd[6] ="00000";
-       pBarringInfo.Mode = TAPI_SS_CALL_BAR_ACTIVATE;
-       pBarringInfo.Type = TAPI_CALL_BARRING_ALL_OUTGOING_CALLS;//TAPI_CALL_BARRING_ALL_INCOMING_CALLS_INSIM+1
-       pBarringInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;//TAPI_CALL_TYPE_DATA_CIRCUIT_SYNC_EV+1
-       strcpy(pBarringInfo.szPassword,bar_pwd);
-* @endcode
-* @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_set_ss_barring_08()
-{
-        TET_STAMP_START("Invalid short password");
-       TapiResult_t  ret_status = TAPI_API_SUCCESS;
-       TelSsCallBarringInfo_t  pBarringInfo;// = {0,};
-
-       int pRequestId=0;
-       char bar_pwd[6] ="000";
-       pBarringInfo.Mode = TAPI_SS_CALL_BAR_ACTIVATE;
-       pBarringInfo.Type = TAPI_CALL_BARRING_ALL_OUTGOING_CALLS;//TAPI_CALL_BARRING_ALL_INCOMING_CALLS_INSIM+1
-       pBarringInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;//TAPI_CALL_TYPE_DATA_CIRCUIT_SYNC_EV+1
-       strncpy(pBarringInfo.szPassword,bar_pwd,4);
-
-       ret_status = tel_set_ss_barring(&pBarringInfo,&pRequestId);
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status);
-
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Error handling for the invaild long password of TelTapiSsSetCallBarring() API
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_BARRING_009
- * @param [in] pBarringInfo
- * @code
-       char bar_pwd[6] ="00000";
-       pBarringInfo.Mode = TAPI_SS_CALL_BAR_ACTIVATE;
-       pBarringInfo.Type = TAPI_CALL_BARRING_ALL_OUTGOING_CALLS;//TAPI_CALL_BARRING_ALL_INCOMING_CALLS_INSIM+1
-       pBarringInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;//TAPI_CALL_TYPE_DATA_CIRCUIT_SYNC_EV+1
-       strcpy(pBarringInfo.szPassword,bar_pwd);
-* @endcode
-* @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_set_ss_barring_09()
-{
-       TET_STAMP_START("Null RequestId");
-       TapiResult_t  ret_status = TAPI_API_SUCCESS;
-       TelSsCallBarringInfo_t  pBarringInfo;// = {0,};
-
-       char bar_pwd[5] ="0000";
-       pBarringInfo.Mode = TAPI_SS_CALL_BAR_ACTIVATE;
-       pBarringInfo.Type = TAPI_CALL_BARRING_ALL_OUTGOING_CALLS;//TAPI_CALL_BARRING_ALL_INCOMING_CALLS_INSIM+1
-       pBarringInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;//TAPI_CALL_TYPE_DATA_CIRCUIT_SYNC_EV+1
-       strncpy(pBarringInfo.szPassword, bar_pwd, TAPI_SS_GSM_BARR_PW_LEN_MAX);
-
-       ret_status = tel_set_ss_barring(&pBarringInfo,NULL);
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_PTR, ret_status );
-       G_MAIN_LOOP_RUN(7);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Null testing for pBarringInfo of TelTapiSsSetCallBarring() API
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_BARRING_010
- * @param [in] pBarringInfo NULL
- * @param [out] RequestId
-* @return TAPI_API_INVALID_PTR
-*/
-
-void utc_tel_set_ss_barring_10()
-{
-       TET_STAMP_START("Null BarringInfo");
-       TapiResult_t  ret_status = TAPI_API_SUCCESS;
-
-       int pRequestId=0;
-
-       ret_status = tel_set_ss_barring(NULL,&pRequestId);
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_PTR, ret_status );
-       G_MAIN_LOOP_RUN(7);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Null testing for the barring password of TelTapiSsSetCallBarring() API
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_BARRING_011
- * @param [in] pBarringInfo
-  * @code
-       char *bar_pwd = NULL;
-       pBarringInfo.Mode = TAPI_SS_CALL_BAR_ACTIVATE;
-       pBarringInfo.Type = TAPI_CALL_BARRING_ALL_OUTGOING_CALLS;
-       pBarringInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;
-* @endcode
- * @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_set_ss_barring_11()
-{
-       TET_STAMP_START("Test for null password");
-       TapiResult_t  ret_status = TAPI_API_SUCCESS;
-       TelSsCallBarringInfo_t  pBarringInfo;// = {0,};
-
-       int pRequestId=0;
-       char *bar_pwd = "\0";
-
-       pBarringInfo.Mode = TAPI_SS_CALL_BAR_ACTIVATE;
-       pBarringInfo.Type = TAPI_CALL_BARRING_ALL_OUTGOING_CALLS;//TAPI_CALL_BARRING_ALL_INCOMING_CALLS_INSIM+1
-       pBarringInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;//TAPI_CALL_TYPE_DATA_CIRCUIT_SYNC_EV+1
-       strncpy(pBarringInfo.szPassword, bar_pwd, TAPI_SS_GSM_BARR_PW_LEN_MAX);
-
-       ret_status = tel_set_ss_barring(&pBarringInfo,&pRequestId);
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status );
-       G_MAIN_LOOP_RUN(7);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/ss/unit/uts_tel_set_ss_barring.h b/TC/telephony_TC/ss/unit/uts_tel_set_ss_barring.h
deleted file mode 100644 (file)
index cbb9f08..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef _UTS_TAPI_SET_CALL_BARRING_H_
-#define _UTS_TAPI_SET_CALL_BARRING_H_
-
-       static void utc_tel_set_ss_barring_01();
-       static void utc_tel_set_ss_barring_02();
-       static void utc_tel_set_ss_barring_03();
-       static void utc_tel_set_ss_barring_04();
-       static void utc_tel_set_ss_barring_05();
-       static void utc_tel_set_ss_barring_06();
-       static void utc_tel_set_ss_barring_07();
-       static void utc_tel_set_ss_barring_08();
-       static void utc_tel_set_ss_barring_09();
-       static void utc_tel_set_ss_barring_10();
-       static void utc_tel_set_ss_barring_11();
-
-#endif //_UTS_TAPI_CALL_BARRING_ACT_H_
-
diff --git a/TC/telephony_TC/ss/unit/uts_tel_set_ss_forward.c b/TC/telephony_TC/ss/unit/uts_tel_set_ss_forward.c
deleted file mode 100644 (file)
index 6046f68..0000000
+++ /dev/null
@@ -1,520 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <tet_api.h>
-#include <ITapiCall.h>
-#include <ITapiSs.h>
-#include <stdlib.h>
-#include <signal.h>
-#include <stdio.h>
-#include <errno.h>
-#include <sys/types.h>
-
-#include <pthread.h>
-#include "assert.h"
-#include "glib.h"
-
-#include "TapiCommon.h"
-#include <gconf/gconf-client.h>
-#include "string.h"
-
-#include "tet_tapi_util.h"
-#include "uts_tel_set_ss_forward.h"
-#include "ss_common.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_set_ss_forward_01, 1},
-       {utc_tel_set_ss_forward_02, 2},
-       {utc_tel_set_ss_forward_03, 3},
-       {utc_tel_set_ss_forward_04, 4},
-       {utc_tel_set_ss_forward_05, 5},
-       {utc_tel_set_ss_forward_06, 6},
-       {utc_tel_set_ss_forward_07, 7},
-       {utc_tel_set_ss_forward_08, 8},
-       {utc_tel_set_ss_forward_09, 9},
-       {NULL, 0}
-};
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       
-       gStartupSuccess = FALSE;
-       if(tel_init() == TAPI_API_SUCCESS)
-       {
-               if(tel_register_event(TAPI_EVENT_SS_FORWARD_CNF, &subscription_id, (TelAppCallback)ss_utc_callback,NULL) == TAPI_API_SUCCESS)
-               {
-                       gStartupSuccess = TRUE;
-
-                       tel_register_app_name("org.samsung.test");
-                       if(tel_get_app_name(&dname))
-                               printf("Dbus Get app name error\n");
-                       else 
-                               printf("Dbus Name is %s\n",dname.name);
-                               
-                       tel_check_service_ready(&bStatus);
-                       printf("Telephony service  %d\n",bStatus);
-
-               }
-               else
-                       tet_infoline("startup fail. tel_register_event()");
-       }else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-
-       return;
-}
-
-static void cleanup()
-{
-       //Erase the service registration
-       TelSsForwardInfo_t pForwardInfo;
-       int len;
-
-       int pRequestId=0;
-       pForwardInfo.Mode = TAPI_CALL_FORWARD_MODE_ERASURE_EV;
-       pForwardInfo.Type = TAPI_CS_FORWARD_TYPE_ALL_TELE;
-       pForwardInfo.Condition = TAPI_SS_FORWARD_WHEN_ALL_CONDITIONAL_EV;
-       pForwardInfo.NoReplyConditionTimer = 0;
-
-       char cf_number[20]= {FWD_NUM};
-       len = strlen(cf_number);
-       strncpy(pForwardInfo.szPhoneNumber, cf_number, TAPI_CALL_DIALDIGIT_LEN_MAX);
-
-       tel_set_ss_forward(&pForwardInfo,&pRequestId);
-       G_MAIN_LOOP_RUN(5);
-       printf("CF ERASE\n");
-       if(gStartupSuccess == TRUE)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-       return;
-}
-
-
-/**
- * @brief This tests TelTapiSsSetCallForwarding() API in normal conditions
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_FORWARDING_001
- * @param [in] pForwardInfo
- * @code
-       pForwardInfo.Mode = TAPI_CALL_FORWARD_MODE_REGISTRATION_EV;
-       pForwardInfo.Type = TAPI_CS_FORWARD_TYPE_VOICE_EV;
-       pForwardInfo.Condition = TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV;
-       pForwardInfo.NoReplyConditionTimer = 0;
-       char cf_number[20]= {FWD_NUM};
-       len = strlen(cf_number);
-       strcpy(pForwardInfo.szPhoneNumber,cf_number);
-* @endcode
-* @param [out] RequestId
-* @return TAPI_API_SUCCESS
-*/
-
-void utc_tel_set_ss_forward_01()
-{
-       TET_STAMP_START("This tests TelTapiSsSetCallForwarding() API in normal conditions");
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-       TelSsForwardInfo_t pForwardInfo;
-       int len;
-
-       int pRequestId=0;
-       pForwardInfo.Mode = TAPI_CALL_FORWARD_MODE_REGISTRATION_EV;
-       pForwardInfo.Type = TAPI_CS_FORWARD_TYPE_VOICE_EV;
-       pForwardInfo.Condition = TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV;
-       pForwardInfo.NoReplyConditionTimer = 0;
-
-       char cf_number[20]= {FWD_NUM};
-       len = strlen(cf_number);
-       strncpy(pForwardInfo.szPhoneNumber, cf_number, TAPI_CALL_DIALDIGIT_LEN_MAX);
-
-       printf("CF REGISTRATION\n");
-       ret_status =  tel_set_ss_forward(&pForwardInfo,&pRequestId);
-
-       TET_RESULT_IF_NOT_EQUAL_THEN_GOTO(TET_FAIL, exit, TAPI_API_SUCCESS, ret_status );
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_PASS);
-exit:
-       return;
-}
-
-/**
- * @brief Lower boundary testing of the forward mode for TelTapiSsSetCallForwarding() API
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_FORWARDING_002
- * @param [in] pForwardInfo
- * @code
-       pForwardInfo.Mode = (TelSsForwardMode_t)-1;
-       pForwardInfo.Type = TAPI_CS_FORWARD_TYPE_VOICE_EV;
-       pForwardInfo.Condition = TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV;
-       pForwardInfo.NoReplyConditionTimer = 10;
-       char cf_number[20]= {FWD_NUM};
-       len = strlen(cf_number);
-       strcpy(pForwardInfo.szPhoneNumber,cf_number);
-* @endcode
-* @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_set_ss_forward_02()
-{
-       TET_STAMP_START("Invalid forward mode -1");
-       //invalid mode
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-
-       int pRequestId=0;
-       TelSsForwardInfo_t pForwardInfo;
-       pForwardInfo.Mode = (TelSsForwardMode_t)-1;//TAPI_CALL_FORWARD_MODE_ENABLE_EV;
-       pForwardInfo.Type = TAPI_CS_FORWARD_TYPE_VOICE_EV;
-       pForwardInfo.Condition = TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV;
-       pForwardInfo.NoReplyConditionTimer = 10;
-
-       int len;
-       char cf_number[20]= {FWD_NUM};
-       len = strlen(cf_number);
-
-       memcpy(&(pForwardInfo.szPhoneNumber),cf_number,len);
-
-       ret_status = tel_set_ss_forward(&pForwardInfo,&pRequestId);
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status);
-
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Upper boundary testing of the forward mode for TelTapiSsSetCallForwarding() API
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_FORWARDING_003
- * @param [in] pForwardInfo
- * @code
-       pForwardInfo.Mode = (TelSsForwardMode_t)(TAPI_CALL_FORWARD_MODE_ERASURE_EV+1);
-       pForwardInfo.Type = TAPI_CS_FORWARD_TYPE_VOICE_EV;
-       pForwardInfo.Condition = TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV;
-       pForwardInfo.NoReplyConditionTimer = 10;
-       char cf_number[20]= {FWD_NUM};
-       len = strlen(cf_number);
-       strcpy(pForwardInfo.szPhoneNumber,cf_number);
-* @endcode
-* @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_set_ss_forward_03()
-{
-       //invalid mode
-       TET_STAMP_START("Invalid forward mode +1");
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-
-       TelSsForwardInfo_t pForwardInfo;
-       pForwardInfo.Mode = (TelSsForwardMode_t)(TAPI_CALL_FORWARD_MODE_ERASURE_EV+1);//TAPI_CALL_FORWARD_MODE_ENABLE_EV;
-       pForwardInfo.Type = TAPI_CS_FORWARD_TYPE_VOICE_EV;
-       pForwardInfo.Condition = TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV;
-       pForwardInfo.NoReplyConditionTimer = 10;
-       int pRequestId=0;
-       int len;
-       char cf_number[20]= {FWD_NUM};
-       len = strlen(cf_number);
-
-       memcpy(&(pForwardInfo.szPhoneNumber),cf_number,len);
-
-       ret_status =  tel_set_ss_forward(&pForwardInfo,&pRequestId);
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status);
-
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Lower boundary testing of the forward type for TelTapiSsSetCallForwarding() API
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_FORWARDING_004
- * @param [in] pForwardInfo
- * @code
-       pForwardInfo.Mode = TAPI_CALL_FORWARD_MODE_ENABLE_EV;
-       pForwardInfo.Type = (TelSsForwardType_t)-1;
-       pForwardInfo.Condition = TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV;
-       pForwardInfo.NoReplyConditionTimer = 10;
-
-       char cf_number[20]= {FWD_NUM};
-       len = strlen(cf_number);
-       strcpy(pForwardInfo.szPhoneNumber,cf_number);
-* @endcode
-* @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_set_ss_forward_04()
-{
-       //invalid type
-       TET_STAMP_START("Invalid forward type -1");
-    TapiResult_t ret_status = TAPI_API_SUCCESS;
-int pRequestId=0;
-    TelSsForwardInfo_t pForwardInfo;
-    pForwardInfo.Mode = TAPI_CALL_FORWARD_MODE_ENABLE_EV;
-    pForwardInfo.Type = (TelSsForwardType_t)-1;//TAPI_CS_FORWARD_TYPE_VOICE_EV;
-    pForwardInfo.Condition = TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV;
-    pForwardInfo.NoReplyConditionTimer = 10;
-
-    int len;
-    char cf_number[20]= {FWD_NUM};
-    len = strlen(cf_number);
-
-    memcpy(&(pForwardInfo.szPhoneNumber),cf_number,len);
-
-    ret_status =  tel_set_ss_forward(&pForwardInfo,&pRequestId);
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status);
-
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Upper boundary testing of the forward type for TelTapiSsSetCallForwarding() API
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_FORWARDING_005
- * @param [in] pForwardInfo
- * @code
-       pForwardInfo.Mode = TAPI_CALL_FORWARD_MODE_ENABLE_EV;
-       pForwardInfo.Type = (TelSsForwardType_t)(TAPI_CS_FORWARD_TYPE_ALL_TELE +1);
-       pForwardInfo.Condition = TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV;
-       pForwardInfo.NoReplyConditionTimer = 10;
-       char cf_number[20]= {FWD_NUM};
-       len = strlen(cf_number);
-       strcpy(pForwardInfo.szPhoneNumber,cf_number);
-* @endcode
-* @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_set_ss_forward_05()
-{
-       //invalid type
-       TET_STAMP_START("Invalid forward type +1");
-    TapiResult_t ret_status = TAPI_API_SUCCESS;
-int pRequestId=0;
-    TelSsForwardInfo_t pForwardInfo;
-    pForwardInfo.Mode = TAPI_CALL_FORWARD_MODE_ENABLE_EV;
-    pForwardInfo.Type = (TelSsForwardType_t)(TAPI_CS_FORWARD_TYPE_ALL_TELE +1);
-    pForwardInfo.Condition = TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV;
-    pForwardInfo.NoReplyConditionTimer = 10;
-
-    int len;
-    char cf_number[20]= {FWD_NUM};
-    len = strlen(cf_number);
-
-    memcpy(&(pForwardInfo.szPhoneNumber),cf_number,len);
-
-    ret_status =  tel_set_ss_forward(&pForwardInfo,&pRequestId);
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status);
-
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Lower boundary testing of the forward condition for TelTapiSsSetCallForwarding() API
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_FORWARDING_006
- * @param [in] pForwardInfo
- * @code
-       pForwardInfo.Mode = TAPI_CALL_FORWARD_MODE_ENABLE_EV;
-       pForwardInfo.Type = TAPI_CS_FORWARD_TYPE_VOICE_EV;
-       pForwardInfo.Condition = (TelSsForwardWhen_t)-1;
-       pForwardInfo.NoReplyConditionTimer = 10;
-       char cf_number[20]= {FWD_NUM};
-       len = strlen(cf_number);
-       strcpy(pForwardInfo.szPhoneNumber,cf_number);
-* @endcode
-* @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_set_ss_forward_06()
-{
-       //invalid condition
-       TET_STAMP_START("Invalid forward condition -1");
-    TapiResult_t ret_status = TAPI_API_SUCCESS;
-int pRequestId=0;
-    TelSsForwardInfo_t pForwardInfo;
-    pForwardInfo.Mode = TAPI_CALL_FORWARD_MODE_ENABLE_EV;
-    pForwardInfo.Type = TAPI_CS_FORWARD_TYPE_VOICE_EV;
-    pForwardInfo.Condition = (TelSsForwardWhen_t)-1;
-    pForwardInfo.NoReplyConditionTimer = 10;
-
-    int len;
-    char cf_number[20]= {FWD_NUM};
-    len = strlen(cf_number);
-
-    memcpy(&(pForwardInfo.szPhoneNumber),cf_number,len);
-
-    ret_status =  tel_set_ss_forward(&pForwardInfo,&pRequestId);
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status);
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Upper boundary testing of the forward condition for TelTapiSsSetCallForwarding() API
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_FORWARDING_007
- * @param [in] pForwardInfo
- * @code
-       pForwardInfo.Mode = TAPI_CALL_FORWARD_MODE_ENABLE_EV;
-       pForwardInfo.Type = TAPI_CS_FORWARD_TYPE_VOICE_EV;
-       pForwardInfo.Condition = (TelSsForwardWhen_t)(TAPI_SS_FORWARD_WHEN_ALL_CONDITIONAL_EV+1);
-       pForwardInfo.NoReplyConditionTimer = 10;
-       char cf_number[20]= {FWD_NUM};
-       len = strlen(cf_number);
-       strcpy(pForwardInfo.szPhoneNumber,cf_number);
-* @endcode
-* @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_set_ss_forward_07()
-{
-       //invalid condition
-       TET_STAMP_START("Invalid Forward Condition +1");
-    TapiResult_t ret_status = TAPI_API_SUCCESS;
-int pRequestId=0;
-    TelSsForwardInfo_t pForwardInfo;
-    pForwardInfo.Mode = TAPI_CALL_FORWARD_MODE_ENABLE_EV;
-    pForwardInfo.Type = TAPI_CS_FORWARD_TYPE_VOICE_EV;
-    pForwardInfo.Condition = (TelSsForwardWhen_t)(TAPI_SS_FORWARD_WHEN_ALL_CONDITIONAL_EV+1);
-    pForwardInfo.NoReplyConditionTimer = 10;
-
-    int len;
-    char cf_number[20]= {FWD_NUM};
-    len = strlen(cf_number);
-
-    memcpy(&(pForwardInfo.szPhoneNumber),cf_number,len);
-
-    ret_status =  tel_set_ss_forward(&pForwardInfo,&pRequestId);
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status);
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-
-/**
- * @brief Null test of the Request ID for TelTapiSsSetCallForwarding() API
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_FORWARDING_008
- * @param [in] pForwardInfo
- * @code
- pForwardInfo.Mode = TAPI_CALL_FORWARD_MODE_ENABLE_EV;
-    pForwardInfo.Type = TAPI_CS_FORWARD_TYPE_VOICE_EV;
-    pForwardInfo.Condition = TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV;
-    pForwardInfo.NoReplyConditionTimer = 10;
-
-    int len;
-    char cf_number[20]= {FWD_NUM};
-    len = strlen(cf_number);
-    memcpy(&(pForwardInfo.szPhoneNumber),cf_number,len);
- * @endcode
-* @param [out] RequestId NULL
-* @return TAPI_API_INVALID_PTR
-*/
-
-void utc_tel_set_ss_forward_08()
-{
-       //null out param
-       TET_STAMP_START("Null Request ID");
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-       TelSsForwardInfo_t pForwardInfo;
-       pForwardInfo.Mode = TAPI_CALL_FORWARD_MODE_ENABLE_EV;
-       pForwardInfo.Type = TAPI_CS_FORWARD_TYPE_VOICE_EV;
-       pForwardInfo.Condition = TAPI_SS_FORWARD_WHEN_UNCONDITIONAL_EV;
-       pForwardInfo.NoReplyConditionTimer = 10;
-
-       int len;
-       char cf_number[20]= {FWD_NUM};
-       len = strlen(cf_number);
-       memcpy(&(pForwardInfo.szPhoneNumber),cf_number,len);
-
-       ret_status =  tel_set_ss_forward(&pForwardInfo,NULL);
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_PTR, ret_status);
-
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-
-/**
- * @brief Null test of the forward info for TelTapiSsSetCallForwarding() API
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_FORWARDING_009
- * @param [in] pForwardInfo
- * @endcode
-* @param [out] RequestId NULL
-* @return TAPI_API_INVALID_PTR
-*/
-
-void utc_tel_set_ss_forward_09()
-{
-       //null out param
-       TET_STAMP_START("Null Forward Info");
-       TapiResult_t ret_status = TAPI_API_SUCCESS;
-       int pRequestId=0;
-
-       ret_status =  tel_set_ss_forward(NULL,&pRequestId);
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_PTR, ret_status);
-
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/** @} */
diff --git a/TC/telephony_TC/ss/unit/uts_tel_set_ss_forward.h b/TC/telephony_TC/ss/unit/uts_tel_set_ss_forward.h
deleted file mode 100644 (file)
index e0d00be..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef _UTS_TAPI_SS_SET_CALL_FORWARD_H_
-#define _UTS_TAPI_SS_SET_CALL_FORWARD_H_
-
-       static void utc_tel_set_ss_forward_01();
-       static void utc_tel_set_ss_forward_02();
-       static void utc_tel_set_ss_forward_03();
-       static void utc_tel_set_ss_forward_04();
-       static void utc_tel_set_ss_forward_05();
-       static void utc_tel_set_ss_forward_06();
-       static void utc_tel_set_ss_forward_07();
-       static void utc_tel_set_ss_forward_08();
-       static void utc_tel_set_ss_forward_09();
-
-
-#endif //_UTS_TAPI_CALL_BARRING_ACT_H_
diff --git a/TC/telephony_TC/ss/unit/uts_tel_set_ss_waiting.c b/TC/telephony_TC/ss/unit/uts_tel_set_ss_waiting.c
deleted file mode 100644 (file)
index 599899b..0000000
+++ /dev/null
@@ -1,327 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include <ITapiCall.h>
-#include <ITapiSs.h>
-#include <stdlib.h>
-#include <signal.h>
-#include <stdio.h>
-#include <errno.h>
-#include <sys/types.h>
-
-#include <pthread.h>
-#include "assert.h"
-#include "glib.h"
-
-#include "TapiCommon.h"
-#include <gconf/gconf-client.h>
-#include "string.h"
-
-#include "tet_tapi_util.h"
-#include <tet_api.h>
-
-#include "uts_tel_set_ss_waiting.h"
-
-/* Initialize TCM data structures */
-static void startup();
-static void cleanup();
-void (*tet_startup) () = startup;
-void (*tet_cleanup) () = cleanup;
-struct tet_testlist tet_testlist[] = {
-       {utc_tel_set_ss_waiting_01, 1},
-       {utc_tel_set_ss_waiting_02, 2},
-       {utc_tel_set_ss_waiting_03, 3},
-       {utc_tel_set_ss_waiting_04, 4},
-       {utc_tel_set_ss_waiting_05, 5},
-       {utc_tel_set_ss_waiting_06, 6},
-       {utc_tel_set_ss_waiting_07, 7},
-       {NULL, 0}
-};
-
-
-/* Startup & Clean function : It is not test code, only for
-   initialize and finalize test module
-*/
-static BOOL gStartupSuccess = FALSE;
-static unsigned int subscription_id = 0;
-
-static void startup()
-{
-       tapi_dbus_connection_name dname;
-       int bStatus;
-       
-       gStartupSuccess = FALSE;
-       if(tel_init() == TAPI_API_SUCCESS)
-       {
-               if(tel_register_event(TAPI_EVENT_SS_WAITING_CNF, &subscription_id, (TelAppCallback)ss_utc_callback,NULL) == TAPI_API_SUCCESS)
-               {
-                       gStartupSuccess = TRUE;
-                       tel_register_app_name("org.samsung.test");
-                       if(tel_get_app_name(&dname))
-                               printf("Dbus Get app name error\n");
-                       else 
-                               printf("Dbus Name is %s\n",dname.name);
-                               
-                       tel_check_service_ready(&bStatus);
-                       printf("Telephony service  %d\n",bStatus);
-               }
-               else
-               {
-                       tet_infoline("startup fail. tel_register_event()");
-               }
-       }else {
-               tet_infoline("startup fail. tel_init() failed");
-       }
-
-       return;
-}
-
-static void cleanup()
-{
-       if(gStartupSuccess == TRUE)
-               tel_deregister_event(subscription_id);
-       tel_deinit();
-       return;
-}
-
-/**
- * @brief This tests TelTapiSsSetCallWaiting() API in normal conditions
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_WAITING_001
- * @param [in] waitInfo
- * @code
- *     waitInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;
- *     waitInfo.Mode =(TelSsCallWaitOperationMode_t)TAPI_SS_CW_ACTIVATE;
-* @endcode
-* @param [out] RequestId
-* @return TAPI_API_SUCCESS
-*/
-
-void utc_tel_set_ss_waiting_01()
-{
-       TET_STAMP_START("This tests TelTapiSsSetCallWaiting() API in normal conditions");
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       TelSsWaitingInfo_t waitInfo;
-
-       int request_id=0;
-       waitInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;
-       waitInfo.Mode =(TelSsCallWaitOperationMode_t)TAPI_SS_CW_ACTIVATE;
-
-       ret_status = tel_set_ss_waiting(&waitInfo, &request_id);
-
-       TET_RESULT_IF_NOT_EQUAL_THEN_GOTO(TET_FAIL, exit, TAPI_API_SUCCESS, ret_status );
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_PASS);
-exit:
-       return;
-}
-
-/**
- * @brief Lower boundary testing of the call  type for TelTapiSsSetCallWaiting() API
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_WAITING_002
- * @param [in] waitInfo
- * @code
- *     waitInfo.CallType = (TelSsCallType_t)-1;
- *     waitInfo.Mode =(TelSsCallWaitOperationMode_t)TAPI_SS_CW_ACTIVATE;
-* @endcode
-* @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_set_ss_waiting_02()
-{
-       TET_STAMP_START("Lower boundary testing of the call  type for TelTapiSsSetCallWaiting() API");
-
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       TelSsWaitingInfo_t waitInfo;
-       int request_id=0;
-
-       waitInfo.CallType = (TelSsCallType_t)-1;
-       waitInfo.Mode =(TelSsCallWaitOperationMode_t)TAPI_SS_CW_ACTIVATE;
-
-       ret_status = tel_set_ss_waiting(&waitInfo, &request_id);
-
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status );
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-
-/**
- * @brief Upper boundary testing of the call  type for TelTapiSsSetCallWaiting() API
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_WAITING_003
- * @param [in] waitInfo
- * @code
-*      waitInfo.CallType = (TelSsCallType_t)(TAPI_CALL_TYPE_ALL_TELE+1);
-*      waitInfo.Mode =(TelSsCallWaitOperationMode_t)TAPI_SS_CW_ACTIVATE;
-* @endcode
-* @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_set_ss_waiting_03()
-{
-       TET_STAMP_START("Upper boundary testing of the call  type for TelTapiSsSetCallWaiting() API");
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       TelSsWaitingInfo_t waitInfo;
-       waitInfo.CallType = (TelSsCallType_t)(TAPI_CALL_TYPE_ALL_TELE+1);
-       waitInfo.Mode =(TelSsCallWaitOperationMode_t)TAPI_SS_CW_ACTIVATE;
-       int request_id=0;
-
-       ret_status = tel_set_ss_waiting(&waitInfo, &request_id);
-
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status );
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-
-/**
- * @brief Lower boundary testing of the waiting operation mode for TelTapiSsSetCallWaiting() API
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_WAITING_004
- * @param [in] waitInfo
- * @code
- *     waitInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;
-*      waitInfo.Mode =(TelSsCallWaitOperationMode_t)-1;
-* @endcode
-* @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_set_ss_waiting_04()
-{
-       TET_STAMP_START("Lower boundary testing of the waiting operation mode for TelTapiSsSetCallWaiting() API");
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       TelSsWaitingInfo_t waitInfo;
-       waitInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;
-       waitInfo.Mode =(TelSsCallWaitOperationMode_t)-1;
-       int request_id=0;
-
-       ret_status = tel_set_ss_waiting(&waitInfo, &request_id);
-
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status );
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Upper boundary testing of the waiting operation mode for TelTapiSsSetCallWaiting() API
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_WAITING_005
- * @param [in] waitInfo
- * @code
- *     waitInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;
- *     waitInfo.Mode =(TelSsCallWaitOperationMode_t)(TAPI_SS_CW_DEACTIVATE+1);
-* @endcode
-* @param [out] RequestId
-* @return TAPI_API_INVALID_INPUT
-*/
-
-void utc_tel_set_ss_waiting_05()
-{
-       TET_STAMP_START("Upper boundary testing of the waiting operation mode for TelTapiSsSetCallWaiting() API");
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       TelSsWaitingInfo_t waitInfo;
-       waitInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;
-       waitInfo.Mode =(TelSsCallWaitOperationMode_t)(TAPI_SS_CW_DEACTIVATE+1);
-       int request_id=0;
-
-       ret_status = tel_set_ss_waiting(&waitInfo, &request_id);
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_INPUT, ret_status );
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Null testing of the waitInfo for TelTapiSsSetCallWaiting() API
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_WAITING_006
- * @param [in] waitInfo NULL
-* @param [out] RequestId
-* @return TAPI_API_INVALID_PTR
-*/
-
-void utc_tel_set_ss_waiting_06()
-{
-       TET_STAMP_START("Null testing of the waitInfo for TelTapiSsSetCallWaiting() API");
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       int request_id=0;
-
-       ret_status = tel_set_ss_waiting(NULL, &request_id);
-
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_PTR, ret_status );
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-/**
- * @brief Null testing of the request ID for TelTapiSsSetCallWaiting() API
- * @par ID:
- * UTC_TAPI_SS_SET_CALL_WAITING_007
- * @param [in] waitInfo
-  * @code
- * waitInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;
-* waitInfo.Mode =(TelSsCallWaitOperationMode_t)TAPI_SS_CW_DEACTIVATE;
-* @param [out] RequestId NULL
-* @return TAPI_API_INVALID_PTR
-*/
-
-void utc_tel_set_ss_waiting_07()
-{
-       TET_STAMP_START("Null testing of the request ID for TelTapiSsSetCallWaiting() API");
-       TapiResult_t   ret_status = TAPI_API_SUCCESS;
-       TelSsWaitingInfo_t waitInfo;
-       waitInfo.CallType = TAPI_CALL_TYPE_VOICE_EV;
-       waitInfo.Mode =(TelSsCallWaitOperationMode_t)TAPI_SS_CW_DEACTIVATE;
-
-       ret_status = tel_set_ss_waiting(&waitInfo, NULL);
-
-       TET_RESULT_IF_EQUAL_THEN_GOTO(TET_PASS, exit, TAPI_API_INVALID_PTR, ret_status );
-       G_MAIN_LOOP_RUN(5);
-
-       tet_result(TET_FAIL);
-exit:
-       return;
-}
-
-
-/** @} */
-
-
diff --git a/TC/telephony_TC/ss/unit/uts_tel_set_ss_waiting.h b/TC/telephony_TC/ss/unit/uts_tel_set_ss_waiting.h
deleted file mode 100644 (file)
index 1574e7d..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * libslp-tapi
- *
- * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#ifndef _UTS_TAPI_SS_SET_CALL_WAITING_H_
-#define _UTS_TAPI_SS_SET_CALL_WAITING_H_
-       static void utc_tel_set_ss_waiting_01();
-       static void utc_tel_set_ss_waiting_02();
-       static void utc_tel_set_ss_waiting_03();
-       static void utc_tel_set_ss_waiting_04();
-       static void utc_tel_set_ss_waiting_05();
-       static void utc_tel_set_ss_waiting_06();
-       static void utc_tel_set_ss_waiting_07();
-
-#endif //_UTS_TAPI_CALL_BARRING_ACT_H_
-
diff --git a/TC/telephony_TC/tet_scen b/TC/telephony_TC/tet_scen
deleted file mode 100644 (file)
index 6df76f3..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-all
-       ^common
-       ^sim
-       ^sat
-       ^sound
-       ^ss
-       ^sms
-       ^gprs
-       ^net
-sim
-       :include:/sim/unit/tslist
-sms
-       :include:/sms/unit/tslist
-net
-       :include:/network/unit/tslist
-ss
-       :include:/ss/unit/tslist
-sat
-       :include:/sat/unit/tslist
-gprs
-       :include:/gprs/unit/tslist
-sound
-       :include:/sound/unit/tslist
-common
-       :include:/common/unit/tslist
diff --git a/TC/telephony_TC/tetbuild.cfg b/TC/telephony_TC/tetbuild.cfg
deleted file mode 100644 (file)
index 9aec41e..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-TET_OUTPUT_CAPTURE=True
-TET_BUILD_TOOL=make
-TET_BUILD_FILE=-f makefile
diff --git a/TC/telephony_TC/tetclean.cfg b/TC/telephony_TC/tetclean.cfg
deleted file mode 100644 (file)
index 2cc5be7..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-TET_OUTPUT_CAPTURE=False
-TET_CLEAN_TOOL=rm
-TET_CLEAN_FILE=-f
diff --git a/TC/telephony_TC/tetexec.cfg b/TC/telephony_TC/tetexec.cfg
deleted file mode 100644 (file)
index afec781..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-TET_OUTPUT_CAPTURE=False
-# Parameters to be passed to test cases.
-# These allow you to parameterize your test suite.
-# The name of a character device file (or "unsup" if not supported)
-#CHARDEV=/dev/null
-
-# The name of a block device file (or "unsup" if not supported)
-#BLOCKDEV=unsup
diff --git a/TC/tet_scen b/TC/tet_scen
deleted file mode 100644 (file)
index 334caba..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-# auto generated tet_scen
-all
-       "Starting Full Test Suite"
-       /telephony_TC/sim/unit/uts_tel_change_sim_pins{1-5,9}
-       /telephony_TC/sim/unit/uts_tel_delete_sim_pb_record{1-3}
-       /telephony_TC/sim/unit/uts_tel_disable_sim_fdn
-       /telephony_TC/sim/unit/uts_tel_disable_sim_security
-       /telephony_TC/sim/unit/uts_tel_enable_sim_fdn
-       /telephony_TC/sim/unit/uts_tel_enable_sim_security
-       /telephony_TC/sim/unit/uts_tel_get_sim_ecc
-       /telephony_TC/sim/unit/uts_tel_get_sim_fdn_status
-       /telephony_TC/sim/unit/uts_tel_get_sim_imsi
-       /telephony_TC/sim/unit/uts_tel_get_sim_init_info
-       /telephony_TC/sim/unit/uts_tel_get_sim_language
-       /telephony_TC/sim/unit/uts_tel_get_sim_mailbox_info
-       /telephony_TC/sim/unit/uts_tel_get_sim_callforwarding_info
-       /telephony_TC/sim/unit/uts_tel_get_sim_messagewaiting_info
-       /telephony_TC/sim/unit/uts_tel_get_sim_cphs_info
-       /telephony_TC/sim/unit/uts_tel_get_sim_msisdn
-       /telephony_TC/sim/unit/uts_tel_get_sim_pb_3g_meta_info{1}
-       /telephony_TC/sim/unit/uts_tel_get_sim_pb_count{1-3}
-       /telephony_TC/sim/unit/uts_tel_get_sim_pb_init_info
-       /telephony_TC/sim/unit/uts_tel_get_sim_pb_meta_info{1-3}
-       /telephony_TC/sim/unit/uts_tel_get_sim_security_status
-       /telephony_TC/sim/unit/uts_tel_get_sim_type
-       /telephony_TC/sim/unit/uts_tel_lock_sim_personalization
-       /telephony_TC/sim/unit/uts_tel_read_sim_pb_record{1-3}
-       /telephony_TC/sim/unit/uts_tel_req_sap_cardreader_status
-       /telephony_TC/sim/unit/uts_tel_req_sap_connection
-       /telephony_TC/sim/unit/uts_tel_req_sap_connection_status
-       /telephony_TC/sim/unit/uts_tel_req_sap_power_operation
-       /telephony_TC/sim/unit/uts_tel_req_sap_transfer_apdu
-       /telephony_TC/sim/unit/uts_tel_req_sap_transfer_atr
-       /telephony_TC/sim/unit/uts_tel_req_sap_transport_protocol
-       /telephony_TC/sim/unit/uts_tel_req_sim_access
-       /telephony_TC/sim/unit/uts_tel_req_sim_isim_authentication
-       /telephony_TC/sim/unit/uts_tel_set_sim_language
-       /telephony_TC/sim/unit/uts_tel_update_sim_pb_record #{1-4}
-       /telephony_TC/sim/unit/uts_tel_verifiy_sim_pins{1-4}
-       /telephony_TC/sim/unit/uts_tel_verify_sim_puks
-       /telephony_TC/call/unit/uts_tel_exe_call_mo
-       /telephony_TC/call/unit/uts_tel_answer_call
-       /telephony_TC/call/unit/uts_tel_release_call
-       /telephony_TC/call/unit/uts_tel_release_call_all_active
-       /telephony_TC/call/unit/uts_tel_retrieve_call
-       /telephony_TC/call/unit/uts_tel_hold_call
-       /telephony_TC/call/unit/uts_tel_swap_call
-       /telephony_TC/call/unit/uts_tel_join_call
-       /telephony_TC/call/unit/uts_tel_split_call
-       /telephony_TC/call/unit/uts_tel_exe_call_explicit_transfer
-       /telephony_TC/call/unit/uts_tel_get_call_act_line
-       /telephony_TC/call/unit/uts_tel_set_call_act_line
-       /telephony_TC/call/unit/uts_tel_get_call_status
-       /telephony_TC/call/unit/uts_tel_get_call_duration
-       /telephony_TC/call/unit/uts_tel_send_call_dtmf
-       /telephony_TC/call/unit/uts_tel_release_call_all_held
-       /telephony_TC/call/unit/uts_tel_get_call_conf_list
-       /telephony_TC/call/unit/uts_tel_release_call_all
-       /telephony_TC/call/unit/uts_tel_activate_call_ccbs
-       /telephony_TC/call/unit/uts_tel_deflect_call
-       /telephony_TC/common/unit/uts_tel_check_service_ready
-       /telephony_TC/common/unit/uts_tel_deinit
-       /telephony_TC/common/unit/uts_tel_deinit_ecore_loop
-       /telephony_TC/common/unit/uts_tel_register_event
-       /telephony_TC/common/unit/uts_tel_deregister_event_at_ecore_loop
-       /telephony_TC/common/unit/uts_tel_init_ecore_loop
-       /telephony_TC/common/unit/uts_tel_deregister_event
-       /telephony_TC/common/unit/uts_tel_init
-       /telephony_TC/common/unit/uts_tel_register_event_at_ecore_loop
-       /telephony_TC/network/unit/uts_tel_get_network_band
-       /telephony_TC/network/unit/uts_tel_get_network_hybrid_in_cdma
-       /telephony_TC/network/unit/uts_tel_get_network_preferred_plmn
-       /telephony_TC/network/unit/uts_tel_get_network_roaming
-       /telephony_TC/network/unit/uts_tel_get_network_selection_mode
-       /telephony_TC/network/unit/uts_tel_get_network_service_domain
-       /telephony_TC/network/unit/uts_tel_search_network
-       /telephony_TC/network/unit/uts_tel_set_network_band
-       /telephony_TC/network/unit/uts_tel_set_network_hybrid_in_cdma
-       /telephony_TC/network/unit/uts_tel_set_network_preferred_plmn
-       /telephony_TC/network/unit/uts_tel_set_network_roaming
-       /telephony_TC/network/unit/uts_tel_set_network_service_domain
-       /telephony_TC/network/unit/uts_tel_get_network_mode
-       /telephony_TC/network/unit/uts_tel_select_network_automatic
-       /telephony_TC/network/unit/uts_tel_select_network_manual
-       /telephony_TC/network/unit/uts_tel_set_network_mode
-       /telephony_TC/gprs/unit/uts_tel_activate_gprs_pdp
-       /telephony_TC/gprs/unit/uts_tel_control_gprs_btdun_pin
-       /telephony_TC/gprs/unit/uts_tel_deactivate_gprs_pdp
-       /telephony_TC/ss/unit/uts_tel_change_ss_barring_password
-       /telephony_TC/ss/unit/uts_tel_get_ss_aoc_info
-       /telephony_TC/ss/unit/uts_tel_get_ss_barring_status
-       /telephony_TC/ss/unit/uts_tel_get_ss_cli_status
-       /telephony_TC/ss/unit/uts_tel_get_ss_forward_status
-       /telephony_TC/ss/unit/uts_tel_get_ss_waiting_status
-       /telephony_TC/ss/unit/uts_tel_send_ss_ussd_cancel
-       /telephony_TC/ss/unit/uts_tel_send_ss_ussd_request
-       /telephony_TC/ss/unit/uts_tel_send_ss_ussd_response
-       /telephony_TC/ss/unit/uts_tel_set_ss_barring
-       /telephony_TC/ss/unit/uts_tel_set_ss_forward
-       /telephony_TC/ss/unit/uts_tapi_ussd_send_rsp
-       /telephony_TC/ss/unit/uts_tel_set_ss_waiting
-       "Completed Full Test Suite"
-# EOF
diff --git a/TC/tslist.txt b/TC/tslist.txt
deleted file mode 100644 (file)
index cd01962..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-telephony_TC/sim/unit/tslist
-telephony_TC/call/unit/tslist
-telephony_TC/common/unit/tslist
-telephony_TC/network/unit/tslist
-telephony_TC/gprs/unit/tslist
-telephony_TC/ss/unit/tslist