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>
19 lines
654 B
C
19 lines
654 B
C
/*
|
|
* Copyright (c) 2022 Nordic Semiconductor ASA
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <zephyr/kernel.h>
|
|
#include <zephyr/fff.h>
|
|
#include <zephyr/bluetooth/addr.h>
|
|
|
|
/* List of fakes used by this unit tester */
|
|
#define SETTINGS_STORE_FFF_FAKES_LIST(FAKE) \
|
|
FAKE(bt_settings_store_keys) \
|
|
FAKE(bt_settings_delete_keys)
|
|
|
|
DECLARE_FAKE_VALUE_FUNC(int, bt_settings_store_keys, uint8_t, struct bt_addr_le_t *, const void *,
|
|
size_t);
|
|
DECLARE_FAKE_VALUE_FUNC(int, bt_settings_delete_keys, uint8_t, struct bt_addr_le_t *);
|