1 /*
2  * Copyright (c) 2019 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef _SETTINGS_TEST_NVS_H
8 #define _SETTINGS_TEST_NVS_H
9 
10 #include <stdio.h>
11 #include <string.h>
12 #include <zephyr/ztest.h>
13 
14 #include <zephyr/settings/settings.h>
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 extern uint8_t val8;
21 extern uint8_t val8_un;
22 extern uint32_t val32;
23 extern uint64_t val64;
24 
25 extern int test_get_called;
26 extern int test_set_called;
27 extern int test_commit_called;
28 extern int test_export_block;
29 
30 extern struct settings_handler c_test_handlers[];
31 
32 void ctest_clear_call_state(void);
33 int ctest_get_call_state(void);
34 
35 void config_wipe_srcs(void);
36 void *settings_config_setup(void);
37 void settings_config_teardown(void *fixture);
38 
39 #ifdef __cplusplus
40 }
41 #endif
42 #endif /* _SETTINGS_TEST_NVS_H */
43