1 /* 2 * Copyright (c) 2024 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <zephyr/bluetooth/conn.h> 8 #include <zephyr/fff.h> 9 #include <zephyr/kernel.h> 10 11 #include <host/conn_internal.h> 12 13 /* List of fakes used by this unit tester */ 14 #define CONN_FFF_FAKES_LIST(FAKE) \ 15 FAKE(bt_conn_unref) \ 16 FAKE(bt_conn_lookup_handle) \ 17 FAKE(notify_remote_cs_capabilities) \ 18 FAKE(notify_cs_config_created) \ 19 FAKE(notify_cs_config_removed) \ 20 FAKE(notify_cs_subevent_result) \ 21 FAKE(notify_cs_security_enable_available) \ 22 FAKE(notify_cs_procedure_enable_available) \ 23 FAKE(notify_remote_cs_fae_table) 24 25 DECLARE_FAKE_VOID_FUNC(bt_conn_unref, struct bt_conn *); 26 DECLARE_FAKE_VALUE_FUNC(struct bt_conn *, bt_conn_lookup_handle, uint16_t, enum bt_conn_type); 27 DECLARE_FAKE_VOID_FUNC(notify_remote_cs_capabilities, struct bt_conn *, 28 struct bt_conn_le_cs_capabilities); 29 DECLARE_FAKE_VOID_FUNC(notify_remote_cs_fae_table, struct bt_conn *, 30 struct bt_conn_le_cs_fae_table); 31 DECLARE_FAKE_VOID_FUNC(notify_cs_config_created, struct bt_conn *, struct bt_conn_le_cs_config *); 32 DECLARE_FAKE_VOID_FUNC(notify_cs_config_removed, struct bt_conn *, uint8_t); 33 DECLARE_FAKE_VOID_FUNC(notify_cs_subevent_result, struct bt_conn *, 34 struct bt_conn_le_cs_subevent_result *); 35 DECLARE_FAKE_VOID_FUNC(notify_cs_security_enable_available, struct bt_conn *); 36 DECLARE_FAKE_VOID_FUNC(notify_cs_procedure_enable_available, struct bt_conn *, 37 struct bt_conn_le_cs_procedure_enable_complete *); 38