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_conn_lookup_state_le() is called 11 * 12 * Expected behaviour: 13 * - bt_conn_lookup_state_le() to be called once with correct parameters 14 */ 15 void expect_single_call_bt_conn_lookup_state_le(uint8_t id, const bt_addr_le_t *peer, 16 const bt_conn_state_t state); 17 18 /* 19 * Validate expected behaviour when bt_conn_lookup_state_le() isn't called 20 * 21 * Expected behaviour: 22 * - bt_conn_lookup_state_le() isn't called at all 23 */ 24 void expect_not_called_bt_conn_lookup_state_le(void); 25 26 /* 27 * Validate expected behaviour when bt_conn_unref() is called 28 * 29 * Expected behaviour: 30 * - bt_conn_unref() to be called once with correct parameters 31 */ 32 void expect_single_call_bt_conn_unref(struct bt_conn *conn); 33 34 /* 35 * Validate expected behaviour when bt_conn_unref() isn't called 36 * 37 * Expected behaviour: 38 * - bt_conn_unref() isn't called at all 39 */ 40 void expect_not_called_bt_conn_unref(void); 41