• 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"
18dsoftbus_root_path = "../../../.."
19
20ohos_unittest("TransClientProxyTest") {
21  module_out_path = module_output_path
22  sources = [ "trans_client_proxy_test.cpp" ]
23
24  include_dirs = [
25    "$dsoftbus_root_path/core/common/include",
26    "$dsoftbus_root_path/core/frame/common/include",
27    "$dsoftbus_root_path/core/transmission/common/include",
28    "$dsoftbus_root_path/core/transmission/ipc/include",
29    "$dsoftbus_root_path/core/transmission/ipc/standard/include",
30    "$dsoftbus_root_path/core/frame/standard/init/include",
31    "$dsoftbus_root_path/core/frame/standard/client_manager/include",
32    "$dsoftbus_root_path/adapter/common/include",
33    "$dsoftbus_root_path/sdk/frame/standard/include",
34    "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include/",
35    "//foundation/window/window_manager/previewer/mock",
36    "//foundation/communication/ipc/interfaces/innerkits/c/ipc/include",
37    "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include",
38  ]
39
40  deps = [
41    "$dsoftbus_root_path/core/common:softbus_utils",
42    "$dsoftbus_root_path/core/frame:softbus_server",
43    "//third_party/googletest:gtest_main",
44  ]
45
46  if (is_standard_system) {
47    external_deps = [ "hilog:libhilog" ]
48  } else {
49    external_deps = [ "hilog:libhilog" ]
50  }
51  external_deps += [
52    "c_utils:utils",
53    "ipc:ipc_core",
54    "samgr:samgr_proxy",
55  ]
56}
57
58ohos_unittest("TransClientProxyStandardTest") {
59  module_out_path = module_output_path
60  sources = [ "trans_client_proxy_standard_test.cpp" ]
61
62  include_dirs = [
63    "$dsoftbus_root_path/core/common/include",
64    "$dsoftbus_root_path/core/frame/common/include",
65    "$dsoftbus_root_path/core/transmission/common/include",
66    "$dsoftbus_root_path/core/transmission/ipc/include",
67    "$dsoftbus_root_path/core/transmission/ipc/standard/include",
68    "$dsoftbus_root_path/core/frame/standard/init/include",
69    "$dsoftbus_root_path/core/frame/standard/client_manager/include",
70    "$dsoftbus_root_path/adapter/common/include",
71    "$dsoftbus_root_path/sdk/frame/standard/include",
72    "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include/",
73    "//foundation/window/window_manager/previewer/mock",
74    "//foundation/communication/ipc/interfaces/innerkits/c/ipc/include",
75    "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include",
76  ]
77
78  deps = [
79    "$dsoftbus_root_path/core/common:softbus_utils",
80    "$dsoftbus_root_path/core/frame:softbus_server",
81    "//third_party/googletest:gtest_main",
82  ]
83
84  if (is_standard_system) {
85    external_deps = [ "hilog:libhilog" ]
86  } else {
87    external_deps = [ "hilog:libhilog" ]
88  }
89  external_deps += [
90    "c_utils:utils",
91    "ipc:ipc_core",
92    "samgr:samgr_proxy",
93  ]
94}
95
96group("unittest") {
97  testonly = true
98  deps = [
99    ":TransClientProxyStandardTest",
100    ":TransClientProxyTest",
101  ]
102}
103