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. 13import("//base/hiviewdfx/hiview/hiview.gni") 14import("//build/ohos.gni") 15import("//build/test.gni") 16 17module_output_path = "hiview/hiview//bbox_detector" 18 19config("bbox_detector_test_config") { 20 visibility = [ ":*" ] 21 include_dirs = [ 22 "../", 23 "../include", 24 "moduletest", 25 "unittest", 26 "$hiview_root/utility/common_utils/include", 27 "$hiview_root/utility/smart_parser", 28 "$hiview_root/utility/smart_parser/feature_analysis/include", 29 ] 30} 31 32ohos_unittest("BBoxDetectorUnitTest") { 33 sources = [ 34 "../bbox_detector_plugin.cpp", 35 "unittest/bbox_detector_unit_test.cpp", 36 ] 37 38 configs = [ ":bbox_detector_test_config" ] 39 40 external_deps = [ "hisysevent_native:libhisysevent" ] 41 42 cflags = [ "-DUNITTEST" ] 43 44 deps = [ 45 "$hiview_base:hiviewbase_static_lib_for_tdd", 46 "$hiview_root/utility/common_utils:hiview_reliability_common_utils", 47 "$hiview_root/utility/smart_parser:smart_parser", 48 ] 49 50 module_out_path = module_output_path 51} 52 53ohos_moduletest("BBoxDetectorModuleTest") { 54 sources = [ 55 "../bbox_detector_plugin.cpp", 56 "moduletest/bbox_detector_module_test.cpp", 57 ] 58 59 configs = [ ":bbox_detector_test_config" ] 60 61 cflags = [ "-DUNITTEST" ] 62 63 external_deps = [ "hisysevent_native:libhisysevent" ] 64 65 deps = [ 66 "$hiview_base:hiviewbase_static_lib_for_tdd", 67 "$hiview_base/event_store:event_store_source", 68 "$hiview_root/utility/common_utils:hiview_reliability_common_utils", 69 "$hiview_root/utility/smart_parser:smart_parser", 70 ] 71 72 module_out_path = module_output_path 73} 74