diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-12-26 00:40:18 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2018-12-26 18:26:07 +0100 |
commit | 3b0808196d7622e393e7db5477632e20b1bd4cd1 (patch) | |
tree | 04fd57dff90c48f0d2d8411b1f8018977bd9efb1 /tests/msc_vlr/msc_vlr_test_authen_reuse.c | |
parent | 8ee7f936bda5a72aef4cfc7d9f4e623918b10d90 (diff) |
use osmo_rat_type from libosmocore
Replace locally defined enum ran_type with libosmocore's new enum
osmo_rat_type, and value_string ran_type_names with osmo_rat_type_names.
The string representations change, which has cosmetic effects on the test suite
expectations.
Change-Id: I2c78c265dc99df581e1b00e563d6912c7ffdb36b
Diffstat (limited to 'tests/msc_vlr/msc_vlr_test_authen_reuse.c')
-rw-r--r-- | tests/msc_vlr/msc_vlr_test_authen_reuse.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/msc_vlr/msc_vlr_test_authen_reuse.c b/tests/msc_vlr/msc_vlr_test_authen_reuse.c index 659155795..bdbdae3a0 100644 --- a/tests/msc_vlr/msc_vlr_test_authen_reuse.c +++ b/tests/msc_vlr/msc_vlr_test_authen_reuse.c @@ -25,7 +25,7 @@ #include "msc_vlr_tests.h" -static void _test_auth_reuse(enum ran_type via_ran, +static void _test_auth_reuse(enum osmo_rat_type via_ran, int set_max_reuse_count, int loop_requests_without_hlr, bool final_request_with_hlr) @@ -83,7 +83,7 @@ static void _test_auth_reuse(enum ran_type via_ran, VERBOSE_ASSERT(auth_request_sent, == true, "%d"); VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d"); - if (via_ran == RAN_GERAN_A) { + if (via_ran == OSMO_RAT_GERAN_A) { btw("MS sends Authen Response, VLR accepts and sends GSUP LU Req to HLR"); gsup_expect_tx("04010809710000000156f0280102"); ms_sends_msg("0554" "e229c19e" "2104" "791f2e41"); @@ -159,7 +159,7 @@ static void _test_auth_reuse(enum ran_type via_ran, VERBOSE_ASSERT(cm_service_result_sent, == RES_NONE, "%d"); VERBOSE_ASSERT(auth_request_sent, == true, "%d"); - if (via_ran == RAN_GERAN_A) { + if (via_ran == OSMO_RAT_GERAN_A) { btw("MS sends Authen Response, VLR accepts with a CM Service Accept"); gsup_expect_tx(NULL); ms_sends_msg("0554" "e229c19e" "2104" "791f2e41"); @@ -231,7 +231,7 @@ static void _test_auth_reuse(enum ran_type via_ran, VERBOSE_ASSERT(auth_request_sent, == true, "%d"); VERBOSE_ASSERT(cm_service_result_sent, == RES_NONE, "%d"); - if (via_ran == RAN_GERAN_A) { + if (via_ran == OSMO_RAT_GERAN_A) { btw("MS sends Authen Response, VLR accepts with a CM Service Accept"); gsup_expect_tx(NULL); ms_sends_msg("0554" "7db47cf7" "2104" "f81e4dc7"); /* 2nd vector's res, s.a. */ @@ -272,42 +272,42 @@ static void _test_auth_reuse(enum ran_type via_ran, static void test_auth_use_twice_geran() { comment_start(); - _test_auth_reuse(RAN_GERAN_A, 1, 1, true); + _test_auth_reuse(OSMO_RAT_GERAN_A, 1, 1, true); comment_end(); } static void test_auth_use_twice_utran() { comment_start(); - _test_auth_reuse(RAN_UTRAN_IU, 1, 1, true); + _test_auth_reuse(OSMO_RAT_UTRAN_IU, 1, 1, true); comment_end(); } static void test_auth_use_infinitely_geran() { comment_start(); - _test_auth_reuse(RAN_GERAN_A, -1, 3, false); + _test_auth_reuse(OSMO_RAT_GERAN_A, -1, 3, false); comment_end(); } static void test_auth_use_infinitely_utran() { comment_start(); - _test_auth_reuse(RAN_UTRAN_IU, -1, 3, false); + _test_auth_reuse(OSMO_RAT_UTRAN_IU, -1, 3, false); comment_end(); } static void test_no_auth_reuse_geran() { comment_start(); - _test_auth_reuse(RAN_GERAN_A, 0, 0, true); + _test_auth_reuse(OSMO_RAT_GERAN_A, 0, 0, true); comment_end(); } static void test_no_auth_reuse_utran() { comment_start(); - _test_auth_reuse(RAN_UTRAN_IU, 0, 0, true); + _test_auth_reuse(OSMO_RAT_UTRAN_IU, 0, 0, true); comment_end(); } |