169f182c4Sopenharmony_ci# Copyright (c) 2022 Chipsea Technologies (Shenzhen) Corp., Ltd. 269f182c4Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 369f182c4Sopenharmony_ci# you may not use this file except in compliance with the License. 469f182c4Sopenharmony_ci# You may obtain a copy of the License at 569f182c4Sopenharmony_ci# 669f182c4Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 769f182c4Sopenharmony_ci# 869f182c4Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 969f182c4Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 1069f182c4Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1169f182c4Sopenharmony_ci# See the License for the specific language governing permissions and 1269f182c4Sopenharmony_ci# limitations under the License. 1369f182c4Sopenharmony_ci 1469f182c4Sopenharmony_ciimport("//build/test.gni") 1569f182c4Sopenharmony_ciimport("./../../../medical_sensor.gni") 1669f182c4Sopenharmony_ci 1769f182c4Sopenharmony_ciohos_unittest("MedicalNativeTest") { 1869f182c4Sopenharmony_ci module_out_path = "sensors/medical_sensor/interfaces" 1969f182c4Sopenharmony_ci 2069f182c4Sopenharmony_ci sources = [ "unittest/medical_native_test.cpp" ] 2169f182c4Sopenharmony_ci 2269f182c4Sopenharmony_ci include_dirs = [ 2369f182c4Sopenharmony_ci "$SUBSYSTEM_DIR/interfaces/native/include", 2469f182c4Sopenharmony_ci "$SUBSYSTEM_DIR/utils/include", 2569f182c4Sopenharmony_ci ] 2669f182c4Sopenharmony_ci 2769f182c4Sopenharmony_ci deps = [ 2869f182c4Sopenharmony_ci "$SUBSYSTEM_DIR/interfaces/native:medical_ndk_target", 2969f182c4Sopenharmony_ci "$SUBSYSTEM_DIR/utils:libmedical_utils", 3069f182c4Sopenharmony_ci "//third_party/googletest:gmock_main", 3169f182c4Sopenharmony_ci "//third_party/googletest:gtest_main", 3269f182c4Sopenharmony_ci ] 3369f182c4Sopenharmony_ci 3469f182c4Sopenharmony_ci external_deps = [ 3569f182c4Sopenharmony_ci "c_utils:utils", 3669f182c4Sopenharmony_ci "hilog:libhilog", 3769f182c4Sopenharmony_ci "ipc:ipc_core", 3869f182c4Sopenharmony_ci ] 3969f182c4Sopenharmony_ci} 4069f182c4Sopenharmony_ci 4169f182c4Sopenharmony_cigroup("unittest") { 4269f182c4Sopenharmony_ci testonly = true 4369f182c4Sopenharmony_ci deps = [ ":MedicalNativeTest" ] 4469f182c4Sopenharmony_ci} 45