Skip to content

Commit de5870b

Browse files
Thirsrinrzr
authored andcommitted
Unit test cases for schedule entry lock cc
Merge in UIC/uic from feature/UIC-3439-Unit-Test-Schedule-Entry-Lock-CC to feature/UIC-3271-Schedule-Entry-Lock-CC
1 parent 39ab465 commit de5870b

File tree

7 files changed

+1430
-178
lines changed

7 files changed

+1430
-178
lines changed

applications/zpc/components/zcl_cluster_servers/include/schedule_entry_lock_server.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ sl_status_t
5555
dotdot_endpoint_id_t endpoint,
5656
attribute_store_node_t endpoint_node);
5757

58+
sl_status_t zwave_command_class_schedule_entry_lock_write_attributes_callback(
59+
const dotdot_unid_t unid,
60+
const dotdot_endpoint_id_t endpoint,
61+
uic_mqtt_dotdot_callback_call_type_t call_type,
62+
uic_mqtt_dotdot_unify_schedule_entry_lock_state_t lock_state,
63+
uic_mqtt_dotdot_unify_schedule_entry_lock_updated_state_t updated_lock_state);
64+
5865
#ifdef __cplusplus
5966
}
6067
#endif

applications/zpc/components/zcl_cluster_servers/src/schedule_entry_lock_server.cpp

Lines changed: 181 additions & 128 deletions
Large diffs are not rendered by default.

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

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,21 @@ target_add_unittest(
8888
uic_contiki_stub
8989
unify)
9090

91+
# Schedule entry lock server test
92+
target_add_unittest(
93+
zcl_cluster_servers
94+
NAME
95+
schedule_entry_lock_server_test
96+
SOURCES
97+
schedule_entry_lock_server_test.cpp
98+
DEPENDS
99+
zpc_attribute_store_test_helper
100+
uic_dotdot_mqtt_mock
101+
unify_dotdot_attribute_store
102+
zpc_attribute_store_network_helper_mock
103+
zwave_command_class_test_helpers
104+
)
105+
91106
# User Code Cluster Server test
92107
target_add_unittest(
93108
zcl_cluster_servers
@@ -126,4 +141,4 @@ target_add_unittest(
126141
DEPENDS
127142
zpc_attribute_store_test_helper
128143
uic_dotdot_mqtt_mock
129-
unify_dotdot_attribute_store)
144+
unify_dotdot_attribute_store)

0 commit comments

Comments
 (0)