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