• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2024-2024 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("distributed_communication_test") {
19  install_enable = true
20  subsystem_name = "telephony"
21  part_name = "call_manager"
22  test_module = "distributed_communication_test"
23  module_out_path = part_name + "/" + part_name + "/" + test_module
24  sanitize = {
25    cfi = true
26    cfi_cross_dso = true
27    debug = false
28    blocklist = "../../cfi_blocklist.txt"
29  }
30  branch_protector_ret = "pac_ret"
31
32  sources = [
33    "src/distributed_communication_manager_test.cpp",
34    "src/distributed_data_test.cpp",
35    "src/distributed_dev_observer_test.cpp",
36    "src/distributed_dev_switch_test.cpp",
37    "src/distributed_transmission_test.cpp",
38    "src/interoperable_client_manager_test.cpp",
39    "src/interoperable_communication_manager_test.cpp",
40    "src/interoperable_data_controller_test.cpp",
41    "src/interoperable_device_observer_test.cpp",
42    "src/interoperable_server_manager_test.cpp",
43  ]
44  sources += call_manager_sources
45
46  include_dirs = []
47  include_dirs += call_manager_include_dirs
48
49  external_deps = [
50    "cJSON:cjson",
51    "libphonenumber:phonenumber_standard",
52  ]
53  external_deps += call_manager_external_deps
54
55  remove_configs = [ "//build/config/compiler:no_exceptions" ]
56
57  deps = [
58    "${CALL_MANAGER_PATH}/frameworks/native:tel_call_manager_api",
59  ]
60
61  defines = [
62    "TELEPHONY_LOG_TAG = \"CallManagerGtest\"",
63    "LOG_DOMAIN = 0xD000F00",
64    "private = public",
65    "protected = public",
66    "ABILITY_BLUETOOTH_SUPPORT = 0x1",
67  ]
68}
69