# Copyright (c) 2023-2024 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos_var.gni") import("//drivers/external_device_manager/extdevmgr.gni") import("//test/xts/tools/build/suite.gni") module_output_path = "hats/external_device_manager" usb_bus_extension_include_path = "${ext_mgr_path}/services/native/driver_extension_manager/include/bus_extension/usb" ohos_moduletest_suite("HatsHdfExternalPkgManagerTest") { module_out_path = module_output_path sources = [ "driver_pkg_manager_test.cpp", "drv_bundle_callback_test.cpp", "pkg_db_helper_test.cpp", ] include_dirs = [ "${ext_mgr_path}/services/native/driver_extension_manager/include/drivers_pkg_manager", "${usb_bus_extension_include_path}", "${ext_mgr_path}/interfaces/ddk/hid", "${ext_mgr_path}/interfaces/ddk/usb", "${ext_mgr_path}/services/zidl/include", ] deps = [ "${ext_mgr_path}/interfaces/innerkits:driver_ext_mgr_client", "${ext_mgr_path}/services/native/driver_extension_manager/src/drivers_pkg_manager:drivers_pkg_manager", "//third_party/googletest:gmock_main", "//third_party/googletest:gtest_main", ] external_deps = [ "ability_base:want", "bundle_framework:appexecfwk_base", "bundle_framework:appexecfwk_core", "c_utils:utils", "common_event_service:cesfwk_core", "common_event_service:cesfwk_innerkits", "drivers_interface_usb:libusb_proxy_1.0", "hilog:libhilog", "init:libbegetutil", "ipc:ipc_core", "ipc:ipc_single", "os_account:os_account_innerkits", "relational_store:native_appdatafwk", "relational_store:native_dataability", "relational_store:native_rdb", "samgr:samgr_proxy", ] configs = [ "${utils_path}:utils_config" ] subsystem_name = "xts" part_name = "hats" }