• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2021 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("//drivers/hdf_core/adapter/uhdf2/uhdf.gni")
16
17ohos_unittest("tel_ril_adapter_gtest") {
18  install_enable = true
19  subsystem_name = "telephony"
20  part_name = "ril_adapter"
21  test_module = "tel_ril_adapter_gtest"
22  module_out_path = part_name + "/" + test_module
23
24  sources = [
25    "ril_callback_test.cpp",
26    "ril_interface_test.cpp",
27    "zero_branch_test.cpp",
28  ]
29
30  include_dirs = [
31    "include",
32    "//base/telephony/ril_adapter/services/hril/include",
33    "//base/telephony/ril_adapter/services/hril_hdf/include",
34  ]
35  deps = [
36    "//base/telephony/ril_adapter/services/hril:hril",
37    "//base/telephony/ril_adapter/services/hril_hdf:hril_hdf",
38  ]
39  defines = [
40    "TELEPHONY_LOG_TAG = \"RilAdapterGtest\"",
41    "LOG_DOMAIN = 0xD000F00",
42  ]
43
44  # defines += [ "TEL_TEST_PIN_PUK" ]
45  configs = [ "//base/telephony/ril_adapter/utils:utils_config" ]
46  if (is_standard_system) {
47    external_deps = [
48      "c_utils:utils",
49      "drivers_interface_power:libpower_proxy_1.0",
50      "drivers_interface_ril:libril_proxy_1.0",
51      "hdf_core:libhdf_utils",
52      "hiviewdfx_hilog_native:libhilog",
53      "ipc:ipc_single",
54    ]
55  } else {
56    external_deps = [ "hilog:libhilog" ]
57  }
58  external_deps += [ "ipc:ipc_single" ]
59}
60
61group("unittest") {
62  testonly = true
63  deps = [ ":tel_ril_adapter_gtest" ]
64}
65