1# Copyright (C) 2021-2025 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 = "dfs_service/dfs_service_daemon/" 17 18config("module_private_config") { 19 visibility = [ ":*" ] 20 21 include_dirs = [ 22 "${distributedfile_path}/frameworks/native/distributed_file_inner/include", 23 "${services_path}/distributedfiledaemon/include", 24 "${services_path}/distributedfiledaemon/include/ipc", 25 ] 26} 27 28ohos_moduletest("DistributedFileDaemonServiceTest") { 29 module_out_path = module_output_path 30 31 sources = [ "src/distributedfiledaemon_service_test.cpp" ] 32 33 configs = [ 34 ":module_private_config", 35 "${utils_path}:compiler_configs", 36 ] 37 38 defines = [ 39 "private=public", 40 "LOG_TAG=\"distributedfileTest\"", 41 ] 42 43 deps = [ 44 "${services_path}/distributedfiledaemon:distributed_file_daemon_kit_inner", 45 "${services_path}/distributedfiledaemon:libdistributedfiledaemon", 46 "${utils_path}:libdistributedfileutils", 47 ] 48 49 external_deps = [ 50 "ability_base:want", 51 "ability_base:zuri", 52 "access_token:libaccesstoken_sdk", 53 "app_file_service:remote_file_share_native", 54 "app_file_service:sandbox_helper_native", 55 "c_utils:utils", 56 "common_event_service:cesfwk_innerkits", 57 "dataclassification:data_transit_mgr", 58 "device_auth:deviceauth_sdk", 59 "device_manager:devicemanagersdk", 60 "dsoftbus:softbus_client", 61 "eventhandler:libeventhandler", 62 "file_api:securitylabel", 63 "googletest:gmock_main", 64 "googletest:gtest_main", 65 "hilog:libhilog", 66 "hisysevent:libhisysevent", 67 "init:libbegetutil", 68 "ipc:ipc_single", 69 "os_account:os_account_innerkits", 70 "safwk:system_ability_fwk", 71 "samgr:samgr_proxy", 72 "storage_service:storage_manager_sa_proxy", 73 "zlib:shared_libz", 74 ] 75} 76