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") 15import("//foundation/filemanagement/dfs_service/distributedfile.gni") 16 17ohos_unittest("dentry_meta_file_test") { 18 module_out_path = "filemanagement/dfs_service" 19 20 sources = [ "dentry_meta_file_test.cpp" ] 21 22 include_dirs = [ "${utils_path}/dentry/include" ] 23 24 deps = [ 25 "${utils_path}:libdistributedfiledentry", 26 "//third_party/googletest:gmock_main", 27 "//third_party/googletest:gtest_main", 28 ] 29 30 external_deps = [ "c_utils:utils" ] 31 32 defines = [ "private=public" ] 33 defines += [ 34 "LOG_DOMAIN=0xD004307", 35 "LOG_TAG=\"CLOUDSYNC_SA\"", 36 ] 37} 38 39ohos_unittest("dentry_file_utils_test") { 40 module_out_path = "filemanagement/dfs_service" 41 42 sources = [ "dentry_file_utils_test.cpp" ] 43 44 include_dirs = [ "${utils_path}/dentry/include" ] 45 46 deps = [ 47 "${utils_path}:libdistributedfiledentry", 48 "//third_party/googletest:gmock_main", 49 "//third_party/googletest:gtest_main", 50 ] 51 52 external_deps = [ "c_utils:utils" ] 53 54 defines = [ "private=public" ] 55 defines += [ 56 "LOG_DOMAIN=0xD004307", 57 "LOG_TAG=\"CLOUDSYNC_SA\"", 58 ] 59 use_exceptions = true 60} 61group("cloudsync_sa_dentry_test") { 62 testonly = true 63 deps = [ 64 ":dentry_file_utils_test", 65 ":dentry_meta_file_test", 66 ] 67} 68