diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-12-14 10:38:29 +0100 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-12-15 15:19:43 +0100 |
commit | 392a5453361d639abe3eb50ec5ea7ace1595af04 (patch) | |
tree | 45bc57f5fee52da991db6c576e77f779b64d171f /tests | |
parent | 4aa78a8bea0d49a5fe6b3759606afd16eaf3de88 (diff) |
edge: Add information about data blocks to GprsCodingScheme
This commit adds the methods maxDataBlockBytes and numDataBlocks
which provide information about the data areas within RLC messages.
In these areas, the extension bytes, TLLI, and the LLC data are
stored.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'tests')
-rw-r--r-- | tests/edge/EdgeTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/edge/EdgeTest.cpp b/tests/edge/EdgeTest.cpp index 5d4fdf76..1d53677b 100644 --- a/tests/edge/EdgeTest.cpp +++ b/tests/edge/EdgeTest.cpp @@ -59,6 +59,10 @@ static void check_coding_scheme(GprsCodingScheme& cs, GprsCodingScheme::Mode mod expected_size += 1; OSMO_ASSERT(expected_size == cs.sizeDL()); + /* Check data block sizes */ + OSMO_ASSERT(cs.maxDataBlockBytes() * cs.numDataBlocks() < cs.maxBytesDL()); + OSMO_ASSERT(cs.maxDataBlockBytes() * cs.numDataBlocks() < cs.maxBytesUL()); + /* Check inc/dec */ new_cs = cs; new_cs.inc(mode); |