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("dfs_error_test") { 18 module_out_path = "filemanagement/dfs_service" 19 sources = [ "dfs_error_test.cpp" ] 20 21 include_dirs = [ "${utils_path}/log/include" ] 22 23 deps = [ 24 "${utils_path}:libdistributedfiledentry", 25 "${utils_path}:libdistributedfileutils", 26 "//third_party/googletest:gmock_main", 27 "//third_party/googletest:gtest_main", 28 ] 29 30 external_deps = [ "hilog:libhilog" ] 31 32 defines = [ "private=public" ] 33 34 use_exceptions = true 35} 36 37ohos_unittest("utils_log_test") { 38 module_out_path = "filemanagement/dfs_service" 39 sources = [ "utils_log_test.cpp" ] 40 41 include_dirs = [ "${utils_path}/log/include" ] 42 43 deps = [ 44 "${utils_path}:libdistributedfiledentry", 45 "${utils_path}:libdistributedfileutils", 46 "//third_party/googletest:gmock_main", 47 "//third_party/googletest:gtest_main", 48 ] 49 50 external_deps = [ "hilog:libhilog" ] 51 52 defines = [ "private=public" ] 53 54 use_exceptions = true 55} 56 57group("cloudsync_sa_log_test") { 58 testonly = true 59 deps = [ 60 ":dfs_error_test", 61 ":utils_log_test", 62 ] 63} 64