1# Copyright (C) 2021 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. 13import("//build/test.gni") 14import("//foundation/filemanagement/dfs_service/distributedfile.gni") 15 16module_output_path = "storage_distributed_file_manager/distributedfiledaemon" 17 18config("module_private_config") { 19 visibility = [ ":*" ] 20 21 include_dirs = [ 22 "${services_path}/distributedfiledaemon/include", 23 "//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp/include", 24 "//base/security/deviceauth/interfaces/innerkits", 25 "//third_party/json/include", 26 ] 27} 28 29ohos_unittest("DeviceManagerAgentTest") { 30 module_out_path = module_output_path 31 32 sources = [] 33 34 sources += [ "device/device_manager_agent_test.cpp" ] 35 36 configs = [ 37 ":module_private_config", 38 "${utils_path}:compiler_configs", 39 ] 40 41 deps = [ 42 "${utils_path}:libdistributedfileutils", 43 "//base/security/deviceauth/services:deviceauth_sdk", 44 "//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp:devicemanagersdk", 45 "//third_party/googletest:gtest_main", 46 ] 47 48 external_deps = [ 49 "dataclassification:data_transit_mgr", 50 "dsoftbus_standard:softbus_client", 51 "ipc:ipc_core", 52 "safwk:system_ability_fwk", 53 "samgr_standard:samgr_proxy", 54 "startup_l2:syspara", 55 ] 56 57 defines = [ "private=public" ] 58} 59 60group("unittest") { 61 testonly = true 62 deps = [ ":DeviceManagerAgentTest" ] 63} 64