tests/bluetooth/host/keys/bt_keys_get_addr: Correct mock prototypes

In 82d8f09de1
the bt_conn_foreach prototype was changed, but these unit tests
kept using the old prototype which leads to a build warning.
Let's fix the prototype in the tests.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2024-10-24 11:15:32 +02:00 committed by Dan Kalowsky
commit 14e870d8d3
2 changed files with 10 additions and 10 deletions

View file

@ -28,14 +28,14 @@ static int bt_unpair_unreachable_custom_fake(uint8_t id, const bt_addr_le_t *add
return 0;
}
static void bt_conn_foreach_conn_ref_null_custom_fake(int type, bt_conn_foreach_cb func,
void *data)
static void bt_conn_foreach_conn_ref_null_custom_fake(enum bt_conn_type type,
bt_conn_foreach_cb func, void *data)
{
func(NULL, data);
}
static void bt_conn_foreach_data_ref_null_custom_fake(int type, bt_conn_foreach_cb func,
void *data)
static void bt_conn_foreach_data_ref_null_custom_fake(enum bt_conn_type type,
bt_conn_foreach_cb func, void *data)
{
struct bt_conn conn;

View file

@ -46,8 +46,8 @@ static int bt_unpair_unreachable_custom_fake(uint8_t id, const bt_addr_le_t *add
return 0;
}
static void bt_conn_foreach_key_slot_0_in_use_custom_fake(int type, bt_conn_foreach_cb func,
void *data)
static void bt_conn_foreach_key_slot_0_in_use_custom_fake(enum bt_conn_type type,
bt_conn_foreach_cb func, void *data)
{
struct bt_conn conn;
@ -71,8 +71,8 @@ static void bt_conn_foreach_key_slot_0_in_use_custom_fake(int type, bt_conn_fore
func(&conn, data);
}
static void bt_conn_foreach_all_keys_in_use_custom_fake(int type, bt_conn_foreach_cb func,
void *data)
static void bt_conn_foreach_all_keys_in_use_custom_fake(enum bt_conn_type type,
bt_conn_foreach_cb func, void *data)
{
struct bt_conn conn;
@ -86,8 +86,8 @@ static void bt_conn_foreach_all_keys_in_use_custom_fake(int type, bt_conn_foreac
}
}
static void bt_conn_foreach_no_keys_in_use_custom_fake(int type, bt_conn_foreach_cb func,
void *data)
static void bt_conn_foreach_no_keys_in_use_custom_fake(enum bt_conn_type type,
bt_conn_foreach_cb func, void *data)
{
struct bt_conn conn;