142103316Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd. 242103316Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 342103316Sopenharmony_ci# you may not use this file except in compliance with the License. 442103316Sopenharmony_ci# You may obtain a copy of the License at 542103316Sopenharmony_ci# 642103316Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 742103316Sopenharmony_ci# 842103316Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 942103316Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 1042103316Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1142103316Sopenharmony_ci# See the License for the specific language governing permissions and 1242103316Sopenharmony_ci# limitations under the License. 1342103316Sopenharmony_ci 1442103316Sopenharmony_ciimport("//build/config/features.gni") 1542103316Sopenharmony_ciimport("//build/test.gni") 1642103316Sopenharmony_ciimport("./../../usbmgr.gni") 1742103316Sopenharmony_ci 1842103316Sopenharmony_cimodule_output_path = "usb_manager/usb_manager" 1942103316Sopenharmony_ci 2042103316Sopenharmony_ciconfig("module_private_config") { 2142103316Sopenharmony_ci visibility = [ ":*" ] 2242103316Sopenharmony_ci 2342103316Sopenharmony_ci configs = [ "${utils_path}:utils_config" ] 2442103316Sopenharmony_ci 2542103316Sopenharmony_ci cflags = [ 2642103316Sopenharmony_ci "-g", 2742103316Sopenharmony_ci "-O0", 2842103316Sopenharmony_ci "-Wno-unused-variable", 2942103316Sopenharmony_ci "-fno-omit-frame-pointer", 3042103316Sopenharmony_ci ] 3142103316Sopenharmony_ci include_dirs = [ 3242103316Sopenharmony_ci "include", 3342103316Sopenharmony_ci "common/include", 3442103316Sopenharmony_ci "${usb_manager_path}/test/common/include/", 3542103316Sopenharmony_ci "${usb_manager_path}/test/native/service_unittest/include/", 3642103316Sopenharmony_ci ] 3742103316Sopenharmony_ci} 3842103316Sopenharmony_ci 3942103316Sopenharmony_ciohos_fuzztest("UsbMgrRequestRightFuzzTest") { 4042103316Sopenharmony_ci module_out_path = module_output_path 4142103316Sopenharmony_ci 4242103316Sopenharmony_ci fuzz_config_file = 4342103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrrequestright_fuzzer" 4442103316Sopenharmony_ci 4542103316Sopenharmony_ci configs = [ ":module_private_config" ] 4642103316Sopenharmony_ci 4742103316Sopenharmony_ci deps = [ 4842103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 4942103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 5042103316Sopenharmony_ci ] 5142103316Sopenharmony_ci 5242103316Sopenharmony_ci external_deps = [ 5342103316Sopenharmony_ci "c_utils:utils", 5442103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 5542103316Sopenharmony_ci "hilog:libhilog", 5642103316Sopenharmony_ci "ipc:ipc_core", 5742103316Sopenharmony_ci ] 5842103316Sopenharmony_ci 5942103316Sopenharmony_ci sources = [ "usbmgrrequestright_fuzzer/usbmgrrequestright_fuzzer.cpp" ] 6042103316Sopenharmony_ci} 6142103316Sopenharmony_ci 6242103316Sopenharmony_ciohos_fuzztest("UsbMgrHasRightFuzzTest") { 6342103316Sopenharmony_ci module_out_path = module_output_path 6442103316Sopenharmony_ci 6542103316Sopenharmony_ci fuzz_config_file = "${usb_manager_path}/test/fuzztest/usbmgrhasright_fuzzer" 6642103316Sopenharmony_ci 6742103316Sopenharmony_ci configs = [ ":module_private_config" ] 6842103316Sopenharmony_ci 6942103316Sopenharmony_ci deps = [ 7042103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 7142103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 7242103316Sopenharmony_ci ] 7342103316Sopenharmony_ci 7442103316Sopenharmony_ci external_deps = [ 7542103316Sopenharmony_ci "c_utils:utils", 7642103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 7742103316Sopenharmony_ci "hilog:libhilog", 7842103316Sopenharmony_ci "ipc:ipc_core", 7942103316Sopenharmony_ci ] 8042103316Sopenharmony_ci 8142103316Sopenharmony_ci sources = [ "usbmgrhasright_fuzzer/usbmgrhasright_fuzzer.cpp" ] 8242103316Sopenharmony_ci} 8342103316Sopenharmony_ci 8442103316Sopenharmony_ciohos_fuzztest("UsbMgrRemoveRightFuzzTest") { 8542103316Sopenharmony_ci module_out_path = module_output_path 8642103316Sopenharmony_ci 8742103316Sopenharmony_ci fuzz_config_file = 8842103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrremoveright_fuzzer" 8942103316Sopenharmony_ci 9042103316Sopenharmony_ci configs = [ ":module_private_config" ] 9142103316Sopenharmony_ci 9242103316Sopenharmony_ci deps = [ 9342103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 9442103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 9542103316Sopenharmony_ci ] 9642103316Sopenharmony_ci 9742103316Sopenharmony_ci external_deps = [ 9842103316Sopenharmony_ci "c_utils:utils", 9942103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 10042103316Sopenharmony_ci "hilog:libhilog", 10142103316Sopenharmony_ci "ipc:ipc_core", 10242103316Sopenharmony_ci ] 10342103316Sopenharmony_ci 10442103316Sopenharmony_ci sources = [ "usbmgrremoveright_fuzzer/usbmgrremoveright_fuzzer.cpp" ] 10542103316Sopenharmony_ci} 10642103316Sopenharmony_ci 10742103316Sopenharmony_ciohos_fuzztest("UsbMgrGetSupportedModesFuzzTest") { 10842103316Sopenharmony_ci module_out_path = module_output_path 10942103316Sopenharmony_ci 11042103316Sopenharmony_ci fuzz_config_file = 11142103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrgetsupportedmodes_fuzzer" 11242103316Sopenharmony_ci 11342103316Sopenharmony_ci configs = [ ":module_private_config" ] 11442103316Sopenharmony_ci 11542103316Sopenharmony_ci deps = [ 11642103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 11742103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 11842103316Sopenharmony_ci ] 11942103316Sopenharmony_ci 12042103316Sopenharmony_ci external_deps = [ 12142103316Sopenharmony_ci "c_utils:utils", 12242103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 12342103316Sopenharmony_ci "hilog:libhilog", 12442103316Sopenharmony_ci "ipc:ipc_core", 12542103316Sopenharmony_ci ] 12642103316Sopenharmony_ci 12742103316Sopenharmony_ci sources = 12842103316Sopenharmony_ci [ "usbmgrgetsupportedmodes_fuzzer/usbmgrgetsupportedmodes_fuzzer.cpp" ] 12942103316Sopenharmony_ci} 13042103316Sopenharmony_ci 13142103316Sopenharmony_ciohos_fuzztest("UsbMgrSetPortRoleFuzzTest") { 13242103316Sopenharmony_ci module_out_path = module_output_path 13342103316Sopenharmony_ci 13442103316Sopenharmony_ci fuzz_config_file = 13542103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrsetportrole_fuzzer" 13642103316Sopenharmony_ci 13742103316Sopenharmony_ci configs = [ ":module_private_config" ] 13842103316Sopenharmony_ci 13942103316Sopenharmony_ci deps = [ 14042103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 14142103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 14242103316Sopenharmony_ci ] 14342103316Sopenharmony_ci 14442103316Sopenharmony_ci external_deps = [ 14542103316Sopenharmony_ci "c_utils:utils", 14642103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 14742103316Sopenharmony_ci "hilog:libhilog", 14842103316Sopenharmony_ci "ipc:ipc_core", 14942103316Sopenharmony_ci ] 15042103316Sopenharmony_ci 15142103316Sopenharmony_ci sources = [ "usbmgrsetportrole_fuzzer/usbmgrsetportrole_fuzzer.cpp" ] 15242103316Sopenharmony_ci} 15342103316Sopenharmony_ci 15442103316Sopenharmony_ciohos_fuzztest("UsbMgrSetCurrentFunctionsFuzzTest") { 15542103316Sopenharmony_ci module_out_path = module_output_path 15642103316Sopenharmony_ci 15742103316Sopenharmony_ci fuzz_config_file = 15842103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrsetcurrentfunctions_fuzzer" 15942103316Sopenharmony_ci 16042103316Sopenharmony_ci configs = [ ":module_private_config" ] 16142103316Sopenharmony_ci 16242103316Sopenharmony_ci deps = [ 16342103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 16442103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 16542103316Sopenharmony_ci ] 16642103316Sopenharmony_ci 16742103316Sopenharmony_ci external_deps = [ 16842103316Sopenharmony_ci "c_utils:utils", 16942103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 17042103316Sopenharmony_ci "hilog:libhilog", 17142103316Sopenharmony_ci "ipc:ipc_core", 17242103316Sopenharmony_ci ] 17342103316Sopenharmony_ci 17442103316Sopenharmony_ci sources = [ 17542103316Sopenharmony_ci "usbmgrsetcurrentfunctions_fuzzer/usbmgrsetcurrentfunctions_fuzzer.cpp", 17642103316Sopenharmony_ci ] 17742103316Sopenharmony_ci} 17842103316Sopenharmony_ci 17942103316Sopenharmony_ciohos_fuzztest("UsbMgrUsbFunctionsFromStringFuzzTest") { 18042103316Sopenharmony_ci module_out_path = module_output_path 18142103316Sopenharmony_ci 18242103316Sopenharmony_ci fuzz_config_file = 18342103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrusbfunctionsfromstring_fuzzer" 18442103316Sopenharmony_ci 18542103316Sopenharmony_ci configs = [ ":module_private_config" ] 18642103316Sopenharmony_ci 18742103316Sopenharmony_ci deps = [ 18842103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 18942103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 19042103316Sopenharmony_ci ] 19142103316Sopenharmony_ci 19242103316Sopenharmony_ci external_deps = [ 19342103316Sopenharmony_ci "c_utils:utils", 19442103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 19542103316Sopenharmony_ci "hilog:libhilog", 19642103316Sopenharmony_ci "ipc:ipc_core", 19742103316Sopenharmony_ci ] 19842103316Sopenharmony_ci 19942103316Sopenharmony_ci sources = [ "usbmgrusbfunctionsfromstring_fuzzer/usbmgrusbfunctionsfromstring_fuzzer.cpp" ] 20042103316Sopenharmony_ci} 20142103316Sopenharmony_ci 20242103316Sopenharmony_ciohos_fuzztest("UsbMgrUsbFunctionsToStringFuzzTest") { 20342103316Sopenharmony_ci module_out_path = module_output_path 20442103316Sopenharmony_ci 20542103316Sopenharmony_ci fuzz_config_file = 20642103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrusbfunctionstostring_fuzzer" 20742103316Sopenharmony_ci 20842103316Sopenharmony_ci configs = [ ":module_private_config" ] 20942103316Sopenharmony_ci 21042103316Sopenharmony_ci deps = [ 21142103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 21242103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 21342103316Sopenharmony_ci ] 21442103316Sopenharmony_ci 21542103316Sopenharmony_ci external_deps = [ 21642103316Sopenharmony_ci "c_utils:utils", 21742103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 21842103316Sopenharmony_ci "hilog:libhilog", 21942103316Sopenharmony_ci "ipc:ipc_core", 22042103316Sopenharmony_ci ] 22142103316Sopenharmony_ci 22242103316Sopenharmony_ci sources = [ 22342103316Sopenharmony_ci "usbmgrusbfunctionstostring_fuzzer/usbmgrusbfunctionstostring_fuzzer.cpp", 22442103316Sopenharmony_ci ] 22542103316Sopenharmony_ci} 22642103316Sopenharmony_ci 22742103316Sopenharmony_ciohos_fuzztest("UsbMgrClaimInterfaceFuzzTest") { 22842103316Sopenharmony_ci module_out_path = module_output_path 22942103316Sopenharmony_ci 23042103316Sopenharmony_ci fuzz_config_file = 23142103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrclaiminterface_fuzzer" 23242103316Sopenharmony_ci 23342103316Sopenharmony_ci configs = [ ":module_private_config" ] 23442103316Sopenharmony_ci 23542103316Sopenharmony_ci deps = [ 23642103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 23742103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 23842103316Sopenharmony_ci ] 23942103316Sopenharmony_ci 24042103316Sopenharmony_ci external_deps = [ 24142103316Sopenharmony_ci "c_utils:utils", 24242103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 24342103316Sopenharmony_ci "hilog:libhilog", 24442103316Sopenharmony_ci "ipc:ipc_core", 24542103316Sopenharmony_ci ] 24642103316Sopenharmony_ci 24742103316Sopenharmony_ci sources = [ "usbmgrclaiminterface_fuzzer/usbmgrclaiminterface_fuzzer.cpp" ] 24842103316Sopenharmony_ci} 24942103316Sopenharmony_ci 25042103316Sopenharmony_ciohos_fuzztest("UsbMgrReleaseInterfaceFuzzTest") { 25142103316Sopenharmony_ci module_out_path = module_output_path 25242103316Sopenharmony_ci 25342103316Sopenharmony_ci fuzz_config_file = 25442103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrreleaseinterface_fuzzer" 25542103316Sopenharmony_ci 25642103316Sopenharmony_ci configs = [ ":module_private_config" ] 25742103316Sopenharmony_ci 25842103316Sopenharmony_ci deps = [ 25942103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 26042103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 26142103316Sopenharmony_ci ] 26242103316Sopenharmony_ci 26342103316Sopenharmony_ci external_deps = [ 26442103316Sopenharmony_ci "c_utils:utils", 26542103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 26642103316Sopenharmony_ci "hilog:libhilog", 26742103316Sopenharmony_ci "ipc:ipc_core", 26842103316Sopenharmony_ci ] 26942103316Sopenharmony_ci 27042103316Sopenharmony_ci sources = 27142103316Sopenharmony_ci [ "usbmgrreleaseinterface_fuzzer/usbmgrreleaseinterface_fuzzer.cpp" ] 27242103316Sopenharmony_ci} 27342103316Sopenharmony_ci 27442103316Sopenharmony_ciohos_fuzztest("UsbMgrResetDeviceFuzzTest") { 27542103316Sopenharmony_ci module_out_path = module_output_path 27642103316Sopenharmony_ci 27742103316Sopenharmony_ci fuzz_config_file = 27842103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrresetdevice_fuzzer" 27942103316Sopenharmony_ci 28042103316Sopenharmony_ci configs = [ ":module_private_config" ] 28142103316Sopenharmony_ci 28242103316Sopenharmony_ci deps = [ 28342103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 28442103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 28542103316Sopenharmony_ci ] 28642103316Sopenharmony_ci 28742103316Sopenharmony_ci external_deps = [ 28842103316Sopenharmony_ci "c_utils:utils", 28942103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 29042103316Sopenharmony_ci "hilog:libhilog", 29142103316Sopenharmony_ci "ipc:ipc_core", 29242103316Sopenharmony_ci ] 29342103316Sopenharmony_ci 29442103316Sopenharmony_ci sources = [ "usbmgrresetdevice_fuzzer/usbmgrresetdevice_fuzzer.cpp" ] 29542103316Sopenharmony_ci} 29642103316Sopenharmony_ci 29742103316Sopenharmony_ciohos_fuzztest("UsbMgrClearHaltFuzzTest") { 29842103316Sopenharmony_ci module_out_path = module_output_path 29942103316Sopenharmony_ci 30042103316Sopenharmony_ci fuzz_config_file = "${usb_manager_path}/test/fuzztest/usbmgrclearhalt_fuzzer" 30142103316Sopenharmony_ci 30242103316Sopenharmony_ci configs = [ ":module_private_config" ] 30342103316Sopenharmony_ci 30442103316Sopenharmony_ci deps = [ 30542103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 30642103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 30742103316Sopenharmony_ci ] 30842103316Sopenharmony_ci 30942103316Sopenharmony_ci external_deps = [ 31042103316Sopenharmony_ci "ability_base:want", 31142103316Sopenharmony_ci "ability_runtime:ability_manager", 31242103316Sopenharmony_ci "access_token:libaccesstoken_sdk", 31342103316Sopenharmony_ci "access_token:libnativetoken", 31442103316Sopenharmony_ci "access_token:libtoken_setproc", 31542103316Sopenharmony_ci "bundle_framework:appexecfwk_base", 31642103316Sopenharmony_ci "c_utils:utils", 31742103316Sopenharmony_ci "common_event_service:cesfwk_innerkits", 31842103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.1", 31942103316Sopenharmony_ci "drivers_interface_usb:usb_idl_headers_1.1", 32042103316Sopenharmony_ci "drivers_peripheral_usb:libusb_interface_service_1.1", 32142103316Sopenharmony_ci "eventhandler:libeventhandler", 32242103316Sopenharmony_ci "hilog:libhilog", 32342103316Sopenharmony_ci "ipc:ipc_core", 32442103316Sopenharmony_ci "safwk:system_ability_fwk", 32542103316Sopenharmony_ci "samgr:samgr_proxy", 32642103316Sopenharmony_ci ] 32742103316Sopenharmony_ci 32842103316Sopenharmony_ci sources = [ "usbmgrclearhalt_fuzzer/usbmgrclearhalt_fuzzer.cpp" ] 32942103316Sopenharmony_ci} 33042103316Sopenharmony_ci 33142103316Sopenharmony_ciohos_fuzztest("UsbMgrAttachKernelDriverFuzzTest") { 33242103316Sopenharmony_ci module_out_path = module_output_path 33342103316Sopenharmony_ci 33442103316Sopenharmony_ci fuzz_config_file = 33542103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrattachkerneldriver_fuzzer" 33642103316Sopenharmony_ci 33742103316Sopenharmony_ci configs = [ ":module_private_config" ] 33842103316Sopenharmony_ci 33942103316Sopenharmony_ci deps = [ 34042103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 34142103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 34242103316Sopenharmony_ci ] 34342103316Sopenharmony_ci 34442103316Sopenharmony_ci external_deps = [ 34542103316Sopenharmony_ci "ability_base:want", 34642103316Sopenharmony_ci "ability_runtime:ability_manager", 34742103316Sopenharmony_ci "access_token:libaccesstoken_sdk", 34842103316Sopenharmony_ci "access_token:libnativetoken", 34942103316Sopenharmony_ci "access_token:libtoken_setproc", 35042103316Sopenharmony_ci "bundle_framework:appexecfwk_base", 35142103316Sopenharmony_ci "c_utils:utils", 35242103316Sopenharmony_ci "common_event_service:cesfwk_innerkits", 35342103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.1", 35442103316Sopenharmony_ci "drivers_interface_usb:usb_idl_headers_1.1", 35542103316Sopenharmony_ci "drivers_peripheral_usb:libusb_interface_service_1.1", 35642103316Sopenharmony_ci "eventhandler:libeventhandler", 35742103316Sopenharmony_ci "hilog:libhilog", 35842103316Sopenharmony_ci "ipc:ipc_core", 35942103316Sopenharmony_ci "safwk:system_ability_fwk", 36042103316Sopenharmony_ci "samgr:samgr_proxy", 36142103316Sopenharmony_ci ] 36242103316Sopenharmony_ci 36342103316Sopenharmony_ci sources = 36442103316Sopenharmony_ci [ "usbmgrattachkerneldriver_fuzzer/usbmgrattachkerneldriver_fuzzer.cpp" ] 36542103316Sopenharmony_ci} 36642103316Sopenharmony_ci 36742103316Sopenharmony_ciohos_fuzztest("UsbMgrDetachKernelDriverFuzzTest") { 36842103316Sopenharmony_ci module_out_path = module_output_path 36942103316Sopenharmony_ci 37042103316Sopenharmony_ci fuzz_config_file = 37142103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrdetachkerneldriver_fuzzer" 37242103316Sopenharmony_ci 37342103316Sopenharmony_ci configs = [ ":module_private_config" ] 37442103316Sopenharmony_ci 37542103316Sopenharmony_ci deps = [ 37642103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 37742103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 37842103316Sopenharmony_ci ] 37942103316Sopenharmony_ci 38042103316Sopenharmony_ci external_deps = [ 38142103316Sopenharmony_ci "ability_base:want", 38242103316Sopenharmony_ci "ability_runtime:ability_manager", 38342103316Sopenharmony_ci "access_token:libaccesstoken_sdk", 38442103316Sopenharmony_ci "access_token:libnativetoken", 38542103316Sopenharmony_ci "access_token:libtoken_setproc", 38642103316Sopenharmony_ci "bundle_framework:appexecfwk_base", 38742103316Sopenharmony_ci "c_utils:utils", 38842103316Sopenharmony_ci "common_event_service:cesfwk_innerkits", 38942103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.1", 39042103316Sopenharmony_ci "drivers_interface_usb:usb_idl_headers_1.1", 39142103316Sopenharmony_ci "drivers_peripheral_usb:libusb_interface_service_1.1", 39242103316Sopenharmony_ci "eventhandler:libeventhandler", 39342103316Sopenharmony_ci "hilog:libhilog", 39442103316Sopenharmony_ci "ipc:ipc_core", 39542103316Sopenharmony_ci "safwk:system_ability_fwk", 39642103316Sopenharmony_ci "samgr:samgr_proxy", 39742103316Sopenharmony_ci ] 39842103316Sopenharmony_ci 39942103316Sopenharmony_ci sources = 40042103316Sopenharmony_ci [ "usbmgrdetachkerneldriver_fuzzer/usbmgrdetachkerneldriver_fuzzer.cpp" ] 40142103316Sopenharmony_ci} 40242103316Sopenharmony_ci 40342103316Sopenharmony_ciohos_fuzztest("UsbMgrBulkTransferFuzzTest") { 40442103316Sopenharmony_ci module_out_path = module_output_path 40542103316Sopenharmony_ci 40642103316Sopenharmony_ci fuzz_config_file = 40742103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrbulktransfer_fuzzer" 40842103316Sopenharmony_ci 40942103316Sopenharmony_ci configs = [ ":module_private_config" ] 41042103316Sopenharmony_ci 41142103316Sopenharmony_ci deps = [ 41242103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 41342103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 41442103316Sopenharmony_ci ] 41542103316Sopenharmony_ci 41642103316Sopenharmony_ci external_deps = [ 41742103316Sopenharmony_ci "c_utils:utils", 41842103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 41942103316Sopenharmony_ci "hilog:libhilog", 42042103316Sopenharmony_ci "ipc:ipc_core", 42142103316Sopenharmony_ci ] 42242103316Sopenharmony_ci 42342103316Sopenharmony_ci sources = [ "usbmgrbulktransfer_fuzzer/usbmgrbulktransfer_fuzzer.cpp" ] 42442103316Sopenharmony_ci} 42542103316Sopenharmony_ci 42642103316Sopenharmony_ciohos_fuzztest("UsbMgrControlTransferFuzzTest") { 42742103316Sopenharmony_ci module_out_path = module_output_path 42842103316Sopenharmony_ci 42942103316Sopenharmony_ci fuzz_config_file = 43042103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrcontroltransfer_fuzzer" 43142103316Sopenharmony_ci 43242103316Sopenharmony_ci configs = [ ":module_private_config" ] 43342103316Sopenharmony_ci 43442103316Sopenharmony_ci deps = [ 43542103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 43642103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 43742103316Sopenharmony_ci ] 43842103316Sopenharmony_ci 43942103316Sopenharmony_ci external_deps = [ 44042103316Sopenharmony_ci "c_utils:utils", 44142103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 44242103316Sopenharmony_ci "hilog:libhilog", 44342103316Sopenharmony_ci "ipc:ipc_core", 44442103316Sopenharmony_ci ] 44542103316Sopenharmony_ci 44642103316Sopenharmony_ci sources = [ "usbmgrcontroltransfer_fuzzer/usbmgrcontroltransfer_fuzzer.cpp" ] 44742103316Sopenharmony_ci} 44842103316Sopenharmony_ci 44942103316Sopenharmony_ciohos_fuzztest("UsbMgrSetConfigurationFuzzTest") { 45042103316Sopenharmony_ci module_out_path = module_output_path 45142103316Sopenharmony_ci 45242103316Sopenharmony_ci fuzz_config_file = 45342103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrsetconfiguration_fuzzer" 45442103316Sopenharmony_ci 45542103316Sopenharmony_ci configs = [ ":module_private_config" ] 45642103316Sopenharmony_ci 45742103316Sopenharmony_ci deps = [ 45842103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 45942103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 46042103316Sopenharmony_ci ] 46142103316Sopenharmony_ci 46242103316Sopenharmony_ci external_deps = [ 46342103316Sopenharmony_ci "c_utils:utils", 46442103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 46542103316Sopenharmony_ci "hilog:libhilog", 46642103316Sopenharmony_ci "ipc:ipc_core", 46742103316Sopenharmony_ci ] 46842103316Sopenharmony_ci 46942103316Sopenharmony_ci sources = 47042103316Sopenharmony_ci [ "usbmgrsetconfiguration_fuzzer/usbmgrsetconfiguration_fuzzer.cpp" ] 47142103316Sopenharmony_ci} 47242103316Sopenharmony_ci 47342103316Sopenharmony_ciohos_fuzztest("UsbMgrSetInterfaceFuzzTest") { 47442103316Sopenharmony_ci module_out_path = module_output_path 47542103316Sopenharmony_ci 47642103316Sopenharmony_ci fuzz_config_file = 47742103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrsetinterface_fuzzer" 47842103316Sopenharmony_ci 47942103316Sopenharmony_ci configs = [ ":module_private_config" ] 48042103316Sopenharmony_ci 48142103316Sopenharmony_ci deps = [ 48242103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 48342103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 48442103316Sopenharmony_ci ] 48542103316Sopenharmony_ci 48642103316Sopenharmony_ci external_deps = [ 48742103316Sopenharmony_ci "c_utils:utils", 48842103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 48942103316Sopenharmony_ci "hilog:libhilog", 49042103316Sopenharmony_ci "ipc:ipc_core", 49142103316Sopenharmony_ci ] 49242103316Sopenharmony_ci 49342103316Sopenharmony_ci sources = [ "usbmgrsetinterface_fuzzer/usbmgrsetinterface_fuzzer.cpp" ] 49442103316Sopenharmony_ci} 49542103316Sopenharmony_ci 49642103316Sopenharmony_ciohos_fuzztest("UsbMgrGetRawDescriptorsFuzzTest") { 49742103316Sopenharmony_ci module_out_path = module_output_path 49842103316Sopenharmony_ci 49942103316Sopenharmony_ci fuzz_config_file = 50042103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrgetrawdescriptors_fuzzer" 50142103316Sopenharmony_ci 50242103316Sopenharmony_ci configs = [ ":module_private_config" ] 50342103316Sopenharmony_ci 50442103316Sopenharmony_ci deps = [ 50542103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 50642103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 50742103316Sopenharmony_ci ] 50842103316Sopenharmony_ci 50942103316Sopenharmony_ci external_deps = [ 51042103316Sopenharmony_ci "c_utils:utils", 51142103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 51242103316Sopenharmony_ci "hilog:libhilog", 51342103316Sopenharmony_ci "ipc:ipc_core", 51442103316Sopenharmony_ci ] 51542103316Sopenharmony_ci 51642103316Sopenharmony_ci sources = 51742103316Sopenharmony_ci [ "usbmgrgetrawdescriptors_fuzzer/usbmgrgetrawdescriptors_fuzzer.cpp" ] 51842103316Sopenharmony_ci} 51942103316Sopenharmony_ci 52042103316Sopenharmony_ciohos_fuzztest("UsbMgrGetFileDescriptorFuzzTest") { 52142103316Sopenharmony_ci module_out_path = module_output_path 52242103316Sopenharmony_ci 52342103316Sopenharmony_ci fuzz_config_file = 52442103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrgetfiledescriptor_fuzzer" 52542103316Sopenharmony_ci 52642103316Sopenharmony_ci configs = [ ":module_private_config" ] 52742103316Sopenharmony_ci 52842103316Sopenharmony_ci deps = [ 52942103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 53042103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 53142103316Sopenharmony_ci ] 53242103316Sopenharmony_ci 53342103316Sopenharmony_ci external_deps = [ 53442103316Sopenharmony_ci "c_utils:utils", 53542103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 53642103316Sopenharmony_ci "hilog:libhilog", 53742103316Sopenharmony_ci "ipc:ipc_core", 53842103316Sopenharmony_ci ] 53942103316Sopenharmony_ci 54042103316Sopenharmony_ci sources = 54142103316Sopenharmony_ci [ "usbmgrgetfiledescriptor_fuzzer/usbmgrgetfiledescriptor_fuzzer.cpp" ] 54242103316Sopenharmony_ci} 54342103316Sopenharmony_ci 54442103316Sopenharmony_ciohos_fuzztest("UsbMgrCloseFuzzTest") { 54542103316Sopenharmony_ci module_out_path = module_output_path 54642103316Sopenharmony_ci 54742103316Sopenharmony_ci fuzz_config_file = "${usb_manager_path}/test/fuzztest/usbmgrclose_fuzzer" 54842103316Sopenharmony_ci 54942103316Sopenharmony_ci configs = [ ":module_private_config" ] 55042103316Sopenharmony_ci 55142103316Sopenharmony_ci deps = [ 55242103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 55342103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 55442103316Sopenharmony_ci ] 55542103316Sopenharmony_ci 55642103316Sopenharmony_ci external_deps = [ 55742103316Sopenharmony_ci "c_utils:utils", 55842103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 55942103316Sopenharmony_ci "hilog:libhilog", 56042103316Sopenharmony_ci "ipc:ipc_core", 56142103316Sopenharmony_ci ] 56242103316Sopenharmony_ci 56342103316Sopenharmony_ci sources = [ "usbmgrclose_fuzzer/usbmgrclose_fuzzer.cpp" ] 56442103316Sopenharmony_ci} 56542103316Sopenharmony_ci 56642103316Sopenharmony_ciohos_fuzztest("UsbMgrPipeRequestWaitFuzzTest") { 56742103316Sopenharmony_ci module_out_path = module_output_path 56842103316Sopenharmony_ci 56942103316Sopenharmony_ci fuzz_config_file = 57042103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrpiperequestwait_fuzzer" 57142103316Sopenharmony_ci 57242103316Sopenharmony_ci configs = [ ":module_private_config" ] 57342103316Sopenharmony_ci 57442103316Sopenharmony_ci deps = [ 57542103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 57642103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 57742103316Sopenharmony_ci ] 57842103316Sopenharmony_ci 57942103316Sopenharmony_ci external_deps = [ 58042103316Sopenharmony_ci "c_utils:utils", 58142103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 58242103316Sopenharmony_ci "hilog:libhilog", 58342103316Sopenharmony_ci "ipc:ipc_core", 58442103316Sopenharmony_ci ] 58542103316Sopenharmony_ci 58642103316Sopenharmony_ci sources = [ "usbmgrpiperequestwait_fuzzer/usbmgrpiperequestwait_fuzzer.cpp" ] 58742103316Sopenharmony_ci} 58842103316Sopenharmony_ci 58942103316Sopenharmony_ciohos_fuzztest("UsbMgrRequestInitializeFuzzTest") { 59042103316Sopenharmony_ci module_out_path = module_output_path 59142103316Sopenharmony_ci 59242103316Sopenharmony_ci fuzz_config_file = 59342103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrrequestinitialize_fuzzer" 59442103316Sopenharmony_ci 59542103316Sopenharmony_ci configs = [ ":module_private_config" ] 59642103316Sopenharmony_ci 59742103316Sopenharmony_ci deps = [ 59842103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 59942103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 60042103316Sopenharmony_ci ] 60142103316Sopenharmony_ci 60242103316Sopenharmony_ci external_deps = [ 60342103316Sopenharmony_ci "c_utils:utils", 60442103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 60542103316Sopenharmony_ci "hilog:libhilog", 60642103316Sopenharmony_ci "ipc:ipc_core", 60742103316Sopenharmony_ci ] 60842103316Sopenharmony_ci 60942103316Sopenharmony_ci sources = 61042103316Sopenharmony_ci [ "usbmgrrequestinitialize_fuzzer/usbmgrrequestinitialize_fuzzer.cpp" ] 61142103316Sopenharmony_ci} 61242103316Sopenharmony_ci 61342103316Sopenharmony_ciohos_fuzztest("UsbMgrRequestQueueFuzzTest") { 61442103316Sopenharmony_ci module_out_path = module_output_path 61542103316Sopenharmony_ci 61642103316Sopenharmony_ci fuzz_config_file = 61742103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrrequestqueue_fuzzer" 61842103316Sopenharmony_ci 61942103316Sopenharmony_ci configs = [ ":module_private_config" ] 62042103316Sopenharmony_ci 62142103316Sopenharmony_ci deps = [ 62242103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 62342103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 62442103316Sopenharmony_ci ] 62542103316Sopenharmony_ci 62642103316Sopenharmony_ci external_deps = [ 62742103316Sopenharmony_ci "c_utils:utils", 62842103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 62942103316Sopenharmony_ci "hilog:libhilog", 63042103316Sopenharmony_ci "ipc:ipc_core", 63142103316Sopenharmony_ci ] 63242103316Sopenharmony_ci 63342103316Sopenharmony_ci sources = [ "usbmgrrequestqueue_fuzzer/usbmgrrequestqueue_fuzzer.cpp" ] 63442103316Sopenharmony_ci} 63542103316Sopenharmony_ci 63642103316Sopenharmony_ciohos_fuzztest("UsbMgrRequestFreeFuzzTest") { 63742103316Sopenharmony_ci module_out_path = module_output_path 63842103316Sopenharmony_ci 63942103316Sopenharmony_ci fuzz_config_file = 64042103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrrequestfree_fuzzer" 64142103316Sopenharmony_ci 64242103316Sopenharmony_ci configs = [ ":module_private_config" ] 64342103316Sopenharmony_ci 64442103316Sopenharmony_ci deps = [ 64542103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 64642103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 64742103316Sopenharmony_ci ] 64842103316Sopenharmony_ci 64942103316Sopenharmony_ci external_deps = [ 65042103316Sopenharmony_ci "c_utils:utils", 65142103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 65242103316Sopenharmony_ci "hilog:libhilog", 65342103316Sopenharmony_ci "ipc:ipc_core", 65442103316Sopenharmony_ci ] 65542103316Sopenharmony_ci 65642103316Sopenharmony_ci sources = [ "usbmgrrequestfree_fuzzer/usbmgrrequestfree_fuzzer.cpp" ] 65742103316Sopenharmony_ci} 65842103316Sopenharmony_ci 65942103316Sopenharmony_ciohos_fuzztest("UsbMgrRegBulkCallbackFuzzTest") { 66042103316Sopenharmony_ci module_out_path = module_output_path 66142103316Sopenharmony_ci 66242103316Sopenharmony_ci fuzz_config_file = 66342103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrregbulkcallback_fuzzer" 66442103316Sopenharmony_ci 66542103316Sopenharmony_ci configs = [ ":module_private_config" ] 66642103316Sopenharmony_ci 66742103316Sopenharmony_ci deps = [ 66842103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 66942103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 67042103316Sopenharmony_ci ] 67142103316Sopenharmony_ci 67242103316Sopenharmony_ci external_deps = [ 67342103316Sopenharmony_ci "c_utils:utils", 67442103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 67542103316Sopenharmony_ci "hilog:libhilog", 67642103316Sopenharmony_ci "ipc:ipc_core", 67742103316Sopenharmony_ci ] 67842103316Sopenharmony_ci 67942103316Sopenharmony_ci sources = [ 68042103316Sopenharmony_ci "common/src/usb_common_fuzz.cpp", 68142103316Sopenharmony_ci "usbmgrregbulkcallback_fuzzer/usbmgrregbulkcallback_fuzzer.cpp", 68242103316Sopenharmony_ci ] 68342103316Sopenharmony_ci} 68442103316Sopenharmony_ci 68542103316Sopenharmony_ciohos_fuzztest("UsbMgrUnRegBulkCallbackFuzzTest") { 68642103316Sopenharmony_ci module_out_path = module_output_path 68742103316Sopenharmony_ci 68842103316Sopenharmony_ci fuzz_config_file = 68942103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrunregbulkcallback_fuzzer" 69042103316Sopenharmony_ci 69142103316Sopenharmony_ci configs = [ 69242103316Sopenharmony_ci "${utils_path}:utils_config", 69342103316Sopenharmony_ci ":module_private_config", 69442103316Sopenharmony_ci ] 69542103316Sopenharmony_ci 69642103316Sopenharmony_ci deps = [ 69742103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 69842103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 69942103316Sopenharmony_ci ] 70042103316Sopenharmony_ci 70142103316Sopenharmony_ci external_deps = [ 70242103316Sopenharmony_ci "ability_base:want", 70342103316Sopenharmony_ci "access_token:libaccesstoken_sdk", 70442103316Sopenharmony_ci "access_token:libnativetoken", 70542103316Sopenharmony_ci "access_token:libtoken_setproc", 70642103316Sopenharmony_ci "bundle_framework:appexecfwk_base", 70742103316Sopenharmony_ci "c_utils:utils", 70842103316Sopenharmony_ci "common_event_service:cesfwk_innerkits", 70942103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 71042103316Sopenharmony_ci "eventhandler:libeventhandler", 71142103316Sopenharmony_ci "hilog:libhilog", 71242103316Sopenharmony_ci "ipc:ipc_core", 71342103316Sopenharmony_ci "safwk:system_ability_fwk", 71442103316Sopenharmony_ci "samgr:samgr_proxy", 71542103316Sopenharmony_ci ] 71642103316Sopenharmony_ci 71742103316Sopenharmony_ci sources = [ 71842103316Sopenharmony_ci "${usb_manager_path}/test/common/src/usb_callback_test.cpp", 71942103316Sopenharmony_ci "common/src/usb_common_fuzz.cpp", 72042103316Sopenharmony_ci "usbmgrunregbulkcallback_fuzzer/usbmgrunregbulkcallback_fuzzer.cpp", 72142103316Sopenharmony_ci ] 72242103316Sopenharmony_ci} 72342103316Sopenharmony_ci 72442103316Sopenharmony_ciohos_fuzztest("UsbMgrBulkReadFuzzTest") { 72542103316Sopenharmony_ci module_out_path = module_output_path 72642103316Sopenharmony_ci 72742103316Sopenharmony_ci fuzz_config_file = "${usb_manager_path}/test/fuzztest/usbmgrbulkread_fuzzer" 72842103316Sopenharmony_ci 72942103316Sopenharmony_ci configs = [ 73042103316Sopenharmony_ci "${utils_path}:utils_config", 73142103316Sopenharmony_ci ":module_private_config", 73242103316Sopenharmony_ci ] 73342103316Sopenharmony_ci 73442103316Sopenharmony_ci deps = [ 73542103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 73642103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 73742103316Sopenharmony_ci ] 73842103316Sopenharmony_ci 73942103316Sopenharmony_ci external_deps = [ 74042103316Sopenharmony_ci "ability_base:want", 74142103316Sopenharmony_ci "access_token:libaccesstoken_sdk", 74242103316Sopenharmony_ci "access_token:libnativetoken", 74342103316Sopenharmony_ci "access_token:libtoken_setproc", 74442103316Sopenharmony_ci "bundle_framework:appexecfwk_base", 74542103316Sopenharmony_ci "c_utils:utils", 74642103316Sopenharmony_ci "common_event_service:cesfwk_innerkits", 74742103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 74842103316Sopenharmony_ci "eventhandler:libeventhandler", 74942103316Sopenharmony_ci "hilog:libhilog", 75042103316Sopenharmony_ci "ipc:ipc_core", 75142103316Sopenharmony_ci "safwk:system_ability_fwk", 75242103316Sopenharmony_ci "samgr:samgr_proxy", 75342103316Sopenharmony_ci ] 75442103316Sopenharmony_ci 75542103316Sopenharmony_ci sources = [ 75642103316Sopenharmony_ci "${usb_manager_path}/test/common/src/usb_callback_test.cpp", 75742103316Sopenharmony_ci "common/src/usb_common_fuzz.cpp", 75842103316Sopenharmony_ci "usbmgrbulkread_fuzzer/usbmgrbulkread_fuzzer.cpp", 75942103316Sopenharmony_ci ] 76042103316Sopenharmony_ci} 76142103316Sopenharmony_ci 76242103316Sopenharmony_ciohos_fuzztest("UsbMgrBulkWriteFuzzTest") { 76342103316Sopenharmony_ci module_out_path = module_output_path 76442103316Sopenharmony_ci 76542103316Sopenharmony_ci fuzz_config_file = "${usb_manager_path}/test/fuzztest/usbmgrbulkwrite_fuzzer" 76642103316Sopenharmony_ci 76742103316Sopenharmony_ci configs = [ 76842103316Sopenharmony_ci "${utils_path}:utils_config", 76942103316Sopenharmony_ci ":module_private_config", 77042103316Sopenharmony_ci ] 77142103316Sopenharmony_ci 77242103316Sopenharmony_ci deps = [ 77342103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 77442103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 77542103316Sopenharmony_ci ] 77642103316Sopenharmony_ci 77742103316Sopenharmony_ci external_deps = [ 77842103316Sopenharmony_ci "ability_base:want", 77942103316Sopenharmony_ci "access_token:libaccesstoken_sdk", 78042103316Sopenharmony_ci "access_token:libnativetoken", 78142103316Sopenharmony_ci "access_token:libtoken_setproc", 78242103316Sopenharmony_ci "bundle_framework:appexecfwk_base", 78342103316Sopenharmony_ci "c_utils:utils", 78442103316Sopenharmony_ci "common_event_service:cesfwk_innerkits", 78542103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 78642103316Sopenharmony_ci "eventhandler:libeventhandler", 78742103316Sopenharmony_ci "hilog:libhilog", 78842103316Sopenharmony_ci "ipc:ipc_core", 78942103316Sopenharmony_ci "safwk:system_ability_fwk", 79042103316Sopenharmony_ci "samgr:samgr_proxy", 79142103316Sopenharmony_ci ] 79242103316Sopenharmony_ci 79342103316Sopenharmony_ci sources = [ 79442103316Sopenharmony_ci "${usb_manager_path}/test/common/src/usb_callback_test.cpp", 79542103316Sopenharmony_ci "common/src/usb_common_fuzz.cpp", 79642103316Sopenharmony_ci "usbmgrbulkwrite_fuzzer/usbmgrbulkwrite_fuzzer.cpp", 79742103316Sopenharmony_ci ] 79842103316Sopenharmony_ci} 79942103316Sopenharmony_ci 80042103316Sopenharmony_ciohos_fuzztest("UsbMgrBulkCancelFuzzTest") { 80142103316Sopenharmony_ci module_out_path = module_output_path 80242103316Sopenharmony_ci 80342103316Sopenharmony_ci fuzz_config_file = "${usb_manager_path}/test/fuzztest/usbmgrbulkcancel_fuzzer" 80442103316Sopenharmony_ci 80542103316Sopenharmony_ci configs = [ 80642103316Sopenharmony_ci "${utils_path}:utils_config", 80742103316Sopenharmony_ci ":module_private_config", 80842103316Sopenharmony_ci ] 80942103316Sopenharmony_ci 81042103316Sopenharmony_ci deps = [ 81142103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 81242103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 81342103316Sopenharmony_ci ] 81442103316Sopenharmony_ci 81542103316Sopenharmony_ci external_deps = [ 81642103316Sopenharmony_ci "ability_base:want", 81742103316Sopenharmony_ci "access_token:libaccesstoken_sdk", 81842103316Sopenharmony_ci "access_token:libnativetoken", 81942103316Sopenharmony_ci "access_token:libtoken_setproc", 82042103316Sopenharmony_ci "bundle_framework:appexecfwk_base", 82142103316Sopenharmony_ci "c_utils:utils", 82242103316Sopenharmony_ci "common_event_service:cesfwk_innerkits", 82342103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 82442103316Sopenharmony_ci "eventhandler:libeventhandler", 82542103316Sopenharmony_ci "hilog:libhilog", 82642103316Sopenharmony_ci "ipc:ipc_core", 82742103316Sopenharmony_ci "safwk:system_ability_fwk", 82842103316Sopenharmony_ci "samgr:samgr_proxy", 82942103316Sopenharmony_ci ] 83042103316Sopenharmony_ci 83142103316Sopenharmony_ci sources = [ 83242103316Sopenharmony_ci "${usb_manager_path}/test/common/src/usb_callback_test.cpp", 83342103316Sopenharmony_ci "common/src/usb_common_fuzz.cpp", 83442103316Sopenharmony_ci "usbmgrbulkcancel_fuzzer/usbmgrbulkcancel_fuzzer.cpp", 83542103316Sopenharmony_ci ] 83642103316Sopenharmony_ci} 83742103316Sopenharmony_ci 83842103316Sopenharmony_ciohos_fuzztest("UsbMgrFuzzTest") { 83942103316Sopenharmony_ci module_out_path = module_output_path 84042103316Sopenharmony_ci 84142103316Sopenharmony_ci fuzz_config_file = "${usb_manager_path}/test/fuzztest/usbmgr_fuzzer" 84242103316Sopenharmony_ci 84342103316Sopenharmony_ci configs = [ ":module_private_config" ] 84442103316Sopenharmony_ci 84542103316Sopenharmony_ci deps = [ 84642103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 84742103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 84842103316Sopenharmony_ci ] 84942103316Sopenharmony_ci 85042103316Sopenharmony_ci external_deps = [ 85142103316Sopenharmony_ci "ability_runtime:ability_manager", 85242103316Sopenharmony_ci "c_utils:utils", 85342103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.1", 85442103316Sopenharmony_ci "drivers_interface_usb:usb_idl_headers_1.1", 85542103316Sopenharmony_ci "drivers_peripheral_usb:libusb_interface_service_1.1", 85642103316Sopenharmony_ci "hilog:libhilog", 85742103316Sopenharmony_ci "ipc:ipc_core", 85842103316Sopenharmony_ci ] 85942103316Sopenharmony_ci 86042103316Sopenharmony_ci sources = [ "usbmgr_fuzzer/usbmgr_fuzzer.cpp" ] 86142103316Sopenharmony_ci} 86242103316Sopenharmony_ci 86342103316Sopenharmony_ciohos_fuzztest("UsbMgrExFuzzTest") { 86442103316Sopenharmony_ci module_out_path = module_output_path 86542103316Sopenharmony_ci 86642103316Sopenharmony_ci fuzz_config_file = "${usb_manager_path}/test/fuzztest/usbmgrex_fuzzer" 86742103316Sopenharmony_ci 86842103316Sopenharmony_ci configs = [ ":module_private_config" ] 86942103316Sopenharmony_ci 87042103316Sopenharmony_ci deps = [ 87142103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 87242103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 87342103316Sopenharmony_ci ] 87442103316Sopenharmony_ci 87542103316Sopenharmony_ci external_deps = [ 87642103316Sopenharmony_ci "ability_base:want", 87742103316Sopenharmony_ci "ability_runtime:ability_manager", 87842103316Sopenharmony_ci "access_token:libaccesstoken_sdk", 87942103316Sopenharmony_ci "access_token:libnativetoken", 88042103316Sopenharmony_ci "access_token:libtoken_setproc", 88142103316Sopenharmony_ci "bundle_framework:appexecfwk_base", 88242103316Sopenharmony_ci "c_utils:utils", 88342103316Sopenharmony_ci "common_event_service:cesfwk_innerkits", 88442103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.1", 88542103316Sopenharmony_ci "drivers_interface_usb:usb_idl_headers_1.1", 88642103316Sopenharmony_ci "drivers_peripheral_usb:libusb_interface_service_1.1", 88742103316Sopenharmony_ci "eventhandler:libeventhandler", 88842103316Sopenharmony_ci "hilog:libhilog", 88942103316Sopenharmony_ci "ipc:ipc_core", 89042103316Sopenharmony_ci "safwk:system_ability_fwk", 89142103316Sopenharmony_ci "samgr:samgr_proxy", 89242103316Sopenharmony_ci ] 89342103316Sopenharmony_ci 89442103316Sopenharmony_ci sources = [ "usbmgrex_fuzzer/usbmgrex_fuzzer.cpp" ] 89542103316Sopenharmony_ci} 89642103316Sopenharmony_ci 89742103316Sopenharmony_ciohos_fuzztest("UsbMgrManageGlobalInterfaceFuzzTest") { 89842103316Sopenharmony_ci module_out_path = module_output_path 89942103316Sopenharmony_ci 90042103316Sopenharmony_ci fuzz_config_file = 90142103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrmanageglobalinterface_fuzzer" 90242103316Sopenharmony_ci 90342103316Sopenharmony_ci configs = [ ":module_private_config" ] 90442103316Sopenharmony_ci 90542103316Sopenharmony_ci deps = [ 90642103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 90742103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 90842103316Sopenharmony_ci ] 90942103316Sopenharmony_ci 91042103316Sopenharmony_ci external_deps = [ 91142103316Sopenharmony_ci "c_utils:utils", 91242103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 91342103316Sopenharmony_ci "hilog:libhilog", 91442103316Sopenharmony_ci "ipc:ipc_core", 91542103316Sopenharmony_ci ] 91642103316Sopenharmony_ci 91742103316Sopenharmony_ci sources = [ 91842103316Sopenharmony_ci "usbmgrmanageglobalinterface_fuzzer/usbmgrmanageglobalinterface_fuzzer.cpp", 91942103316Sopenharmony_ci ] 92042103316Sopenharmony_ci} 92142103316Sopenharmony_ciohos_fuzztest("UsbMgrManageDeviceFuzzTest") { 92242103316Sopenharmony_ci module_out_path = module_output_path 92342103316Sopenharmony_ci 92442103316Sopenharmony_ci fuzz_config_file = 92542103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrmanagedevice_fuzzer" 92642103316Sopenharmony_ci 92742103316Sopenharmony_ci configs = [ ":module_private_config" ] 92842103316Sopenharmony_ci 92942103316Sopenharmony_ci deps = [ 93042103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 93142103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 93242103316Sopenharmony_ci ] 93342103316Sopenharmony_ci 93442103316Sopenharmony_ci external_deps = [ 93542103316Sopenharmony_ci "c_utils:utils", 93642103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 93742103316Sopenharmony_ci "hilog:libhilog", 93842103316Sopenharmony_ci "ipc:ipc_core", 93942103316Sopenharmony_ci ] 94042103316Sopenharmony_ci 94142103316Sopenharmony_ci sources = [ "usbmgrmanagedevice_fuzzer/usbmgrmanagedevice_fuzzer.cpp" ] 94242103316Sopenharmony_ci} 94342103316Sopenharmony_ciohos_fuzztest("UsbMgrManageManageInterfaceTypeFuzzTest") { 94442103316Sopenharmony_ci module_out_path = module_output_path 94542103316Sopenharmony_ci 94642103316Sopenharmony_ci fuzz_config_file = 94742103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrmanageinterfacetype_fuzzer" 94842103316Sopenharmony_ci 94942103316Sopenharmony_ci configs = [ ":module_private_config" ] 95042103316Sopenharmony_ci 95142103316Sopenharmony_ci deps = [ 95242103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 95342103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 95442103316Sopenharmony_ci ] 95542103316Sopenharmony_ci 95642103316Sopenharmony_ci external_deps = [ 95742103316Sopenharmony_ci "c_utils:utils", 95842103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.1", 95942103316Sopenharmony_ci "hilog:libhilog", 96042103316Sopenharmony_ci "ipc:ipc_core", 96142103316Sopenharmony_ci ] 96242103316Sopenharmony_ci 96342103316Sopenharmony_ci sources = [ 96442103316Sopenharmony_ci "usbmgrmanageinterfacetype_fuzzer/usbmgrmanageinterfacetype_fuzzer.cpp", 96542103316Sopenharmony_ci ] 96642103316Sopenharmony_ci} 96742103316Sopenharmony_ciohos_fuzztest("UsbMgrGetDeviceSpeedFuzzTest") { 96842103316Sopenharmony_ci module_out_path = module_output_path 96942103316Sopenharmony_ci 97042103316Sopenharmony_ci fuzz_config_file = 97142103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrgetdevicespeed_fuzzer" 97242103316Sopenharmony_ci 97342103316Sopenharmony_ci configs = [ ":module_private_config" ] 97442103316Sopenharmony_ci 97542103316Sopenharmony_ci deps = [ 97642103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 97742103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 97842103316Sopenharmony_ci ] 97942103316Sopenharmony_ci 98042103316Sopenharmony_ci external_deps = [ 98142103316Sopenharmony_ci "c_utils:utils", 98242103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.1", 98342103316Sopenharmony_ci "hilog:libhilog", 98442103316Sopenharmony_ci "ipc:ipc_core", 98542103316Sopenharmony_ci ] 98642103316Sopenharmony_ci 98742103316Sopenharmony_ci sources = [ "usbmgrgetdevicespeed_fuzzer/usbmgrgetdevicespeed_fuzzer.cpp" ] 98842103316Sopenharmony_ci} 98942103316Sopenharmony_ciohos_fuzztest("UsbMgrGetInterfaceStatusFuzzTest") { 99042103316Sopenharmony_ci module_out_path = module_output_path 99142103316Sopenharmony_ci 99242103316Sopenharmony_ci fuzz_config_file = 99342103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrgetinterfacestatus_fuzzer" 99442103316Sopenharmony_ci 99542103316Sopenharmony_ci configs = [ ":module_private_config" ] 99642103316Sopenharmony_ci 99742103316Sopenharmony_ci deps = [ 99842103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 99942103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 100042103316Sopenharmony_ci ] 100142103316Sopenharmony_ci 100242103316Sopenharmony_ci external_deps = [ 100342103316Sopenharmony_ci "c_utils:utils", 100442103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 100542103316Sopenharmony_ci "hilog:libhilog", 100642103316Sopenharmony_ci "ipc:ipc_core", 100742103316Sopenharmony_ci ] 100842103316Sopenharmony_ci 100942103316Sopenharmony_ci sources = 101042103316Sopenharmony_ci [ "usbmgrgetinterfacestatus_fuzzer/usbmgrgetinterfacestatus_fuzzer.cpp" ] 101142103316Sopenharmony_ci} 101242103316Sopenharmony_ci 101342103316Sopenharmony_ciohos_fuzztest("UsbMgrUsbControlTransferFuzzTest") { 101442103316Sopenharmony_ci module_out_path = module_output_path 101542103316Sopenharmony_ci 101642103316Sopenharmony_ci fuzz_config_file = 101742103316Sopenharmony_ci "${usb_manager_path}/test/fuzztest/usbmgrusbcontroltransfer_fuzzer" 101842103316Sopenharmony_ci 101942103316Sopenharmony_ci configs = [ ":module_private_config" ] 102042103316Sopenharmony_ci 102142103316Sopenharmony_ci deps = [ 102242103316Sopenharmony_ci "${usb_manager_path}/interfaces/innerkits:usbsrv_client", 102342103316Sopenharmony_ci "${usb_manager_path}/services:usbservice", 102442103316Sopenharmony_ci ] 102542103316Sopenharmony_ci 102642103316Sopenharmony_ci external_deps = [ 102742103316Sopenharmony_ci "c_utils:utils", 102842103316Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 102942103316Sopenharmony_ci "hilog:libhilog", 103042103316Sopenharmony_ci "ipc:ipc_core", 103142103316Sopenharmony_ci ] 103242103316Sopenharmony_ci 103342103316Sopenharmony_ci sources = 103442103316Sopenharmony_ci [ "usbmgrusbcontroltransfer_fuzzer/usbmgrusbcontroltransfer_fuzzer.cpp" ] 103542103316Sopenharmony_ci} 103642103316Sopenharmony_ci 103742103316Sopenharmony_cigroup("fuzztest") { 103842103316Sopenharmony_ci testonly = true 103942103316Sopenharmony_ci deps = [] 104042103316Sopenharmony_ci deps += [ 104142103316Sopenharmony_ci ":UsbMgrAttachKernelDriverFuzzTest", 104242103316Sopenharmony_ci ":UsbMgrBulkCancelFuzzTest", 104342103316Sopenharmony_ci ":UsbMgrBulkReadFuzzTest", 104442103316Sopenharmony_ci ":UsbMgrBulkTransferFuzzTest", 104542103316Sopenharmony_ci ":UsbMgrBulkWriteFuzzTest", 104642103316Sopenharmony_ci ":UsbMgrClaimInterfaceFuzzTest", 104742103316Sopenharmony_ci ":UsbMgrClearHaltFuzzTest", 104842103316Sopenharmony_ci ":UsbMgrCloseFuzzTest", 104942103316Sopenharmony_ci ":UsbMgrControlTransferFuzzTest", 105042103316Sopenharmony_ci ":UsbMgrDetachKernelDriverFuzzTest", 105142103316Sopenharmony_ci ":UsbMgrExFuzzTest", 105242103316Sopenharmony_ci ":UsbMgrFuzzTest", 105342103316Sopenharmony_ci ":UsbMgrGetDeviceSpeedFuzzTest", 105442103316Sopenharmony_ci ":UsbMgrGetFileDescriptorFuzzTest", 105542103316Sopenharmony_ci ":UsbMgrGetInterfaceStatusFuzzTest", 105642103316Sopenharmony_ci ":UsbMgrGetRawDescriptorsFuzzTest", 105742103316Sopenharmony_ci ":UsbMgrGetSupportedModesFuzzTest", 105842103316Sopenharmony_ci ":UsbMgrHasRightFuzzTest", 105942103316Sopenharmony_ci ":UsbMgrManageDeviceFuzzTest", 106042103316Sopenharmony_ci ":UsbMgrManageGlobalInterfaceFuzzTest", 106142103316Sopenharmony_ci ":UsbMgrManageManageInterfaceTypeFuzzTest", 106242103316Sopenharmony_ci ":UsbMgrPipeRequestWaitFuzzTest", 106342103316Sopenharmony_ci ":UsbMgrRegBulkCallbackFuzzTest", 106442103316Sopenharmony_ci ":UsbMgrReleaseInterfaceFuzzTest", 106542103316Sopenharmony_ci ":UsbMgrRemoveRightFuzzTest", 106642103316Sopenharmony_ci ":UsbMgrRequestFreeFuzzTest", 106742103316Sopenharmony_ci ":UsbMgrRequestInitializeFuzzTest", 106842103316Sopenharmony_ci ":UsbMgrRequestQueueFuzzTest", 106942103316Sopenharmony_ci ":UsbMgrRequestRightFuzzTest", 107042103316Sopenharmony_ci ":UsbMgrResetDeviceFuzzTest", 107142103316Sopenharmony_ci ":UsbMgrSetConfigurationFuzzTest", 107242103316Sopenharmony_ci ":UsbMgrSetCurrentFunctionsFuzzTest", 107342103316Sopenharmony_ci ":UsbMgrSetInterfaceFuzzTest", 107442103316Sopenharmony_ci ":UsbMgrSetPortRoleFuzzTest", 107542103316Sopenharmony_ci ":UsbMgrUnRegBulkCallbackFuzzTest", 107642103316Sopenharmony_ci ":UsbMgrUsbControlTransferFuzzTest", 107742103316Sopenharmony_ci ":UsbMgrUsbFunctionsFromStringFuzzTest", 107842103316Sopenharmony_ci ":UsbMgrUsbFunctionsToStringFuzzTest", 107942103316Sopenharmony_ci ] 108042103316Sopenharmony_ci} 1081