extern int utc_bluetooth_bt_mesh_network_get_name_p(void);
extern int utc_bluetooth_bt_mesh_network_add_netkey_p(void);
extern int utc_bluetooth_bt_mesh_network_foreach_netkeys_p(void);
+extern int utc_bluetooth_bt_mesh_network_destroy_n(void);
extern int utc_bluetooth_bt_mesh_netkey_get_index_p(void);
extern int utc_bluetooth_bt_mesh_netkey_update_p(void);
extern int utc_bluetooth_bt_mesh_netkey_delete_p(void);
extern int utc_bluetooth_bt_mesh_stop_unprovisioned_device_scan_p(void);
extern int utc_bluetooth_bt_mesh_network_provision_device_p(void);
extern int utc_bluetooth_bt_mesh_authentication_set_request_cb_p(void);
+extern int utc_bluetooth_bt_mesh_authentication_unset_request_cb_p(void);
+extern int utc_bluetooth_bt_mesh_authentication_unset_request_cb_n(void);
extern int utc_bluetooth_bt_mesh_authentication_reply_p(void);
extern int utc_bluetooth_bt_mesh_network_set_provisioning_capabilities_p(void);
extern int utc_bluetooth_bt_mesh_network_discover_node_p(void);
extern int utc_bluetooth_bt_mesh_node_set_ttl_p(void);
extern int utc_bluetooth_bt_mesh_node_configure_netkey_p(void);
extern int utc_bluetooth_bt_mesh_node_configure_appkey_p(void);
+extern int utc_bluetooth_bt_mesh_node_reset_n(void);
+extern int utc_bluetooth_bt_mesh_node_get_primary_address_n(void);
extern int utc_bluetooth_bt_mesh_model_bind_appkey_p(void);
extern int utc_bluetooth_bt_mesh_model_unbind_appkey_p(void);
extern int utc_bluetooth_bt_mesh_model_get_appkey_list_p(void);
extern int utc_bluetooth_bt_mesh_model_get_subscription_list_p(void);
extern int utc_bluetooth_bt_mesh_model_set_publication_p(void);
extern int utc_bluetooth_bt_mesh_model_get_publication_p(void);
+extern int utc_bluetooth_bt_mesh_model_send_msg_n(void);
extern int utc_bluetooth_bt_mesh_appkey_get_netkey_p(void);
+extern int utc_bluetooth_bt_mesh_group_send_msg_n(void);
extern void utc_bluetooth_mesh_network_negative_startup(void);
{"utc_bluetooth_bt_mesh_stop_unprovisioned_device_scan_p",utc_bluetooth_bt_mesh_stop_unprovisioned_device_scan_p,utc_bluetooth_mesh_network_positive_startup, utc_bluetooth_mesh_network_positive_cleanup},
{"utc_bluetooth_bt_mesh_network_provision_device_p",utc_bluetooth_bt_mesh_network_provision_device_p,utc_bluetooth_mesh_network_positive_startup, utc_bluetooth_mesh_network_positive_cleanup},
{"utc_bluetooth_bt_mesh_authentication_set_request_cb_p",utc_bluetooth_bt_mesh_authentication_set_request_cb_p,utc_bluetooth_mesh_network_positive_startup, utc_bluetooth_mesh_network_positive_cleanup},
+ {"utc_bluetooth_bt_mesh_authentication_unset_request_cb_p",utc_bluetooth_bt_mesh_authentication_unset_request_cb_p,utc_bluetooth_mesh_network_positive_startup, utc_bluetooth_mesh_network_positive_cleanup},
{"utc_bluetooth_bt_mesh_authentication_reply_p",utc_bluetooth_bt_mesh_authentication_reply_p,utc_bluetooth_mesh_network_positive_startup,utc_bluetooth_mesh_network_positive_cleanup},
{"utc_bluetooth_bt_mesh_network_set_provisioning_capabilities_p",utc_bluetooth_bt_mesh_network_set_provisioning_capabilities_p,utc_bluetooth_mesh_network_positive_startup,utc_bluetooth_mesh_network_positive_cleanup},
{"utc_bluetooth_bt_mesh_network_discover_node_p",utc_bluetooth_bt_mesh_network_discover_node_p,utc_bluetooth_mesh_network_positive_startup,utc_bluetooth_mesh_network_positive_cleanup},
{"utc_bluetooth_bt_mesh_network_get_name_n",utc_bluetooth_bt_mesh_network_get_name_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
{"utc_bluetooth_bt_mesh_network_add_netkey_n",utc_bluetooth_bt_mesh_network_add_netkey_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
{"utc_bluetooth_bt_mesh_network_foreach_netkeys_n",utc_bluetooth_bt_mesh_network_foreach_netkeys_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
+ {"utc_bluetooth_bt_mesh_network_destroy_n",utc_bluetooth_bt_mesh_network_destroy_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
{"utc_bluetooth_bt_mesh_netkey_get_index_n",utc_bluetooth_bt_mesh_netkey_get_index_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
{"utc_bluetooth_bt_mesh_netkey_update_n",utc_bluetooth_bt_mesh_netkey_update_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
{"utc_bluetooth_bt_mesh_netkey_delete_n",utc_bluetooth_bt_mesh_netkey_delete_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
{"utc_bluetooth_bt_mesh_stop_unprovisioned_device_scan_n",utc_bluetooth_bt_mesh_stop_unprovisioned_device_scan_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
{"utc_bluetooth_bt_mesh_network_provision_device_n",utc_bluetooth_bt_mesh_network_provision_device_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
{"utc_bluetooth_bt_mesh_authentication_set_request_cb_n",utc_bluetooth_bt_mesh_authentication_set_request_cb_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
+ {"utc_bluetooth_bt_mesh_authentication_unset_request_cb_n",utc_bluetooth_bt_mesh_authentication_unset_request_cb_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
{"utc_bluetooth_bt_mesh_authentication_reply_n",utc_bluetooth_bt_mesh_authentication_reply_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
{"utc_bluetooth_bt_mesh_network_set_provisioning_capabilities_n",utc_bluetooth_bt_mesh_network_set_provisioning_capabilities_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
{"utc_bluetooth_bt_mesh_network_discover_node_n",utc_bluetooth_bt_mesh_network_discover_node_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
{"utc_bluetooth_bt_mesh_node_set_ttl_n",utc_bluetooth_bt_mesh_node_set_ttl_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
{"utc_bluetooth_bt_mesh_node_configure_netkey_n",utc_bluetooth_bt_mesh_node_configure_netkey_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
{"utc_bluetooth_bt_mesh_node_configure_appkey_n",utc_bluetooth_bt_mesh_node_configure_appkey_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
+ {"utc_bluetooth_bt_mesh_node_reset_n",utc_bluetooth_bt_mesh_node_reset_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
+ {"utc_bluetooth_bt_mesh_node_get_primary_address_n",utc_bluetooth_bt_mesh_node_get_primary_address_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
{"utc_bluetooth_bt_mesh_model_bind_appkey_n",utc_bluetooth_bt_mesh_model_bind_appkey_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
{"utc_bluetooth_bt_mesh_model_unbind_appkey_n",utc_bluetooth_bt_mesh_model_unbind_appkey_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
{"utc_bluetooth_bt_mesh_model_get_appkey_list_n",utc_bluetooth_bt_mesh_model_get_appkey_list_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
{"utc_bluetooth_bt_mesh_model_get_subscription_list_n",utc_bluetooth_bt_mesh_model_get_subscription_list_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
{"utc_bluetooth_bt_mesh_model_set_publication_n",utc_bluetooth_bt_mesh_model_set_publication_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
{"utc_bluetooth_bt_mesh_model_get_publication_n",utc_bluetooth_bt_mesh_model_get_publication_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
+ {"utc_bluetooth_bt_mesh_model_send_msg_n",utc_bluetooth_bt_mesh_model_send_msg_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
{"utc_bluetooth_bt_mesh_appkey_get_netkey_n",utc_bluetooth_bt_mesh_appkey_get_netkey_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},
+ {"utc_bluetooth_bt_mesh_group_send_msg_n",utc_bluetooth_bt_mesh_group_send_msg_n,utc_bluetooth_mesh_network_negative_startup,utc_bluetooth_mesh_network_negative_cleanup},\
{NULL, NULL}
};
return 0;
}
+int utc_bluetooth_bt_mesh_node_reset_n(void)
+{
+ int ret = BT_ERROR_NONE;
+ bt_mesh_node_h local_node = NULL;
+
+ if (mesh_supported) {
+ assert_eq(startup_flag, BT_ERROR_NONE);
+
+ ret = bt_mesh_node_reset(local_node);
+ assert_eq(ret, BT_ERROR_INVALID_PARAMETER);
+ } else {
+ ret = bt_mesh_node_reset(local_node);
+ assert_eq(ret, BT_ERROR_NOT_SUPPORTED);
+ }
+
+ return 0;
+}
+
int utc_bluetooth_bt_mesh_node_create_element_n(void)
{
int ret = BT_ERROR_NONE;
return 0;
}
+int utc_bluetooth_bt_mesh_network_destroy_n(void)
+{
+ int ret = BT_ERROR_NONE;
+
+ if (mesh_supported) {
+ assert_eq(startup_flag, BT_ERROR_NONE);
+
+ ret = bt_mesh_network_destroy(NULL);
+ assert_eq(ret, BT_ERROR_INVALID_PARAMETER);
+ } else {
+ ret = bt_mesh_network_destroy(NULL);
+ assert_eq(ret, BT_ERROR_NOT_SUPPORTED);
+ }
+
+ return 0;
+}
+
int utc_bluetooth_bt_mesh_network_load_n(void)
{
int ret = BT_ERROR_NONE;
return 0;
}
+int utc_bluetooth_bt_mesh_authentication_unset_request_cb_n(void)
+{
+ int ret = BT_ERROR_NONE;
+
+ if (mesh_supported) {
+ assert_eq(startup_flag, BT_ERROR_NONE);
+
+ ret = bt_mesh_authentication_unset_request_cb(NULL);
+ assert_eq(ret, BT_ERROR_INVALID_PARAMETER);
+ } else {
+ ret = bt_mesh_authentication_unset_request_cb(NULL);
+ assert_eq(ret, BT_ERROR_NOT_SUPPORTED);
+ }
+
+ return 0;
+}
+
int utc_bluetooth_bt_mesh_authentication_reply_n(void)
{
int ret = BT_ERROR_NONE;
return 0;
}
+int utc_bluetooth_bt_mesh_node_get_primary_address_n(void)
+{
+ int ret = BT_ERROR_NONE;
+
+ if (mesh_supported) {
+ assert_eq(startup_flag, BT_ERROR_NONE);
+
+ ret = bt_mesh_node_get_primary_address(NULL, NULL);
+ assert_eq(ret, BT_ERROR_INVALID_PARAMETER);
+ } else {
+ ret = bt_mesh_node_get_primary_address(NULL, NULL);
+ assert_eq(ret, BT_ERROR_NOT_SUPPORTED);
+ }
+
+ return 0;
+}
+
int utc_bluetooth_bt_mesh_model_bind_appkey_n(void)
{
int ret = BT_ERROR_NONE;
return 0;
}
+int utc_bluetooth_bt_mesh_model_send_msg_n(void)
+{
+ int ret = BT_ERROR_NONE;
+
+ if (mesh_supported) {
+ assert_eq(startup_flag, BT_ERROR_NONE);
+
+ ret = bt_mesh_model_send_msg(model_h, NULL, NULL, NULL, NULL);
+ assert_eq(ret, BT_ERROR_INVALID_PARAMETER);
+ } else {
+ ret = bt_mesh_model_send_msg(model_h, NULL, NULL, NULL, NULL);
+ assert_eq(ret, BT_ERROR_NOT_SUPPORTED);
+ }
+
+ return 0;
+}
+
int utc_bluetooth_bt_mesh_appkey_get_netkey_n(void)
{
int ret = BT_ERROR_NONE;
return 0;
}
+
+int utc_bluetooth_bt_mesh_group_send_msg_n(void)
+{
+ int ret = BT_ERROR_NONE;
+
+ if (mesh_supported) {
+ assert_eq(startup_flag, BT_ERROR_NONE);
+
+ ret = bt_mesh_group_send_msg(NULL, NULL, NULL, NULL, NULL);
+ assert_eq(ret, BT_ERROR_INVALID_PARAMETER);
+ } else {
+ ret = bt_mesh_group_send_msg(NULL, NULL, NULL, NULL, NULL);
+ assert_eq(ret, BT_ERROR_NOT_SUPPORTED);
+ }
+
+ return 0;
+}