Moved code that is only used in unit test into the unit test portion of the module.

This commit is contained in:
skarg
2006-09-21 11:20:09 +00:00
parent 0368fc6879
commit 550dbbb91e
+5 -5
View File
@@ -137,6 +137,11 @@ int whohas_decode_service_request(uint8_t * apdu,
return len;
}
#ifdef TEST
#include <assert.h>
#include <string.h>
#include "ctest.h"
int whohas_decode_apdu(uint8_t * apdu,
unsigned apdu_len, BACNET_WHO_HAS_DATA * data)
{
@@ -157,11 +162,6 @@ int whohas_decode_apdu(uint8_t * apdu,
return len;
}
#ifdef TEST
#include <assert.h>
#include <string.h>
#include "ctest.h"
void testWhoHasData(Test * pTest, BACNET_WHO_HAS_DATA * data)
{
uint8_t apdu[480] = { 0 };