Moved decode that is used only in unit test into the unit test section of the code.
This commit is contained in:
@@ -96,6 +96,11 @@ int whois_decode_service_request(uint8_t * apdu,
|
||||
return len;
|
||||
}
|
||||
|
||||
#ifdef TEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include "ctest.h"
|
||||
|
||||
int whois_decode_apdu(uint8_t * apdu,
|
||||
unsigned apdu_len, int32_t * pLow_limit, int32_t * pHigh_limit)
|
||||
{
|
||||
@@ -117,11 +122,6 @@ int whois_decode_apdu(uint8_t * apdu,
|
||||
return len;
|
||||
}
|
||||
|
||||
#ifdef TEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include "ctest.h"
|
||||
|
||||
void testWhoIs(Test * pTest)
|
||||
{
|
||||
uint8_t apdu[480] = { 0 };
|
||||
|
||||
@@ -48,10 +48,10 @@ extern "C" {
|
||||
int whois_decode_service_request(uint8_t * apdu,
|
||||
unsigned apdu_len, int32_t * pLow_limit, int32_t * pHigh_limit);
|
||||
|
||||
#ifdef TEST
|
||||
int whois_decode_apdu(uint8_t * apdu,
|
||||
unsigned apdu_len, int32_t * pLow_limit, int32_t * pHigh_limit);
|
||||
|
||||
#ifdef TEST
|
||||
void testWhoIs(Test * pTest);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user