|
|
|
@ -1,21 +1,12 @@
|
|
|
|
|
/*
|
|
|
|
|
* Copyright 2013-2020 Software Radio Systems Limited
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* This file is part of srsLTE.
|
|
|
|
|
* \section COPYRIGHT
|
|
|
|
|
*
|
|
|
|
|
* srsLTE is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU Affero General Public License as
|
|
|
|
|
* published by the Free Software Foundation, either version 3 of
|
|
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
|
* Copyright 2013-2021 Software Radio Systems Limited
|
|
|
|
|
*
|
|
|
|
|
* srsLTE is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* A copy of the GNU Affero General Public License can be found in
|
|
|
|
|
* the LICENSE file in the top-level directory of this distribution
|
|
|
|
|
* and at http://www.gnu.org/licenses/.
|
|
|
|
|
* By using this file, you agree to the terms and conditions set
|
|
|
|
|
* forth in the LICENSE file which can be found at the top level of
|
|
|
|
|
* the distribution.
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
@ -59,7 +50,6 @@ class rrc_tester : public srsue::rrc_interface_rlc
|
|
|
|
|
// Simple test of a single TX PDU and an imediate ACK
|
|
|
|
|
int simple_sdu_notify_test()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
srslte::byte_buffer_pool* pool = srslte::byte_buffer_pool::get_instance();
|
|
|
|
|
pdcp_tester pdcp;
|
|
|
|
|
rrc_tester rrc;
|
|
|
|
@ -110,7 +100,6 @@ int simple_sdu_notify_test()
|
|
|
|
|
// Both PDUs are ACKed in the same status PDU.
|
|
|
|
|
int two_pdus_notify_test()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
srslte::byte_buffer_pool* pool = srslte::byte_buffer_pool::get_instance();
|
|
|
|
|
pdcp_tester pdcp;
|
|
|
|
|
rrc_tester rrc;
|
|
|
|
@ -174,7 +163,6 @@ int two_pdus_notify_test()
|
|
|
|
|
// The PDU is ACKed imediatly.
|
|
|
|
|
int two_sdus_notify_test()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
srslte::byte_buffer_pool* pool = srslte::byte_buffer_pool::get_instance();
|
|
|
|
|
pdcp_tester pdcp;
|
|
|
|
|
rrc_tester rrc;
|
|
|
|
@ -236,7 +224,6 @@ int two_sdus_notify_test()
|
|
|
|
|
// The PDU is ACKed imediatly.
|
|
|
|
|
int three_sdus_notify_test()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
srslte::byte_buffer_pool* pool = srslte::byte_buffer_pool::get_instance();
|
|
|
|
|
pdcp_tester pdcp;
|
|
|
|
|
rrc_tester rrc;
|
|
|
|
@ -306,10 +293,10 @@ int three_sdus_notify_test()
|
|
|
|
|
|
|
|
|
|
return SRSLTE_SUCCESS;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Test notification of an RTXED SDU.
|
|
|
|
|
int rtxed_sdu_notify_test()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
srslte::byte_buffer_pool* pool = srslte::byte_buffer_pool::get_instance();
|
|
|
|
|
pdcp_tester pdcp;
|
|
|
|
|
rrc_tester rrc;
|
|
|
|
@ -444,7 +431,6 @@ int two_sdus_out_of_order_ack_notify_test()
|
|
|
|
|
// Test out-of-order ack of a single SDU transmitted over 2 PDUs.
|
|
|
|
|
int two_pdus_out_of_order_ack_notify_test()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
srslte::byte_buffer_pool* pool = srslte::byte_buffer_pool::get_instance();
|
|
|
|
|
pdcp_tester pdcp;
|
|
|
|
|
rrc_tester rrc;
|
|
|
|
@ -502,6 +488,7 @@ int two_pdus_out_of_order_ack_notify_test()
|
|
|
|
|
|
|
|
|
|
return SRSLTE_SUCCESS;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int main(int argc, char** argv)
|
|
|
|
|
{
|
|
|
|
|
srslte::byte_buffer_pool::get_instance();
|
|
|
|
|