Moved functions only used in unit test into unit test section of the file.
This commit is contained in:
@@ -103,6 +103,11 @@ int timesync_decode_service_request(uint8_t * apdu,
|
|||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef TEST
|
||||||
|
#include <assert.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include "ctest.h"
|
||||||
|
|
||||||
int timesync_decode_apdu_service(uint8_t * apdu,
|
int timesync_decode_apdu_service(uint8_t * apdu,
|
||||||
BACNET_UNCONFIRMED_SERVICE service,
|
BACNET_UNCONFIRMED_SERVICE service,
|
||||||
unsigned apdu_len, BACNET_DATE * my_date, BACNET_TIME * my_time)
|
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);
|
apdu_len, my_date, my_time);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef TEST
|
|
||||||
#include <assert.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include "ctest.h"
|
|
||||||
|
|
||||||
void testTimeSyncData(Test * pTest,
|
void testTimeSyncData(Test * pTest,
|
||||||
BACNET_DATE * my_date, BACNET_TIME * my_time)
|
BACNET_DATE * my_date, BACNET_TIME * my_time)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user