58939ccc110d399985c9666a791187f766e2cf2d
[platform/core/api/component-manager.git] / mock / mock_aul_comp_info.h
1 /*
2  * Copyright (c) 2019 Samsung Electronics Co., Ltd.
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 #ifndef UNIT_TESTS_MOCK_MOCK_AUL_COMP_INFO_H__
18 #define UNIT_TESTS_MOCK_MOCK_AUL_COMP_INFO_H__
19
20 #include <unistd.h>
21 #include <sys/types.h>
22
23 #include "mock.h"
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29 typedef void *aul_comp_info_h;
30
31 typedef bool (*aul_comp_info_cb)(aul_comp_info_h handle, void *user_data);
32
33 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_create, const char *, aul_comp_info_h *);
34
35 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_destroy, aul_comp_info_h);
36
37 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_get_app_id, aul_comp_info_h, const char **);
38
39 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_get_comp_id, aul_comp_info_h, const char **);
40
41 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_get_type, aul_comp_info_h, const char **);
42
43 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_is_icon_display, aul_comp_info_h, bool *);
44
45 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_is_taskmanage, aul_comp_info_h, bool *);
46
47 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_get_icon, aul_comp_info_h, const char **);
48
49 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_get_label, aul_comp_info_h, const char **);
50
51 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_get_localed_label, aul_comp_info_h, const char *, char **);
52
53 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_clone, aul_comp_info_h, aul_comp_info_h *);
54
55 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_foreach_comp_info_from_app, const char *, aul_comp_info_cb, void *);
56
57 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_usr_foreach_comp_info_from_app, const char *, uid_t, aul_comp_info_cb, void *);
58
59 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_foreach_comp_info, aul_comp_info_cb, void *);
60
61 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_usr_foreach_comp_info, uid_t, aul_comp_info_cb, void *);
62
63 #ifdef __cplusplus
64 }
65 #endif
66
67 #endif // UNIT_TESTS_MOCK_MOCK_AUL_COMP_INFO_H__