1# Copyright (c) 2021 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 = "hiviewdfx/hilog" 17 18config("module_private_config") { 19 visibility = [ ":*" ] 20} 21 22ohos_moduletest("HiLogNDKTest") { 23 module_out_path = module_output_path 24 25 sources = [ 26 "moduletest/common/hilog_base_ndk_test.cpp", 27 "moduletest/common/hilog_ndk_test.cpp", 28 ] 29 30 configs = [ ":module_private_config" ] 31 32 deps = [ "//third_party/googletest:gtest_main" ] 33 34 external_deps = [ 35 "hilog_native:libhilog", 36 "hilog_native:libhilog_base", 37 "init:libbegetutil", 38 ] 39 40 include_dirs = [ 41 "//base/hiviewdfx/hilog/interfaces/native/innerkits/include", 42 "//base/hiviewdfx/hilog/frameworks/libhilog/include", 43 ] 44} 45 46ohos_moduletest("HiLogAdapterTest") { 47 module_out_path = module_output_path 48 49 sources = [ "moduletest/common/adapter_test.cpp" ] 50 51 configs = [ ":module_private_config" ] 52 53 deps = [ "//third_party/googletest:gtest_main" ] 54 55 external_deps = [ "hilog_native:libhilog" ] 56 57 include_dirs = [ 58 "//base/hiviewdfx/hilog/adapter", 59 "//base/hiviewdfx/hilog/frameworks/libhilog/param/include", 60 "//base/hiviewdfx/hilog/frameworks/libhilog/utils/include/", 61 ] 62} 63 64group("hilog_moduletest") { 65 testonly = true 66 deps = [ 67 ":HiLogAdapterTest", 68 ":HiLogNDKTest", 69 ] 70} 71 72group("hilog_unittest") { 73 testonly = true 74 deps = [] 75 76 deps += [ "unittest/common:unittest" ] 77} 78