diff options
author | Daniel Willmann <daniel@totalueberwachung.de> | 2013-12-28 18:24:42 +0100 |
---|---|---|
committer | Daniel Willmann <daniel@totalueberwachung.de> | 2014-01-15 15:23:21 +0100 |
commit | 146514e180ec06f75c636daec95a2a8a455e7d25 (patch) | |
tree | 10823bde2dcccfb830cb2a92e692ff7f9f5a4525 /tests | |
parent | 55844795be21e2e59ab6bcede2037f8c74d76505 (diff) |
rlc/tbf: Move v_b into DL window
Move functions resend_needed(), mark_for_resend(), update(),
move_window(), state(), count_unacked() out of v_b directly into the UL
window and provide a function get_state in v_b to access the v_b
elements.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/types/TypesTest.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/types/TypesTest.cpp b/tests/types/TypesTest.cpp index 62c6ed22..f48cbc0b 100644 --- a/tests/types/TypesTest.cpp +++ b/tests/types/TypesTest.cpp @@ -322,9 +322,8 @@ static void test_rlc_dl_ul_basic() char show_rbb[65]; BTS dummy_bts; gprs_rlc_dl_window dl_win = { 0, }; - gprs_rlc_v_b v_b; - v_b.reset(); + dl_win.m_v_b.reset(); OSMO_ASSERT(dl_win.window_empty()); OSMO_ASSERT(!dl_win.window_stalled()); @@ -345,7 +344,7 @@ static void test_rlc_dl_ul_basic() Decoding::extract_rbb(rbb_cmp, show_rbb); printf("show_rbb: %s\n", show_rbb); - v_b.update(&dummy_bts, show_rbb, 35, dl_win, &lost, &recv); + dl_win.update(&dummy_bts, show_rbb, 35, &lost, &recv); OSMO_ASSERT(lost == 0); OSMO_ASSERT(recv == 35); |