Skip to content

Commit 24c6563

Browse files
committed
SWPROT-8953: Revert "Pull request #2932: UIC-3604: Add unit test for zpc_stdin module"
Origin: #13 Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
1 parent 808197f commit 24c6563

File tree

2 files changed

+1
-24
lines changed

2 files changed

+1
-24
lines changed

applications/zpc/components/zpc_stdin/test/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ target_add_unittest(
1515
zwave_tx_mock
1616
zwave_unid_mock
1717
zwave_tx_groups_mock
18-
zwave_api_mock
1918
zwave_s2_mock)
2019

2120
# Test with the real attribute store

applications/zpc/components/zpc_stdin/test/zpc_stdin_test.c

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
#include "zwave_command_handler_mock.h"
3030
#include "zwave_tx_mock.h"
3131
#include "zwave_tx_scheme_selector_mock.h"
32-
#include "zwave_utils_mock.h"
33-
#include "zwapi_protocol_controller_mock.h"
32+
#include "zwave_utils.h"
3433
#include "zwave_unid_mock.h"
3534
#include "zwave_command_class_supervision_mock.h"
3635
#include "zpc_attribute_store_network_helper_mock.h"
@@ -330,27 +329,6 @@ void test_handle_cc_versions_log()
330329
uic_stdin_handle_command("zwave_cc_versions_log"));
331330
}
332331

333-
void test_handle_nls()
334-
{
335-
sl_status_t state;
336-
uint8_t nls_state = false;
337-
338-
state = uic_stdin_handle_command("zwave_enable_nls");
339-
TEST_ASSERT_EQUAL(SL_STATUS_FAIL, state);
340-
341-
zwave_store_nls_state_ExpectAndReturn(2, true, DESIRED_ATTRIBUTE, SL_STATUS_OK);
342-
state = uic_stdin_handle_command("zwave_enable_nls 2");
343-
TEST_ASSERT_EQUAL(SL_STATUS_OK, state);
344-
345-
state = uic_stdin_handle_command("zwave_get_nls_state");
346-
TEST_ASSERT_EQUAL(SL_STATUS_FAIL, state);
347-
348-
zwapi_get_node_nls_ExpectAndReturn(2, &nls_state, SL_STATUS_OK);
349-
zwave_store_nls_state_ExpectAndReturn(2, nls_state, REPORTED_ATTRIBUTE, SL_STATUS_OK);
350-
state = uic_stdin_handle_command("zwave_get_nls_state 2");
351-
TEST_ASSERT_EQUAL(SL_STATUS_OK, state);
352-
}
353-
354332
void test_handle_zwave_s2_log_security_keys()
355333
{
356334
zwave_s2_log_security_keys_Expect(1);

0 commit comments

Comments
 (0)