1# Copyright (c) 2022 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 16module_output_path = "hilog/hilog" 17 18config("module_private_config") { 19 visibility = [ ":*" ] 20} 21 22ohos_unittest("HilogToolTest") { 23 module_out_path = module_output_path 24 25 sources = [ "hilogtool_test.cpp" ] 26 27 configs = [ 28 ":module_private_config", 29 "//base/hiviewdfx/hilog/frameworks/libhilog:libhilog_config", 30 ] 31 32 external_deps = [ 33 "c_utils:utils", 34 "hilog:libhilog", 35 ] 36} 37 38ohos_unittest("HilogUtilsTest") { 39 module_out_path = module_output_path 40 41 sources = [ "hilog_utils_test.cpp" ] 42 43 configs = [ 44 ":module_private_config", 45 "//base/hiviewdfx/hilog/frameworks/libhilog:libhilog_config", 46 ] 47 48 external_deps = [ 49 "c_utils:utils", 50 "hilog:libhilog", 51 ] 52} 53 54ohos_unittest("HilogPrintTest") { 55 module_out_path = module_output_path 56 57 sources = [ "hilog_print_test.cpp" ] 58 59 configs = [ 60 ":module_private_config", 61 "//base/hiviewdfx/hilog/frameworks/libhilog:libhilog_config", 62 ] 63 64 external_deps = [ 65 "c_utils:utils", 66 "hilog:libhilog", 67 ] 68} 69 70group("unittest") { 71 testonly = true 72 deps = [ 73 ":HilogPrintTest", 74 ":HilogToolTest", 75 ":HilogUtilsTest", 76 ] 77} 78