From 6e8925c062d8d717326d7b8cef78c1f3fcc6cf1f Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Thu, 30 Dec 2021 08:05:09 +0000 Subject: [PATCH] Test fix. --- test/unit/persist_read_stubs.c | 2 +- test/unit/persist_write_stubs.c | 11 ++++++++--- test/unit/subs_stubs.c | 11 ++++++++--- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/test/unit/persist_read_stubs.c b/test/unit/persist_read_stubs.c index 455f274f..8d949fab 100644 --- a/test/unit/persist_read_stubs.c +++ b/test/unit/persist_read_stubs.c @@ -231,7 +231,7 @@ void plugin_persist__handle_retain_add(struct mosquitto_msg_store *msg) { UNUSED(msg); } -void plugin_persist__handle_retain_remove(struct mosquitto_msg_store *msg) +void plugin_persist__handle_retain_delete(struct mosquitto_msg_store *msg) { UNUSED(msg); } diff --git a/test/unit/persist_write_stubs.c b/test/unit/persist_write_stubs.c index cfc084de..5d587e78 100644 --- a/test/unit/persist_write_stubs.c +++ b/test/unit/persist_write_stubs.c @@ -175,7 +175,7 @@ void plugin_persist__handle_client_msg_add(struct mosquitto *context, const stru UNUSED(context); UNUSED(cmsg); } -void plugin_persist__handle_client_msg_remove(struct mosquitto *context, const struct mosquitto_client_msg *cmsg) +void plugin_persist__handle_client_msg_delete(struct mosquitto *context, const struct mosquitto_client_msg *cmsg) { UNUSED(context); UNUSED(cmsg); @@ -194,7 +194,7 @@ void plugin_persist__handle_msg_add(struct mosquitto_msg_store *msg) { UNUSED(msg); } -void plugin_persist__handle_msg_remove(struct mosquitto_msg_store *msg) +void plugin_persist__handle_msg_delete(struct mosquitto_msg_store *msg) { UNUSED(msg); } @@ -202,7 +202,12 @@ void plugin_persist__handle_retain_add(struct mosquitto_msg_store *msg) { UNUSED(msg); } -void plugin_persist__handle_retain_remove(struct mosquitto_msg_store *msg) +void plugin_persist__handle_retain_delete(struct mosquitto_msg_store *msg) { UNUSED(msg); } +void plugin_persist__handle_subscription_delete(struct mosquitto *context, const char *sub) +{ + UNUSED(context); + UNUSED(sub); +} diff --git a/test/unit/subs_stubs.c b/test/unit/subs_stubs.c index 527c50ab..0f5ed9c1 100644 --- a/test/unit/subs_stubs.c +++ b/test/unit/subs_stubs.c @@ -195,7 +195,7 @@ void plugin_persist__handle_client_msg_add(struct mosquitto *context, const stru UNUSED(context); UNUSED(cmsg); } -void plugin_persist__handle_client_msg_remove(struct mosquitto *context, const struct mosquitto_client_msg *cmsg) +void plugin_persist__handle_client_msg_delete(struct mosquitto *context, const struct mosquitto_client_msg *cmsg) { UNUSED(context); UNUSED(cmsg); @@ -214,7 +214,7 @@ void plugin_persist__handle_msg_add(struct mosquitto_msg_store *msg) { UNUSED(msg); } -void plugin_persist__handle_msg_remove(struct mosquitto_msg_store *msg) +void plugin_persist__handle_msg_delete(struct mosquitto_msg_store *msg) { UNUSED(msg); } @@ -222,7 +222,12 @@ void plugin_persist__handle_retain_add(struct mosquitto_msg_store *msg) { UNUSED(msg); } -void plugin_persist__handle_retain_remove(struct mosquitto_msg_store *msg) +void plugin_persist__handle_retain_delete(struct mosquitto_msg_store *msg) { UNUSED(msg); } +void plugin_persist__handle_subscription_delete(struct mosquitto *context, const char *sub) +{ + UNUSED(context); + UNUSED(sub); +}