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. 13 14import("//base/msdp/device_status/device_status.gni") 15import("//build/test.gni") 16 17module_output_path = "${device_status_part_name}/devicestatussrv" 18 19config("module_private_config") { 20 visibility = [ ":*" ] 21 22 include_dirs = [ 23 "include", 24 "//utils/system/safwk/native/include", 25 ] 26} 27 28ohos_moduletest("test_devicestatus_module") { 29 module_out_path = module_output_path 30 31 sources = [ "src/devicestatus_module_test.cpp" ] 32 33 configs = [ 34 "${device_status_utils_path}:devicestatus_utils_config", 35 ":module_private_config", 36 ] 37 38 deps = [ 39 "${ability_runtime_path}/frameworks/native/appkit:appkit_native", 40 "${device_status_frameworks_path}/js/napi:stationary", 41 "${device_status_interfaces_path}/innerkits:devicestatus_client", 42 "//drivers/peripheral/sensor/hal:hdi_sensor", 43 "//third_party/googletest:gtest_main", 44 ] 45 46 external_deps = [ 47 "ability_base:base", 48 "ability_base:want", 49 "access_token:libaccesstoken_sdk", 50 "bundle_framework:appexecfwk_base", 51 "bundle_framework:appexecfwk_core", 52 "c_utils:utils", 53 "common_event_service:cesfwk_innerkits", 54 "eventhandler:libeventhandler", 55 "hiviewdfx_hilog_native:libhilog", 56 "ipc:ipc_core", 57 "safwk:system_ability_fwk", 58 "samgr:samgr_proxy", 59 ] 60} 61 62group("moduletest") { 63 testonly = true 64 deps = [] 65 66 deps += [ ":test_devicestatus_module" ] 67} 68