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 16module_output_path = "location/common" 17 18ohos_unittest("LocationCommonTest") { 19 module_out_path = module_output_path 20 sources = [ 21 "//base/location/test/location_common/source/common_utils_test.cpp", 22 "//base/location/test/location_common/source/location_common_test.cpp", 23 ] 24 25 include_dirs = [ 26 "//base/location/interfaces/inner_api/include", 27 "//base/location/services/location_locator/locator/include", 28 "//base/location/test/location_common/include", 29 ] 30 31 deps = [ 32 "//base/location/frameworks/location_common/common:lbsservice_common", 33 "//base/location/services/location_locator/locator:lbsservice_locator", 34 "//base/security/access_token/interfaces/innerkits/nativetoken:libnativetoken", 35 "//base/security/access_token/interfaces/innerkits/token_setproc:libtoken_setproc", 36 "//foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk:system_ability_fwk", 37 "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", 38 ] 39 40 external_deps = [ 41 "ability_base:want", 42 "ability_runtime:wantagent_innerkits", 43 "access_token:libaccesstoken_sdk", 44 "c_utils:utils", 45 "common_event_service:cesfwk_innerkits", 46 "hiviewdfx_hilog_native:libhilog", 47 "init:libbegetutil", 48 "ipc:ipc_core", 49 "safwk:system_ability_fwk", 50 "samgr:samgr_proxy", 51 ] 52 53 module_out_path = module_output_path 54} 55 56group("unittest") { 57 testonly = true 58 deps = [] 59 deps += [ ":LocationCommonTest" ] 60} 61