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
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);
{"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},
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);
{"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},