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("//base/hiviewdfx/hiview/hiview.gni") 15import("//build/test.gni") 16module_output_path = "hiview/hiview/plugins/reliability" 17ohos_moduletest("FreezeDetectorPluginModuleTest") { 18 module_out_path = module_output_path 19 20 include_dirs = [ 21 "../../unittest/common", 22 "$closed_source_base/components/logcomposer/include", 23 "$hiview_base_root/include", 24 "$hiview_root/include", 25 ] 26 27 sources = [ "freeze_detector_plugin_module_test.cpp" ] 28 29 configs = [ 30 "../../..:freeze_detector_config", 31 "../..:freezedetectors_test_config", 32 "../../../../../../../plugin_management:hiview_plugin_management_config", 33 "../../../../../common/common_utils:hiview_reliability_common_utils_config", 34 ] 35 36 deps = [ 37 "$closed_source_base/system:hiview_oal_system", 38 "$closed_source_utility:hiview_json_utility", 39 "$hiview_base:hiviewbase_static_lib_for_tdd", 40 "$hiview_base_root/plugins/engine/engine_event_dispatcher:engine_event_dispatcher", 41 "$hiview_base_root/plugins/eventlogger:event_logger", 42 "$hiview_base_root/plugins/reliability/common/common_utils:hiview_reliability_common_utils", 43 "$hiview_root/plugin_management:hiview_plugin_management", 44 "../..:freezedetectors_test_source", 45 ] 46 47 external_deps = [ "googletest:gtest_main" ] 48} 49 50group("moduletest") { 51 testonly = true 52 deps = [ ":FreezeDetectorPluginModuleTest" ] 53} 54