1 /* 2 * Copyright (c) 2022 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <zephyr/kernel.h> 8 9 /* 10 * Validate expected behaviour when bt_smp_le_oob_generate_sc_data() is called 11 * 12 * Expected behaviour: 13 * - bt_smp_le_oob_generate_sc_data() to be called once with correct parameters 14 */ 15 void expect_single_call_bt_smp_le_oob_generate_sc_data(struct bt_le_oob_sc_data *le_sc_oob); 16 17 /* 18 * Validate expected behaviour when bt_smp_le_oob_generate_sc_data() isn't called 19 * 20 * Expected behaviour: 21 * - bt_smp_le_oob_generate_sc_data() isn't called at all 22 */ 23 void expect_not_called_bt_smp_le_oob_generate_sc_data(void); 24 25 /* 26 * Validate expected behaviour when bt_smp_le_oob_set_tk() is called 27 * 28 * Expected behaviour: 29 * - bt_smp_le_oob_set_tk() to be called once with correct parameters 30 */ 31 void expect_single_call_bt_smp_le_oob_set_tk(struct bt_conn *conn, const uint8_t *tk); 32 33 /* 34 * Validate expected behaviour when bt_smp_le_oob_set_sc_data() is called 35 * 36 * Expected behaviour: 37 * - bt_smp_le_oob_set_sc_data() to be called once with correct parameters 38 */ 39 void expect_single_call_bt_smp_le_oob_set_sc_data(struct bt_conn *conn, 40 const struct bt_le_oob_sc_data *oobd_local, 41 const struct bt_le_oob_sc_data *oobd_remote); 42 43 /* 44 * Validate expected behaviour when bt_smp_le_oob_get_sc_data() is called 45 * 46 * Expected behaviour: 47 * - bt_smp_le_oob_get_sc_data() to be called once with correct parameters 48 */ 49 void expect_single_call_bt_smp_le_oob_get_sc_data(struct bt_conn *conn, 50 const struct bt_le_oob_sc_data **oobd_local, 51 const struct bt_le_oob_sc_data **oobd_remote); 52