Corrected unit tests to work with new datalink file.

This commit is contained in:
skarg
2007-02-02 02:20:21 +00:00
parent f9f53c1ec6
commit 5e7c88b171
7 changed files with 68 additions and 20 deletions
+15 -12
View File
@@ -217,23 +217,26 @@ void testIAm(Test * pTest)
}
#ifdef TEST_IAM
/* Dummy stubs to eliminate depencies */
/* dummy function stubs */
int datalink_send_pdu(
BACNET_ADDRESS * dest,
BACNET_NPDU_DATA * npdu_data,
uint8_t * pdu,
unsigned pdu_len)
{
(void) dest;
(void) npdu_data;
(void) pdu;
(void) pdu_len;
return 0;
}
void datalink_get_broadcast_address(BACNET_ADDRESS * dest)
{ /* destination address */
(void) dest;
}
int datalink_send_pdu(BACNET_ADDRESS * dest, /* destination address */
BACNET_NPDU_DATA * npdu_data, /* network information */
uint8_t * pdu, /* any data to be sent - may be null */
unsigned pdu_len)
{ /* number of bytes of data */
(void) dest;
(void) pdu;
return pdu_len;
}
uint16_t Device_Vendor_Identifier(void)
{
return 0;