lib,rlc_am_nr: rename get_tx_window_size() to get_tx_window_utilization()

This commit is contained in:
Robert Falkenberg 2022-03-17 10:45:54 +01:00
parent 329f3e519b
commit 7e13cd0712
2 changed files with 4 additions and 4 deletions

View File

@ -168,9 +168,9 @@ private:
public:
// Getters/Setters
void set_tx_state(const rlc_am_nr_tx_state_t& st_) { st = st_; } // This should only be used for testing.
rlc_am_nr_tx_state_t get_tx_state() { return st; } // This should only be used for testing.
uint32_t get_tx_window_size() { return tx_window->size(); } // This should only be used for testing.
void set_tx_state(const rlc_am_nr_tx_state_t& st_) { st = st_; } // This should only be used for testing.
rlc_am_nr_tx_state_t get_tx_state() { return st; } // This should only be used for testing.
uint32_t get_tx_window_utilization() { return tx_window->size(); } // This should only be used for testing.
// Debug Helper
void debug_state() const;

View File

@ -262,7 +262,7 @@ int basic_test(rlc_am_nr_sn_size_t sn_size)
// Check TX_NEXT_ACK
rlc_am_nr_tx_state_t st = tx1->get_tx_state();
TESTASSERT_EQ(5, st.tx_next_ack);
TESTASSERT_EQ(0, tx1->get_tx_window_size());
TESTASSERT_EQ(0, tx1->get_tx_window_utilization());
// Check PDCP notifications
TESTASSERT_EQ(5, tester.notified_counts.size());