[ITC][nfc][Non-ACR][DPTTIZEN-1954, removed tc which is required nfc reader]
authorJaeKyung Lee <jk79.lee@samsung.com>
Wed, 1 Jun 2016 07:44:50 +0000 (16:44 +0900)
committerJaeKyung Lee <jk79.lee@samsung.com>
Wed, 1 Jun 2016 07:44:50 +0000 (16:44 +0900)
Change-Id: Iba8ba5199495a84e1b94e717d07377c97de92a33

src/itc/nfc/ITs-nfc-manager.c
src/itc/nfc/tct-nfc-native_mobile.h
src/itc/nfc/tct-nfc-native_wearable.h

index a05d972..62ff6fb 100755 (executable)
@@ -799,66 +799,4 @@ int ITc_nfc_manager_set_unset_hce_event_cb_p(void)
        PRINT_RESULT(NFC_ERROR_NONE, nRet, "nfc_manager_unset_hce_event_cb", NFCGetError(nRet));
 
        return 0;
-}
-
-//& purpose: Send APDU(Application Protocol Data Unit) response to CLF(Contactless Front-end)
-//& type : auto
-/**
-* @testcase                                ITc_nfc_hce_send_apdu_response_p
-* @since_tizen                                 2.3.1
-* @author                      SRID(avinash.a)
-* @reviewer                    SRID(gupta.sanjay)
-* @type                                        auto
-* @description                     Send APDU(Application Protocol Data Unit) response to CLF(Contactless Front-end)
-* @scenario                                register callback function for receiving HCE(Host Card Emulation) event\n
-*                                                      end APDU(Application Protocol Data Unit) response to CLFContactless Front-end \n
-*                                                      Unregister callback function for receiving HCE(Host Card Emulation) event
-* @apicovered                          nfc_manager_set_hce_event_cb, nfc_hce_send_apdu_response, nfc_manager_unset_hce_event_cb
-* @passcase                                When nfc_manager_set_hce_event_cb and nfc_hce_send_apdu_response are successful
-* @failcase                                    When nfc_manager_set_hce_event_cb or nfc_hce_send_apdu_response fails
-* @precondition                                NFC Manager must be initialize
-* @postcondition                       Releases all resources of the NFC Manager
-*/
-int ITc_nfc_hce_send_apdu_response_p(void)
-{
-    START_TEST;
-       bool bIsSupportedNFCHCE = false;
-       IS_FEATURE_SUPPORTED(NFC_HCE_FEATURE, bIsSupportedNFCHCE, API_NAMESPACE);
-
-       if (!LaunchApp(TEST_TESTNFCLIENT_APPID))
-       {
-               return 1;
-       }
-
-       int nRet = nfc_manager_set_hce_event_cb(NfcHCEEventCallback, NULL);
-       if(!bIsSupportedNFCHCE)
-       {
-               if(nRet != NFC_ERROR_NOT_SUPPORTED)
-               {
-                       FPRINTF( "\\n [Line : %d] [%s] nfc_manager_set_hce_event_cb failed, expected return = NFC_ERROR_NOT_SUPPORTED, value returned = %s ", __LINE__,API_NAMESPACE, NFCGetError(nRet));
-                       TerminateApp();
-                       return 1;
-               }
-
-               TerminateApp();
-               return 0;
-       }
-       else
-       {
-               PRINT_RESULT_CLEANUP(NFC_ERROR_NONE, nRet, "nfc_manager_set_hce_event_cb", NFCGetError(nRet), TerminateApp());
-       }
-
-       nRet = nfc_hce_send_apdu_response(g_pstNfcSEHandle, g_pszHCEData, g_nHCEDataLen);
-       PRINT_RESULT_CLEANUP(NFC_ERROR_NONE, nRet, "nfc_hce_send_apdu_response", NFCGetError(nRet), TerminateApp());
-
-       /** There is manual operation required for callback invocation. Callback cannot be tested **/
-       usleep(MICROSECONDS_PER_SECOND);
-
-       nfc_manager_unset_hce_event_cb();
-       nRet = get_last_result();
-       PRINT_RESULT(NFC_ERROR_NONE, nRet, "nfc_manager_unset_hce_event_cb", NFCGetError(nRet));
-
-       TerminateApp();
-
-       return 0;
-}
+}
\ No newline at end of file
index 8f552bf..a6ffa5f 100755 (executable)
@@ -40,7 +40,6 @@ extern int ITc_nfc_manager_set_unset_se_transaction_event_cb_p(void);
 extern int ITc_nfc_manager_set_unset_tag_discovered_cb_p(void);
 extern int ITc_nfc_manager_set_unset_p2p_target_discovered_cb(void);
 extern int ITc_nfc_manager_set_unset_hce_event_cb_p(void);
