• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2021-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("../../../callmanager.gni")
16CALL_MANAGER_PATH = "../../.."
17
18ohos_unittest("tel_call_earthquake_alarm_test") {
19  install_enable = true
20  subsystem_name = "telephony"
21  part_name = "call_manager"
22  test_module = "tel_call_earthquake_alarm_test"
23  module_out_path = part_name + "/" + part_name + "/" + test_module
24
25  sources = [
26    "${CALL_MANAGER_PATH}/frameworks/native/src/call_manager_service_proxy.cpp",
27    "src/call_earthquake_alarm_test.cpp",
28  ]
29  sources += call_manager_sources
30
31  include_dirs = [
32    "${CALL_MANAGER_PATH}/interfaces/innerkits",
33  ]
34  include_dirs += call_manager_include_dirs
35
36  external_deps = [
37    "access_token:libnativetoken_shared",
38    "access_token:libtoken_setproc",
39    "cJSON:cjson",
40    "libphonenumber:phonenumber_standard",
41    "libphonenumber:geocoding",
42    "protobuf:protobuf",
43  ]
44  external_deps += call_manager_external_deps
45
46  deps = [
47    "${CALL_MANAGER_PATH}/frameworks/native:tel_call_manager_api",
48  ]
49
50  defines = [
51    "TELEPHONY_LOG_TAG = \"CallManagerGtest\"",
52    "LOG_DOMAIN = 0xD000F00",
53  ]
54}
55