From 146514e180ec06f75c636daec95a2a8a455e7d25 Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Sat, 28 Dec 2013 18:24:42 +0100 Subject: 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. --- tests/types/TypesTest.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests') 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); -- cgit v1.2.3