• 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")
15import("../../../../dsoftbus.gni")
16
17module_output_path = "dsoftbus/transmission"
18ohos_unittest("TransIpcStandardTest") {
19  module_out_path = module_output_path
20  sources = [ "trans_ipc_test.cpp" ]
21  include_dirs = [
22    "$dsoftbus_root_path/core/common/inner_communication",
23    "$dsoftbus_root_path/core/common/include",
24    "$dsoftbus_root_path/interfaces/kits/transport",
25    "$dsoftbus_root_path/sdk/transmission/ipc/standard/include",
26    "$dsoftbus_root_path/sdk/transmission/ipc/standard/src",
27    "$dsoftbus_root_path/tests/sdk/common/include",
28    "$dsoftbus_root_path/core/frame/standard/init/include",
29    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include",
30    "$dsoftbus_root_path/core/bus_center/utils/include",
31    "$softbus_adapter_config/spec_config",
32    "$dsoftbus_root_path/sdk/transmission/ipc/include",
33    "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include",
34    "//utils/system/safwk/native/include",
35    "//base/security/device_auth/interfaces/inner_api",
36    "//commonlibrary/c_utils/base/include",
37    "//third_party/bounds_checking_function/include",
38    "unittest/common/",
39    "$dsoftbus_root_path/sdk/transmission/session/include",
40  ]
41  deps = [
42    "$dsoftbus_root_path/core/common:softbus_utils",
43    "$dsoftbus_root_path/sdk:softbus_client",
44    "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test",
45    "//third_party/bounds_checking_function:libsec_shared",
46    "//third_party/bounds_checking_function:libsec_static",
47    "//third_party/googletest:gtest_main",
48  ]
49  if (is_standard_system) {
50    external_deps = [
51      "c_utils:utils",
52      "hilog:libhilog",
53      "ipc:ipc_core",
54      "ipc:ipc_single",
55    ]
56  } else {
57    external_deps = [
58      "c_utils:utils",
59      "hilog:libhilog",
60      "ipc:ipc_core",
61      "ipc:ipc_single",
62    ]
63  }
64}
65group("unittest") {
66  testonly = true
67  deps = [ ":TransIpcStandardTest" ]
68}
69