From 42b2e7c5347d4f6e708fd8b29ef99686b38397c3 Mon Sep 17 00:00:00 2001 From: Jarkko Paso Date: Thu, 6 Sep 2018 13:24:50 +0300 Subject: [PATCH] Unit tests: channel function tests updated --- .../unittest/6LoWPAN/ws_ie_lib/test_ws_ie_lib.c | 8 ++++---- .../6LoWPAN/ws_management_api/test_ws_management_api.c | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/test/nanostack/unittest/6LoWPAN/ws_ie_lib/test_ws_ie_lib.c b/test/nanostack/unittest/6LoWPAN/ws_ie_lib/test_ws_ie_lib.c index 4636c42d4e4..b1b37d1a078 100644 --- a/test/nanostack/unittest/6LoWPAN/ws_ie_lib/test_ws_ie_lib.c +++ b/test/nanostack/unittest/6LoWPAN/ws_ie_lib/test_ws_ie_lib.c @@ -132,14 +132,14 @@ bool test_ws_wp_nested_hopping_schedule_length() } shedule.channel_plan = 1; - shedule.channel_function = 1; + shedule.uc_channel_function = 1; length = ws_wp_nested_hopping_schedule_length(&shedule, true); if (length != 4 + 6) { return false; } shedule.channel_plan = 2; - shedule.channel_function = 3; + shedule.uc_channel_function = 3; length = ws_wp_nested_hopping_schedule_length(&shedule, true); if (length != 6) @@ -168,14 +168,14 @@ bool test_ws_wp_nested_hopping_schedule_write() } shedule.channel_plan = 1; - shedule.channel_function = 1; + shedule.uc_channel_function = 1; ptr = ws_wp_nested_hopping_schedule_write(temp_buf, &shedule, true); if (ptr != temp_buf + 10 + 2) { return false; } shedule.channel_plan = 2; - shedule.channel_function = 3; + shedule.uc_channel_function = 3; ptr = ws_wp_nested_hopping_schedule_write(temp_buf, &shedule, false); if (ptr != temp_buf + 10 + 2 + 2) { return false; diff --git a/test/nanostack/unittest/6LoWPAN/ws_management_api/test_ws_management_api.c b/test/nanostack/unittest/6LoWPAN/ws_management_api/test_ws_management_api.c index b631a6dea73..e1be0c162ca 100644 --- a/test/nanostack/unittest/6LoWPAN/ws_management_api/test_ws_management_api.c +++ b/test/nanostack/unittest/6LoWPAN/ws_management_api/test_ws_management_api.c @@ -225,29 +225,29 @@ bool test_ws_management_fhss_channel_function_configure() protocol_core_stub.entry_ptr = NULL; - if (-1 != ws_management_fhss_channel_function_configure(1,10)) + if (-1 != ws_management_fhss_unicast_channel_function_configure(1,10)) { return false; } protocol_core_stub.entry_ptr = &entry; - if (-1 != ws_management_fhss_channel_function_configure(1,10)) + if (-1 != ws_management_fhss_unicast_channel_function_configure(1,10)) { return false; } entry.ws_info = &ws_info_entry; - if (-2 != ws_management_fhss_channel_function_configure(1,10)) + if (-2 != ws_management_fhss_unicast_channel_function_configure(1,10)) { return false; } entry.lowpan_info = 0; - if (0 != ws_management_fhss_channel_function_configure(1,0)) + if (0 != ws_management_fhss_unicast_channel_function_configure(1,0)) { return false; } entry.lowpan_info = INTERFACE_NWK_ACTIVE; - if (0 != ws_management_fhss_channel_function_configure(1,0)) + if (0 != ws_management_fhss_unicast_channel_function_configure(1,0)) { return false; }