1# Copyright (c) 2022 Chipsea Technologies (Shenzhen) Corp., 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 14#import("//build/config/ohos/rules.gni") 15import("//build/ohos.gni") 16import("//build/test.gni") 17SUBSYSTEM_DIR = "//base/sensors/medical_sensor" 18module_output_path = "sensors/medical_sensor/interfaces" 19ohos_unittest("MedicalJsTest") { 20 module_out_path = module_output_path 21 configs = [ "//arkcompiler/ets_runtime:ark_jsruntime_public_config" ] 22 23 include_dirs = [ 24 "//third_party/node/src", 25 "//native_engine", 26 "$SUBSYSTEM_DIR/interfaces/native/include", 27 "$SUBSYSTEM_DIR/interfaces/plugin/include", 28 "//commonlibrary/c_utils/base/include", 29 "./include", 30 "//third_party/libuv/include", 31 "//foundation/arkui/napi", 32 "//foundation/arkui/napi/interfaces/kits", 33 "//foundation/arkui/napi/native_engine", 34 "//foundation/arkui/napi/native_engine/impl/ark", 35 "//arkcompiler/ets_runtime", 36 ] 37 defines = [ 38 "APP_LOG_TAG = \"medicalJs\"", 39 "LOG_DOMAIN = 0xD002700", 40 ] 41 sources = [ "medical_js_test.cpp" ] 42 deps = [ 43 "$SUBSYSTEM_DIR/interfaces/native:medical_interface_native", 44 "$SUBSYSTEM_DIR/interfaces/plugin:medical", 45 "//arkcompiler/ets_runtime:libark_jsruntime", 46 "//foundation/arkui/napi:ace_napi", 47 "//foundation/arkui/napi/:ace_napi_ark", 48 "//third_party/googletest:gtest", 49 "//third_party/googletest:gtest_main", 50 "//third_party/libuv:uv", 51 ] 52 external_deps = [ 53 "c_utils:utils", 54 "hiviewdfx_hilog_native:libhilog", 55 ] 56 relative_install_dir = "module" 57 part_name = "medical_sensor" 58 subsystem_name = "sensors" 59} 60group("unittest") { 61 testonly = true 62 deps = [ ":MedicalJsTest" ] 63} 64