• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2023 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("//base/location/config.gni")
15import("//build/test.gni")
16
17module_output_path = "location/service"
18ohos_unittest("LocationFenceTest") {
19  module_out_path = module_output_path
20  sources = [
21    "$LOCATION_ROOT_DIR/test/location_fence/source/location_fence_test.cpp",
22    "$LOCATION_ROOT_DIR/test/mock/src/mock_common_utils.cpp",
23  ]
24
25  include_dirs = [
26    "$LOCATION_ROOT_DIR/interfaces/inner_api/include",
27    "$LOCATION_ROOT_DIR/test/location_fence/include",
28    "$LOCATION_ROOT_DIR/test/mock/include",
29  ]
30
31  deps = [
32    "//third_party/googletest:gmock_main",
33    "//third_party/googletest:gtest_main",
34  ]
35
36  external_deps = [
37    "ability_runtime:wantagent_innerkits",
38    "access_token:libaccesstoken_sdk",
39    "c_utils:utils",
40    "hilog:libhilog",
41    "ipc:ipc_core",
42    "location:lbsservice_common",
43    "location:locator_sdk",
44    "napi:ace_napi",
45    "samgr:samgr_proxy",
46  ]
47
48  module_out_path = module_output_path
49}
50
51group("unittest") {
52  testonly = true
53  deps = []
54  deps += [ ":LocationFenceTest" ]
55}
56