1# Copyright (c) 2021-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/ohos_var.gni") 15import("//test/xts/tools/build/suite.gni") 16 17module_output_path = "hdf/usb" 18 19ohos_moduletest_suite("HatsHdfUsbFunctionTest") { 20 module_out_path = module_output_path 21 sources = [ 22 "../UsbSubscriberTest/UsbSubscriberTest.cpp", 23 "./common/usbd_function_test.cpp", 24 ] 25 configs = [ ":hdf_usb" ] 26 27 deps = [ "//third_party/googletest:gtest_main" ] 28 29 external_deps = [ 30 "ability_base:want", 31 "bundle_framework:appexecfwk_base", 32 "c_utils:utils", 33 "common_event_service:cesfwk_innerkits", 34 "drivers_interface_usb:libusb_proxy_1.0", 35 "eventhandler:libeventhandler", 36 "hdf_core:libhdf_host", 37 "hdf_core:libhdf_utils", 38 "hilog:libhilog", 39 "ipc:ipc_single", 40 "safwk:system_ability_fwk", 41 "samgr:samgr_proxy", 42 ] 43 44 subsystem_name = "xts" 45 part_name = "hats" 46} 47 48config("hdf_usb") { 49 include_dirs = [ 50 "include", 51 "../UsbSubscriberTest", 52 ] 53} 54