10704ebd2Sopenharmony_ci# Copyright (C) 2024 Huawei Device Co., Ltd.
20704ebd2Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
30704ebd2Sopenharmony_ci# you may not use this file except in compliance with the License.
40704ebd2Sopenharmony_ci# You may obtain a copy of the License at
50704ebd2Sopenharmony_ci#
60704ebd2Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
70704ebd2Sopenharmony_ci#
80704ebd2Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
90704ebd2Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
100704ebd2Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
110704ebd2Sopenharmony_ci# See the License for the specific language governing permissions and
120704ebd2Sopenharmony_ci# limitations under the License.
130704ebd2Sopenharmony_ci
140704ebd2Sopenharmony_ciimport("../../../../../tools/build/suite.gni")
150704ebd2Sopenharmony_ci
160704ebd2Sopenharmony_cimodule_output_path = "dcts/softbus_base/dsoftbusTest"
170704ebd2Sopenharmony_cidsoftbus_root_path = "../../../../../../../foundation/communication/dsoftbus"
180704ebd2Sopenharmony_ci
190704ebd2Sopenharmony_ciohos_moduletest_suite("socketdsoftbusTest") {
200704ebd2Sopenharmony_ci  sanitize = {
210704ebd2Sopenharmony_ci    cfi = true
220704ebd2Sopenharmony_ci    cfi_cross_dso = true
230704ebd2Sopenharmony_ci    debug = true
240704ebd2Sopenharmony_ci  }
250704ebd2Sopenharmony_ci  module_out_path = module_output_path
260704ebd2Sopenharmony_ci  sources = [
270704ebd2Sopenharmony_ci    "../../common/socket_common.c",
280704ebd2Sopenharmony_ci    "./SocketTestServer.cpp",
290704ebd2Sopenharmony_ci  ]
300704ebd2Sopenharmony_ci
310704ebd2Sopenharmony_ci  include_dirs = [
320704ebd2Sopenharmony_ci    "../../common",
330704ebd2Sopenharmony_ci    "$dsoftbus_root_path/core/common/include",
340704ebd2Sopenharmony_ci    "$dsoftbus_root_path/adapter/common/include",
350704ebd2Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/common",
360704ebd2Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/bus_center",
370704ebd2Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/discovery",
380704ebd2Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/transport",
390704ebd2Sopenharmony_ci  ]
400704ebd2Sopenharmony_ci
410704ebd2Sopenharmony_ci  deps = [ "//third_party/googletest:gtest_main" ]
420704ebd2Sopenharmony_ci  external_deps = [
430704ebd2Sopenharmony_ci    "access_token:libaccesstoken_sdk",
440704ebd2Sopenharmony_ci    "access_token:libnativetoken",
450704ebd2Sopenharmony_ci    "access_token:libtoken_setproc",
460704ebd2Sopenharmony_ci    "c_utils:utils",
470704ebd2Sopenharmony_ci    "dsoftbus:softbus_client",
480704ebd2Sopenharmony_ci    "hilog:libhilog",
490704ebd2Sopenharmony_ci    "ipc:ipc_core",
500704ebd2Sopenharmony_ci    "wifi:wifi_sdk",
510704ebd2Sopenharmony_ci  ]
520704ebd2Sopenharmony_ci  subsystem_name = "communication"
530704ebd2Sopenharmony_ci  part_name = "dsoftbus"
540704ebd2Sopenharmony_ci}
55