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 ] 33 34 sources = [ 35 "$ROOT_DIR/user/src/mount_manager.cpp", 36 "$ROOT_DIR/user/src/user_manager.cpp", 37 "$ROOT_DIR/user/test/user_manager_test.cpp", 38 "$ROOT_DIR/utils/mount_argument_utils.cpp", 39 "$ROOT_DIR/utils/test/common/help_utils.cpp", 40 ] 41 42 deps = [ 43 "$ROOT_DIR/crypto:libsdcrypto", 44 "//foundation/filemanagement/storage_service/services/storage_daemon:storage_common_utils", 45 "//third_party/googletest:gtest_main", 46 ] 47 48 external_deps = [ 49 "c_utils:utils", 50 "hiviewdfx_hilog_native:libhilog", 51 "init:libbegetutil", 52 "ipc:ipc_core", 53 ] 54} 55 56group("storage_daemon_user_test") { 57 testonly = true 58 deps = [ ":user_manager_test" ] 59} 60