BUILD.gn 1.9 KB
Newer Older
W
wanghaoxu 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# Copyright (C) 2022 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import("//build/test.gni")

16 17
# SUBSYSTEM_DIR = "//foundation/communication/ipc"
# IPC_TEST_ROOT = "//foundation/communication/ipc/ipc/test"
W
wanghaoxu 已提交
18 19 20 21 22 23
MODULE_OUTPUT_PATH = "ipc"

ohos_unittest("RPCDbinderTest") {
  module_out_path = MODULE_OUTPUT_PATH

  include_dirs = [
24 25
    "//foundation/communication/ipc/ipc/native/c/manager/include",
    "//foundation/communication/ipc/utils/include",
W
wanderer-dl122 已提交
26
    "//foundation/communication/dsoftbus/sdk/transmission/session/cpp/src",
W
wanderer-dl122 已提交
27 28
    "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include",
    "//foundation/communication/ipc/ipc/native/c/rpc/include",
W
wanghaoxu 已提交
29 30
  ]

31
  sources = [
Z
zhangboyuan 已提交
32
    "dbinder_death_recipient_unittest.cpp",
33 34 35 36 37 38
    "dbinder_remote_listener_unittest.cpp",
    "dbinder_service_stub_unittest.cpp",
    "dbinder_service_unittest.cpp",
  ]

  configs = []
W
wanghaoxu 已提交
39

W
wanderer-dl122 已提交
40 41 42 43
  deps = [
    "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
    "//third_party/googletest:gtest_main",
  ]
W
wanghaoxu 已提交
44 45 46

  external_deps = [
    "c_utils:utils",
W
wanderer-dl122 已提交
47
    "dsoftbus:softbus_client",
W
wanghaoxu 已提交
48 49 50 51 52
    "hiviewdfx_hilog_native:libhilog",
    "ipc:libdbinder",
  ]

  resource_config_file =
W
wanderer-dl122 已提交
53
      "//foundation/communication/ipc/test/resource/ipc/ohos_test.xml"
W
wanghaoxu 已提交
54 55 56 57 58
}

###############################################################################
group("unittest") {
  testonly = true
59
  deps = [ ":RPCDbinderTest" ]
W
wanderer-dl122 已提交
60
}