• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022-2023 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    "abilityinfofromjson_fuzzer:AbilityInfoFromJsonFuzzTest",
23    "abilityinfomarshalling_fuzzer:AbilityInfoMarshallingFuzzTest",
24    "abilityinfounmarshalling_fuzzer:AbilityInfoUnmarshallingFuzzTest",
25    "appcontrolhost_fuzzer:AppControlHostFuzzTest",
26    "applicationinfo_fuzzer:ApplicationInfoFuzzTest",
27    "applicationinfofromjson_fuzzer:ApplicationInfoFromJsonFuzzTest",
28    "bundlefileutil_fuzzer:BundleFileUtilFuzzTest",
29    "bundleinfo_fuzzer:BundleInfoFuzzTest",
30    "bundleinfofromjson_fuzzer:BundleInfoFromJsonFuzzTest",
31    "bundleinstalldhost_fuzzer:BundleInstalldHostFuzzTest",
32    "bundleinstallerhost_fuzzer:BundleInstallerHostFuzzTest",
33    "bundleinstallerproxy_fuzzer:BundleInstallerProxyFuzzTest",
34    "bundlemgrhost_fuzzer:BundleMgrHostFuzzTest",
35    "bundlemgrproxy_fuzzer:BundleMgrProxyFuzzTest",
36    "bundlestatuscallbackproxy_fuzzer:BundleStatusCallbackProxyFuzzTest",
37    "bundlestreaminstallerhost_fuzzer:BundleStreamInstallerHostFuzzTest",
38    "bundlestreaminstallerproxy_fuzzer:BundleStreamInstallerProxyFuzzTest",
39    "bundlesyscap_fuzzer:BundleSysCapFuzzTest",
40    "bundleuserinfo_fuzzer:BundleUserInfoFuzzTest",
41    "bundleusermgrhost_fuzzer:BundleUserMgrHostFuzzTest",
42    "bundleusermgrproxy_fuzzer:BundleUserMgrProxyFuzzTest",
43    "checkissystemappbyuid_fuzzer:CheckIsSystemAppByUidFuzzTest",
44    "cleanbundlecachefiles_fuzzer:CleanBundleCacheFilesFuzzTest",
45    "cleanbundledatafiles_fuzzer:CleanBundleDataFilesFuzzTest",
46    "cleancachecallbackproxy_fuzzer:CleanCacheCallbackProxyFuzzTest",
47    "commonevent_fuzzer:CommonEventFuzzTest",
48    "compatibleabilityinfo_fuzzer:CompatibleAbilityInfoFuzzTest",
49    "compatibleapplicationinfo_fuzzer:CompatibleApplicationInfoFuzzTest",
50    "copyfiles_fuzzer:CopyFilesFuzzTest",
51    "defaultapphost_fuzzer:DefaultAppHostFuzzTest",
52    "deletequickfix_fuzzer:DeleteQuickFixFuzzTest",
53    "deployquickfix_fuzzer:DeployQuickFixFuzzTest",
54    "elementname_fuzzer:ElementNameFuzzTest",
55    "extensionabilityinfo_fuzzer:ExtensionAbilityInfoFuzzTest",
56    "forminfo_fuzzer:FormInfoFuzzTest",
57    "getabilitylabel_fuzzer:GetAbilityLabelFuzzTest",
58    "getappidbybundlename_fuzzer:GetAppIdByBundleNameFuzzTest",
59    "getapplicationinfo_fuzzer:GetApplicationInfoFuzzTest",
60    "getapplicationinfos_fuzzer:GetApplicationInfosFuzzTest",
61    "getapptype_fuzzer:GetAppTypeFuzzTest",
62    "getbundleInfosbymetadata_fuzzer:GetBundleInfosByMetaDataFuzzTest",
63    "getbundlearchiveinfo_fuzzer:GetBundleArchiveInfoFuzzTest",
64    "getbundlegids_fuzzer:GetBundleGidsFuzzTest",
65    "getbundlegidsbyuid_fuzzer:GetBundleGidsByUidFuzzTest",
66    "getbundleinfo_fuzzer:GetBundleInfoFuzzTest",
67    "getbundleinfos_fuzzer:GetBundleInfosFuzzTest",
68    "getbundlenameforuid_fuzzer:GetBundleNameForUidFuzzTest",
69    "getbundlepackinfo_fuzzer:GetBundlePackInfoFuzzTest",
70    "getbundlesforuid_fuzzer:GetBundlesForUidFuzzTest",
71    "gethapmoduleinfo_fuzzer:GetHapModuleInfoFuzzTest",
72    "getlaunchwantforbundle_fuzzer:GetLaunchWantForBundleFuzzTest",
73    "getnameforuid_fuzzer:GetNameForUidFuzzTest",
74    "getpermissiondef_fuzzer:GetPermissionDefFuzzTest",
75    "getuidbybundlename_fuzzer:GetUidByBundleNameFuzzTest",
76    "hapmoduleinfo_fuzzer:HapModuleInfoFuzzTest",
77    "installparam_fuzzer:InstallParamFuzzTest",
78    "installparamunmarshalling_fuzzer:InstallParamUnmarshallingFuzzTest",
79    "launcherservice_fuzzer:LauncherServiceFuzzTest",
80    "moduleinfo_fuzzer:ModuleInfoFuzzTest",
81    "overlaymanagerhost_fuzzer:OverlayManagerHostFuzzTest",
82    "parsesyscap_fuzzer:ParseSysCapFuzzTest",
83    "permissiondef_fuzzer:PermissionDefFuzzTest",
84    "queryabilityinfo_fuzzer:QueryAbilityInfoFuzzTest",
85    "queryabilityinfobyuri_fuzzer:QueryAbilityInfoByUriFuzzTest",
86    "queryabilityinfos_fuzzer:QueryAbilityInfosFuzzTest",
87    "queryabilityinfosbyuri_fuzzer:QueryAbilityInfosByUriFuzzTest",
88    "queryallabilityinfos_fuzzer:QueryAllAbilityInfosFuzzTest",
89    "querykeepalivebundleinfos_fuzzer:QueryKeepAliveBundleInfosFuzzTest",
90    "quickfixmanagerhost_fuzzer:QuickFixManagerHost",
91    "remoteabilityinfo_fuzzer:RemoteAbilityInfoFuzzTest",
92    "shortcutinfo_fuzzer:ShortcutInfoFuzzTest",
93    "switchquickfix_fuzzer:SwitchQuickFixFuzzTest",
94    "upgradeatomicservice_fuzzer:UpgradeAtomicServiceFuzzTest",
95    "verifycallingpermission_fuzzer:VerifyCallingPermissionFuzzTest",
96    "zip_fuzzer:ZipFuzzTest",
97  ]
98
99  if (bundle_framework_default_app) {
100    deps += [
101      "getdefaultapplication_fuzzer:GetDefaultApplicationFuzzTest",
102      "isdefaultapplication_fuzzer:IsDefaultApplicationFuzzTest",
103      "resetdefaultapplication_fuzzer:ResetDefaultApplicationFuzzTest",
104      "setdefaultapplication_fuzzer:SetDefaultApplicationFuzzTest",
105    ]
106  }
107
108  if (bundle_framework_app_control) {
109    deps += [
110      "addappInstallcontrolrule_fuzzer:AddAppInstallControlRuleFuzzTest",
111      "addapprunningcontrolrule_fuzzer:AddAppRunningControlRuleFuzzTest",
112      "apprunningcontrolrule_fuzzer:AppRunningControlRuleFuzzTest",
113      "apprunningcontrolruleresult_fuzzer:AppRunningControlRuleResultFuzzTest",
114      "deleteappinstallcontrolrule_fuzzer:DeleteAppInstallControlRuleFuzzTest",
115      "deleteapprunningcontrolrule_fuzzer:DeleteAppRunningControlRuleFuzzTest",
116      "deletedisposedstatus_fuzzer:DeleteDisposedStatusFuzzTest",
117      "getappinstallcontrolrule_fuzzer:GetAppInstallControlRuleFuzzTest",
118      "getapprunningcontrolrule_fuzzer:GetAppRunningControlRuleFuzzTest",
119      "getdisposedstatus_fuzzer:GetDisposedStatusFuzzTest",
120      "setdisposedstatus_fuzzer:SetDisposedStatusFuzzTest",
121    ]
122  }
123}
124