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("//build/test.gni") 15 16SUBSYSTEM_DIR = "//base/location/services" 17module_output_path = "location/service" 18 19ohos_unittest("PassiveAbilityTest") { 20 module_out_path = module_output_path 21 sources = [ 22 "//base/location/test/location_passive/source/passive_ability_stub_test.cpp", 23 "//base/location/test/location_passive/source/passive_ability_test.cpp", 24 ] 25 26 include_dirs = [ 27 "//base/location/interfaces/inner_api/include", 28 "//base/location/test/location_passive/include", 29 "//base/location/test/location_passive/mock/include", 30 "$SUBSYSTEM_DIR/location_locator/locator/include", 31 "$SUBSYSTEM_DIR/location_passive/passive/include", 32 ] 33 34 deps = [ 35 "$SUBSYSTEM_DIR/location_locator/locator:lbsservice_locator", 36 "$SUBSYSTEM_DIR/location_passive/passive:lbsservice_passive", 37 "//base/location/frameworks/location_common/common:lbsservice_common", 38 "//base/location/frameworks/native:locator_sdk", 39 "//base/security/access_token/interfaces/innerkits/nativetoken:libnativetoken", 40 "//base/security/access_token/interfaces/innerkits/token_setproc:libtoken_setproc", 41 "//base/startup/init/interfaces/innerkits:libbegetutil", 42 "//foundation/arkui/napi:ace_napi", 43 "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core", 44 "//foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk:system_ability_fwk", 45 "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", 46 "//third_party/googletest:gmock_main", 47 "//third_party/googletest:gtest_main", 48 ] 49 50 external_deps = [ 51 "access_token:libaccesstoken_sdk", 52 "c_utils:utils", 53 "common_event_service:cesfwk_innerkits", 54 "eventhandler:libeventhandler", 55 "hisysevent_native:libhisysevent", 56 "hiviewdfx_hilog_native:libhilog", 57 "ipc:ipc_core", 58 "safwk:system_ability_fwk", 59 ] 60 61 module_out_path = module_output_path 62} 63 64group("unittest") { 65 testonly = true 66 deps = [] 67 68 deps += [ ":PassiveAbilityTest" ] 69} 70