# Copyright (c) 2021~2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//base/hiviewdfx/hiview/hiview.gni") import("//build/ohos.gni") import("//build/test.gni") module_output_path = "hiview/hiview/smart_parser" config("smart_parser_test_config") { include_dirs = [ "$hiview_root/utility/smart_parser", "$hiview_root/utility/smart_parser/rule/include", "$hiview_root/utility/smart_parser/feature_analysis/include", ] cflags_cc = [ "-DUNITTEST" ] } ohos_moduletest("SmartParserModuleTest") { sources = [ "$hiview_root/utility/smart_parser/feature_analysis/feature_analysis.cpp", "$hiview_root/utility/smart_parser/feature_analysis/log_util.cpp", "$hiview_root/utility/smart_parser/rule/compose_rule.cpp", "$hiview_root/utility/smart_parser/rule/extract_rule.cpp", "$hiview_root/utility/smart_parser/rule/rule.cpp", "$hiview_root/utility/smart_parser/smart_parser.cpp", "moduletest/common/smart_parser_module_test.cpp", ] configs = [ ":smart_parser_test_config" ] deps = [ "$hiview_base:hiviewbase_static_lib_for_tdd", "//third_party/googletest:gtest_main", "//third_party/jsoncpp:jsoncpp", ] module_out_path = module_output_path resource_config_file = "./resource/ohos_test.xml" }