diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-06-02 12:33:30 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-06-08 09:38:49 +0200 |
commit | befc760f8677d794e5a0dbc1f02f8ac85b649aa0 (patch) | |
tree | 4e8bf7176797ed929df9d15fc58d71a5990ea5d9 /tests/alloc | |
parent | 489a2b35d87610fb077a51de696555a54e5fb247 (diff) |
tbf: Store MS class in GprsMs objects
The ms_class value is a property of the MS and thus belongs to the
GprsMs class. Nevertheless the MS object is created after the TLLI
gets known, so the value still has to be stored in the TBF initially.
This commit add the ms_class value to the GprsMs class and introduces
TBF accessor functions which either access that object or, if that is
not available, the value stored locally.
Ticket: #1674
Sponsored-by: On-Waves ehf
Diffstat (limited to 'tests/alloc')
-rw-r--r-- | tests/alloc/AllocTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/alloc/AllocTest.cpp b/tests/alloc/AllocTest.cpp index 552d8aa8..2211e925 100644 --- a/tests/alloc/AllocTest.cpp +++ b/tests/alloc/AllocTest.cpp @@ -359,6 +359,9 @@ static void test_alloc_b(bool ts0, bool ts1, bool ts2, bool ts3, bool ts4, bool dl_tbf->update(); OSMO_ASSERT(dl_tbf->first_common_ts == ul_tbf->first_common_ts); + OSMO_ASSERT(ul_tbf->ms_class() == ms_class); + OSMO_ASSERT(dl_tbf->ms_class() == ms_class); + tbf_free(dl_tbf); tbf_free(ul_tbf); } |