• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 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")
15
16SUBSYSTEM_DIR = "//foundation/communication/ipc"
17IPC_CORE_ROOT = "$SUBSYSTEM_DIR/ipc/native"
18MODULE_OUTPUT_PATH = "ipc"
19
20ohos_unittest("RPCDbinderTest") {
21  module_out_path = MODULE_OUTPUT_PATH
22
23  include_dirs = [
24    "$IPC_CORE_ROOT/c/manager/include",
25    "$SUBSYSTEM_DIR/utils/include",
26    "//foundation/communication/dsoftbus/sdk/transmission/session/cpp/src",
27    "$SUBSYSTEM_DIR/interfaces/innerkits/ipc_core/include",
28    "$IPC_CORE_ROOT/c/rpc/include",
29  ]
30
31  sources = [
32    "dbinder_death_recipient_unittest.cpp",
33    "dbinder_remote_listener_unittest.cpp",
34    "dbinder_service_stub_unittest.cpp",
35    "dbinder_service_unittest.cpp",
36  ]
37
38  configs = []
39
40  deps = [
41    "$SUBSYSTEM_DIR/interfaces/innerkits/ipc_core:ipc_core",
42    "//third_party/googletest:gtest_main",
43  ]
44
45  external_deps = [
46    "c_utils:utils",
47    "dsoftbus:softbus_client",
48    "hilog:libhilog",
49    "ipc:libdbinder",
50  ]
51
52  resource_config_file = "$SUBSYSTEM_DIR/test/resource/ipc/ohos_test.xml"
53}
54
55###############################################################################
56group("unittest") {
57  testonly = true
58  deps = [ ":RPCDbinderTest" ]
59}
60