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/bluetooth/conn.h> 9 #include <zephyr/fff.h> 10 #include <zephyr/kernel.h> 11 12 #include <host/smp.h> 13 14 /* List of fakes used by this unit tester */ 15 #define SMP_FFF_FAKES_LIST(FAKE) \ 16 FAKE(bt_smp_irk_get) \ 17 FAKE(bt_smp_le_oob_set_tk) \ 18 FAKE(bt_smp_le_oob_generate_sc_data) \ 19 FAKE(bt_smp_le_oob_set_sc_data) \ 20 FAKE(bt_smp_le_oob_get_sc_data) 21 22 DECLARE_FAKE_VALUE_FUNC(int, bt_smp_irk_get, uint8_t *, uint8_t *); 23 DECLARE_FAKE_VALUE_FUNC(int, bt_smp_le_oob_set_tk, struct bt_conn *, const uint8_t *); 24 DECLARE_FAKE_VALUE_FUNC(int, bt_smp_le_oob_generate_sc_data, struct bt_le_oob_sc_data *); 25 DECLARE_FAKE_VALUE_FUNC(int, bt_smp_le_oob_set_sc_data, struct bt_conn *, 26 const struct bt_le_oob_sc_data *, const struct bt_le_oob_sc_data *); 27 DECLARE_FAKE_VALUE_FUNC(int, bt_smp_le_oob_get_sc_data, struct bt_conn *, 28 const struct bt_le_oob_sc_data **, const struct bt_le_oob_sc_data **); 29