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