Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libdvbpsi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
libdvbpsi
Commits
00462a10
Commit
00462a10
authored
Jul 18, 2015
by
Daniel Kamil Kozar
Committed by
Jean-Paul Saman
Jan 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add tests for linkage type with mobile handover and no extra data
Signed-off-by:
Jean-Paul Saman
<
jpsaman@videolan.org
>
parent
c350002e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
84 additions
and
0 deletions
+84
-0
misc/dr.xml
misc/dr.xml
+14
-0
misc/test_dr.c
misc/test_dr.c
+70
-0
No files found.
misc/dr.xml
View file @
00462a10
...
...
@@ -206,4 +206,18 @@
<array
name=
"i_private_data"
len_name=
"i_private_data_length"
min_size=
"0"
/>
</descriptor>
<descriptor
name=
"linkage (mobile handover, no extra data)"
sname=
"linkage"
fname=
"Linkage"
msuffix=
"1"
>
<insert>
<begin>
s_decoded.i_linkage_type = 8;
s_decoded.i_handover_type = 0;
s_decoded.i_origin_type = 1;
</begin>
</insert>
<integer
name=
"i_transport_stream_id"
bitcount=
"16"
default=
"0"
/>
<integer
name=
"i_original_network_id"
bitcount=
"16"
default=
"0"
/>
<integer
name=
"i_service_id"
bitcount=
"16"
default=
"0"
/>
<array
name=
"i_private_data"
len_name=
"i_private_data_length"
min_size=
"0"
max_size=
"245"
/>
</descriptor>
</dr>
misc/test_dr.c
View file @
00462a10
...
...
@@ -1285,6 +1285,75 @@ static int main_linkage_0(void)
return
i_err
;
}
/* linkage (mobile handover, no extra data) */
static
int
main_linkage_1
(
void
)
{
BOZO_VARS
(
linkage
);
BOZO_START
(
linkage
(
mobile
handover
,
no
extra
data
));
/* check i_transport_stream_id */
s_decoded
.
i_linkage_type
=
8
;
s_decoded
.
i_handover_type
=
0
;
s_decoded
.
i_origin_type
=
1
;
BOZO_init_integer
(
i_transport_stream_id
,
0
);
BOZO_init_integer
(
i_original_network_id
,
0
);
BOZO_init_integer
(
i_service_id
,
0
);
BOZO_begin_integer
(
i_transport_stream_id
,
16
)
BOZO_DOJOB
(
Linkage
);
BOZO_check_integer
(
i_transport_stream_id
,
16
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_transport_stream_id
,
16
)
/* check i_original_network_id */
s_decoded
.
i_linkage_type
=
8
;
s_decoded
.
i_handover_type
=
0
;
s_decoded
.
i_origin_type
=
1
;
BOZO_init_integer
(
i_transport_stream_id
,
0
);
BOZO_init_integer
(
i_original_network_id
,
0
);
BOZO_init_integer
(
i_service_id
,
0
);
BOZO_begin_integer
(
i_original_network_id
,
16
)
BOZO_DOJOB
(
Linkage
);
BOZO_check_integer
(
i_original_network_id
,
16
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_original_network_id
,
16
)
/* check i_service_id */
s_decoded
.
i_linkage_type
=
8
;
s_decoded
.
i_handover_type
=
0
;
s_decoded
.
i_origin_type
=
1
;
BOZO_init_integer
(
i_transport_stream_id
,
0
);
BOZO_init_integer
(
i_original_network_id
,
0
);
BOZO_init_integer
(
i_service_id
,
0
);
BOZO_begin_integer
(
i_service_id
,
16
)
BOZO_DOJOB
(
Linkage
);
BOZO_check_integer
(
i_service_id
,
16
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_service_id
,
16
)
/* check i_private_data */
s_decoded
.
i_linkage_type
=
8
;
s_decoded
.
i_handover_type
=
0
;
s_decoded
.
i_origin_type
=
1
;
BOZO_init_integer
(
i_transport_stream_id
,
0
);
BOZO_init_integer
(
i_original_network_id
,
0
);
BOZO_init_integer
(
i_service_id
,
0
);
BOZO_begin_array
(
i_private_data
,
i_private_data_length
,
0
)
BOZO_DOJOB
(
Linkage
);
BOZO_check_array_begin
(
i_private_data
,
i_private_data_length
)
BOZO_check_array_gen
(
i_private_data
,
i_private_data_length
)
BOZO_CLEAN
();
BOZO_end_array
(
i_private_data
,
245
)
BOZO_END
(
linkage
(
mobile
handover
,
no
extra
data
));
return
i_err
;
}
/* main function */
int
main
(
void
)
...
...
@@ -1322,6 +1391,7 @@ int main(void)
i_err
|=
main_service_2
();
i_err
|=
main_service_3
();
i_err
|=
main_linkage_0
();
i_err
|=
main_linkage_1
();
if
(
i_err
)
fprintf
(
stderr
,
"At least one test has FAILED !!!
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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