bugfix - fix compilation issue in gcc10. The interfaces don't have virtual dtors

master
Francisco 4 years ago committed by Francisco Paisana
parent 544fe03db3
commit 19a043683c

@ -17,7 +17,6 @@
#include "sched_common_test_suite.h"
#include "sched_ue_ded_test_suite.h"
#include "srslte/common/test_common.h"
#include "srslte/interfaces/enb_rrc_interfaces.h"
using namespace srsenb;
@ -43,15 +42,6 @@ std::default_random_engine& ::srsenb::get_rand_gen()
return rand_gen;
}
struct rrc_dummy : public rrc_interface_mac {
public:
int add_user(uint16_t rnti, const sched_interface::ue_cfg_t& init_ue_cfg) { return SRSLTE_SUCCESS; }
void upd_user(uint16_t new_rnti, uint16_t old_rnti) {}
void set_activity_user(uint16_t rnti) {}
bool is_paging_opportunity(uint32_t tti, uint32_t* payload_len) { return false; }
uint8_t* read_pdu_bcch_dlsch(const uint8_t enb_cc_idx, const uint32_t sib_index) { return nullptr; }
};
/***********************
* User State Tester
***********************/

@ -16,6 +16,7 @@
#include "sched_sim_ue.h"
#include "sched_test_utils.h"
#include "srsenb/hdr/stack/mac/sched.h"
#include "srslte/interfaces/enb_rrc_interfaces.h"
#include "srslte/srslog/srslog.h"
#include <random>
@ -29,6 +30,15 @@ void set_randseed(uint64_t seed);
float randf();
std::default_random_engine& get_rand_gen();
struct rrc_dummy : public rrc_interface_mac {
public:
int add_user(uint16_t rnti, const sched_interface::ue_cfg_t& init_ue_cfg) { return SRSLTE_SUCCESS; }
void upd_user(uint16_t new_rnti, uint16_t old_rnti) {}
void set_activity_user(uint16_t rnti) {}
bool is_paging_opportunity(uint32_t tti, uint32_t* payload_len) { return false; }
uint8_t* read_pdu_bcch_dlsch(const uint8_t enb_cc_idx, const uint32_t sib_index) { return nullptr; }
};
/**************************
* Testers
*************************/
@ -115,7 +125,7 @@ protected:
virtual void new_test_tti();
virtual void before_sched() {}
std::unique_ptr<rrc_interface_mac> rrc_ptr;
std::unique_ptr<rrc_dummy> rrc_ptr;
};
} // namespace srsenb

Loading…
Cancel
Save