Commit be76a781 authored by Daniel Kamil Kozar's avatar Daniel Kamil Kozar Committed by Jean-Paul Saman

add tests for the time shifted event descriptor

Signed-off-by: default avatarJean-Paul Saman <jpsaman@videolan.org>
parent cf130d44
...@@ -285,4 +285,8 @@ ...@@ -285,4 +285,8 @@
<array name="p_nvod_refs" len_name="i_references" min_size="1" type="dvbpsi_nvod_ref_t"/> <array name="p_nvod_refs" len_name="i_references" min_size="1" type="dvbpsi_nvod_ref_t"/>
</descriptor> </descriptor>
<descriptor name="Time shifted event" sname="tshifted_service" fname="TimeShiftedService">
<integer name="i_ref_service_id" bitcount="16" default="0"/>
</descriptor>
</dr> </dr>
...@@ -1829,6 +1829,27 @@ static int main_nvod_ref_(void) ...@@ -1829,6 +1829,27 @@ static int main_nvod_ref_(void)
return i_err; return i_err;
} }
/* Time shifted event */
static int main_tshifted_service_(void)
{
BOZO_VARS(tshifted_service);
BOZO_START(Time shifted event);
/* check i_ref_service_id */
BOZO_init_integer(i_ref_service_id, 0);
BOZO_begin_integer(i_ref_service_id, 16)
BOZO_DOJOB(TimeShiftedService);
BOZO_check_integer(i_ref_service_id, 16)
BOZO_CLEAN();
BOZO_end_integer(i_ref_service_id, 16)
BOZO_END(Time shifted event);
return i_err;
}
/* main function */ /* main function */
int main(void) int main(void)
...@@ -1872,6 +1893,7 @@ int main(void) ...@@ -1872,6 +1893,7 @@ int main(void)
i_err |= main_linkage_4(); i_err |= main_linkage_4();
i_err |= main_linkage_5(); i_err |= main_linkage_5();
i_err |= main_nvod_ref_(); i_err |= main_nvod_ref_();
i_err |= main_tshifted_service_();
if(i_err) if(i_err)
fprintf(stderr, "At least one test has FAILED !!!\n"); fprintf(stderr, "At least one test has FAILED !!!\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment