Moved functions only used in unit test into unit test section of the file.

This commit is contained in:
skarg
2006-09-21 11:18:48 +00:00
parent 64299be5ae
commit 0368fc6879
+5 -5
View File
@@ -103,6 +103,11 @@ int timesync_decode_service_request(uint8_t * apdu,
return len;
}
#ifdef TEST
#include <assert.h>
#include <string.h>
#include "ctest.h"
int timesync_decode_apdu_service(uint8_t * apdu,
BACNET_UNCONFIRMED_SERVICE service,
unsigned apdu_len, BACNET_DATE * my_date, BACNET_TIME * my_time)
@@ -141,11 +146,6 @@ int timesync_decode_apdu(uint8_t * apdu,
apdu_len, my_date, my_time);
}
#ifdef TEST
#include <assert.h>
#include <string.h>
#include "ctest.h"
void testTimeSyncData(Test * pTest,
BACNET_DATE * my_date, BACNET_TIME * my_time)
{