summaryrefslogtreecommitdiff
path: root/cesar/ce/rx/bitloading/test
diff options
context:
space:
mode:
authordufour2009-10-01 12:50:15 +0000
committerdufour2009-10-01 12:50:15 +0000
commitad9be1e983ab4ccd68c31fc9dd8e7eaa57ab5db8 (patch)
treea92cf6e6deca20efe067911c67ebcb86b057d770 /cesar/ce/rx/bitloading/test
parent122231a0b1b1c0a4ed44ffe878ee272d133c1e4b (diff)
* ce/rx (see #595):
- add a function for the CP to ask for the next SNR to the CE RX. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@5865 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/ce/rx/bitloading/test')
-rw-r--r--cesar/ce/rx/bitloading/test/src/test_fsm.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/cesar/ce/rx/bitloading/test/src/test_fsm.c b/cesar/ce/rx/bitloading/test/src/test_fsm.c
index 7274a79df2..92c2d24464 100644
--- a/cesar/ce/rx/bitloading/test/src/test_fsm.c
+++ b/cesar/ce/rx/bitloading/test/src/test_fsm.c
@@ -474,6 +474,23 @@ test_suite_ce_rx_bl_initial (test_t t)
ce_rx_bitloading_uninit (&bl);
}
+/**
+ * Test suite for the get statistics for the CP.
+ */
+static void
+test_suite_ce_rx_get_stats (test_t t)
+{
+ test_case_begin (t, "get SNR");
+
+ ce_rx_bitloading_t bl;
+ ce_rx_bitloading_init (&bl);
+
+ test_begin (t, "initialized to false")
+ {
+ test_fail_if (bl.get_snr != false);
+ } test_end;
+}
+
int
main (int argc, char **argv)
{
@@ -500,6 +517,9 @@ main (int argc, char **argv)
/* Start test suite on initial tone map generation. */
test_suite_ce_rx_bl_initial (t);
+ /* Start test of the get SNR flag when the CP wants SNR. */
+ test_suite_ce_rx_get_stats (t);
+
/* Memory check. */
test_case_begin (t, "General");
test_begin (t, "Memory")