Moved decode portion used in unit test into the unit test area.
This commit is contained in:
+5
-9
@@ -147,6 +147,11 @@ int wp_decode_service_request(uint8_t * apdu,
|
||||
return len;
|
||||
}
|
||||
|
||||
#ifdef TEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include "ctest.h"
|
||||
|
||||
int wp_decode_apdu(uint8_t * apdu,
|
||||
unsigned apdu_len,
|
||||
uint8_t * invoke_id, BACNET_WRITE_PROPERTY_DATA * data)
|
||||
@@ -173,15 +178,6 @@ int wp_decode_apdu(uint8_t * apdu,
|
||||
return len;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#ifdef TEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include "ctest.h"
|
||||
|
||||
void testWritePropertyTag(Test * pTest, BACNET_WRITE_PROPERTY_DATA * data)
|
||||
{
|
||||
BACNET_WRITE_PROPERTY_DATA test_data = { 0 };
|
||||
|
||||
Reference in New Issue
Block a user