Moved decode that is used only in unit test into the unit test section of the code.

This commit is contained in:
skarg
2006-09-19 20:19:22 +00:00
parent bb9351fa9f
commit 4059e68bb7
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -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 };
+1 -1
View File
@@ -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