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. 13 14import("//build/test.gni") 15 16ROOT_DIR = "//foundation/filemanagement/storage_service/services/storage_daemon" 17 18ohos_unittest("user_manager_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/utils", 29 "//base/security/huks/interfaces/innerkits/huks_standard/main/include", 30 "//foundation/communication/ipc/interfaces/innerkits/libdbinder/include", 31 "//foundation/filemanagement/storage_service/services/common/include", 32 "//base/startup/syspara_lite/interfaces/innerkits/native/syspara/include", 33 ] 34 35 sources = [ 36 "$ROOT_DIR/user/src/mount_manager.cpp", 37 "$ROOT_DIR/user/src/user_manager.cpp", 38 "$ROOT_DIR/user/test/user_manager_test.cpp", 39 "$ROOT_DIR/utils/file_utils.cpp", 40 "$ROOT_DIR/utils/mount_argument_utils.cpp", 41 "$ROOT_DIR/utils/string_utils.cpp", 42 "$ROOT_DIR/utils/test/common/help_utils.cpp", 43 ] 44 45 deps = [ 46 "$ROOT_DIR/crypto:libsdcrypto", 47 "//third_party/googletest:gtest_main", 48 "//utils/native/base:utils", 49 ] 50 51 external_deps = [ 52 "hiviewdfx_hilog_native:libhilog", 53 "ipc:ipc_core", 54 "startup_l2:syspara", 55 ] 56} 57 58group("storage_daemon_user_test") { 59 testonly = true 60 deps = [ ":user_manager_test" ] 61} 62