zephyr/tests/bluetooth/audio/mocks/include/pacs.h
Mariusz Skamra 78a4b33e5c Bluetooth: audio: pacs: Add bt_pacs_set_available_contexts_for_conn
This adds the function that sets the available contexts value per
connection object so that API user can set different available contexts
per connection.
The lifetime of such overriden value is the same as connection lifetime,
so on reconnection or device reboot all devices return to having the
same available contexts value again.

Fixes: #64968
Signed-off-by: Mariusz Skamra <mariusz.skamra@codecoup.pl>
2023-12-06 17:54:14 +00:00

21 lines
513 B
C

/*
* Copyright (c) 2023 Codecoup
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef MOCKS_PACS_H_
#define MOCKS_PACS_H_
#include <zephyr/fff.h>
#include <zephyr/bluetooth/audio/pacs.h>
void mock_bt_pacs_init(void);
void mock_bt_pacs_cleanup(void);
DECLARE_FAKE_VOID_FUNC(bt_pacs_cap_foreach, enum bt_audio_dir, bt_pacs_cap_foreach_func_t, void *);
DECLARE_FAKE_VALUE_FUNC(enum bt_audio_context, bt_pacs_get_available_contexts_for_conn,
struct bt_conn *, enum bt_audio_dir);
#endif /* MOCKS_PACS_H_ */