-extern int ITc_nfc_hce_send_apdu_response_p(void);
 extern int ITc_nfc_ndef_record_create_destroy_p(void);
 extern int ITc_nfc_ndef_record_create_text_p(void);
 extern int ITc_nfc_ndef_record_create_uri_p(void);
@@ -82,7 +81,6 @@ testcase tc_array[] = {
     {"ITc_nfc_manager_set_unset_tag_discovered_cb_p", ITc_nfc_manager_set_unset_tag_discovered_cb_p, ITs_nfc_manager_startup, ITs_nfc_manager_cleanup},
     {"ITc_nfc_manager_set_unset_p2p_target_discovered_cb", ITc_nfc_manager_set_unset_p2p_target_discovered_cb, ITs_nfc_manager_startup, ITs_nfc_manager_cleanup},
     {"ITc_nfc_manager_set_unset_hce_event_cb_p", ITc_nfc_manager_set_unset_hce_event_cb_p, ITs_nfc_manager_startup, ITs_nfc_manager_cleanup},
-    {"ITc_nfc_hce_send_apdu_response_p", ITc_nfc_hce_send_apdu_response_p, ITs_nfc_manager_startup, ITs_nfc_manager_cleanup},
     {"ITc_nfc_ndef_record_create_destroy_p", ITc_nfc_ndef_record_create_destroy_p, ITs_nfc_ndef_startup, ITs_nfc_ndef_cleanup},
     {"ITc_nfc_ndef_record_create_text_p", ITc_nfc_ndef_record_create_text_p, ITs_nfc_ndef_startup, ITs_nfc_ndef_cleanup},
     {"ITc_nfc_ndef_record_create_uri_p", ITc_nfc_ndef_record_create_uri_p, ITs_nfc_ndef_startup, ITs_nfc_ndef_cleanup},
index 8f552bf..a6ffa5f 100755 (executable)
@@ -40,7 +40,6 @@ extern int ITc_nfc_manager_set_unset_se_transaction_event_cb_p(void);
 extern int ITc_nfc_manager_set_unset_tag_discovered_cb_p(void);
 extern int ITc_nfc_manager_set_unset_p2p_target_discovered_cb(void);
 extern int ITc_nfc_manager_set_unset_hce_event_cb_p(void);
-extern int ITc_nfc_hce_send_apdu_response_p(void);
 extern int ITc_nfc_ndef_record_create_destroy_p(void);
 extern int ITc_nfc_ndef_record_create_text_p(void);
 extern int ITc_nfc_ndef_record_create_uri_p(void);
@@ -82,7 +81,6 @@ testcase tc_array[] = {
     {"ITc_nfc_manager_set_unset_tag_discovered_cb_p", ITc_nfc_manager_set_unset_tag_discovered_cb_p, ITs_nfc_manager_startup, ITs_nfc_manager_cleanup},
     {"ITc_nfc_manager_set_unset_p2p_target_discovered_cb", ITc_nfc_manager_set_unset_p2p_target_discovered_cb, ITs_nfc_manager_startup, ITs_nfc_manager_cleanup},
     {"ITc_nfc_manager_set_unset_hce_event_cb_p", ITc_nfc_manager_set_unset_hce_event_cb_p, ITs_nfc_manager_startup, ITs_nfc_manager_cleanup},
-    {"ITc_nfc_hce_send_apdu_response_p", ITc_nfc_hce_send_apdu_response_p, ITs_nfc_manager_startup, ITs_nfc_manager_cleanup},
     {"ITc_nfc_ndef_record_create_destroy_p", ITc_nfc_ndef_record_create_destroy_p, ITs_nfc_ndef_startup, ITs_nfc_ndef_cleanup},
     {"ITc_nfc_ndef_record_create_text_p", ITc_nfc_ndef_record_create_text_p, ITs_nfc_ndef_startup, ITs_nfc_ndef_cleanup},
     {"ITc_nfc_ndef_record_create_uri_p", ITc_nfc_ndef_record_create_uri_p, ITs_nfc_ndef_startup, ITs_nfc_ndef_cleanup},