• 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")
15
16SUBSYSTEM_DIR = "//base/location/services"
17module_output_path = "location/service"
18
19ohos_unittest("NetworkAbilityTest") {
20  module_out_path = module_output_path
21  sources = [
22    "//base/location/test/location_network/source/network_ability_stub_test.cpp",
23    "//base/location/test/location_network/source/network_ability_test.cpp",
24  ]
25
26  include_dirs = [
27    "//base/location/interfaces/inner_api/include",
28    "//base/location/test/location_network/include",
29    "//base/location/test/location_network/mock/include",
30    "$SUBSYSTEM_DIR/location_locator/locator/include",
31    "$SUBSYSTEM_DIR/location_network/network/include",
32  ]
33
34  deps = [
35    "$SUBSYSTEM_DIR/location_locator/locator:lbsservice_locator",
36    "$SUBSYSTEM_DIR/location_network/network:lbsservice_network",
37    "//base/location/frameworks/location_common/common:lbsservice_common",
38    "//base/location/frameworks/native:locator_sdk",
39    "//base/security/access_token/interfaces/innerkits/nativetoken:libnativetoken",
40    "//base/security/access_token/interfaces/innerkits/token_setproc:libtoken_setproc",
41    "//base/startup/init/interfaces/innerkits:libbegetutil",
42    "//foundation/arkui/napi:ace_napi",
43    "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
44    "//foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk:system_ability_fwk",
45    "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
46    "//third_party/googletest:gmock_main",
47    "//third_party/googletest:gtest_main",
48  ]
49
50  external_deps = [
51    "ability_base:want",
52    "access_token:libaccesstoken_sdk",
53    "c_utils:utils",
54    "common_event_service:cesfwk_innerkits",
55    "eventhandler:libeventhandler",
56    "hisysevent_native:libhisysevent",
57    "hiviewdfx_hilog_native:libhilog",
58  ]
59
60  module_out_path = module_output_path
61}
62
63group("unittest") {
64  testonly = true
65  deps = []
66
67  deps += [ ":NetworkAbilityTest" ]
68}
69