• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2021-2023 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("../../../../../tools/build/suite.gni")
15
16module_output_path = "dcts/softbus_base/transmission/sendstream"
17dsoftbus_root_path = "../../../../../../../foundation/communication/dsoftbus"
18wifi_root_path = "../../../../../../../foundation/communication/wifi/wifi"
19
20ohos_moduletest_suite("DctsSoftBusTransStreamFunTest") {
21  sanitize = {
22    cfi = true
23    cfi_cross_dso = true
24    debug = true
25  }
26
27  module_out_path = module_output_path
28  sources = [
29    "../../common/net_trans_common.c",
30    "../../common/wifi_utils.cpp",
31    "./trans_stream_test.cpp",
32  ]
33
34  include_dirs = [
35    "../../common",
36    "$dsoftbus_root_path/core/common/include",
37    "$dsoftbus_root_path/adapter/common/include",
38    "$dsoftbus_root_path/interfaces/kits/common",
39    "$dsoftbus_root_path/interfaces/kits/bus_center",
40    "$dsoftbus_root_path/interfaces/kits/discovery",
41    "$dsoftbus_root_path/interfaces/kits/transport",
42    "$wifi_root_path/frameworks/native/include",
43    "$wifi_root_path/frameworks/native/interfaces",
44    "$wifi_root_path/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper",
45    "$wifi_root_path/services/wifi_standard/wifi_framework/wifi_toolkit/log",
46  ]
47
48  deps = [ "//third_party/googletest:gtest_main" ]
49  external_deps = [
50    "access_token:libaccesstoken_sdk",
51    "access_token:libnativetoken",
52    "access_token:libtoken_setproc",
53    "c_utils:utils",
54    "dsoftbus:softbus_client",
55    "ipc:ipc_core",
56    "wifi:wifi_sdk",
57  ]
58  subsystem_name = "communication"
59  part_name = "dsoftbus"
60}
61