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