summaryrefslogtreecommitdiff
path: root/cesar/mac/sar/test/functional/src/test_functions.c
diff options
context:
space:
mode:
authorlaranjeiro2009-12-17 16:48:23 +0000
committerlaranjeiro2009-12-17 16:48:23 +0000
commitdd4775293c21fad1aa7fe1730fbbb3b13f4e476f (patch)
tree72d44025c32d1968fe76eb426549e993e787a845 /cesar/mac/sar/test/functional/src/test_functions.c
parent7ab04c74809a4b1e69e3c8e0e19d7e62b2fb142a (diff)
cesar/{mac/sar,ce/rx}: compute the number of PB CRC error for the CE, closes #858
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@6566 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/mac/sar/test/functional/src/test_functions.c')
-rw-r--r--cesar/mac/sar/test/functional/src/test_functions.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/cesar/mac/sar/test/functional/src/test_functions.c b/cesar/mac/sar/test/functional/src/test_functions.c
index e2259e7493..7b878a3220 100644
--- a/cesar/mac/sar/test/functional/src/test_functions.c
+++ b/cesar/mac/sar/test/functional/src/test_functions.c
@@ -47,13 +47,19 @@ static uint nb_frames_tx;
static uint nb_frames_rx;
/* Stubbed Functions. */
-static bool
-ce_measurements (void *user, pbproc_rx_params_t *rx_params, uint pb_nb,
- blk_t **first, blk_t **last, pb_t *chandata, uint nb_chandata, uint
- *blk_offset)
+bool
+ce_measurements_none (void *user, pbproc_rx_params_t *rx_params, uint pb_nb,
+ blk_t **first, blk_t **last, pb_t *chandata,
+ uint nb_chandata, u8 **ce_pb_crc_error)
{
- if (nb_chandata)
- blk_release_desc_range_nb ((blk_t *) chandata, nb_chandata);
+ if (chandata)
+ blk_release_desc_range_nb ((blk_t*) chandata, nb_chandata);
+
+ if (pb_nb)
+ {
+ dbg_assert (ce_pb_crc_error);
+ *ce_pb_crc_error = NULL;
+ }
return false;
}
@@ -108,7 +114,7 @@ sar_test_init (sar_test_ctx_t *test_ctx)
2);
/* CE. */
sar_init_measure_context (test_ctx->sar, INVALID_PTR);
- sar_init_measurement_cb (test_ctx->sar, ce_measurements);
+ sar_init_measurement_cb (test_ctx->sar, ce_measurements_none);
sar_init_data_context (test_ctx->sar, INVALID_PTR);
sar_init_segmentation_data_cb (test_ctx->sar,
sar_test_segmentation_done__do_nothing);