0e8d50afd0bb48a39e759d6f0aa66699f2e3386b
[platform/core/api/system-settings.git] / tests / mocks / sstt_mock.h
1 /*
2  * Copyright (c) 2020 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #include <stdbool.h>
18
19 #ifdef __cplusplus
20 extern "C"
21 {
22 #endif
23 void sstt_set_error(bool flag);
24 bool sstt_get_error();
25 void sstt_efl_set_error(bool flag);
26 bool sstt_efl_get_error();
27
28 void sstm_access_setup(bool enable);
29 void sstm_readlink_setup(bool enable);
30 void sstm_opendir_setup(bool enable);
31 void sstm_dlopen_setup(bool enable);
32
33 void sstm_eext_config_font_set_setup(bool result);
34 void sstm_evas_object_image_load_error_setup(int result);
35
36 void sstm_pkgmgrinfo_appinfo_get_appinfo_setup(int result);
37 void sstm_pkgmgrinfo_appinfo_foreach_category_setup(int result, bool lockscreen);
38 void sstm_pkgmgrinfo_appinfo_destroy_appinfo_setup(int result);
39 void sstm_app_manager_get_app_id_setup(int result);
40
41 void sstm_package_manager_get_package_id_by_app_id_setup(const char *package_id, int result);
42
43 void sstm_alarmmgr_set_timezone_setup(int result);
44
45 void sstm_xmlParseFile_setup(bool enable);
46
47 void sstm_vconf_get_int_setup(const char *key, int val, int ret);
48 void sstm_vconf_get_bool_setup(const char *key, bool val, int ret);
49 void sstm_vconf_get_str_setup(const char *key, const char *val, int ret);
50 void sstm_vconf_set_int_setup(const char *key, int ret);
51 void sstm_vconf_set_bool_setup(const char *key, int ret);
52 void sstm_vconf_set_str_setup(const char *key, int ret);
53 void sstm_vconf_notify_key_changed_setup(bool enable);
54 void sstm_vconf_ignore_key_changed_setup(bool enable);
55
56 void sstm_system_info_get_platform_string_setup(bool enable);
57 void sstm_system_info_get_platform_bool_setup(bool enable);
58
59 #ifdef __cplusplus
60 }
61 #endif