• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2022 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("HatsHdfUsbAutoFunctionTest") {
20  module_out_path = module_output_path
21  sources = [
22    "../UsbSubscriberTest/UsbSubscriberTest.cpp",
23    "./common/usbd_auto_function_test.cpp",
24  ]
25
26  include_dirs = [
27    "include",
28    "//test/xts/hats/hdf/usb/UsbSubscriberTest",
29    "//utils/system/safwk/native/include",
30  ]
31
32  deps = [
33    "//drivers/peripheral/usb/ddk:libusb_core",
34    "//drivers/peripheral/usb/hdi_service:libusb_interface_service_1.0",
35    "//third_party/googletest:gtest_main",
36  ]
37
38  external_deps = [
39    "ability_base:want",
40    "bundle_framework:appexecfwk_base",
41    "c_utils:utils",
42    "common_event_service:cesfwk_innerkits",
43    "drivers_interface_usb:libusb_proxy_1.0",
44    "eventhandler:libeventhandler",
45    "hdf_core:libhdf_utils",
46    "hiviewdfx_hilog_native:libhilog",
47    "ipc:ipc_single",
48    "safwk:system_ability_fwk",
49    "samgr:samgr_proxy",
50  ]
51
52  subsystem_name = "hdf"
53  part_name = "drivers_peripheral_usb"
54}
55