/* end of TC */
}
-
static void utc_nfc_ndef_message_create_p(void)
{
- int ret ;
+ int ret;
nfc_ndef_message_h message;
+
ret = nfc_ndef_message_create(&message);
- MY_ASSERT(__func__ , ret == NFC_ERROR_NONE , "FAIL");
nfc_ndef_message_destroy(message);
- dts_pass(__func__, "PASS");
+
+ dts_check_eq(__func__, ret, NFC_ERROR_NONE, "nfc_ndef_message_create is failed");
}
+
static void utc_nfc_ndef_message_create_n(void)
{
- int ret ;
+ int ret;
+
ret = nfc_ndef_message_create(NULL);
- MY_ASSERT(__func__, ret != NFC_ERROR_NONE , "FAIL");
- dts_pass(__func__, "PASS");
+
+ dts_check_ne(__func__, ret, NFC_ERROR_NONE, "nfc_ndef_message_create not allow null");
}
+
static void utc_nfc_ndef_message_create_from_rawdata_p(void)
{
- int ret ;
+ int ret;
unsigned char *buffer;
- uint32_t int size;
+ uint32_t size;
nfc_ndef_message_h message;
nfc_ndef_message_h message2;
nfc_ndef_record_h record1;
static void utc_nfc_ndef_record_get_id_n(void)
{
int ret;
- ret = nfc_ndef_record_get_id(NULL,NULL, NULL);
+
+ ret = nfc_ndef_record_get_id(NULL, NULL, NULL);
+
dts_check_ne(__func__, ret, NFC_ERROR_NONE, "nfc_ndef_record_h not allow null");
}
+
static void utc_nfc_ndef_record_get_payload_p(void)
{
- int ret;
+ int ret = 0;
uint32_t size;
nfc_ndef_record_h record;
unsigned char *payload;