• 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"
17
18# DBINDER_TEST_ROOT = "//foundation/communication/ipc/services/dbinder/test"
19MODULE_OUTPUT_PATH = "ipc/services/dbinder"
20
21ohos_moduletest("RPCCLIENTTEST") {
22  module_out_path = MODULE_OUTPUT_PATH
23  include_dirs = [
24    "include",
25    "${SUBSYSTEM_DIR}/utils/include",
26    "${SUBSYSTEM_DIR}/ipc/native/c/adapter/access_token/include",
27  ]
28  sources = [
29    "src/rpc_client_test.cpp",
30    "src/rpc_test.cpp",
31  ]
32  configs = [ "$SUBSYSTEM_DIR:ipc_util_config" ]
33  deps = [ "//third_party/googletest:gtest_main" ]
34
35  external_deps = [
36    "c_utils:utils",
37    "dsoftbus:softbus_client",
38    "ipc:ipc_core",
39    "samgr:samgr_proxy",
40  ]
41}
42
43ohos_moduletest("RPCSERVERTEST") {
44  module_out_path = MODULE_OUTPUT_PATH
45  include_dirs = [
46    "include",
47    "${SUBSYSTEM_DIR}/utils/include",
48  ]
49  sources = [
50    "src/rpc_server_test.cpp",
51    "src/rpc_test.cpp",
52  ]
53  configs = [ "$SUBSYSTEM_DIR:ipc_util_config" ]
54  deps = [ "//third_party/googletest:gtest_main" ]
55
56  external_deps = [
57    "c_utils:utils",
58    "dsoftbus:softbus_client",
59    "ipc:ipc_core",
60    "samgr:samgr_proxy",
61  ]
62}
63
64###############################################################################
65group("moduletest") {
66  testonly = true
67  deps = [
68    ":RPCCLIENTTEST",
69    ":RPCSERVERTEST",
70  ]
71}
72
73###############################################################################
74
75