summaryrefslogtreecommitdiff
path: root/cesar/bsu/test/utest/src/interface.c
diff options
context:
space:
mode:
authorlaranjeiro2010-05-17 09:38:52 +0000
committerlaranjeiro2010-05-17 09:38:52 +0000
commitf5a355cc8f70003a498f1414c8255ace115e6be6 (patch)
treee880ec0b68d33d15b7a0b1b12aeba6523b906c23 /cesar/bsu/test/utest/src/interface.c
parentec5cabf8246f4d99df4ad7bd59cd6283d8575e29 (diff)
cesar/bsu: add bsu params at the end of the beacon block,
* add pbproc_rx_beacon_params_t into bsu_params_t * change the callback params type. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@7038 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/bsu/test/utest/src/interface.c')
-rw-r--r--cesar/bsu/test/utest/src/interface.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/cesar/bsu/test/utest/src/interface.c b/cesar/bsu/test/utest/src/interface.c
index 308d322ea0..fc18c5707f 100644
--- a/cesar/bsu/test/utest/src/interface.c
+++ b/cesar/bsu/test/utest/src/interface.c
@@ -62,13 +62,12 @@ test_case_bsu_interface_tx (test_t t, bsu_beacon_type_t type)
else
test_fail_unless (test.sar.mfs->cap == 0x2);
test_fail_unless (test.ul.beacon == beacon);
- test_fail_unless (test.ul.pparams == NULL);
- test_fail_unless (test.ul.bparams.direction
+ test_fail_unless (test.ul.bparams->direction
== BSU_BEACON_DIRECTION_TO_PLC);
- test_fail_unless (test.ul.bparams.frequency_error
+ test_fail_unless (test.ul.bparams->frequency_error
== FIXED(test.bsu->avlns[0].sync.fe,
BSU_NTB_FIXED_POINT));
- test_fail_unless (test.ul.bparams.tick_offset
+ test_fail_unless (test.ul.bparams->ntb_offset_tck
== test.bsu->avlns[0].sync.ntb_offset_tck);
/* Free the beacon. */
blk_release_desc ((blk_t*) beacon);
@@ -104,13 +103,12 @@ test_case_bsu_interface_rx (test_t t)
beacon->phy_pb.pb_rx.pb_measurement.crc_error = false;
bsu_beacon_recv (test.bsu, beacon, &rx_params);
test_fail_unless (test.ul.beacon == beacon);
- test_fail_unless (test.ul.pparams == &rx_params);
- test_fail_unless (test.ul.bparams.direction
+ test_fail_unless (test.ul.bparams->direction
== BSU_BEACON_DIRECTION_FROM_PLC);
- test_fail_unless (test.ul.bparams.frequency_error
+ test_fail_unless (test.ul.bparams->frequency_error
== FIXED(test.bsu->avlns[0].sync.fe,
BSU_NTB_FIXED_POINT));
- test_fail_unless (test.ul.bparams.tick_offset
+ test_fail_unless (test.ul.bparams->ntb_offset_tck
== test.bsu->avlns[0].sync.ntb_offset_tck);
bsu_test_uninit (&test);
blk_release_desc ((blk_t*) beacon);