lib,rlc_am_nr: unit tests for NACK merging

This commit is contained in:
Robert Falkenberg 2022-05-02 14:56:08 +02:00
parent ecc995bd4b
commit 9a34d4d81b
2 changed files with 2033 additions and 0 deletions

View File

@ -183,6 +183,15 @@ struct rlc_status_nack_t {
has_nack_range = false;
nack_range = 0;
}
bool equals(const rlc_status_nack_t& other) const
{
return nack_sn == other.nack_sn && has_so == other.has_so && so_start == other.so_start && so_end == other.so_end &&
has_nack_range == other.has_nack_range && nack_range == other.nack_range;
}
bool operator==(const rlc_status_nack_t& other) const { return equals(other); }
bool operator!=(const rlc_status_nack_t& other) const { return not equals(other); }
};
// STATUS PDU

File diff suppressed because it is too large Load Diff