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 14import("//build/ohos.gni") 15import("//build/test.gni") 16import("./../../../../medical_sensor.gni") 17 18ohos_unittest("MedicalJsTest") { 19 module_out_path = "sensors/medical_sensor/interfaces" 20 21 include_dirs = [ 22 "$SUBSYSTEM_DIR/interfaces/native/include", 23 "$SUBSYSTEM_DIR/interfaces/plugin/include", 24 "//third_party/libuv/include", 25 "//third_party/node/src", 26 ] 27 28 defines = [ 29 "APP_LOG_TAG = \"medicalJs\"", 30 "LOG_DOMAIN = 0xD002700", 31 ] 32 33 sources = [ "medical_js_test.cpp" ] 34 35 deps = [ 36 "$SUBSYSTEM_DIR/interfaces/native:medical_interface_native", 37 "$SUBSYSTEM_DIR/interfaces/plugin:medical_static", 38 "//third_party/googletest:gtest", 39 "//third_party/googletest:gtest_main", 40 "//third_party/libuv:uv", 41 ] 42 43 external_deps = [ 44 "c_utils:utils", 45 "ets_runtime:libark_jsruntime", 46 "hilog:libhilog", 47 "napi:ace_napi", 48 ] 49 50 relative_install_dir = "module" 51 part_name = "medical_sensor" 52 subsystem_name = "sensors" 53} 54 55group("unittest") { 56 testonly = true 57 deps = [ ":MedicalJsTest" ] 58} 59