1 /*
2  * Copyright (c) 2022 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #include <zephyr/bluetooth/bluetooth.h>
8 #include <zephyr/fff.h>
9 #include <zephyr/kernel.h>
10 
11 #include <host/adv.h>
12 
13 typedef void (*bt_le_ext_adv_foreach_cb)(struct bt_le_ext_adv *adv, void *data);
14 
15 /* List of fakes used by this unit tester */
16 #define ADV_FFF_FAKES_LIST(FAKE)                                                                   \
17 	FAKE(bt_le_adv_set_enable)                                                                 \
18 	FAKE(bt_le_adv_lookup_legacy)                                                              \
19 	FAKE(bt_le_ext_adv_get_index)                                                              \
20 	FAKE(bt_le_adv_set_enable_ext)                                                             \
21 	FAKE(bt_le_ext_adv_foreach)
22 
23 DECLARE_FAKE_VALUE_FUNC(int, bt_le_adv_set_enable, struct bt_le_ext_adv *, bool);
24 DECLARE_FAKE_VALUE_FUNC(struct bt_le_ext_adv *, bt_le_adv_lookup_legacy);
25 DECLARE_FAKE_VALUE_FUNC(uint8_t, bt_le_ext_adv_get_index, struct bt_le_ext_adv *);
26 DECLARE_FAKE_VALUE_FUNC(int, bt_le_adv_set_enable_legacy, struct bt_le_ext_adv *, bool);
27 DECLARE_FAKE_VALUE_FUNC(int, bt_le_adv_set_enable_ext, struct bt_le_ext_adv *, bool,
28 			const struct bt_le_ext_adv_start_param *);
29 DECLARE_FAKE_VOID_FUNC(bt_le_ext_adv_foreach, bt_le_ext_adv_foreach_cb, void *);
30