zephyr/tests/bluetooth/df/common/src/bt_common.c
Fabio Baltieri def230187b test: fix more legacy #include paths
Add a bunch of missing "zephyr/" prefixes to #include statements in
various test and test framework files.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2022-08-02 16:41:41 +01:00

32 lines
562 B
C

/*
* Copyright (c) 2021 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/zephyr.h>
#include <stddef.h>
#include <zephyr/ztest.h>
#include <zephyr/bluetooth/bluetooth.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");
}