Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TTCN-3 Libraries
LibIts
Commits
10fbceff
Commit
10fbceff
authored
Jun 07, 2017
by
garciay
Browse files
Add TTCN-3 tests for CAM codec
parent
3b6ac530
Changes
2
Hide whitespace changes
Inline
Side-by-side
ttcn/CAM/LibItsCam_EncdecDeclarations.ttcn
View file @
10fbceff
...
...
@@ -11,11 +11,11 @@ module LibItsCam_EncdecDeclarations {
external
function
fx_enc_CamReq
(
CamReq
p
)
return
bitstring
with
{
extension
"prototype(convert) encode(LibIts_Interface)"
}
external
function
fx_enc_CAM
(
CAM
p
)
return
octe
tstring
with
{
extension
"prototype(convert) encode(
BER:BER_ENCODE_CER)"
}
external
function
fx_enc_CAM
(
CAM
p
)
return
bi
tstring
with
{
extension
"prototype(convert) encode(
PER)"
}
//LibItsCam_asn1
/* 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)
*/
external
function
fx_dec_CamReq
(
inout
bitstring
b
,
out
CamReq
p
)
return
integer
with
{
extension
"prototype(sliding) decode(LibIts_Interface)"
}
*/
}
// End of module LibItsCam_EncdecDeclarations
ttcn/CAM/LibItsCam_TestSystem.ttcn
View file @
10fbceff
...
...
@@ -141,7 +141,17 @@ module LibItsCam_TestSystem {
UInt32
its_aid
optional
}
with
{
encode
(
msgIn
)
"LibItsCam_asn1"
variant
""
encode
(
msgIn
)
"PER"
//LibItsCam_asn1
encode
(
gnNextHeader
)
"RAW"
encode
(
gnHeaderType
)
"RAW"
encode
(
gnHeaderSubtype
)
"RAW"
encode
(
gnLifetime
)
"RAW"
encode
(
gnTrafficClass
)
"RAW"
encode
(
btpDestinationPort
)
"RAW"
encode
(
btpInfo
)
"RAW"
encode
(
ssp
)
"RAW"
encode
(
its_aid
)
"RAW"
}
/**
...
...
@@ -151,7 +161,8 @@ module LibItsCam_TestSystem {
CAM
msgOut
}
with
{
encode
(
msgOut
)
"LibItsCam_asn1"
variant
""
encode
(
msgOut
)
"PER"
//LibItsCam_asn1
}
}
// end fa1Primitives
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment