15c735df2Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd.
25c735df2Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
35c735df2Sopenharmony_ci# you may not use this file except in compliance with the License.
45c735df2Sopenharmony_ci# You may obtain a copy of the License at
55c735df2Sopenharmony_ci#
65c735df2Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
75c735df2Sopenharmony_ci#
85c735df2Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
95c735df2Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
105c735df2Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
115c735df2Sopenharmony_ci# See the License for the specific language governing permissions and
125c735df2Sopenharmony_ci# limitations under the License.
135c735df2Sopenharmony_ci
145c735df2Sopenharmony_ciimport("//base/location/config.gni")
155c735df2Sopenharmony_ciimport("//build/test.gni")
165c735df2Sopenharmony_ci
175c735df2Sopenharmony_cimodule_output_path = "location/native"
185c735df2Sopenharmony_ci
195c735df2Sopenharmony_ciohos_unittest("GeofenceSdkTest") {
205c735df2Sopenharmony_ci  module_out_path = module_output_path
215c735df2Sopenharmony_ci  sources = [
225c735df2Sopenharmony_ci    "$LOCATION_ROOT_DIR/test/location_geofence/source/geofence_sdk_test.cpp",
235c735df2Sopenharmony_ci    "$LOCATION_ROOT_DIR/test/location_geofence/source/location_gnss_geofence_callback_host_test.cpp",
245c735df2Sopenharmony_ci  ]
255c735df2Sopenharmony_ci
265c735df2Sopenharmony_ci  include_dirs = [ "$LOCATION_ROOT_DIR/test/location_geofence/include" ]
275c735df2Sopenharmony_ci
285c735df2Sopenharmony_ci  sanitize = {
295c735df2Sopenharmony_ci    cfi = true
305c735df2Sopenharmony_ci    cfi_cross_dso = true
315c735df2Sopenharmony_ci    debug = false
325c735df2Sopenharmony_ci    blocklist = "./../../cfi_blocklist.txt"
335c735df2Sopenharmony_ci  }
345c735df2Sopenharmony_ci  branch_protector_ret = "pac_ret"
355c735df2Sopenharmony_ci
365c735df2Sopenharmony_ci  deps = [
375c735df2Sopenharmony_ci    "$LOCATION_ROOT_DIR/frameworks/js/napi:geolocation_static",
385c735df2Sopenharmony_ci    "$LOCATION_ROOT_DIR/frameworks/native/geofence_sdk:geofence_sdk_static",
395c735df2Sopenharmony_ci  ]
405c735df2Sopenharmony_ci
415c735df2Sopenharmony_ci  external_deps = [
425c735df2Sopenharmony_ci    "ability_base:want",
435c735df2Sopenharmony_ci    "ability_base:zuri",
445c735df2Sopenharmony_ci    "ability_runtime:dataobs_manager",
455c735df2Sopenharmony_ci    "ability_runtime:wantagent_innerkits",
465c735df2Sopenharmony_ci    "access_token:libaccesstoken_sdk",
475c735df2Sopenharmony_ci    "access_token:libnativetoken",
485c735df2Sopenharmony_ci    "access_token:libtoken_setproc",
495c735df2Sopenharmony_ci    "access_token:libtokenid_sdk",
505c735df2Sopenharmony_ci    "bundle_framework:appexecfwk_base",
515c735df2Sopenharmony_ci    "bundle_framework:appexecfwk_core",
525c735df2Sopenharmony_ci    "c_utils:utils",
535c735df2Sopenharmony_ci    "common_event_service:cesfwk_innerkits",
545c735df2Sopenharmony_ci    "data_share:datashare_common",
555c735df2Sopenharmony_ci    "data_share:datashare_consumer",
565c735df2Sopenharmony_ci    "hilog:libhilog",
575c735df2Sopenharmony_ci    "hisysevent:libhisysevent",
585c735df2Sopenharmony_ci    "init:libbegetutil",
595c735df2Sopenharmony_ci    "ipc:ipc_core",
605c735df2Sopenharmony_ci    "location:locator_sdk",
615c735df2Sopenharmony_ci    "napi:ace_napi",
625c735df2Sopenharmony_ci    "os_account:os_account_innerkits",
635c735df2Sopenharmony_ci    "relational_store:native_dataability",
645c735df2Sopenharmony_ci    "relational_store:native_rdb",
655c735df2Sopenharmony_ci    "samgr:samgr_proxy",
665c735df2Sopenharmony_ci  ]
675c735df2Sopenharmony_ci
685c735df2Sopenharmony_ci  defines = []
695c735df2Sopenharmony_ci
705c735df2Sopenharmony_ci  module_out_path = module_output_path
715c735df2Sopenharmony_ci}
725c735df2Sopenharmony_ci
735c735df2Sopenharmony_cigroup("unittest") {
745c735df2Sopenharmony_ci  testonly = true
755c735df2Sopenharmony_ci  deps = []
765c735df2Sopenharmony_ci  deps += [ ":GeofenceSdkTest" ]
775c735df2Sopenharmony_ci}
78