2 * Copyright (c) 2023 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 MOCK_PKGMGR_INFO_MOCK_H_
18 #define MOCK_PKGMGR_INFO_MOCK_H_
20 #include <gmock/gmock.h>
21 #include <pkgmgr-info.h>
22 #include <sys/types.h>
24 #include "module_mock.h"
26 class PkgmgrInfoMock : public virtual ModuleMock {
28 virtual ~PkgmgrInfoMock() {}
30 MOCK_METHOD1(pkgmgrinfo_appinfo_destroy_appinfo,
31 int(pkgmgrinfo_appinfo_h));
32 MOCK_METHOD2(pkgmgrinfo_appinfo_is_preload,
33 int(pkgmgrinfo_appinfo_h, bool*));
34 MOCK_METHOD3(pkgmgrinfo_appinfo_get_usr_appinfo,
35 int(const char*, uid_t, pkgmgrinfo_appinfo_h*));
36 MOCK_METHOD4(pkgmgrinfo_pkginfo_compare_usr_app_cert_info,
37 int(const char*, const char*, uid_t,
38 pkgmgrinfo_cert_compare_result_type_e*));
42 #endif // MOCK_PKGMGR_INFO_MOCK_H_