zephyr/tests/bluetooth/audio/mocks/include/mock_kernel.h
Emil Gydesen 6ddc988c1e tests: Bluetooth: Audio: Fix includes
Updates the includes in a a few files to
avoid including unused header files and include the
ones that are used.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-05-01 13:42:37 +02:00

28 lines
726 B
C

/*
* Copyright (c) 2022 Nordic Semiconductor ASA
* Copyright (c) 2023 Codecoup
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef MOCKS_KERNEL_H_
#define MOCKS_KERNEL_H_
#include <stdbool.h>
#include <zephyr/fff.h>
#include <zephyr/kernel.h>
#include <zephyr/kernel_structs.h>
#include <zephyr/sys_clock.h>
void mock_kernel_init(void);
void mock_kernel_cleanup(void);
DECLARE_FAKE_VALUE_FUNC(k_ticks_t, z_timeout_remaining, const struct _timeout *);
DECLARE_FAKE_VALUE_FUNC(bool, k_work_cancel_delayable_sync, struct k_work_delayable *,
struct k_work_sync *);
DECLARE_FAKE_VALUE_FUNC(int, k_sem_take, struct k_sem *, k_timeout_t);
DECLARE_FAKE_VOID_FUNC(k_sem_give, struct k_sem *);
#endif /* MOCKS_KERNEL_H_ */