Small white space fix and clang-format on pdcp_nr_test.h

master
Pedro Alvarez 5 years ago committed by Andre Puschmann
parent cede56abe1
commit 9998b3e857

@ -130,7 +130,6 @@ public:
rx_direction(rx_direction_), rx_direction(rx_direction_),
sn_len(sn_len_), sn_len(sn_len_),
t_reordering(t_reordering_) t_reordering(t_reordering_)
{ {
hdr_len_bytes = ceil((float)sn_len / 8); hdr_len_bytes = ceil((float)sn_len / 8);
} }

@ -206,16 +206,16 @@ srslte::unique_byte_buffer_t gen_expected_pdu(const srslte::unique_byte_buffer_t
// Helper function to generate vector of PDU from a vector of TX_NEXTs for generating expected pdus // Helper function to generate vector of PDU from a vector of TX_NEXTs for generating expected pdus
std::vector<pdcp_test_event_t> gen_expected_pdus_vector(const srslte::unique_byte_buffer_t& in_sdu, std::vector<pdcp_test_event_t> gen_expected_pdus_vector(const srslte::unique_byte_buffer_t& in_sdu,
const std::vector<uint32_t>& tx_nexts, const std::vector<uint32_t>& tx_nexts,
uint8_t pdcp_sn_len, uint8_t pdcp_sn_len,
pdcp_security_cfg sec_cfg, pdcp_security_cfg sec_cfg,
srslte::byte_buffer_pool* pool, srslte::byte_buffer_pool* pool,
srslte::log* log) srslte::log* log)
{ {
std::vector<pdcp_test_event_t> pdu_vec; std::vector<pdcp_test_event_t> pdu_vec;
for (uint32_t tx_next : tx_nexts) { for (uint32_t tx_next : tx_nexts) {
pdcp_test_event_t event; pdcp_test_event_t event;
event.pkt = gen_expected_pdu(in_sdu, tx_next, pdcp_sn_len, sec_cfg, pool, log); event.pkt = gen_expected_pdu(in_sdu, tx_next, pdcp_sn_len, sec_cfg, pool, log);
event.ticks = 0; event.ticks = 0;
pdu_vec.push_back(std::move(event)); pdu_vec.push_back(std::move(event));
} }

Loading…
Cancel
Save