• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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")
15import("//foundation/appexecfwk/standard/appexecfwk.gni")
16
17SUBSYSTEM_DIR = "//base/location"
18module_output_path = "location/service"
19
20ohos_unittest("LocatorServiceAbilityTest") {
21  module_out_path = module_output_path
22  sources = [ "$SUBSYSTEM_DIR/location_locator/test/unittest/source/locator_service_test.cpp" ]
23
24  include_dirs = [
25    "$SUBSYSTEM_DIR/location_common/common/include",
26    "$SUBSYSTEM_DIR/location_geocode/geocode/include",
27    "$SUBSYSTEM_DIR/location_gnss/gnss/include",
28    "$SUBSYSTEM_DIR/location_locator/callback/include",
29    "$SUBSYSTEM_DIR/location_locator/locator/include",
30    "$SUBSYSTEM_DIR/location_locator/test/unittest/include",
31    "$SUBSYSTEM_DIR/location_network/network/include",
32    "$SUBSYSTEM_DIR/location_passive/passive/include",
33    "$SUBSYSTEM_DIR/interfaces/innerkits/locator_standard/include",
34    "$SUBSYSTEM_DIR/utils/include",
35    "//base/notification/ces_standard/frameworks/core/include",
36    "//base/notification/ces_standard/interfaces/innerkits/native/include",
37    "//foundation/aafwk/intent/interfaces/innerkits/base/include",
38    "//foundation/aafwk/standard/interfaces/innerkits/base/include",
39    "${aafwk_path}/interfaces/innerkits/want/include",
40    "${aafwk_path}/interfaces/innerkits/want/include/ohos/aafwk/content",
41    "//foundation/appexecfwk/adapter/interfaces/innerkits/appexecfwk_base/include",
42    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base/include",
43    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core/include",
44    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler/include",
45    "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk/",
46    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy/include",
47    "//foundation/resourceschedule/backgroundtaskmanager/interfaces/innerkits/native/include",
48    "//utils/native/base/include",
49    "//utils/system/safwk/native/include",
50  ]
51
52  deps = [
53    "$SUBSYSTEM_DIR/location_common/common:lbsservice_common",
54    "$SUBSYSTEM_DIR/location_locator/locator:lbsservice_locator",
55    "${aafwk_path}/interfaces/innerkits/base:base",
56    "${aafwk_path}/interfaces/innerkits/want:want",
57    "//base/location/interfaces/innerkits/locator_standard:locator_sdk",
58    "//base/notification/ces_standard/frameworks/core:cesfwk_core",
59    "//base/notification/ces_standard/frameworks/native:cesfwk_innerkits",
60    "//base/startup/syspara_lite/interfaces/innerkits/native/syspara:syspara",
61    "//foundation/ace/napi:ace_napi",
62    "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
63    "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk:system_ability_fwk",
64    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
65    "//third_party/googletest:gtest_main",
66    "//utils/native/base:utils",
67  ]
68
69  external_deps = [
70    "ces_standard:cesfwk_innerkits",
71    "eventhandler:libeventhandler",
72    "hisysevent_native:libhisysevent",
73    "hiviewdfx_hilog_native:libhilog",
74    "ipc:ipc_core",
75    "samgr_standard:samgr_proxy",
76    "startup_l2:syspara",
77  ]
78
79  module_out_path = module_output_path
80}
81
82group("unittest") {
83  testonly = true
84  deps = []
85
86  deps += [ ":LocatorServiceAbilityTest" ]
87}
88