1# Copyright (c) 2023 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 = "../../.." 17 18ohos_unittest("quota_manager_test") { 19 module_out_path = "filemanagement/storage_service/storage_daemon" 20 21 defines = [ "STORAGE_LOG_TAG = \"StorageDaemon\"" ] 22 23 include_dirs = [ 24 "$ROOT_DIR/common/include", 25 "$ROOT_DIR/storage_daemon/include", 26 "$ROOT_DIR/storage_manager/include", 27 ] 28 29 sources = [ 30 "$ROOT_DIR/storage_daemon/quota/quota_manager.cpp", 31 "$ROOT_DIR/storage_daemon/quota/test/quota_manager_test.cpp", 32 ] 33 34 deps = [ 35 "$ROOT_DIR/storage_daemon:storage_common_utils", 36 "//third_party/googletest:gtest_main", 37 ] 38 39 external_deps = [ 40 "c_utils:utils", 41 "hilog:libhilog", 42 "init:libbegetutil", 43 "ipc:ipc_core", 44 ] 45} 46 47group("storage_daemon_quota_test") { 48 testonly = true 49 deps = [ ":quota_manager_test" ] 50} 51