1 /*
2  * Copyright (c) 2022 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #include "mocks/settings.h"
8 #include "mocks/settings_expects.h"
9 
10 #include <zephyr/kernel.h>
11 
expect_single_call_bt_settings_store_id(void)12 void expect_single_call_bt_settings_store_id(void)
13 {
14 	const char *func_name = "bt_settings_store_id";
15 
16 	zassert_equal(bt_settings_store_id_fake.call_count, 1, "'%s()' was called more than once",
17 		      func_name);
18 }
19 
expect_not_called_bt_settings_store_id(void)20 void expect_not_called_bt_settings_store_id(void)
21 {
22 	const char *func_name = "bt_settings_store_id";
23 
24 	zassert_equal(bt_settings_store_id_fake.call_count, 0, "'%s()' was called unexpectedly",
25 		      func_name);
26 }
27 
expect_single_call_bt_settings_store_irk(void)28 void expect_single_call_bt_settings_store_irk(void)
29 {
30 	const char *func_name = "bt_settings_store_irk";
31 
32 	zassert_equal(bt_settings_store_irk_fake.call_count, 1, "'%s()' was called more than once",
33 		      func_name);
34 }
35 
expect_not_called_bt_settings_store_irk(void)36 void expect_not_called_bt_settings_store_irk(void)
37 {
38 	const char *func_name = "bt_settings_store_irk";
39 
40 	zassert_equal(bt_settings_store_irk_fake.call_count, 0, "'%s()' was called unexpectedly",
41 		      func_name);
42 }
43