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 16ohos_unittest("notification_test") { 17 module_out_path = "filemanagement/storage_service/storage_manager" 18 19 sources = [ 20 "//foundation/filemanagement/storage_service/services/storage_manager/volume/src/notification.cpp", 21 "notification_test.cpp", 22 ] 23 24 include_dirs = [ 25 "//foundation/filemanagement/storage_service/interfaces/innerkits/storage_manager/native", 26 "//foundation/filemanagement/storage_service/services/common/include", 27 "//foundation/filemanagement/storage_service/services/storage_daemon/include", 28 "//foundation/filemanagement/storage_service/services/storage_manager/include", 29 "//foundation/filemanagement/storage_service/utils/include", 30 "include", 31 "//utils/system/safwk/native/include", 32 "//commonlibrary/c_utils/base/include", 33 ] 34 35 defines = [ 36 "STORAGE_LOG_TAG = \"StorageManager\"", 37 "LOG_DOMAIN = 0xD004300", 38 ] 39 40 deps = [ "//third_party/googletest:gtest_main" ] 41 42 external_deps = [ 43 "ability_base:base", 44 "ability_base:want", 45 "c_utils:utils", 46 "common_event_service:cesfwk_innerkits", 47 "hiviewdfx_hilog_native:libhilog", 48 "ipc:ipc_core", 49 "safwk:system_ability_fwk", 50 "samgr:samgr_proxy", 51 "storage_service:storage_manager_sa_proxy", 52 ] 53} 54 55ohos_unittest("volume_manager_service_test") { 56 module_out_path = "filemanagement/storage_service/storage_manager" 57 58 sources = [ 59 "//foundation/filemanagement/storage_service/services/storage_manager/disk/src/disk_manager_service.cpp", 60 "//foundation/filemanagement/storage_service/services/storage_manager/storage_daemon_communication/src/storage_daemon_communication.cpp", 61 "//foundation/filemanagement/storage_service/services/storage_manager/volume/src/notification.cpp", 62 "//foundation/filemanagement/storage_service/services/storage_manager/volume/src/volume_manager_service.cpp", 63 "volume_manager_service_test.cpp", 64 ] 65 66 include_dirs = [ 67 "//foundation/filemanagement/storage_service/interfaces/innerkits/storage_manager/native", 68 "//foundation/filemanagement/storage_service/services/common/include", 69 "//foundation/filemanagement/storage_service/services/storage_daemon/include", 70 "//foundation/filemanagement/storage_service/services/storage_manager/include", 71 "//foundation/filemanagement/storage_service/interfaces/innerkits/storage_manager/native", 72 "//foundation/filemanagement/storage_service/utils/include", 73 "include", 74 "//utils/system/safwk/native/include", 75 "//commonlibrary/c_utils/base/include", 76 ] 77 78 defines = [ 79 "STORAGE_LOG_TAG = \"StorageManager\"", 80 "LOG_DOMAIN = 0xD004300", 81 ] 82 83 deps = [ "//third_party/googletest:gtest_main" ] 84 85 external_deps = [ 86 "ability_base:base", 87 "ability_base:want", 88 "c_utils:utils", 89 "common_event_service:cesfwk_innerkits", 90 "hiviewdfx_hilog_native:libhilog", 91 "ipc:ipc_core", 92 "safwk:system_ability_fwk", 93 "samgr:samgr_proxy", 94 "storage_service:storage_manager_sa_proxy", 95 ] 96} 97 98group("storage_manager_volume_test") { 99 testonly = true 100 deps = [ 101 ":notification_test", 102 ":volume_manager_service_test", 103 ] 104} 105