2 * Copyright (c) 2019 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef UNIT_TESTS_MOCK_MOCK_AUL_COMP_INFO_H__
18 #define UNIT_TESTS_MOCK_MOCK_AUL_COMP_INFO_H__
21 #include <sys/types.h>
29 typedef void *aul_comp_info_h;
31 typedef bool (*aul_comp_info_cb)(aul_comp_info_h handle, void *user_data);
33 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_create, const char *, aul_comp_info_h *);
35 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_destroy, aul_comp_info_h);
37 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_get_app_id, aul_comp_info_h, const char **);
39 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_get_comp_id, aul_comp_info_h, const char **);
41 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_get_type, aul_comp_info_h, const char **);
43 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_is_icon_display, aul_comp_info_h, bool *);
45 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_is_taskmanage, aul_comp_info_h, bool *);
47 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_get_icon, aul_comp_info_h, const char **);
49 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_get_label, aul_comp_info_h, const char **);
51 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_get_localed_label, aul_comp_info_h, const char *, char **);
53 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_clone, aul_comp_info_h, aul_comp_info_h *);
55 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_foreach_comp_info_from_app, const char *, aul_comp_info_cb, void *);
57 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_usr_foreach_comp_info_from_app, const char *, uid_t, aul_comp_info_cb, void *);
59 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_foreach_comp_info, aul_comp_info_cb, void *);
61 DECLARE_FAKE_VALUE_FUNC(int, aul_comp_info_usr_foreach_comp_info, uid_t, aul_comp_info_cb, void *);
67 #endif // UNIT_TESTS_MOCK_MOCK_AUL_COMP_INFO_H__