aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-12-14 10:21:26 +0100
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-12-15 15:19:43 +0100
commit6c3dc61db58bf469c504ffbfcbe061de2f18ceac (patch)
tree10cc7351fc6b1e9fefb50087693999093ee77160 /tests
parent3b802e3c4ab59e6714d42298ca7b0b793e063f21 (diff)
edge: Add header type property to GprsCodingScheme
The header type depends on the coding scheme, for GPRS there is a single data header type per direction, for EGPRS there are 3 per direction. In addition, control block header types are used with CS-1 only, so there is one of the per direction altogether for GRPS and EGPRS. This commit adds the header type enum and two methods headerTypeData and headerTypeControl. Sponsored-by: On-Waves ehf
Diffstat (limited to 'tests')
-rw-r--r--tests/edge/EdgeTest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/edge/EdgeTest.cpp b/tests/edge/EdgeTest.cpp
index ae29221..5d4fdf7 100644
--- a/tests/edge/EdgeTest.cpp
+++ b/tests/edge/EdgeTest.cpp
@@ -129,6 +129,12 @@ static void test_coding_scheme()
last_size_UL = current_cs.maxBytesUL();
last_size_DL = current_cs.maxBytesDL();
+ /* Check header types */
+ OSMO_ASSERT(current_cs.headerTypeData() ==
+ GprsCodingScheme::HEADER_GPRS_DATA);
+ OSMO_ASSERT(current_cs.headerTypeControl() ==
+ GprsCodingScheme::HEADER_GPRS_CONTROL);
+
check_coding_scheme(current_cs, GprsCodingScheme::GPRS);
}
OSMO_ASSERT(i == 4);