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/device_manager/interfaces/inner_kits/native_cpp/include", 24 "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", 25 "//foundation/communication/dsoftbus/interfaces/kits/bus_center", 26 "//foundation/communication/dsoftbus/interfaces/kits/common", 27 "//base/security/device_auth/interfaces/innerkits", 28 "//third_party/json/include", 29 ] 30} 31 32ohos_moduletest("DistributedFileDaemonServiceTest") { 33 module_out_path = module_output_path 34 35 sources = [ 36 "${services_path}/distributedfiledaemon/src/device/device_info.cpp", 37 "${services_path}/distributedfiledaemon/src/device/device_manager_agent.cpp", 38 "${services_path}/distributedfiledaemon/src/ipc/daemon.cpp", 39 "${services_path}/distributedfiledaemon/src/ipc/daemon_stub.cpp", 40 "${services_path}/distributedfiledaemon/src/mountpoint/mount_manager.cpp", 41 "${services_path}/distributedfiledaemon/src/mountpoint/mount_point.cpp", 42 "${services_path}/distributedfiledaemon/src/multiuser/os_account_observer.cpp", 43 "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp", 44 "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp", 45 "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp", 46 "${services_path}/distributedfiledaemon/src/network/session_pool.cpp", 47 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp", 48 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp", 49 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_dispatcher.cpp", 50 ] 51 52 sources += [ "src/distributedfiledaemon_service_test.cpp" ] 53 54 configs = [ 55 ":module_private_config", 56 "${utils_path}:compiler_configs", 57 ] 58 59 defines = [ "private=public" ] 60 61 deps = [ 62 "${utils_path}:libdistributedfileutils", 63 "//base/security/device_auth/services:deviceauth_sdk", 64 "//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp:devicemanagersdk", 65 "//foundation/filemanagement/dfs_service/services/distributedfiledaemon:libdistributedfiledaemon", 66 "//third_party/googletest:gmock", 67 "//third_party/googletest:gtest_main", 68 ] 69 70 external_deps = [ 71 "ability_base:want", 72 "common_event_service:cesfwk_innerkits", 73 "dataclassification:data_transit_mgr", 74 "dsoftbus:softbus_client", 75 "init:libbegetutil", 76 "ipc:ipc_core", 77 "safwk:system_ability_fwk", 78 "samgr:samgr_proxy", 79 ] 80} 81