1# Copyright (c) 2023-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.
13import("../../../../access_token.gni")
14group("fuzztest") {
15  testonly = true
16
17  deps = []
18
19  if (is_standard_system && ability_base_enable == true) {
20    deps += [
21      "addpermissionusedrecordstub_fuzzer:AddPermissionUsedRecordStubFuzzTest",
22      "getpermissionusedrecordsasyncstub_fuzzer:GetPermissionUsedRecordsAsyncStubFuzzTest",
23      "getpermissionusedrecordsstub_fuzzer:GetPermissionUsedRecordsStubFuzzTest",
24      "getpermissionusedtypeinfosstub_fuzzer:GetPermissionUsedTypeInfosStubFuzzTest",
25      "isallowedusingpermissionstub_fuzzer:IsAllowedUsingPermissionStubFuzzTest",
26      "registerpermactivestatuscallbackstub_fuzzer:RegisterPermActiveStatusCallbackStubFuzzTest",
27      "removepermissionusedrecordsstub_fuzzer:RemovePermissionUsedRecordsStubFuzzTest",
28      "setmutepolicystub_fuzzer:SetMutePolicyStubFuzzTest",
29      "startusingpermissioncallbackstub_fuzzer:StartUsingPermissionCallbackStubFuzzTest",
30      "startusingpermissionstub_fuzzer:StartUsingPermissionStubFuzzTest",
31      "stopusingpermissionstub_fuzzer:StopUsingPermissionStubFuzzTest",
32      "unregisterpermactivestatuscallbackstub_fuzzer:UnRegisterPermActiveStatusCallbackStubFuzzTest",
33    ]
34
35    if (security_component_enhance_enable) {
36      deps += [
37        "getseccompenhancestub_fuzzer:GetSecCompEnhanceStubFuzzTest",
38        "getspecialseccompenhancestub_fuzzer:GetSpecialSecCompEnhanceStubFuzzTest",
39        "registerseccompenhancestub_fuzzer:RegisterSecCompEnhanceStubFuzzTest",
40        "updateseccompenhancestub_fuzzer:UpdateSecCompEnhanceStubFuzzTest",
41      ]
42    }
43  }
44}
45