zephyr/tests/bluetooth/df/common/src/bt_common.c
Andries Kruithof 5329319d7a Tests: bluetooth: Fix failing df unittests
Due to recent refactoring following unittests are failing:
tests/bluetooth/df/*
tests/bluetooth/ctrl_user_ext

This commit fixes these by adding the include files containing the
missing type definitions

Signed-off-by: Andries Kruithof <andries.kruithof@nordicsemi.no>
2023-02-02 17:59:45 +01:00

35 lines
626 B
C

/*
* Copyright (c) 2021 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/kernel.h>
#include <stddef.h>
#include <zephyr/ztest.h>
#include <zephyr/bluetooth/bluetooth.h>
#include <pdu_df.h>
#include <lll/pdu_vendor.h>
#include <pdu.h>
#include "bt_common.h"
void *ut_bt_setup(void)
{
int err;
/* Initialize bluetooth subsystem */
err = bt_enable(NULL);
zassert_equal(err, 0, "Bluetooth subsystem initialization failed");
return NULL;
}
void ut_bt_teardown(void *data)
{
int err;
err = bt_disable();
zassert_equal(err, 0, "Bluetooth subsystem de-initialization failed");
}