diff options
author | Daniel Willmann <daniel@totalueberwachung.de> | 2013-12-28 21:16:13 +0100 |
---|---|---|
committer | Daniel Willmann <daniel@totalueberwachung.de> | 2014-01-15 15:23:35 +0100 |
commit | d54d9f5c75c4f020750af043de9ca43df52ade5d (patch) | |
tree | 14afc750fa49aa2a5dd896f0f3edc9051017ad8e /tests/types/TypesTest.cpp | |
parent | 146514e180ec06f75c636daec95a2a8a455e7d25 (diff) |
rlc: Use an enum for the state array instead of chars
gprs_rlc_bsn_state is now used to hold the ACK state of sent/received
rlc packets.
Diffstat (limited to 'tests/types/TypesTest.cpp')
-rw-r--r-- | tests/types/TypesTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/types/TypesTest.cpp b/tests/types/TypesTest.cpp index f48cbc0b..8a464b1f 100644 --- a/tests/types/TypesTest.cpp +++ b/tests/types/TypesTest.cpp @@ -132,15 +132,15 @@ static void test_rlc_v_n() vn.reset(); OSMO_ASSERT(!vn.is_received(0x23)); - OSMO_ASSERT(vn.state(0x23) == ' '); + OSMO_ASSERT(vn.state(0x23) == GPRS_RLC_UL_BSN_INVALID); vn.mark_received(0x23); OSMO_ASSERT(vn.is_received(0x23)); - OSMO_ASSERT(vn.state(0x23) == 'R'); + OSMO_ASSERT(vn.state(0x23) == GPRS_RLC_UL_BSN_RECEIVED); vn.mark_missing(0x23); OSMO_ASSERT(!vn.is_received(0x23)); - OSMO_ASSERT(vn.state(0x23) == 'N'); + OSMO_ASSERT(vn.state(0x23) == GPRS_RLC_UL_BSN_MISSING); } } |