1 /*
2  * Copyright (c) 2022 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #include <zephyr/kernel.h>
8 #include <zephyr/bluetooth/buf.h>
9 #include "mocks/id.h"
10 #include "mocks/id_expects.h"
11 
expect_single_call_bt_id_del(struct bt_keys * keys)12 void expect_single_call_bt_id_del(struct bt_keys *keys)
13 {
14 	const char *func_name = "bt_id_del";
15 
16 	zassert_equal(bt_id_del_fake.call_count, 1, "'%s()' was called more than once",
17 		      func_name);
18 
19 	zassert_equal(bt_id_del_fake.arg0_val, keys,
20 			  "'%s()' was called with incorrect '%s' value", func_name, "keys");
21 }
22 
expect_not_called_bt_id_del(void)23 void expect_not_called_bt_id_del(void)
24 {
25 	const char *func_name = "bt_id_del";
26 
27 	zassert_equal(bt_id_del_fake.call_count, 0, "'%s()' was called unexpectedly",
28 		      func_name);
29 }
30