• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022-2024 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("../../services/bundlemgr/appexecfwk_bundlemgr.gni")
15
16group("fuzztest") {
17  testonly = true
18  deps = []
19
20  deps += [
21    # deps file
22    "fuzztest_application/appcontrolhost_fuzzer:AppControlHostFuzzTest",
23    "fuzztest_application/applicationinfo_fuzzer:ApplicationInfoFuzzTest",
24    "fuzztest_application/applicationinfofromjson_fuzzer:ApplicationInfoFromJsonFuzzTest",
25    "fuzztest_application/bundlefileutil_fuzzer:BundleFileUtilFuzzTest",
26    "fuzztest_application/bundleinfo_fuzzer:BundleInfoFuzzTest",
27    "fuzztest_application/bundleinfofromjson_fuzzer:BundleInfoFromJsonFuzzTest",
28    "fuzztest_application/bundleinstalldhost_fuzzer:BundleInstalldHostFuzzTest",
29    "fuzztest_application/bundleinstallerhost_fuzzer:BundleInstallerHostFuzzTest",
30    "fuzztest_application/bundleinstallerproxy_fuzzer:BundleInstallerProxyFuzzTest",
31    "fuzztest_application/bundlemgrhost_fuzzer:BundleMgrHostFuzzTest",
32    "fuzztest_application/bundlemgrproxy_fuzzer:BundleMgrProxyFuzzTest",
33    "fuzztest_application/bundleresourcehost_fuzzer:BundleResourceHostFuzzTest",
34    "fuzztest_application/bundlestatuscallbackproxy_fuzzer:BundleStatusCallbackProxyFuzzTest",
35    "fuzztest_application/bundlestreaminstallerhost_fuzzer:BundleStreamInstallerHostFuzzTest",
36    "fuzztest_application/bundlestreaminstallerproxy_fuzzer:BundleStreamInstallerProxyFuzzTest",
37    "fuzztest_application/bundlesyscap_fuzzer:BundleSysCapFuzzTest",
38    "fuzztest_application/bundleuserinfo_fuzzer:BundleUserInfoFuzzTest",
39    "fuzztest_application/bundleusermgrhost_fuzzer:BundleUserMgrHostFuzzTest",
40    "fuzztest_application/bundleusermgrproxy_fuzzer:BundleUserMgrProxyFuzzTest",
41    "fuzztest_application/checkissystemappbyuid_fuzzer:CheckIsSystemAppByUidFuzzTest",
42    "fuzztest_application/cleanbundlecachefiles_fuzzer:CleanBundleCacheFilesFuzzTest",
43    "fuzztest_application/cleanbundledatafiles_fuzzer:CleanBundleDataFilesFuzzTest",
44    "fuzztest_application/cleancachecallbackproxy_fuzzer:CleanCacheCallbackProxyFuzzTest",
45    "fuzztest_application/defaultapphost_fuzzer:DefaultAppHostFuzzTest",
46    "fuzztest_application/verifymanagerhost_fuzzer:VerifyManagerHostFuzzTest",
47    "fuzztest_information/abilityinfofromjson_fuzzer:AbilityInfoFromJsonFuzzTest",
48    "fuzztest_information/abilityinfomarshalling_fuzzer:AbilityInfoMarshallingFuzzTest",
49    "fuzztest_information/abilityinfounmarshalling_fuzzer:AbilityInfoUnmarshallingFuzzTest",
50    "fuzztest_information/compatibleabilityinfo_fuzzer:CompatibleAbilityInfoFuzzTest",
51    "fuzztest_information/compatibleapplicationinfo_fuzzer:CompatibleApplicationInfoFuzzTest",
52    "fuzztest_information/extensionabilityinfo_fuzzer:ExtensionAbilityInfoFuzzTest",
53    "fuzztest_information/forminfo_fuzzer:FormInfoFuzzTest",
54    "fuzztest_information/getabilitylabel_fuzzer:GetAbilityLabelFuzzTest",
55    "fuzztest_information/getappidbybundlename_fuzzer:GetAppIdByBundleNameFuzzTest",
56    "fuzztest_information/getapplicationinfo_fuzzer:GetApplicationInfoFuzzTest",
57    "fuzztest_information/getapplicationinfos_fuzzer:GetApplicationInfosFuzzTest",
58    "fuzztest_information/getapptype_fuzzer:GetAppTypeFuzzTest",
59    "fuzztest_information/getbundleInfosbymetadata_fuzzer:GetBundleInfosByMetaDataFuzzTest",
60    "fuzztest_information/getbundlearchiveinfo_fuzzer:GetBundleArchiveInfoFuzzTest",
61    "fuzztest_information/getbundlegids_fuzzer:GetBundleGidsFuzzTest",
62    "fuzztest_information/getbundlegidsbyuid_fuzzer:GetBundleGidsByUidFuzzTest",
63    "fuzztest_information/getbundleinfo_fuzzer:GetBundleInfoFuzzTest",
64    "fuzztest_information/getbundleinfos_fuzzer:GetBundleInfosFuzzTest",
65    "fuzztest_information/getbundlepackinfo_fuzzer:GetBundlePackInfoFuzzTest",
66    "fuzztest_information/getbundlesforuid_fuzzer:GetBundlesForUidFuzzTest",
67    "fuzztest_information/gethapmoduleinfo_fuzzer:GetHapModuleInfoFuzzTest",
68    "fuzztest_information/getlaunchwantforbundle_fuzzer:GetLaunchWantForBundleFuzzTest",
69    "fuzztest_information/getnameforuid_fuzzer:GetNameForUidFuzzTest",
70    "fuzztest_information/getpermissiondef_fuzzer:GetPermissionDefFuzzTest",
71    "fuzztest_information/getuidbybundlename_fuzzer:GetUidByBundleNameFuzzTest",
72    "fuzztest_information/hapmoduleinfo_fuzzer:HapModuleInfoFuzzTest",
73    "fuzztest_information/installparam_fuzzer:InstallParamFuzzTest",
74    "fuzztest_information/queryabilityinfo_fuzzer:QueryAbilityInfoFuzzTest",
75    "fuzztest_information/queryabilityinfobyuri_fuzzer:QueryAbilityInfoByUriFuzzTest",
76    "fuzztest_information/queryabilityinfos_fuzzer:QueryAbilityInfosFuzzTest",
77    "fuzztest_information/queryabilityinfosbyuri_fuzzer:QueryAbilityInfosByUriFuzzTest",
78    "fuzztest_information/queryallabilityinfos_fuzzer:QueryAllAbilityInfosFuzzTest",
79    "fuzztest_information/querykeepalivebundleinfos_fuzzer:QueryKeepAliveBundleInfosFuzzTest",
80    "fuzztest_information/remoteabilityinfo_fuzzer:RemoteAbilityInfoFuzzTest",
81    "fuzztest_others/commonevent_fuzzer:CommonEventFuzzTest",
82    "fuzztest_others/copyfiles_fuzzer:CopyFilesFuzzTest",
83    "fuzztest_others/deletequickfix_fuzzer:DeleteQuickFixFuzzTest",
84    "fuzztest_others/deployquickfix_fuzzer:DeployQuickFixFuzzTest",
85    "fuzztest_others/elementname_fuzzer:ElementNameFuzzTest",
86    "fuzztest_others/installparamunmarshalling_fuzzer:InstallParamUnmarshallingFuzzTest",
87    "fuzztest_others/launcherservice_fuzzer:LauncherServiceFuzzTest",
88    "fuzztest_others/moduleinfo_fuzzer:ModuleInfoFuzzTest",
89    "fuzztest_others/overlaymanagerhost_fuzzer:OverlayManagerHostFuzzTest",
90    "fuzztest_others/parsesyscap_fuzzer:ParseSysCapFuzzTest",
91    "fuzztest_others/permissiondef_fuzzer:PermissionDefFuzzTest",
92    "fuzztest_others/quickfixmanagerhost_fuzzer:QuickFixManagerHost",
93    "fuzztest_others/shortcutinfo_fuzzer:ShortcutInfoFuzzTest",
94    "fuzztest_others/switchquickfix_fuzzer:SwitchQuickFixFuzzTest",
95    "fuzztest_others/upgradeatomicservice_fuzzer:UpgradeAtomicServiceFuzzTest",
96    "fuzztest_others/verifycallingpermission_fuzzer:VerifyCallingPermissionFuzzTest",
97    "fuzztest_others/zip_fuzzer:ZipFuzzTest",
98  ]
99
100  if (bundle_framework_default_app) {
101    deps += [
102      "fuzztest_information/getdefaultapplication_fuzzer:GetDefaultApplicationFuzzTest",
103      "fuzztest_others/isdefaultapplication_fuzzer:IsDefaultApplicationFuzzTest",
104      "fuzztest_others/resetdefaultapplication_fuzzer:ResetDefaultApplicationFuzzTest",
105      "fuzztest_others/setdefaultapplication_fuzzer:SetDefaultApplicationFuzzTest",
106    ]
107  }
108
109  if (bundle_framework_app_control) {
110    deps += [
111      "fuzztest_application/addappInstallcontrolrule_fuzzer:AddAppInstallControlRuleFuzzTest",
112      "fuzztest_application/addapprunningcontrolrule_fuzzer:AddAppRunningControlRuleFuzzTest",
113      "fuzztest_application/apprunningcontrolrule_fuzzer:AppRunningControlRuleFuzzTest",
114      "fuzztest_application/apprunningcontrolruleresult_fuzzer:AppRunningControlRuleResultFuzzTest",
115      "fuzztest_application/deleteappinstallcontrolrule_fuzzer:DeleteAppInstallControlRuleFuzzTest",
116      "fuzztest_application/deleteapprunningcontrolrule_fuzzer:DeleteAppRunningControlRuleFuzzTest",
117      "fuzztest_information/getappinstallcontrolrule_fuzzer:GetAppInstallControlRuleFuzzTest",
118      "fuzztest_information/getapprunningcontrolrule_fuzzer:GetAppRunningControlRuleFuzzTest",
119      "fuzztest_information/getdisposedstatus_fuzzer:GetDisposedStatusFuzzTest",
120      "fuzztest_others/deletedisposedstatus_fuzzer:DeleteDisposedStatusFuzzTest",
121      "fuzztest_others/setdisposedstatus_fuzzer:SetDisposedStatusFuzzTest",
122    ]
123  }
124}
125