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/fff.h> 9 #include <zephyr/bluetooth/addr.h> 10 #include <host/conn_internal.h> 11 12 typedef void (*bt_conn_foreach_cb) (struct bt_conn *conn, void *data); 13 14 /* List of fakes used by this unit tester */ 15 #define CONN_FFF_FAKES_LIST(FAKE) \ 16 FAKE(bt_conn_foreach) \ 17 FAKE(bt_conn_get_dst) \ 18 19 DECLARE_FAKE_VOID_FUNC(bt_conn_foreach, enum bt_conn_type, bt_conn_foreach_cb, void *); 20 DECLARE_FAKE_VALUE_FUNC(const bt_addr_le_t *, bt_conn_get_dst, const struct bt_conn *); 21