1# Copyright (c) 2023-2024 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")
16import("../../../../sdk/frame/frame_sdk.gni")
17
18module_output_path = "dsoftbus/transmission"
19
20ohos_unittest("SoftBusFrameStandardTest") {
21  sanitize = {
22    cfi = true
23    cfi_cross_dso = true
24    debug = false
25  }
26  module_out_path = module_output_path
27  sources = [ "softbus_frame_standard_test.cpp" ]
28
29  include_dirs = [
30    "${dsoftbus_root_path}/core/frame/standard/init/include",
31    "${dsoftbus_root_path}/interfaces/kits/common",
32    "${dsoftbus_root_path}/interfaces/kits/discovery",
33    "${dsoftbus_root_path}/sdk/bus_center/manager/include",
34    "${dsoftbus_root_path}/sdk/bus_center/ipc/include",
35    "${dsoftbus_root_path}/sdk/frame/common/include",
36    "${dsoftbus_root_path}/sdk/frame/standard/include",
37    "${dsoftbus_root_path}/sdk/frame/standard/src",
38    "${dsoftbus_root_path}/sdk/transmission/session/include",
39    "${dsoftbus_root_path}/sdk/transmission/ipc/include",
40    "${dsoftbus_root_path}/sdk/transmission/trans_channel/manager/include",
41    "${dsoftbus_root_path}/sdk/transmission/trans_channel/udp/common/include",
42  ]
43
44  deps = [
45    "$dsoftbus_root_path/tests/sdk:softbus_client_static",
46    "${dsoftbus_root_path}/core/common:softbus_utils",
47    "${dsoftbus_root_path}/core/frame:softbus_server",
48  ]
49
50  external_deps = [
51    "c_utils:utils",
52    "googletest:gtest",
53    "googletest:gtest_main",
54    "hilog:libhilog",
55  ]
56
57  if (is_standard_system) {
58    external_deps += [ "ipc:ipc_single" ]
59  }
60}
61
62group("unittest") {
63  testonly = true
64  deps = [ ":SoftBusFrameStandardTest" ]
65}
66