zephyr/tests/bluetooth/host/id/mocks/keys_expects.h
Ahmed Moheb e6356c2770 tests: bluetooth: host: Add UT for bt_id_del()
Unit test project for bt_id_del().
This part of subsys/bluetooth/host/id.c unit testing.

Signed-off-by: Ahmed Moheb <ahmed.moheb@nordicsemi.no>
2023-01-17 13:13:28 +01:00

40 lines
1.0 KiB
C

/*
* Copyright (c) 2022 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/kernel.h>
/*
* Validate expected behaviour when bt_keys_find_irk() is called
*
* Expected behaviour:
* - bt_keys_find_irk() to be called once with correct parameters
*/
void expect_single_call_bt_keys_find_irk(uint8_t id, const bt_addr_le_t *addr);
/*
* Validate expected behaviour when bt_keys_find_irk() isn't called
*
* Expected behaviour:
* - bt_keys_find_irk() isn't called at all
*/
void expect_not_called_bt_keys_find_irk(void);
/*
* Validate expected behaviour when bt_keys_foreach_type() is called
*
* Expected behaviour:
* - bt_keys_foreach_type() to be called once with correct parameters
*/
void expect_single_call_bt_keys_foreach_type(enum bt_keys_type type);
/*
* Validate expected behaviour when bt_keys_foreach_type() isn't called
*
* Expected behaviour:
* - bt_keys_foreach_type() isn't called at all
*/
void expect_not_called_bt_keys_foreach_type(void);