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("GeocodeServiceAbilityTest") { 20 module_out_path = module_output_path 21 sources = [ 22 "//base/location/test/location_geocode/source/geo_convert_service_test.cpp", 23 ] 24 25 include_dirs = [ 26 "$SUBSYSTEM_DIR/location_geocode/geocode/include", 27 "$SUBSYSTEM_DIR/location_locator/locator/include", 28 "//base/location/interfaces/inner_api/include", 29 "//base/location/test/location_geocode/include", 30 ] 31 32 deps = [ 33 "$SUBSYSTEM_DIR/location_geocode/geocode:lbsservice_geocode", 34 "$SUBSYSTEM_DIR/location_locator/locator:lbsservice_locator", 35 "//base/location/frameworks/location_common/common:lbsservice_common", 36 "//base/security/access_token/interfaces/innerkits/nativetoken:libnativetoken", 37 "//base/security/access_token/interfaces/innerkits/token_setproc:libtoken_setproc", 38 "//base/startup/init/interfaces/innerkits:libbegetutil", 39 "//foundation/arkui/napi:ace_napi", 40 "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core", 41 "//foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk:system_ability_fwk", 42 "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", 43 ] 44 45 external_deps = [ 46 "access_token:libaccesstoken_sdk", 47 "c_utils:utils", 48 "common_event_service:cesfwk_innerkits", 49 "hisysevent_native:libhisysevent", 50 "hiviewdfx_hilog_native:libhilog", 51 "init:libbegetutil", 52 "ipc:ipc_core", 53 "safwk:system_ability_fwk", 54 "samgr:samgr_proxy", 55 ] 56 57 module_out_path = module_output_path 58} 59 60group("unittest") { 61 testonly = true 62 deps = [] 63 deps += [ ":GeocodeServiceAbilityTest" ] 64} 65