summaryrefslogtreecommitdiff
path: root/cesar/ce/rx/bitloading/test
diff options
context:
space:
mode:
authorJérôme Jutteau2011-08-25 16:38:35 +0200
committerJérémy Dufour2012-09-12 16:20:37 +0200
commit3e1a6ff4703189622217232b0b20e7ef0a2502a1 (patch)
treea389e205b129ebaed7b6dae084b06780a46b814e /cesar/ce/rx/bitloading/test
parentb04009c60e3f974e7a118988a8599dfb2082c081 (diff)
cesar/ce/rx: use an enum for restart dates table, refs #2376
Diffstat (limited to 'cesar/ce/rx/bitloading/test')
-rw-r--r--cesar/ce/rx/bitloading/test/src/test_fsm.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/cesar/ce/rx/bitloading/test/src/test_fsm.c b/cesar/ce/rx/bitloading/test/src/test_fsm.c
index be3bab8b9d..0e1d18de51 100644
--- a/cesar/ce/rx/bitloading/test/src/test_fsm.c
+++ b/cesar/ce/rx/bitloading/test/src/test_fsm.c
@@ -153,7 +153,7 @@ test_ce_rx_bl_fsm_base (test_t t)
/* Reset statistics. */
tm.nb_pb = tm.nb_frame = 0;
ce_rx_bitloading_init (&sta.ce_rx_bt);
- for (i = 0; i < COUNT (sta.ce_rx_bt.next_date_min_for_restart_rtc_date); i++)
+ for (i = 0; i < CE_RX_BL_DATE_CRITERIA_NB; i++)
sta.ce_rx_bt.next_date_min_for_restart_rtc_date[i] = 0;
ce_rx_measure_mbox_t measure;
@@ -613,7 +613,8 @@ test_ce_rx_bl_fsm_base (test_t t)
"not restarting CE")
{
ce_rx_bitloading_init (&sta.ce_rx_bt);
- sta.ce_rx_bt.next_date_min_for_restart_rtc_date[0] = 42;
+ sta.ce_rx_bt.next_date_min_for_restart_rtc_date
+ [CE_RX_BL_DATE_CRITERIA_PBER] = 42;
test_ce_rx_bl_reset (&sta.ce_rx_bt);
test_ce_rx_bl_stats_reset (&stats);
test_ce_rx_bl_measure_empty (&measure);
@@ -654,7 +655,8 @@ test_ce_rx_bl_fsm_base (test_t t)
test_ce_rx_bl_stats (t, &stats, &sta.ce_rx_bt.stats);
/* Clean. */
ce_rx_bitloading_uninit (&sta.ce_rx_bt);
- sta.ce_rx_bt.next_date_min_for_restart_rtc_date[0] = 0;
+ sta.ce_rx_bt.next_date_min_for_restart_rtc_date
+ [CE_RX_BL_DATE_CRITERIA_PBER] = 0;
} test_end;
test_begin (t, "TRACKING, BER sliding means too low, restart CE")
@@ -719,7 +721,8 @@ test_ce_rx_bl_fsm_base (test_t t)
"not restarting CE")
{
ce_rx_bitloading_init (&sta.ce_rx_bt);
- sta.ce_rx_bt.next_date_min_for_restart_rtc_date[1] = 42;
+ sta.ce_rx_bt.next_date_min_for_restart_rtc_date
+ [CE_RX_BL_DATE_CRITERIA_BER] = 42;
test_ce_rx_bl_reset (&sta.ce_rx_bt);
test_ce_rx_bl_stats_reset (&stats);
test_ce_rx_bl_measure_empty (&measure);
@@ -759,7 +762,8 @@ test_ce_rx_bl_fsm_base (test_t t)
test_ce_rx_bl_stats (t, &stats, &sta.ce_rx_bt.stats);
/* Clean. */
ce_rx_bitloading_uninit (&sta.ce_rx_bt);
- sta.ce_rx_bt.next_date_min_for_restart_rtc_date[1] = 0;
+ sta.ce_rx_bt.next_date_min_for_restart_rtc_date
+ [CE_RX_BL_DATE_CRITERIA_BER] = 0;
} test_end;
test_begin (t, "TRACKING, BER sliding means too low, restart CE, on ROBO")