Commit 48596740 authored by garciay's avatar garciay
Browse files

Add TTCN-3 tests for CAM codec

parent 7e11a326
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
#include "LibItsCam_EncdecDeclarations.hh"
//#include "CAMCodec.hh"
#include "CAMCodec.hh"

namespace LibItsCam__EncdecDeclarations {

@@ -25,20 +25,20 @@ INTEGER fx__dec__CamInd(BITSTRING& b, LibItsCam__TestSystem::CamInd& p)
 * @param   value to encode
 * @return  encoded value
 ****************************************************/
/* TODO RGy function not implemented! (decvalue() not used by test suite @29-06-2016)
/* TODO RGy function not implemented! (decvalue() not used by test suite @29-06-2016)*/
INTEGER fx__dec__CamReq(BITSTRING& b, LibItsCam__TestSystem::CamReq& p)
{
  return -1;
}
*/

//BITSTRING fx__enc__CAM(const CAM__PDU__Descriptions::CAM& p)
//{
//	CAMPDUCodec codec;
//	BITSTRING b;
//	codec.encode(p, b);
//	return b;
//}

BITSTRING fx__enc__CAM(const CAM__PDU__Descriptions::CAM& p)
{
	CAMPDUCodec codec;
	BITSTRING b;
	codec.encode(p, b);
	return b;
}

INTEGER fx__dec__CAM(BITSTRING& b, CAM__PDU__Descriptions::CAM& p)
{