1# Copyright (c) 2022-2023 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("//build/test.gni") 15import("../../../device_status.gni") 16 17module_output_path = "${device_status_part_name}/device_status/unit_out" 18 19config("module_private_config") { 20 visibility = [ ":*" ] 21 22 include_dirs = [ "include" ] 23} 24 25ohos_systemtest("DeviceStatusClientTest") { 26 module_out_path = module_output_path 27 28 sources = [ "./src/devicestatus_client_test.cpp" ] 29 30 configs = [ 31 "${device_status_utils_path}:devicestatus_utils_config", 32 ":module_private_config", 33 ] 34 35 deps = [ 36 "${device_status_frameworks_path}/js/napi:stationary", 37 "${device_status_interfaces_path}/innerkits:devicestatus_client", 38 ] 39 40 external_deps = [ 41 "ability_base:base", 42 "ability_base:want", 43 "access_token:libaccesstoken_sdk", 44 "access_token:libnativetoken_shared", 45 "access_token:libtokensetproc_shared", 46 "bundle_framework:appexecfwk_base", 47 "bundle_framework:appexecfwk_core", 48 "c_utils:utils", 49 "common_event_service:cesfwk_innerkits", 50 "data_share:datashare_consumer", 51 "eventhandler:libeventhandler", 52 "googletest:gtest_main", 53 "hilog:libhilog", 54 "image_framework:image_native", 55 "ipc:ipc_single", 56 "safwk:system_ability_fwk", 57 "samgr:samgr_proxy", 58 ] 59} 60 61group("systemtest") { 62 testonly = true 63 deps = [] 64 65 deps += [ ":DeviceStatusClientTest" ] 66} 67