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_settings_encode_key() is called 11 * 12 * Expected behaviour: 13 * - bt_settings_encode_key() to be called once with correct parameters 14 * - 'Keys' argument isn't NULL 15 */ 16 void expect_single_call_bt_settings_encode_key_with_not_null_key(const bt_addr_le_t *addr); 17 18 /* 19 * Validate expected behaviour when bt_settings_encode_key() is called 20 * 21 * Expected behaviour: 22 * - bt_settings_encode_key() to be called once with correct parameters 23 * - 'Keys' argument is NULL 24 */ 25 void expect_single_call_bt_settings_encode_key_with_null_key(const bt_addr_le_t *addr); 26 27 /* 28 * Validate expected behaviour when bt_settings_encode_key() isn't called 29 * 30 * Expected behaviour: 31 * - bt_settings_encode_key() isn't called at all 32 */ 33 void expect_not_called_bt_settings_encode_key(void); 34