1# Copyright (c) 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/test.gni") 15 16ROOT_DIR = "//foundation/filemanagement/storage_service/services/storage_daemon" 17 18ohos_unittest("storage_daemon_clt_test") { 19 module_out_path = "filemanagement/storage_service/storage_daemon" 20 21 defines = [ 22 "STORAGE_LOG_TAG = \"StorageDaemon\"", 23 "LOG_DOMAIN = 0xD004301", 24 ] 25 26 include_dirs = [ 27 "$ROOT_DIR/include", 28 "$ROOT_DIR/client/include", 29 "$ROOT_DIR/utils/test/common", 30 "//foundation/filemanagement/storage_service/services/common/include", 31 "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include", 32 "//foundation/systemabilitymgr/samgr/utils/native/include", 33 ] 34 35 sources = [ 36 "$ROOT_DIR/client/storage_daemon_client.cpp", 37 "$ROOT_DIR/client/test/storage_daemon_client_test.cpp", 38 "$ROOT_DIR/utils/test/common/help_utils.cpp", 39 ] 40 41 deps = [ 42 "//foundation/filemanagement/storage_service/services/storage_daemon:storage_common_utils", 43 "//foundation/filemanagement/storage_service/services/storage_daemon/libfscrypt:libfscryptutils", 44 "//third_party/googletest:gtest_main", 45 ] 46 47 external_deps = [ 48 "c_utils:utils", 49 "hiviewdfx_hilog_native:libhilog", 50 "init:libbegetutil", 51 "ipc:ipc_core", 52 "samgr:samgr_proxy", 53 "storage_service:storage_manager_sa_proxy", 54 ] 55} 56 57group("storage_daemon_client_test") { 58 testonly = true 59 deps = [ ":storage_daemon_clt_test" ] 60} 61