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("//build/test.gni") 15import("//foundation/distributeddatamgr/pasteboard/pasteboard.gni") 16 17group("fuzztest") { 18 testonly = true 19 20 deps = [] 21 if (pasteboard_dlp_part_enabled && 22 pasteboard_device_info_manager_part_enabled && 23 pasteboard_device_manager_part_enabled && 24 pasteboard_screenlock_mgr_part_enabled) { 25 deps += [ 26 "fuzztest/eventcenter_fuzzer:fuzztest", 27 "fuzztest/ffrtutils_fuzzer:fuzztest", 28 "fuzztest/pasteboardclient_fuzzer:fuzztest", 29 "fuzztest/pasteboarddata_fuzzer:fuzztest", 30 "fuzztest/pasteboarddisposable_fuzzer:fuzztest", 31 "fuzztest/pasteboardobserver_fuzzer:fuzztest", 32 "fuzztest/pasteboardservice_fuzzer:fuzztest", 33 ] 34 } 35} 36 37group("unittest") { 38 testonly = true 39 deps = [] 40 if (pasteboard_dlp_part_enabled && 41 pasteboard_device_info_manager_part_enabled && 42 pasteboard_device_manager_part_enabled && 43 pasteboard_screenlock_mgr_part_enabled && 44 !use_libfuzzer) { 45 deps += [ 46 "${pasteboard_root_path}/adapter/test:unittest", 47 "${pasteboard_root_path}/framework/test:unittest", 48 "${pasteboard_root_path}/interfaces/kits/napi/test/unittest/pasteboardapi:unittest", 49 "${pasteboard_root_path}/interfaces/kits/napi/test/unittest/pasteboardperf:unittest", 50 "${pasteboard_root_path}/interfaces/ndk/unittest:unittest", 51 "${pasteboard_root_path}/services/test:unittest", 52 "${pasteboard_root_path}/utils/test:unittest", 53 ] 54 } 55} 56