|
|
@ -28,7 +28,7 @@ int test_tx_sdu_discard(const pdcp_initial_state& init_state,
|
|
|
|
srslte::pdcp_discard_timer_t discard_timeout,
|
|
|
|
srslte::pdcp_discard_timer_t discard_timeout,
|
|
|
|
bool imediate_notify,
|
|
|
|
bool imediate_notify,
|
|
|
|
srslte::byte_buffer_pool* pool,
|
|
|
|
srslte::byte_buffer_pool* pool,
|
|
|
|
srslte::log* log)
|
|
|
|
srslte::log_ref log)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
srslte::pdcp_config_t cfg = {1,
|
|
|
|
srslte::pdcp_config_t cfg = {1,
|
|
|
|
srslte::PDCP_RB_IS_DRB,
|
|
|
|
srslte::PDCP_RB_IS_DRB,
|
|
|
@ -82,7 +82,7 @@ int test_tx_sdu_discard(const pdcp_initial_state& init_state,
|
|
|
|
* TX Test: PDCP Entity with SN LEN = 12 and 18.
|
|
|
|
* TX Test: PDCP Entity with SN LEN = 12 and 18.
|
|
|
|
* PDCP entity configured with EIA2 and EEA2
|
|
|
|
* PDCP entity configured with EIA2 and EEA2
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
int test_tx_discard_all(srslte::byte_buffer_pool* pool, srslte::log* log)
|
|
|
|
int test_tx_discard_all(srslte::byte_buffer_pool* pool, srslte::log_ref log)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
@ -103,11 +103,11 @@ int test_tx_discard_all(srslte::byte_buffer_pool* pool, srslte::log* log)
|
|
|
|
int run_all_tests(srslte::byte_buffer_pool* pool)
|
|
|
|
int run_all_tests(srslte::byte_buffer_pool* pool)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Setup log
|
|
|
|
// Setup log
|
|
|
|
srslte::log_filter log("PDCP NR Test");
|
|
|
|
srslte::log_ref log("PDCP NR Test");
|
|
|
|
log.set_level(srslte::LOG_LEVEL_DEBUG);
|
|
|
|
log->set_level(srslte::LOG_LEVEL_DEBUG);
|
|
|
|
log.set_hex_limit(128);
|
|
|
|
log->set_hex_limit(128);
|
|
|
|
|
|
|
|
|
|
|
|
TESTASSERT(test_tx_discard_all(pool, &log) == 0);
|
|
|
|
TESTASSERT(test_tx_discard_all(pool, log) == 0);
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|