# Copyright (C) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/test.gni") import("//foundation/appexecfwk/standard/appexecfwk.gni") SUBSYSTEM_DIR = "//base/location" module_output_path = "location/service" ohos_unittest("LocatorServiceAbilityTest") { module_out_path = module_output_path sources = [ "$SUBSYSTEM_DIR/location_locator/test/unittest/source/locator_service_test.cpp" ] include_dirs = [ "$SUBSYSTEM_DIR/location_common/common/include", "$SUBSYSTEM_DIR/location_geocode/geocode/include", "$SUBSYSTEM_DIR/location_gnss/gnss/include", "$SUBSYSTEM_DIR/location_locator/callback/include", "$SUBSYSTEM_DIR/location_locator/locator/include", "$SUBSYSTEM_DIR/location_locator/test/unittest/include", "$SUBSYSTEM_DIR/location_network/network/include", "$SUBSYSTEM_DIR/location_passive/passive/include", "$SUBSYSTEM_DIR/interfaces/innerkits/locator_standard/include", "$SUBSYSTEM_DIR/utils/include", "//base/notification/ces_standard/frameworks/core/include", "//base/notification/ces_standard/interfaces/innerkits/native/include", "//foundation/aafwk/intent/interfaces/innerkits/base/include", "//foundation/aafwk/standard/interfaces/innerkits/base/include", "${aafwk_path}/interfaces/innerkits/want/include", "${aafwk_path}/interfaces/innerkits/want/include/ohos/aafwk/content", "//foundation/appexecfwk/adapter/interfaces/innerkits/appexecfwk_base/include", "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base/include", "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core/include", "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler/include", "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk/", "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy/include", "//foundation/resourceschedule/backgroundtaskmanager/interfaces/innerkits/native/include", "//utils/native/base/include", "//utils/system/safwk/native/include", ] deps = [ "$SUBSYSTEM_DIR/location_common/common:lbsservice_common", "$SUBSYSTEM_DIR/location_locator/locator:lbsservice_locator", "${aafwk_path}/interfaces/innerkits/base:base", "${aafwk_path}/interfaces/innerkits/want:want", "//base/location/interfaces/innerkits/locator_standard:locator_sdk", "//base/notification/ces_standard/frameworks/core:cesfwk_core", "//base/notification/ces_standard/frameworks/native:cesfwk_innerkits", "//base/startup/syspara_lite/interfaces/innerkits/native/syspara:syspara", "//foundation/ace/napi:ace_napi", "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core", "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk:system_ability_fwk", "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", "//third_party/googletest:gtest_main", "//utils/native/base:utils", ] external_deps = [ "ces_standard:cesfwk_innerkits", "eventhandler:libeventhandler", "hisysevent_native:libhisysevent", "hiviewdfx_hilog_native:libhilog", "ipc:ipc_core", "samgr_standard:samgr_proxy", "startup_l2:syspara", ] module_out_path = module_output_path } group("unittest") { testonly = true deps = [] deps += [ ":LocatorServiceAbilityTest" ] }