112636162Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd. 212636162Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 312636162Sopenharmony_ci# you may not use this file except in compliance with the License. 412636162Sopenharmony_ci# You may obtain a copy of the License at 512636162Sopenharmony_ci# 612636162Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 712636162Sopenharmony_ci# 812636162Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 912636162Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 1012636162Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1112636162Sopenharmony_ci# See the License for the specific language governing permissions and 1212636162Sopenharmony_ci# limitations under the License. 1312636162Sopenharmony_ci 1412636162Sopenharmony_ciimport("//build/test.gni") 1512636162Sopenharmony_ciimport("//drivers/external_device_manager/extdevmgr.gni") 1612636162Sopenharmony_cimodule_output_path = "external_device_manager/unittest" 1712636162Sopenharmony_ci 1812636162Sopenharmony_ciohos_unittest("device_manager_test") { 1912636162Sopenharmony_ci module_out_path = "${module_output_path}" 2012636162Sopenharmony_ci sources = [ "device_manager_test.cpp" ] 2112636162Sopenharmony_ci include_dirs = [ 2212636162Sopenharmony_ci "${ext_mgr_path}/frameworks/ddk/usb/", 2312636162Sopenharmony_ci "${ext_mgr_path}/services/native/driver_extension_manager/include/device_manager", 2412636162Sopenharmony_ci "${ext_mgr_path}/services/native/driver_extension_manager/include/bus_extension/usb", 2512636162Sopenharmony_ci "${ext_mgr_path}/services/native/driver_extension_manager/include/bus_extension/core", 2612636162Sopenharmony_ci "${ext_mgr_path}/services/native/driver_extension_manager/include/drivers_pkg_manager", 2712636162Sopenharmony_ci "${ext_mgr_path}/interfaces/ddk/usb/", 2812636162Sopenharmony_ci "${ext_mgr_path}/interfaces/innerkits/", 2912636162Sopenharmony_ci ] 3012636162Sopenharmony_ci deps = [ 3112636162Sopenharmony_ci "${ext_mgr_path}/services/native/driver_extension_manager/src/bus_extension/core:driver_extension_bus_core", 3212636162Sopenharmony_ci "${ext_mgr_path}/services/native/driver_extension_manager/src/bus_extension/usb:driver_extension_usb_bus", 3312636162Sopenharmony_ci "${ext_mgr_path}/services/native/driver_extension_manager/src/device_manager:driver_extension_device_manager", 3412636162Sopenharmony_ci "${ext_mgr_path}/services/native/driver_extension_manager/src/drivers_pkg_manager:drivers_pkg_manager", 3512636162Sopenharmony_ci ] 3612636162Sopenharmony_ci external_deps = [ 3712636162Sopenharmony_ci "bundle_framework:appexecfwk_core", 3812636162Sopenharmony_ci "c_utils:utils", 3912636162Sopenharmony_ci "drivers_interface_usb:libusb_ddk_proxy_1.0", 4012636162Sopenharmony_ci "drivers_interface_usb:libusb_proxy_1.0", 4112636162Sopenharmony_ci "hilog:libhilog", 4212636162Sopenharmony_ci "ipc:ipc_core", 4312636162Sopenharmony_ci "samgr:samgr_proxy", 4412636162Sopenharmony_ci ] 4512636162Sopenharmony_ci configs = [ "${utils_path}:utils_config" ] 4612636162Sopenharmony_ci} 47