Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tests/bluetooth/audio/ascs/uut/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ add_library(uut STATIC
${ZEPHYR_BASE}/subsys/bluetooth/host/uuid.c
${ZEPHYR_BASE}/subsys/logging/log_minimal.c
${ZEPHYR_BASE}/subsys/net/buf_simple.c
bap_unicast_client.c
bap_unicast_server.c
)

add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/audio/mocks mocks)

target_link_libraries(uut PUBLIC test_interface mocks)
target_include_directories(uut PRIVATE ${ZEPHYR_BASE}/tests/bluetooth/audio/ascs/include)

target_compile_options(uut PRIVATE -std=c11 -include ztest.h)
2 changes: 2 additions & 0 deletions tests/bluetooth/audio/cap_commander/uut/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ add_library(uut STATIC
${ZEPHYR_BASE}/subsys/net/buf_simple.c
bap_broadcast_assistant.c
aics.c
cap_commander.c
csip.c
micp.c
vcp.c
Expand All @@ -25,5 +26,6 @@ add_library(uut STATIC
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/audio/mocks mocks)

target_link_libraries(uut PUBLIC test_interface mocks)
target_include_directories(uut PRIVATE ${ZEPHYR_BASE}/tests/bluetooth/audio/cap_commander/include)

target_compile_options(uut PRIVATE -std=c11 -include ztest.h)
3 changes: 3 additions & 0 deletions tests/bluetooth/audio/cap_initiator/uut/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ add_library(uut STATIC
${ZEPHYR_BASE}/subsys/bluetooth/common/bt_str.c
${ZEPHYR_BASE}/subsys/logging/log_minimal.c
${ZEPHYR_BASE}/subsys/net/buf_simple.c
bap_unicast_client.c
cap_initiator.c
csip.c
)

add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/audio/mocks mocks)

target_link_libraries(uut PUBLIC test_interface mocks)
target_include_directories(uut PRIVATE ${ZEPHYR_BASE}/tests/bluetooth/audio/cap_initiator/include)

target_compile_options(uut PRIVATE -std=c11 -include ztest.h)
69 changes: 69 additions & 0 deletions tests/bluetooth/audio/cap_initiator/uut/bap_unicast_client.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/*
* Copyright (c) 2023 Codecoup
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/bluetooth/audio/bap.h>

bool bt_bap_ep_is_unicast_client(const struct bt_bap_ep *ep)
{
return false;
}

int bt_bap_unicast_client_config(struct bt_bap_stream *stream,
const struct bt_audio_codec_cfg *codec_cfg)
{
zassert_unreachable("Unexpected call to '%s()' occurred", __func__);
return 0;
}

int bt_bap_unicast_client_qos(struct bt_conn *conn, struct bt_bap_unicast_group *group)
{
zassert_unreachable("Unexpected call to '%s()' occurred", __func__);
return 0;
}

int bt_bap_unicast_client_enable(struct bt_bap_stream *stream, uint8_t meta[],
size_t meta_len)
{
zassert_unreachable("Unexpected call to '%s()' occurred", __func__);
return 0;
}

int bt_bap_unicast_client_metadata(struct bt_bap_stream *stream, uint8_t meta[],
size_t meta_len)
{
zassert_unreachable("Unexpected call to '%s()' occurred", __func__);
return 0;
}

int bt_bap_unicast_client_disable(struct bt_bap_stream *stream)
{
zassert_unreachable("Unexpected call to '%s()' occurred", __func__);
return 0;
}

int bt_bap_unicast_client_connect(struct bt_bap_stream *stream)
{
zassert_unreachable("Unexpected call to '%s()' occurred", __func__);
return 0;
}

int bt_bap_unicast_client_start(struct bt_bap_stream *stream)
{
zassert_unreachable("Unexpected call to '%s()' occurred", __func__);
return 0;
}

int bt_bap_unicast_client_stop(struct bt_bap_stream *stream)
{
zassert_unreachable("Unexpected call to '%s()' occurred", __func__);
return 0;
}

int bt_bap_unicast_client_release(struct bt_bap_stream *stream)
{
zassert_unreachable("Unexpected call to '%s()' occurred", __func__);
return 0;
}
4 changes: 0 additions & 4 deletions tests/bluetooth/audio/mocks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@

add_library(mocks STATIC
src/bap_stream.c
src/bap_unicast_client.c
src/bap_unicast_server.c
src/cap_commander.c
src/cap_initiator.c
src/conn.c
src/crypto.c
src/fatal.c
Expand Down