Following the previous commit that introduce the settings API for the Bluetooth subsystem, some unit tests needed to be updated to use it. Signed-off-by: Théo Battrel <theo.battrel@nordicsemi.no>
24 lines
1.0 KiB
C
24 lines
1.0 KiB
C
/*
|
|
* Copyright (c) 2022 Nordic Semiconductor ASA
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <zephyr/fff.h>
|
|
#include <zephyr/kernel.h>
|
|
#include <zephyr/sys_clock.h>
|
|
|
|
/* List of fakes used by this unit tester */
|
|
#define KERNEL_FFF_FAKES_LIST(FAKE) \
|
|
FAKE(z_timeout_remaining) \
|
|
FAKE(k_work_schedule) \
|
|
FAKE(k_work_cancel_delayable_sync) \
|
|
FAKE(k_work_init_delayable)
|
|
|
|
DECLARE_FAKE_VALUE_FUNC(k_ticks_t, z_timeout_remaining, const struct _timeout *);
|
|
DECLARE_FAKE_VALUE_FUNC(int, k_work_schedule, struct k_work_delayable *, k_timeout_t);
|
|
DECLARE_FAKE_VALUE_FUNC(bool, k_work_cancel_delayable_sync, struct k_work_delayable *,
|
|
struct k_work_sync *);
|
|
DECLARE_FAKE_VOID_FUNC(k_work_init_delayable, struct k_work_delayable *, k_work_handler_t);
|
|
DECLARE_FAKE_VALUE_FUNC(int, k_work_submit, struct k_work *);
|