adjust gn files Signed-off-by:xdurainbow<liudongmiao@huawei.com>

Signed-off-by: Mark <liudongmiao@huawei.com>
This commit is contained in:
Mark 2023-05-05 12:39:13 +00:00
parent c5a67dfc77
commit 3d36bc8fe5
189 changed files with 840 additions and 835 deletions

View File

@ -11,7 +11,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("dsoftbus.gni")
lite_component("dsoftbus") { lite_component("dsoftbus") {
features = [ features = [

View File

@ -11,7 +11,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../dsoftbus.gni")
if (defined(ohos_lite)) { if (defined(ohos_lite)) {
import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/component/lite_component.gni")

View File

@ -1,17 +1,18 @@
{ {
"name": "@openharmony/dsoftbus", "name": "@openharmony/dsoftbus",
"version": "3.1.0", "version": "4.0",
"description": "dsoftbus", "description": "dsoftbus",
"publishAs": "code-segment", "publishAs": "code-segment",
"segment": {
"destPath": "foundation/communication/dsoftbus"
},
"dirs": {},
"scripts": { "scripts": {
"install": "DEST_PATH=${DEP_BUNDLE_BASE}/foundation/communication/dsoftbus && mkdir -p $DEST_PATH && cp -r ./* $DEST_PATH" "install": "DEST_PATH=${DEP_BUNDLE_BASE}/foundation/communication/dsoftbus && mkdir -p $DEST_PATH && cp -r ./* $DEST_PATH"
}, },
"author": {}, "author": {},
"repository": "", "repository": "",
"license": "Apache License 2.0", "license": "Apache License 2.0",
"segment": {
"destPath": "foundation/communication/dsoftbus"
},
"component": { "component": {
"name": "dsoftbus", "name": "dsoftbus",
"subsystem": "communication", "subsystem": "communication",
@ -39,8 +40,8 @@
"dsoftbus_standard_feature_dfinder_support_multi_nif", "dsoftbus_standard_feature_dfinder_support_multi_nif",
"dsoftbus_feature_protocol_newip" "dsoftbus_feature_protocol_newip"
], ],
"rom": "967KB", "rom": "3000KB",
"ram": "28MB", "ram": "40MB",
"deps": { "deps": {
"components": [ "components": [
"ability_base", "ability_base",

View File

@ -11,14 +11,14 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../dsoftbus.gni")
if (defined(ohos_lite)) { if (defined(ohos_lite)) {
lite_component("softbus_server") { lite_component("softbus_server") {
if (ohos_kernel_type == "liteos_m") { if (ohos_kernel_type == "liteos_m") {
features = [ features = [
"frame:softbus_server_frame", "frame:softbus_server_frame",
"$dsoftbus_root_path/core/common:softbus_utils", "common:softbus_utils",
"$dsoftbus_root_path/adapter:softbus_adapter", "$dsoftbus_root_path/adapter:softbus_adapter",
] ]
} else { } else {

View File

@ -11,11 +11,9 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import( import("../../dsoftbus.gni")
"//foundation/communication/dsoftbus/core/connection/common/conn_common.gni") import("../connection/common/conn_common.gni")
import( import("../transmission/common/trans_common.gni")
"//foundation/communication/dsoftbus/core/transmission/common/trans_common.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni")
common_utils_src = [ common_utils_src = [
"bitmap/softbus_bitmap.c", "bitmap/softbus_bitmap.c",

View File

@ -11,17 +11,14 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//foundation/communication/dsoftbus/core/adapter/core_adapter.gni") import("../../dsoftbus.gni")
import( import("../adapter/core_adapter.gni")
"//foundation/communication/dsoftbus/core/authentication/authentication.gni") import("../authentication/authentication.gni")
import( import("../bus_center/bus_center_server.gni")
"//foundation/communication/dsoftbus/core/bus_center/bus_center_server.gni") import("../common/security/permission/permission.gni")
import( import("../connection/conn.gni")
"//foundation/communication/dsoftbus/core/common/security/permission/permission.gni") import("../discovery/disc.gni")
import("//foundation/communication/dsoftbus/core/connection/conn.gni") import("../transmission/trans.gni")
import("//foundation/communication/dsoftbus/core/discovery/disc.gni")
import("//foundation/communication/dsoftbus/core/transmission/trans.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni")
dsoftbus_server_common_src = dsoftbus_server_common_src =
auth_server_src + bus_center_server_src + conn_manager_src + auth_server_src + bus_center_server_src + conn_manager_src +

View File

@ -11,23 +11,22 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
ability_base_path = "//foundation/ability/ability_base"
ability_runtime_path = "//foundation/ability/ability_runtime" ability_runtime_path = "//foundation/ability/ability_runtime"
ability_runtime_inner_api_path = "${ability_runtime_path}/interfaces/inner_api" ability_runtime_inner_api_path = "${ability_runtime_path}/interfaces/inner_api"
ability_runtime_kits_path = "${ability_runtime_path}/frameworks/kits" ability_runtime_kits_path = "${ability_runtime_path}/frameworks/kits"
ability_runtime_services_path = "${ability_runtime_path}/services" ability_runtime_services_path = "${ability_runtime_path}/services"
hispark_pegasus_sdk_path = "//device/soc/hisilicon/hi3861v100/sdk_liteos" hispark_pegasus_sdk_path = "//device/soc/hisilicon/hi3861v100/sdk_liteos"
dsoftbus_root_path = "//foundation/communication/dsoftbus" dsoftbus_root_path = "//foundation/communication/dsoftbus"
dsoftbus_sdk_path = "//foundation/communication/dsoftbus/sdk" dsoftbus_sdk_path = "${dsoftbus_root_path}/sdk"
dsoftbus_core_path = "//foundation/communication/dsoftbus/core" dsoftbus_core_path = "${dsoftbus_root_path}/core"
ability_base_path = "//foundation/ability/ability_base" dsoftbus_test_path = "${dsoftbus_root_path}/tests"
dsoftbus_test_path = "//foundation/communication/dsoftbus/tests"
declare_args() { declare_args() {
softbus_adapter_common = "//foundation/communication/dsoftbus/adapter/common" softbus_adapter_common = "${dsoftbus_root_path}/adapter/common"
softbus_adapter_config = softbus_adapter_config = "${dsoftbus_root_path}/adapter/default_config"
"//foundation/communication/dsoftbus/adapter/default_config"
dsoftbus_feature_product_config_path = dsoftbus_feature_product_config_path =
"//foundation/communication/dsoftbus/adapter/default_config" "${dsoftbus_root_path}/adapter/default_config"
} }
declare_args() { declare_args() {

View File

@ -11,12 +11,11 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../dsoftbus.gni")
import("bus_center/bus_center_sdk.gni")
import("//foundation/communication/dsoftbus/sdk/bus_center/bus_center_sdk.gni") import("discovery/disc_sdk.gni")
import("//foundation/communication/dsoftbus/sdk/discovery/disc_sdk.gni") import("frame/frame_sdk.gni")
import("//foundation/communication/dsoftbus/sdk/frame/frame_sdk.gni") import("transmission/trans_sdk.gni")
import("//foundation/communication/dsoftbus/sdk/transmission/trans_sdk.gni")
common_client_src = bus_center_sdk_src + disc_sdk_src + common_client_src = bus_center_sdk_src + disc_sdk_src +
softbus_client_frame_src + trans_session_manager_sdk_src softbus_client_frame_src + trans_session_manager_sdk_src

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../dsoftbus.gni")
group("unittest") { group("unittest") {
testonly = true testonly = true

View File

@ -14,9 +14,8 @@
import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/component/lite_component.gni")
import("//build/ohos.gni") import("//build/ohos.gni")
import("//build/test.gni") import("//build/test.gni")
import( import("../../../adapter/common/net/bluetooth/net_bluetooth.gni")
"//foundation/communication/dsoftbus/adapter/common/net/bluetooth/net_bluetooth.gni") import("../../../dsoftbus.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni")
module_output_path = "dsoftbus/adapter" module_output_path = "dsoftbus/adapter"
@ -27,9 +26,7 @@ ohos_unittest("AdapterBleGattTest") {
"softbus_adapter_ble_gatt_test.cpp", "softbus_adapter_ble_gatt_test.cpp",
] ]
include_dirs = [ include_dirs = [ "../../../adapter/common/net/bluetooth/include" ]
"//foundation/communication/dsoftbus/adapter/common/net/bluetooth/include",
]
deps = [ deps = [
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
@ -56,9 +53,7 @@ ohos_unittest("AdapterBleGattServerTest") {
"softbus_adapter_ble_gatt_server_test.cpp", "softbus_adapter_ble_gatt_server_test.cpp",
] ]
include_dirs = [ include_dirs = [ "../../../adapter/common/net/bluetooth/include" ]
"//foundation/communication/dsoftbus/adapter/common/net/bluetooth/include",
]
deps = [ deps = [
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
@ -85,9 +80,7 @@ ohos_unittest("AdapterBleGattClientTest") {
"softbus_adapter_ble_gatt_client_test.cpp", "softbus_adapter_ble_gatt_client_test.cpp",
] ]
include_dirs = [ include_dirs = [ "../../../adapter/common/net/bluetooth/include" ]
"//foundation/communication/dsoftbus/adapter/common/net/bluetooth/include",
]
deps = [ deps = [
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
@ -111,9 +104,7 @@ ohos_unittest("AdapterBtUtilsTest") {
module_out_path = module_output_path module_out_path = module_output_path
sources = [ "adapter_bt_utils_test.cpp" ] sources = [ "adapter_bt_utils_test.cpp" ]
include_dirs = [ include_dirs = [ "../../../adapter/common/net/bluetooth/include" ]
"//foundation/communication/dsoftbus/adapter/common/net/bluetooth/include",
]
deps = [ deps = [
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
@ -140,9 +131,7 @@ ohos_unittest("AdapterBtCommonTest") {
"softbus_adapter_bt_common_test.cpp", "softbus_adapter_bt_common_test.cpp",
] ]
include_dirs = [ include_dirs = [ "../../../adapter/common/net/bluetooth/include" ]
"//foundation/communication/dsoftbus/adapter/common/net/bluetooth/include",
]
deps = [ deps = [
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",

View File

@ -15,7 +15,7 @@
import("//build/config/features.gni") import("//build/config/features.gni")
import("//build/ohos.gni") import("//build/ohos.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../dsoftbus.gni")
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("SoftBusAdapterHiSysEventFuzzTest") { ohos_fuzztest("SoftBusAdapterHiSysEventFuzzTest") {

View File

@ -13,12 +13,13 @@
#####################hydra-fuzz################### #####################hydra-fuzz###################
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../dsoftbus.gni")
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("SoftBusAdapterRangeFuzzTest") { ohos_fuzztest("SoftBusAdapterRangeFuzzTest") {
module_out_path = "dsoftbus/adapter" module_out_path = "dsoftbus/adapter"
fuzz_config_file = "//foundation/communication/dsoftbus/tests/adapter/fuzztest/softbusadapterrange_fuzzer" fuzz_config_file =
"$dsoftbus_root_path/tests/adapter/fuzztest/softbusadapterrange_fuzzer"
include_dirs = [ "$dsoftbus_root_path/adapter/common/include" ] include_dirs = [ "$dsoftbus_root_path/adapter/common/include" ]
cflags = [ cflags = [
"-g", "-g",
@ -29,7 +30,7 @@ ohos_fuzztest("SoftBusAdapterRangeFuzzTest") {
] ]
sources = [ "softbusadapterrange_fuzzer.cpp" ] sources = [ "softbusadapterrange_fuzzer.cpp" ]
deps = [ "//foundation/communication/dsoftbus/adapter:softbus_adapter" ] deps = [ "../../../../adapter:softbus_adapter" ]
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",

View File

@ -13,13 +13,14 @@
#####################hydra-fuzz################### #####################hydra-fuzz###################
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../dsoftbus.gni")
module_output_path = "dsoftbus/adapter" module_output_path = "dsoftbus/adapter"
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("SoftBusDecryptDataFuzzTest") { ohos_fuzztest("SoftBusDecryptDataFuzzTest") {
module_out_path = module_output_path module_out_path = module_output_path
fuzz_config_file = "//foundation/communication/dsoftbus/tests/adapter/fuzztest/softbusdecryptdata_fuzzer" fuzz_config_file =
"$dsoftbus_root_path/tests/adapter/fuzztest/softbusdecryptdata_fuzzer"
include_dirs = [ "$dsoftbus_root_path/adapter/common/include" ] include_dirs = [ "$dsoftbus_root_path/adapter/common/include" ]
cflags = [ cflags = [
"-g", "-g",
@ -30,7 +31,7 @@ ohos_fuzztest("SoftBusDecryptDataFuzzTest") {
] ]
sources = [ "softbusdecryptdata_fuzzer.cpp" ] sources = [ "softbusdecryptdata_fuzzer.cpp" ]
deps = [ "//foundation/communication/dsoftbus/adapter:softbus_adapter" ] deps = [ "../../../../adapter:softbus_adapter" ]
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",

View File

@ -15,7 +15,7 @@ defines = []
if (defined(ohos_lite)) { if (defined(ohos_lite)) {
import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/component/lite_component.gni")
import("//build/lite/config/test.gni") import("//build/lite/config/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../dsoftbus.gni")
defines += [ "HAVE_PRO = 0" ] defines += [ "HAVE_PRO = 0" ]
@ -37,14 +37,14 @@ if (defined(ohos_lite)) {
"//third_party/bounds_checking_function/include", "//third_party/bounds_checking_function/include",
] ]
deps = [ deps = [
"//foundation/communication/dsoftbus/adapter:softbus_adapter", "../../../adapter:softbus_adapter",
"//third_party/bounds_checking_function:libsec_static", "//third_party/bounds_checking_function:libsec_static",
] ]
} }
} }
} else { } else {
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../dsoftbus.gni")
defines += [ "HAVE_PRO = 0" ] defines += [ "HAVE_PRO = 0" ]
module_output_path = "dsoftbus/adapter" module_output_path = "dsoftbus/adapter"
@ -58,7 +58,7 @@ if (defined(ohos_lite)) {
"//third_party/bounds_checking_function/include", "//third_party/bounds_checking_function/include",
] ]
deps = [ deps = [
"//foundation/communication/dsoftbus/adapter:softbus_adapter", "../../../adapter:softbus_adapter",
"//third_party/bounds_checking_function:libsec_static", "//third_party/bounds_checking_function:libsec_static",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
@ -85,7 +85,7 @@ if (defined(ohos_lite)) {
"//third_party/bounds_checking_function/include", "//third_party/bounds_checking_function/include",
] ]
deps = [ deps = [
"//foundation/communication/dsoftbus/adapter:softbus_adapter", "../../../adapter:softbus_adapter",
"//third_party/bounds_checking_function:libsec_static", "//third_party/bounds_checking_function:libsec_static",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
@ -112,7 +112,7 @@ if (defined(ohos_lite)) {
"//third_party/bounds_checking_function/include", "//third_party/bounds_checking_function/include",
] ]
deps = [ deps = [
"//foundation/communication/dsoftbus/adapter:softbus_adapter", "../../../adapter:softbus_adapter",
"//third_party/bounds_checking_function:libsec_static", "//third_party/bounds_checking_function:libsec_static",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
@ -139,7 +139,7 @@ if (defined(ohos_lite)) {
"//third_party/bounds_checking_function/include", "//third_party/bounds_checking_function/include",
] ]
deps = [ deps = [
"//foundation/communication/dsoftbus/adapter:softbus_adapter", "../../../adapter:softbus_adapter",
"//third_party/bounds_checking_function:libsec_static", "//third_party/bounds_checking_function:libsec_static",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
@ -166,7 +166,7 @@ if (defined(ohos_lite)) {
"//third_party/bounds_checking_function/include", "//third_party/bounds_checking_function/include",
] ]
deps = [ deps = [
"//foundation/communication/dsoftbus/adapter:softbus_adapter", "../../../adapter:softbus_adapter",
"//third_party/bounds_checking_function:libsec_static", "//third_party/bounds_checking_function:libsec_static",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
@ -193,7 +193,7 @@ if (defined(ohos_lite)) {
"//third_party/bounds_checking_function/include", "//third_party/bounds_checking_function/include",
] ]
deps = [ deps = [
"//foundation/communication/dsoftbus/adapter:softbus_adapter", "../../../adapter:softbus_adapter",
"//third_party/bounds_checking_function:libsec_static", "//third_party/bounds_checking_function:libsec_static",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
@ -219,7 +219,7 @@ if (defined(ohos_lite)) {
"$dsoftbus_root_path/core/common/include/", "$dsoftbus_root_path/core/common/include/",
] ]
deps = [ deps = [
"//foundation/communication/dsoftbus/adapter:softbus_adapter", "../../../adapter:softbus_adapter",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
if (is_standard_system) { if (is_standard_system) {
@ -244,7 +244,7 @@ if (defined(ohos_lite)) {
"$dsoftbus_root_path/core/common/include/", "$dsoftbus_root_path/core/common/include/",
] ]
deps = [ deps = [
"//foundation/communication/dsoftbus/adapter:softbus_adapter", "../../../adapter:softbus_adapter",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
if (is_standard_system) { if (is_standard_system) {
@ -286,7 +286,7 @@ if (defined(ohos_lite)) {
] ]
deps = [ deps = [
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
"//foundation/communication/dsoftbus/adapter:softbus_adapter", "../../../adapter:softbus_adapter",
"//third_party/googletest:gmock", "//third_party/googletest:gmock",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../dsoftbus.gni")
module_output_path = "dsoftbus/auth" module_output_path = "dsoftbus/auth"

View File

@ -13,13 +13,13 @@
#####################hydra-fuzz################### #####################hydra-fuzz###################
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/auth" module_output_path = "dsoftbus/auth"
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("UnpackAuthDataFuzzTest") { ohos_fuzztest("UnpackAuthDataFuzzTest") {
module_out_path = module_output_path module_out_path = module_output_path
fuzz_config_file = "//foundation/communication/dsoftbus/tests/core/authentication/fuzztest/unpackauthdata_fuzzer" fuzz_config_file = "$dsoftbus_root_path/tests/core/authentication/fuzztest/unpackauthdata_fuzzer"
include_dirs = [ include_dirs = [
"$dsoftbus_root_path/adapter/common/include/", "$dsoftbus_root_path/adapter/common/include/",
"$dsoftbus_root_path/core/authentication/include", "$dsoftbus_root_path/core/authentication/include",

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../dsoftbus.gni")
group("unittest") { group("unittest") {
testonly = true testonly = true

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../dsoftbus.gni")
module_output_path = "dsoftbus/LNN" module_output_path = "dsoftbus/LNN"
bus_center_unittest_dirs = [ bus_center_unittest_dirs = [
@ -62,8 +62,6 @@ bus_center_unittest_deps = [
"$dsoftbus_root_path/adapter:softbus_adapter", "$dsoftbus_root_path/adapter:softbus_adapter",
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
"$dsoftbus_root_path/core/frame:softbus_server", "$dsoftbus_root_path/core/frame:softbus_server",
"//base/security/device_auth/services:deviceauth_sdk",
"//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
"//third_party/googletest:gmock", "//third_party/googletest:gmock",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
@ -115,8 +113,6 @@ lnn_mock_test_deps = [
"$dsoftbus_root_path/adapter:softbus_adapter", "$dsoftbus_root_path/adapter:softbus_adapter",
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
"$dsoftbus_root_path/core/frame:softbus_server", "$dsoftbus_root_path/core/frame:softbus_server",
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
"//base/security/device_auth/services:deviceauth_sdk",
"//third_party/googletest:gmock", "//third_party/googletest:gmock",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
@ -130,6 +126,7 @@ ohos_unittest("LaneTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -138,7 +135,10 @@ ohos_unittest("LaneTest") {
"hilog:libhilog", "hilog:libhilog",
] ]
} }
external_deps += [ "huks:libhukssdk" ] external_deps += [
"huks:libhukssdk",
"ipc:ipc_core",
]
} }
ohos_unittest("NetLedgerTest") { ohos_unittest("NetLedgerTest") {
@ -150,6 +150,7 @@ ohos_unittest("NetLedgerTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -158,7 +159,10 @@ ohos_unittest("NetLedgerTest") {
"hilog:libhilog", "hilog:libhilog",
] ]
} }
external_deps += [ "huks:libhukssdk" ] external_deps += [
"huks:libhukssdk",
"ipc:ipc_core",
]
} }
ohos_unittest("NetBuilderTest") { ohos_unittest("NetBuilderTest") {
@ -170,6 +174,7 @@ ohos_unittest("NetBuilderTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -178,7 +183,10 @@ ohos_unittest("NetBuilderTest") {
"hilog:libhilog", "hilog:libhilog",
] ]
} }
external_deps += [ "huks:libhukssdk" ] external_deps += [
"huks:libhukssdk",
"ipc:ipc_core",
]
} }
ohos_unittest("LNNHuksUtilsTest") { ohos_unittest("LNNHuksUtilsTest") {
@ -190,6 +198,7 @@ ohos_unittest("LNNHuksUtilsTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -198,7 +207,10 @@ ohos_unittest("LNNHuksUtilsTest") {
"hilog:libhilog", "hilog:libhilog",
] ]
} }
external_deps += [ "huks:libhukssdk" ] external_deps += [
"huks:libhukssdk",
"ipc:ipc_core",
]
} }
ohos_unittest("LedgerLaneHubTest") { ohos_unittest("LedgerLaneHubTest") {
@ -210,6 +222,7 @@ ohos_unittest("LedgerLaneHubTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -218,7 +231,10 @@ ohos_unittest("LedgerLaneHubTest") {
"hilog:libhilog", "hilog:libhilog",
] ]
} }
external_deps += [ "huks:libhukssdk" ] external_deps += [
"huks:libhukssdk",
"ipc:ipc_core",
]
} }
ohos_unittest("LNNBusCenterIpcTest") { ohos_unittest("LNNBusCenterIpcTest") {
@ -230,6 +246,7 @@ ohos_unittest("LNNBusCenterIpcTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -238,7 +255,10 @@ ohos_unittest("LNNBusCenterIpcTest") {
"hilog:libhilog", "hilog:libhilog",
] ]
} }
external_deps += [ "huks:libhukssdk" ] external_deps += [
"huks:libhukssdk",
"ipc:ipc_core",
]
} }
ohos_unittest("BusCenterClientProxyTest") { ohos_unittest("BusCenterClientProxyTest") {
@ -250,6 +270,7 @@ ohos_unittest("BusCenterClientProxyTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -258,7 +279,10 @@ ohos_unittest("BusCenterClientProxyTest") {
"hilog:libhilog", "hilog:libhilog",
] ]
} }
external_deps += [ "huks:libhukssdk" ] external_deps += [
"huks:libhukssdk",
"ipc:ipc_core",
]
} }
ohos_unittest("BusCenterClientProxyStandardTest") { ohos_unittest("BusCenterClientProxyStandardTest") {
@ -270,6 +294,7 @@ ohos_unittest("BusCenterClientProxyStandardTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -278,7 +303,10 @@ ohos_unittest("BusCenterClientProxyStandardTest") {
"hilog:libhilog", "hilog:libhilog",
] ]
} }
external_deps += [ "huks:libhukssdk" ] external_deps += [
"huks:libhukssdk",
"ipc:ipc_core",
]
} }
ohos_unittest("LNNNetBuilderTest") { ohos_unittest("LNNNetBuilderTest") {
@ -320,8 +348,6 @@ ohos_unittest("LNNNetBuilderTest") {
"$dsoftbus_root_path/adapter:softbus_adapter", "$dsoftbus_root_path/adapter:softbus_adapter",
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
"$dsoftbus_root_path/core/frame:softbus_server", "$dsoftbus_root_path/core/frame:softbus_server",
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
"//base/security/device_auth/services:deviceauth_sdk",
"//third_party/googletest:gmock", "//third_party/googletest:gmock",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
@ -329,6 +355,7 @@ ohos_unittest("LNNNetBuilderTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -391,8 +418,6 @@ ohos_unittest("LNNNetBuilderMockTest") {
deps = [ deps = [
"$dsoftbus_root_path/adapter:softbus_adapter", "$dsoftbus_root_path/adapter:softbus_adapter",
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
"//base/security/device_auth/services:deviceauth_sdk",
"//third_party/googletest:gmock", "//third_party/googletest:gmock",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
@ -400,6 +425,7 @@ ohos_unittest("LNNNetBuilderMockTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -437,6 +463,7 @@ ohos_unittest("LNNConnectionFsmTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -474,6 +501,7 @@ ohos_unittest("LNNDeviceNameInfoTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -511,6 +539,7 @@ ohos_unittest("LNNNetworkInfoTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -548,6 +577,7 @@ ohos_unittest("LNNNodeWeightTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -585,6 +615,7 @@ ohos_unittest("LNNP2pInfoTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -622,6 +653,7 @@ ohos_unittest("LNNSyncInfoManagerTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -659,6 +691,7 @@ ohos_unittest("LNNTopoManagerTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -720,8 +753,6 @@ ohos_unittest("LNNBtNetworkImplMockTest") {
"$dsoftbus_root_path/adapter:softbus_adapter", "$dsoftbus_root_path/adapter:softbus_adapter",
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
"$dsoftbus_root_path/core/frame:softbus_server", "$dsoftbus_root_path/core/frame:softbus_server",
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
"//base/security/device_auth/services:deviceauth_sdk",
"//third_party/googletest:gmock", "//third_party/googletest:gmock",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
@ -729,6 +760,7 @@ ohos_unittest("LNNBtNetworkImplMockTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -786,8 +818,6 @@ ohos_unittest("LNNNetworkManagerMockTest") {
deps = [ deps = [
"$dsoftbus_root_path/adapter:softbus_adapter", "$dsoftbus_root_path/adapter:softbus_adapter",
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
"//base/security/device_auth/services:deviceauth_sdk",
"//third_party/googletest:gmock", "//third_party/googletest:gmock",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
@ -795,6 +825,7 @@ ohos_unittest("LNNNetworkManagerMockTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -853,8 +884,6 @@ ohos_unittest("LNNIpNetworkImplMockTest") {
"$dsoftbus_root_path/adapter:softbus_adapter", "$dsoftbus_root_path/adapter:softbus_adapter",
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
"$dsoftbus_root_path/core/frame:softbus_server", "$dsoftbus_root_path/core/frame:softbus_server",
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
"//base/security/device_auth/services:deviceauth_sdk",
"//third_party/googletest:gmock", "//third_party/googletest:gmock",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
@ -862,6 +891,7 @@ ohos_unittest("LNNIpNetworkImplMockTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -922,8 +952,6 @@ ohos_unittest("LNNLedgerMockTest") {
deps = [ deps = [
"$dsoftbus_root_path/adapter:softbus_adapter", "$dsoftbus_root_path/adapter:softbus_adapter",
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
"//base/security/device_auth/services:deviceauth_sdk",
"//third_party/googletest:gmock", "//third_party/googletest:gmock",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
@ -931,6 +959,7 @@ ohos_unittest("LNNLedgerMockTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -984,8 +1013,6 @@ ohos_unittest("LNNNetLedgerCommonTest") {
"$dsoftbus_root_path/adapter:softbus_adapter", "$dsoftbus_root_path/adapter:softbus_adapter",
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
"$dsoftbus_root_path/core/frame:softbus_server", "$dsoftbus_root_path/core/frame:softbus_server",
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
"//base/security/device_auth/services:deviceauth_sdk",
"//third_party/googletest:gmock", "//third_party/googletest:gmock",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
@ -997,6 +1024,7 @@ ohos_unittest("LNNNetLedgerCommonTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -1050,8 +1078,6 @@ ohos_unittest("LNNDisctributedLedgerTest") {
"$dsoftbus_root_path/adapter:softbus_adapter", "$dsoftbus_root_path/adapter:softbus_adapter",
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
"$dsoftbus_root_path/core/frame:softbus_server", "$dsoftbus_root_path/core/frame:softbus_server",
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
"//base/security/device_auth/services:deviceauth_sdk",
"//third_party/googletest:gmock", "//third_party/googletest:gmock",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
@ -1063,6 +1089,7 @@ ohos_unittest("LNNDisctributedLedgerTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -1120,8 +1147,6 @@ ohos_unittest("LNNMetaNodeLedgerTest") {
"$dsoftbus_root_path/adapter:softbus_adapter", "$dsoftbus_root_path/adapter:softbus_adapter",
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
"$dsoftbus_root_path/core/frame:softbus_server", "$dsoftbus_root_path/core/frame:softbus_server",
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
"//base/security/device_auth/services:deviceauth_sdk",
"//third_party/googletest:gmock", "//third_party/googletest:gmock",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
@ -1133,6 +1158,7 @@ ohos_unittest("LNNMetaNodeLedgerTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -1196,8 +1222,6 @@ ohos_unittest("LNNLaneMockTest") {
deps = [ deps = [
"$dsoftbus_root_path/adapter:softbus_adapter", "$dsoftbus_root_path/adapter:softbus_adapter",
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
"//base/security/device_auth/services:deviceauth_sdk",
"//third_party/googletest:gmock", "//third_party/googletest:gmock",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
@ -1205,6 +1229,7 @@ ohos_unittest("LNNLaneMockTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -1256,8 +1281,6 @@ ohos_unittest("LNNLaneLinkMockTest") {
deps = [ deps = [
"$dsoftbus_root_path/adapter:softbus_adapter", "$dsoftbus_root_path/adapter:softbus_adapter",
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
"//base/security/device_auth/services:deviceauth_sdk",
"//third_party/googletest:gmock", "//third_party/googletest:gmock",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
@ -1265,6 +1288,7 @@ ohos_unittest("LNNLaneLinkMockTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -1320,8 +1344,6 @@ ohos_unittest("LNNTransLaneMockTest") {
deps = [ deps = [
"$dsoftbus_root_path/adapter:softbus_adapter", "$dsoftbus_root_path/adapter:softbus_adapter",
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
"//base/security/device_auth/services:deviceauth_sdk",
"//third_party/googletest:gmock", "//third_party/googletest:gmock",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
@ -1329,6 +1351,7 @@ ohos_unittest("LNNTransLaneMockTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -1370,7 +1393,6 @@ ohos_unittest("LNNDiscoveryInterfaceTest") {
deps = [ deps = [
"$dsoftbus_root_path/adapter:softbus_adapter", "$dsoftbus_root_path/adapter:softbus_adapter",
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
"//third_party/googletest:gmock", "//third_party/googletest:gmock",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
@ -1449,8 +1471,6 @@ if (!defined(ohos_lite) && enhanced_test) {
"$dsoftbus_root_path/adapter:softbus_adapter", "$dsoftbus_root_path/adapter:softbus_adapter",
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
"$dsoftbus_root_path/core/frame:softbus_server", "$dsoftbus_root_path/core/frame:softbus_server",
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
"//base/security/device_auth/services:deviceauth_sdk",
"//third_party/googletest:gmock", "//third_party/googletest:gmock",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
@ -1458,6 +1478,7 @@ if (!defined(ohos_lite) && enhanced_test) {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../dsoftbus.gni")
module_output_path = "dsoftbus/LNN" module_output_path = "dsoftbus/LNN"
@ -56,24 +56,25 @@ ohos_unittest("HeartBeatMediumTest") {
deps = [ deps = [
"$dsoftbus_root_path/adapter:softbus_adapter", "$dsoftbus_root_path/adapter:softbus_adapter",
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
"//base/security/device_auth/services:deviceauth_sdk",
"//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
"//third_party/googletest:gmock", "//third_party/googletest:gmock",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
external_deps = [ external_deps = [
"c_utils:utils",
"hilog:libhilog", "hilog:libhilog",
"huks:libhukssdk", "huks:libhukssdk",
] ]
} }
external_deps += [
"c_utils:utils",
"ipc:ipc_core",
]
} }
ohos_unittest("HeartBeatFSMTest") { ohos_unittest("HeartBeatFSMTest") {
@ -118,7 +119,6 @@ ohos_unittest("HeartBeatFSMTest") {
deps = [ deps = [
"$dsoftbus_root_path/adapter:softbus_adapter", "$dsoftbus_root_path/adapter:softbus_adapter",
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
"//base/security/device_auth/services:deviceauth_sdk",
"//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core", "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
"//third_party/googletest:gmock", "//third_party/googletest:gmock",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
@ -127,6 +127,7 @@ ohos_unittest("HeartBeatFSMTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {
@ -154,8 +155,8 @@ ohos_unittest("ClientProxyTest") {
"$dsoftbus_root_path/core/frame/standard/client_manager/include", "$dsoftbus_root_path/core/frame/standard/client_manager/include",
"$dsoftbus_root_path/core/common/include", "$dsoftbus_root_path/core/common/include",
"$dsoftbus_root_path/core/frame/common/include", "$dsoftbus_root_path/core/frame/common/include",
"../../transmission/ipc/samgr/interfaces/innerkits/samgr_proxy/include",
"//foundation/window/window_manager/previewer/mock", "//foundation/window/window_manager/previewer/mock",
"//foundation/communication/dsoftbus/tests/core/transmission/ipc/samgr/interfaces/innerkits/samgr_proxy/include",
"//foundation/communication/ipc/interfaces/innerkits/c/ipc/include", "//foundation/communication/ipc/interfaces/innerkits/c/ipc/include",
"//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include",
"//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include/", "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include/",
@ -165,7 +166,6 @@ ohos_unittest("ClientProxyTest") {
"$dsoftbus_root_path/adapter:softbus_adapter", "$dsoftbus_root_path/adapter:softbus_adapter",
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
"$dsoftbus_root_path/core/frame:softbus_server", "$dsoftbus_root_path/core/frame:softbus_server",
"//base/security/device_auth/services:deviceauth_sdk",
"//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core", "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
"//third_party/googletest:gmock", "//third_party/googletest:gmock",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
@ -174,6 +174,7 @@ ohos_unittest("ClientProxyTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
"samgr:samgr_proxy", "samgr:samgr_proxy",
] ]
@ -216,7 +217,6 @@ ohos_unittest("BusCenterIpcTest") {
deps = [ deps = [
"$dsoftbus_root_path/adapter:softbus_adapter", "$dsoftbus_root_path/adapter:softbus_adapter",
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
"//base/security/device_auth/services:deviceauth_sdk",
"//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core", "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
"//third_party/googletest:gmock", "//third_party/googletest:gmock",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
@ -225,6 +225,7 @@ ohos_unittest("BusCenterIpcTest") {
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../dsoftbus.gni")
module_output_path = "dsoftbus/LNN" module_output_path = "dsoftbus/LNN"
ohos_unittest("LNNConnAddrUtilsTest") { ohos_unittest("LNNConnAddrUtilsTest") {
@ -56,14 +56,13 @@ ohos_unittest("LNNConnAddrUtilsTest") {
"$dsoftbus_root_path/adapter:softbus_adapter", "$dsoftbus_root_path/adapter:softbus_adapter",
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
"$dsoftbus_root_path/core/frame:softbus_server", "$dsoftbus_root_path/core/frame:softbus_server",
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
"//base/security/device_auth/services:deviceauth_sdk",
"//third_party/googletest:gmock", "//third_party/googletest:gmock",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [
"c_utils:utils", "c_utils:utils",
"device_auth:deviceauth_sdk",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
] ]
} else { } else {

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../dsoftbus.gni")
group("unittest") { group("unittest") {
testonly = true testonly = true

View File

@ -11,7 +11,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../dsoftbus.gni")
if (defined(ohos_lite)) { if (defined(ohos_lite)) {
import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/component/lite_component.gni")

View File

@ -9,9 +9,9 @@
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../dsoftbus.gni")
if (defined(ohos_lite)) { if (defined(ohos_lite)) {
import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/component/lite_component.gni")

View File

@ -15,7 +15,7 @@
import("//build/config/features.gni") import("//build/config/features.gni")
import("//build/ohos.gni") import("//build/ohos.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../../../dsoftbus.gni")
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("SoftBusHiDumperFuzzTest") { ohos_fuzztest("SoftBusHiDumperFuzzTest") {

View File

@ -14,7 +14,7 @@
import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/component/lite_component.gni")
import("//build/ohos.gni") import("//build/ohos.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/common" module_output_path = "dsoftbus/common"

View File

@ -15,7 +15,7 @@
import("//build/config/features.gni") import("//build/config/features.gni")
import("//build/ohos.gni") import("//build/ohos.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../../../dsoftbus.gni")
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("SoftBusHiSysEvtFuzzTest") { ohos_fuzztest("SoftBusHiSysEvtFuzzTest") {

View File

@ -11,7 +11,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../../dsoftbus.gni")
if (defined(ohos_lite)) { if (defined(ohos_lite)) {
import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/component/lite_component.gni")

View File

@ -15,7 +15,7 @@
import("//build/config/features.gni") import("//build/config/features.gni")
import("//build/ohos.gni") import("//build/ohos.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../../dsoftbus.gni")
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("JsonUtilsFuzzTest") { ohos_fuzztest("JsonUtilsFuzzTest") {

View File

@ -15,7 +15,7 @@
import("//build/config/features.gni") import("//build/config/features.gni")
import("//build/ohos.gni") import("//build/ohos.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../../dsoftbus.gni")
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("SoftBusLogFuzzTest") { ohos_fuzztest("SoftBusLogFuzzTest") {

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/common" module_output_path = "dsoftbus/common"

View File

@ -15,7 +15,7 @@
import("//build/config/features.gni") import("//build/config/features.gni")
import("//build/ohos.gni") import("//build/ohos.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../../dsoftbus.gni")
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("MessageHandlerFuzzTest") { ohos_fuzztest("MessageHandlerFuzzTest") {

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/component/lite_component.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
static_library("softbus_test_message_handler") { static_library("softbus_test_message_handler") {
sources = [ "message_handler_test.c" ] sources = [ "message_handler_test.c" ]

View File

@ -9,9 +9,9 @@
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../dsoftbus.gni")
if (defined(ohos_lite)) { if (defined(ohos_lite)) {
} else { } else {

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/transmission" module_output_path = "dsoftbus/transmission"

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/transmission" module_output_path = "dsoftbus/transmission"

View File

@ -14,7 +14,7 @@
if (defined(ohos_lite)) { if (defined(ohos_lite)) {
import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/component/lite_component.gni")
import("//build/lite/config/test.gni") import("//build/lite/config/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../dsoftbus.gni")
if (ohos_build_type == "debug") { if (ohos_build_type == "debug") {
unittest("SequenceVerificationTest") { unittest("SequenceVerificationTest") {
@ -31,7 +31,7 @@ if (defined(ohos_lite)) {
} }
} else { } else {
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../dsoftbus.gni")
module_output_path = "dsoftbus/common" module_output_path = "dsoftbus/common"
ohos_unittest("SequenceVerificationTest") { ohos_unittest("SequenceVerificationTest") {

View File

@ -14,7 +14,7 @@
if (defined(ohos_lite)) { if (defined(ohos_lite)) {
import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/component/lite_component.gni")
import("//build/lite/config/test.gni") import("//build/lite/config/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../dsoftbus.gni")
if (ohos_build_type == "debug") { if (ohos_build_type == "debug") {
unittest("SoftbusUtilsTest") { unittest("SoftbusUtilsTest") {
@ -31,7 +31,7 @@ if (defined(ohos_lite)) {
} }
} else { } else {
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../dsoftbus.gni")
module_output_path = "dsoftbus/common" module_output_path = "dsoftbus/common"
ohos_unittest("SoftbusUtilsTest") { ohos_unittest("SoftbusUtilsTest") {

View File

@ -14,13 +14,14 @@
#####################hydra-fuzz################### #####################hydra-fuzz###################
import("//build/config/features.gni") import("//build/config/features.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/common" module_output_path = "dsoftbus/common"
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("BindParaTextFuzzTest") { ohos_fuzztest("BindParaTextFuzzTest") {
module_out_path = module_output_path module_out_path = module_output_path
fuzz_config_file = "//foundation/communication/dsoftbus/tests/core/common/utils/fuzztest/bindparatext_fuzzer" fuzz_config_file =
"$dsoftbus_root_path/tests/core/common/utils/fuzztest/bindparatext_fuzzer"
include_dirs = [ "$dsoftbus_root_path/adapter/common/include" ] include_dirs = [ "$dsoftbus_root_path/adapter/common/include" ]
cflags = [ cflags = [
"-g", "-g",

View File

@ -14,13 +14,13 @@
#####################hydra-fuzz################### #####################hydra-fuzz###################
import("//build/config/features.gni") import("//build/config/features.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/common" module_output_path = "dsoftbus/common"
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("ConvertBtMacToBinaryFuzzTest") { ohos_fuzztest("ConvertBtMacToBinaryFuzzTest") {
module_out_path = module_output_path module_out_path = module_output_path
fuzz_config_file = "//foundation/communication/dsoftbus/tests/core/common/utils/fuzztest/convertbtmactobinary_fuzzer" fuzz_config_file = "$dsoftbus_root_path/tests/core/common/utils/fuzztest/convertbtmactobinary_fuzzer"
include_dirs = [ "$dsoftbus_root_path/core/common/include" ] include_dirs = [ "$dsoftbus_root_path/core/common/include" ]
cflags = [ cflags = [
"-g", "-g",

View File

@ -14,13 +14,13 @@
#####################hydra-fuzz################### #####################hydra-fuzz###################
import("//build/config/features.gni") import("//build/config/features.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/common" module_output_path = "dsoftbus/common"
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("ConvertBtMacToStrFuzzTest") { ohos_fuzztest("ConvertBtMacToStrFuzzTest") {
module_out_path = module_output_path module_out_path = module_output_path
fuzz_config_file = "//foundation/communication/dsoftbus/tests/core/common/utils/fuzztest/convertbtmactostr_fuzzer" fuzz_config_file = "$dsoftbus_root_path/tests/core/common/utils/fuzztest/convertbtmactostr_fuzzer"
include_dirs = [ "$dsoftbus_root_path/core/common/include" ] include_dirs = [ "$dsoftbus_root_path/core/common/include" ]
cflags = [ cflags = [
"-g", "-g",

View File

@ -14,13 +14,13 @@
#####################hydra-fuzz################### #####################hydra-fuzz###################
import("//build/config/features.gni") import("//build/config/features.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/common" module_output_path = "dsoftbus/common"
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("ConvertHexStringToBytesFuzzTest") { ohos_fuzztest("ConvertHexStringToBytesFuzzTest") {
module_out_path = module_output_path module_out_path = module_output_path
fuzz_config_file = "//foundation/communication/dsoftbus/tests/core/common/utils/fuzztest/converthexstringtobytes_fuzzer" fuzz_config_file = "$dsoftbus_root_path/tests/core/common/utils/fuzztest/converthexstringtobytes_fuzzer"
include_dirs = [ "$dsoftbus_root_path/core/common/include" ] include_dirs = [ "$dsoftbus_root_path/core/common/include" ]
cflags = [ cflags = [
"-g", "-g",

View File

@ -14,13 +14,14 @@
#####################hydra-fuzz################### #####################hydra-fuzz###################
import("//build/config/features.gni") import("//build/config/features.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/common" module_output_path = "dsoftbus/common"
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("EncryptedDbFuzzTest") { ohos_fuzztest("EncryptedDbFuzzTest") {
module_out_path = module_output_path module_out_path = module_output_path
fuzz_config_file = "//foundation/communication/dsoftbus/tests/core/common/utils/fuzztest/encrypteddb_fuzzer" fuzz_config_file =
"$dsoftbus_root_path/tests/core/common/utils/fuzztest/encrypteddb_fuzzer"
include_dirs = [ "$dsoftbus_root_path/adapter/common/include" ] include_dirs = [ "$dsoftbus_root_path/adapter/common/include" ]
cflags = [ cflags = [
"-g", "-g",

View File

@ -14,13 +14,14 @@
#####################hydra-fuzz################### #####################hydra-fuzz###################
import("//build/config/features.gni") import("//build/config/features.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/common" module_output_path = "dsoftbus/common"
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("InsertRecordFuzzTest") { ohos_fuzztest("InsertRecordFuzzTest") {
module_out_path = module_output_path module_out_path = module_output_path
fuzz_config_file = "//foundation/communication/dsoftbus/tests/core/common/utils/fuzztest/insertrecord_fuzzer" fuzz_config_file =
"$dsoftbus_root_path/tests/core/common/utils/fuzztest/insertrecord_fuzzer"
include_dirs = [ "$dsoftbus_root_path/adapter/common/include" ] include_dirs = [ "$dsoftbus_root_path/adapter/common/include" ]
cflags = [ cflags = [
"-g", "-g",

View File

@ -14,13 +14,13 @@
#####################hydra-fuzz################### #####################hydra-fuzz###################
import("//build/config/features.gni") import("//build/config/features.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/common" module_output_path = "dsoftbus/common"
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("RemoveAllRecordFuzzTest") { ohos_fuzztest("RemoveAllRecordFuzzTest") {
module_out_path = module_output_path module_out_path = module_output_path
fuzz_config_file = "//foundation/communication/dsoftbus/tests/core/common/utils/fuzztest/removeallrecord_fuzzer" fuzz_config_file = "$dsoftbus_root_path/tests/core/common/utils/fuzztest/removeallrecord_fuzzer"
include_dirs = [ "$dsoftbus_root_path/adapter/common/include" ] include_dirs = [ "$dsoftbus_root_path/adapter/common/include" ]
cflags = [ cflags = [
"-g", "-g",

View File

@ -14,13 +14,13 @@
#####################hydra-fuzz################### #####################hydra-fuzz###################
import("//build/config/features.gni") import("//build/config/features.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/common" module_output_path = "dsoftbus/common"
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("RemoveRecordByKeyFuzzTest") { ohos_fuzztest("RemoveRecordByKeyFuzzTest") {
module_out_path = module_output_path module_out_path = module_output_path
fuzz_config_file = "//foundation/communication/dsoftbus/tests/core/common/utils/fuzztest/removerecordbykey_fuzzer" fuzz_config_file = "$dsoftbus_root_path/tests/core/common/utils/fuzztest/removerecordbykey_fuzzer"
include_dirs = [ "$dsoftbus_root_path/adapter/common/include" ] include_dirs = [ "$dsoftbus_root_path/adapter/common/include" ]
cflags = [ cflags = [
"-g", "-g",

View File

@ -14,13 +14,14 @@
#####################hydra-fuzz################### #####################hydra-fuzz###################
import("//build/config/features.gni") import("//build/config/features.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/common" module_output_path = "dsoftbus/common"
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("SoftBusUtilsFuzzTest") { ohos_fuzztest("SoftBusUtilsFuzzTest") {
module_out_path = module_output_path module_out_path = module_output_path
fuzz_config_file = "//foundation/communication/dsoftbus/tests/core/common/utils/fuzztest/softbusutils_fuzzer" fuzz_config_file =
"$dsoftbus_root_path/tests/core/common/utils/fuzztest/softbusutils_fuzzer"
include_dirs = [ "$dsoftbus_root_path/core/common/include" ] include_dirs = [ "$dsoftbus_root_path/core/common/include" ]
cflags = [ cflags = [
"-g", "-g",

View File

@ -14,13 +14,14 @@
#####################hydra-fuzz################### #####################hydra-fuzz###################
import("//build/config/features.gni") import("//build/config/features.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/common" module_output_path = "dsoftbus/common"
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("Sqlite3UtilsFuzzTest") { ohos_fuzztest("Sqlite3UtilsFuzzTest") {
module_out_path = module_output_path module_out_path = module_output_path
fuzz_config_file = "//foundation/communication/dsoftbus/tests/core/common/utils/fuzztest/sqlite3utils_fuzzer" fuzz_config_file =
"$dsoftbus_root_path/tests/core/common/utils/fuzztest/sqlite3utils_fuzzer"
include_dirs = [ "$dsoftbus_root_path/adapter/common/include" ] include_dirs = [ "$dsoftbus_root_path/adapter/common/include" ]
cflags = [ cflags = [
"-g", "-g",

View File

@ -14,13 +14,13 @@
#####################hydra-fuzz################### #####################hydra-fuzz###################
import("//build/config/features.gni") import("//build/config/features.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/common" module_output_path = "dsoftbus/common"
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("UpdateDbPasswordFuzzTest") { ohos_fuzztest("UpdateDbPasswordFuzzTest") {
module_out_path = module_output_path module_out_path = module_output_path
fuzz_config_file = "//foundation/communication/dsoftbus/tests/core/common/utils/fuzztest/updatedbpassword_fuzzer" fuzz_config_file = "$dsoftbus_root_path/tests/core/common/utils/fuzztest/updatedbpassword_fuzzer"
include_dirs = [ "$dsoftbus_root_path/adapter/common/include" ] include_dirs = [ "$dsoftbus_root_path/adapter/common/include" ]
cflags = [ cflags = [
"-g", "-g",

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/common" module_output_path = "dsoftbus/common"

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../dsoftbus.gni")
group("unittest") { group("unittest") {
testonly = true testonly = true

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../dsoftbus.gni")
module_output_path = "dsoftbus/connection" module_output_path = "dsoftbus/connection"

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../dsoftbus.gni")
module_output_path = "dsoftbus/connection" module_output_path = "dsoftbus/connection"
config("softbus_connection_br_test_config") { config("softbus_connection_br_test_config") {

View File

@ -15,7 +15,7 @@
import("//build/config/features.gni") import("//build/config/features.gni")
import("//build/ohos.gni") import("//build/ohos.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../../dsoftbus.gni")
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("ConnectionCommonFuzzTest") { ohos_fuzztest("ConnectionCommonFuzzTest") {
@ -23,8 +23,8 @@ ohos_fuzztest("ConnectionCommonFuzzTest") {
fuzz_config_file = "$dsoftbus_root_path/tests/core/connection/common/fuzztest/connectioncommon_fuzzer" fuzz_config_file = "$dsoftbus_root_path/tests/core/connection/common/fuzztest/connectioncommon_fuzzer"
include_dirs = [ include_dirs = [
"//foundation/communication/dsoftbus/core/connection/common/include", "$dsoftbus_root_path/core/connection/common/include",
"//foundation/communication/dsoftbus/core/connection/interface", "$dsoftbus_root_path/core/connection/interface",
] ]
cflags = [ cflags = [

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/connection" module_output_path = "dsoftbus/connection"

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../dsoftbus.gni")
module_output_path = "dsoftbus/connection" module_output_path = "dsoftbus/connection"

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../dsoftbus.gni")
module_output_path = "dsoftbus/connection" module_output_path = "dsoftbus/connection"

View File

@ -14,8 +14,8 @@
import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/component/lite_component.gni")
import("//build/ohos.gni") import("//build/ohos.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
import("//foundation/communication/dsoftbus/tests/utils/utils.gni") import("../../../../utils/utils.gni")
module_output_path = "dsoftbus/connection" module_output_path = "dsoftbus/connection"

View File

@ -14,8 +14,8 @@
import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/component/lite_component.gni")
import("//build/ohos.gni") import("//build/ohos.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
import("//foundation/communication/dsoftbus/tests/utils/utils.gni") import("../../../../utils/utils.gni")
module_output_path = "dsoftbus/connection" module_output_path = "dsoftbus/connection"

View File

@ -14,8 +14,8 @@
import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/component/lite_component.gni")
import("//build/ohos.gni") import("//build/ohos.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
import("//foundation/communication/dsoftbus/tests/utils/utils.gni") import("../../../../utils/utils.gni")
module_output_path = "dsoftbus/connection" module_output_path = "dsoftbus/connection"

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../dsoftbus.gni")
module_output_path = "dsoftbus/connection" module_output_path = "dsoftbus/connection"

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../dsoftbus.gni")
native_source_path = rebase_path("$dsoftbus_root_path") native_source_path = rebase_path("$dsoftbus_root_path")
dep_dir = "dsoftbus_enhance/test/core/discovery" dep_dir = "dsoftbus_enhance/test/core/discovery"

View File

@ -14,7 +14,7 @@
import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/component/lite_component.gni")
import("//build/ohos.gni") import("//build/ohos.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/discovery" module_output_path = "dsoftbus/discovery"

View File

@ -14,7 +14,7 @@
import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/component/lite_component.gni")
import("//build/ohos.gni") import("//build/ohos.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/discovery" module_output_path = "dsoftbus/discovery"
@ -23,11 +23,11 @@ ohos_unittest("DiscSoftBusBleTest") {
sources = [ "disc_ble_softbus_test.cpp" ] sources = [ "disc_ble_softbus_test.cpp" ]
include_dirs = [ include_dirs = [
"//foundation/communication/dsoftbus/core/common/include", "$dsoftbus_root_path/core/common/include",
"//foundation/communication/dsoftbus/core/discovery/ble/dispatcher/include", "$dsoftbus_root_path/core/discovery/ble/dispatcher/include",
"//foundation/communication/dsoftbus/core/discovery/manager/include", "$dsoftbus_root_path/core/discovery/manager/include",
"//foundation/communication/dsoftbus/core/discovery/interface", "$dsoftbus_root_path/core/discovery/interface",
"//foundation/communication/dsoftbus/core/discovery/ble/softbus_ble/include", "$dsoftbus_root_path/core/discovery/ble/softbus_ble/include",
"$dsoftbus_root_path/interfaces/kits/common", "$dsoftbus_root_path/interfaces/kits/common",
"$dsoftbus_root_path/interfaces/kits/discovery", "$dsoftbus_root_path/interfaces/kits/discovery",
"$dsoftbus_root_path/interfaces/kits/bus_center", "$dsoftbus_root_path/interfaces/kits/bus_center",
@ -51,9 +51,9 @@ ohos_unittest("DiscSoftBusBleTest") {
deps = [ deps = [
"$dsoftbus_root_path/adapter:softbus_adapter", "$dsoftbus_root_path/adapter:softbus_adapter",
"$dsoftbus_root_path/components/nstackx/nstackx_ctrl:nstackx_ctrl",
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
"$dsoftbus_root_path/core/frame:softbus_server", "$dsoftbus_root_path/core/frame:softbus_server",
"//foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl:nstackx_ctrl",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]

View File

@ -14,8 +14,8 @@
import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/component/lite_component.gni")
import("//build/ohos.gni") import("//build/ohos.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
import("//foundation/communication/dsoftbus/tests/utils/utils.gni") import("../../../../utils/utils.gni")
module_output_path = "dsoftbus/discovery" module_output_path = "dsoftbus/discovery"

View File

@ -11,7 +11,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../dsoftbus.gni")
if (defined(ohos_lite)) { if (defined(ohos_lite)) {
import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/component/lite_component.gni")

View File

@ -14,8 +14,8 @@
import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/component/lite_component.gni")
import("//build/ohos.gni") import("//build/ohos.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
import("//foundation/communication/dsoftbus/tests/utils/utils.gni") import("../../../../utils/utils.gni")
module_output_path = "dsoftbus/discovery" module_output_path = "dsoftbus/discovery"

View File

@ -14,7 +14,7 @@
import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/component/lite_component.gni")
import("//build/ohos.gni") import("//build/ohos.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/discovery" module_output_path = "dsoftbus/discovery"
@ -23,30 +23,29 @@ ohos_unittest("DiscNstackxAdapterTest") {
sources = [ "disc_nstackx_adapter_test.cpp" ] sources = [ "disc_nstackx_adapter_test.cpp" ]
include_dirs = [ include_dirs = [
"//foundation/communication/dsoftbus/core/common/include", "../../../../../adapter/common/include",
"//foundation/communication/dsoftbus/core/discovery/ble/dispatcher/include", "../../../../../adapter/default_config/spec_config",
"//foundation/communication/dsoftbus/core/discovery/manager/include", "../../../../../components/nstackx/nstackx_util/interface",
"//foundation/communication/dsoftbus/core/discovery/interface", "../../../../../components/nstackx/nstackx_ctrl/include",
"//foundation/communication/dsoftbus/core/discovery/coap/include", "../../../../../core/bus_center/interface",
"//foundation/communication/dsoftbus/core/discovery/coap/src", "../../../../../core/bus_center/lnn/lane_hub/lane_manager/include",
"//foundation/communication/dsoftbus/interfaces/kits/common", "../../../../../core/bus_center/lnn/net_ledger/common/include",
"//foundation/communication/dsoftbus/components/nstackx/nstackx_util/interface", "../../../../../core/bus_center/lnn/net_ledger/local_ledger/include",
"//foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/include", "../../../../../core/common/dfx/hidumper_adapter/include",
"//foundation/communication/dsoftbus/core/bus_center/interface", "../../../../../core/common/include",
"//foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/include", "../../../../../core/discovery/ble/dispatcher/include",
"//foundation/communication/dsoftbus/adapter/common/include", "../../../../../core/discovery/coap/include",
"//foundation/communication/dsoftbus/adapter/default_config/spec_config", "../../../../../core/discovery/coap/src",
"//foundation/communication/dsoftbus//core/common/dfx/hidumper_adapter/include", "../../../../../core/discovery/interface",
"//foundation/communication/dsoftbus//core/discovery/manager/include", "../../../../../core/discovery/manager/include",
"//foundation/communication/dsoftbus//core/bus_center/lnn/net_ledger/local_ledger/include", "../../../../../interfaces/kits/common",
"//foundation/communication/dsoftbus//core/bus_center/lnn/net_ledger/common/include",
"//third_party/cJSON", "//third_party/cJSON",
] ]
deps = [ deps = [
"//foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl:nstackx_ctrl", "../../../../../components/nstackx/nstackx_ctrl:nstackx_ctrl",
"//foundation/communication/dsoftbus/core/common:softbus_utils", "../../../../../core/common:softbus_utils",
"//foundation/communication/dsoftbus/core/frame:softbus_server", "../../../../../core/frame:softbus_server",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
@ -68,29 +67,28 @@ ohos_unittest("DiscCoapTest") {
sources = [ "disc_coap_test.cpp" ] sources = [ "disc_coap_test.cpp" ]
include_dirs = [ include_dirs = [
"//foundation/communication/dsoftbus/core/common/include", "../../../../../adapter/common/include",
"//foundation/communication/dsoftbus/core/discovery/ble/dispatcher/include", "../../../../../adapter/default_config/spec_config",
"//foundation/communication/dsoftbus/core/discovery/manager/include", "../../../../../components/nstackx/nstackx_util/interface",
"//foundation/communication/dsoftbus/core/discovery/interface", "../../../../../core/bus_center/interface",
"//foundation/communication/dsoftbus/core/discovery/coap/include", "../../../../../core/bus_center/lnn/lane_hub/lane_manager/include",
"//foundation/communication/dsoftbus/core/discovery/coap/src", "../../../../../core/bus_center/lnn/net_ledger/common/include",
"//foundation/communication/dsoftbus/interfaces/kits/common", "../../../../../core/bus_center/lnn/net_ledger/local_ledger/include",
"//foundation/communication/dsoftbus/components/nstackx/nstackx_util/interface", "../../../../../core/common/dfx/hidumper_adapter/include",
"//foundation/communication/dsoftbus/core/bus_center/interface", "../../../../../core/common/include",
"//foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/include", "../../../../../core/discovery/ble/dispatcher/include",
"//foundation/communication/dsoftbus/adapter/common/include", "../../../../../core/discovery/coap/include",
"//foundation/communication/dsoftbus/adapter/default_config/spec_config", "../../../../../core/discovery/coap/src",
"//foundation/communication/dsoftbus//core/common/dfx/hidumper_adapter/include", "../../../../../core/discovery/interface",
"//foundation/communication/dsoftbus//core/discovery/manager/include", "../../../../../core/discovery/manager/include",
"//foundation/communication/dsoftbus//core/bus_center/lnn/net_ledger/local_ledger/include", "../../../../../interfaces/kits/common",
"//foundation/communication/dsoftbus//core/bus_center/lnn/net_ledger/common/include",
"//third_party/cJSON", "//third_party/cJSON",
] ]
deps = [ deps = [
"//foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl:nstackx_ctrl", "../../../../../components/nstackx/nstackx_ctrl:nstackx_ctrl",
"//foundation/communication/dsoftbus/core/common:softbus_utils", "../../../../../core/common:softbus_utils",
"//foundation/communication/dsoftbus/core/frame:softbus_server", "../../../../../core/frame:softbus_server",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/component/lite_component.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../dsoftbus.gni")
static_library("nstackx_test") { static_library("nstackx_test") {
sources = [ "nstackx_test.c" ] sources = [ "nstackx_test.c" ]

View File

@ -14,8 +14,8 @@
import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/component/lite_component.gni")
import("//build/ohos.gni") import("//build/ohos.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../dsoftbus.gni")
import("//foundation/communication/dsoftbus/tests/utils/utils.gni") import("../../../utils/utils.gni")
module_output_path = "dsoftbus/discovery" module_output_path = "dsoftbus/discovery"

View File

@ -14,8 +14,8 @@
import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/component/lite_component.gni")
import("//build/ohos.gni") import("//build/ohos.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
import("//foundation/communication/dsoftbus/tests/utils/utils.gni") import("../../../../utils/utils.gni")
module_output_path = "dsoftbus/discovery" module_output_path = "dsoftbus/discovery"

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/ohos.gni") import("//build/ohos.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../dsoftbus.gni")
config("softbus_frame_test_config") { config("softbus_frame_test_config") {
include_dirs = [ include_dirs = [
@ -25,7 +25,7 @@ config("softbus_frame_test_config") {
ohos_executable("softbus_test") { ohos_executable("softbus_test") {
install_enable = true install_enable = true
sources = [ "$dsoftbus_root_path/tests/core/frame/softbus_test.c" ] sources = [ "softbus_test.c" ]
configs = [ ":softbus_frame_test_config" ] configs = [ ":softbus_frame_test_config" ]
if (is_standard_system) { if (is_standard_system) {

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../dsoftbus.gni")
native_source_path = rebase_path("$dsoftbus_root_path") native_source_path = rebase_path("$dsoftbus_root_path")
dep_dir = "dsoftbus_enhance/test/core/transmission" dep_dir = "dsoftbus_enhance/test/core/transmission"

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../dsoftbus.gni")
group("unittest") { group("unittest") {
testonly = true testonly = true

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/transmission" module_output_path = "dsoftbus/transmission"

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/transmission" module_output_path = "dsoftbus/transmission"

View File

@ -15,7 +15,7 @@
import("//build/config/features.gni") import("//build/config/features.gni")
import("//build/ohos.gni") import("//build/ohos.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/transmission" module_output_path = "dsoftbus/transmission"
##############################fuzztest########################################## ##############################fuzztest##########################################

View File

@ -15,7 +15,7 @@
import("//build/config/features.gni") import("//build/config/features.gni")
import("//build/ohos.gni") import("//build/ohos.gni")
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/transmission" module_output_path = "dsoftbus/transmission"
##############################fuzztest########################################## ##############################fuzztest##########################################

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../dsoftbus.gni")
module_output_path = "dsoftbus/transmission" module_output_path = "dsoftbus/transmission"
@ -30,7 +30,6 @@ ohos_unittest("TransClientProxyTest") {
"$dsoftbus_root_path/core/frame/standard/client_manager/include", "$dsoftbus_root_path/core/frame/standard/client_manager/include",
"$dsoftbus_root_path/adapter/common/include", "$dsoftbus_root_path/adapter/common/include",
"$dsoftbus_root_path/sdk/frame/standard/include", "$dsoftbus_root_path/sdk/frame/standard/include",
"//foundation/communication/dsoftbus/tests/core/transmission/ipc/samgr/interfaces/innerkits/samgr_proxy/include",
"//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include/", "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include/",
"//foundation/window/window_manager/previewer/mock", "//foundation/window/window_manager/previewer/mock",
"//foundation/communication/ipc/interfaces/innerkits/c/ipc/include", "//foundation/communication/ipc/interfaces/innerkits/c/ipc/include",
@ -40,23 +39,19 @@ ohos_unittest("TransClientProxyTest") {
deps = [ deps = [
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
"$dsoftbus_root_path/core/frame:softbus_server", "$dsoftbus_root_path/core/frame:softbus_server",
"//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
"c_utils:utils",
"hiviewdfx_hilog_native:libhilog",
"samgr:samgr_proxy",
]
} else { } else {
external_deps = [ external_deps = [ "hilog:libhilog" ]
"c_utils:utils",
"hilog:libhilog",
"samgr:samgr_proxy",
]
} }
external_deps += [
"c_utils:utils",
"ipc:ipc_core",
"samgr:samgr_proxy",
]
} }
ohos_unittest("TransClientProxyStandardTest") { ohos_unittest("TransClientProxyStandardTest") {
@ -73,7 +68,6 @@ ohos_unittest("TransClientProxyStandardTest") {
"$dsoftbus_root_path/core/frame/standard/client_manager/include", "$dsoftbus_root_path/core/frame/standard/client_manager/include",
"$dsoftbus_root_path/adapter/common/include", "$dsoftbus_root_path/adapter/common/include",
"$dsoftbus_root_path/sdk/frame/standard/include", "$dsoftbus_root_path/sdk/frame/standard/include",
"//foundation/communication/dsoftbus/tests/core/transmission/ipc/samgr/interfaces/innerkits/samgr_proxy/include",
"//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include/", "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include/",
"//foundation/window/window_manager/previewer/mock", "//foundation/window/window_manager/previewer/mock",
"//foundation/communication/ipc/interfaces/innerkits/c/ipc/include", "//foundation/communication/ipc/interfaces/innerkits/c/ipc/include",
@ -83,23 +77,19 @@ ohos_unittest("TransClientProxyStandardTest") {
deps = [ deps = [
"$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/common:softbus_utils",
"$dsoftbus_root_path/core/frame:softbus_server", "$dsoftbus_root_path/core/frame:softbus_server",
"//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
"//third_party/googletest:gtest_main", "//third_party/googletest:gtest_main",
] ]
if (is_standard_system) { if (is_standard_system) {
external_deps = [ external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
"c_utils:utils",
"hiviewdfx_hilog_native:libhilog",
"samgr:samgr_proxy",
]
} else { } else {
external_deps = [ external_deps = [ "hilog:libhilog" ]
"c_utils:utils",
"hilog:libhilog",
"samgr:samgr_proxy",
]
} }
external_deps += [
"c_utils:utils",
"ipc:ipc_core",
"samgr:samgr_proxy",
]
} }
group("unittest") { group("unittest") {

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../dsoftbus.gni")
module_output_path = "dsoftbus/transmission" module_output_path = "dsoftbus/transmission"

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/transmission" module_output_path = "dsoftbus/transmission"

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/transmission" module_output_path = "dsoftbus/transmission"

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
group("unittest") { group("unittest") {
testonly = true testonly = true

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/transmission" module_output_path = "dsoftbus/transmission"

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/transmission" module_output_path = "dsoftbus/transmission"

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/transmission" module_output_path = "dsoftbus/transmission"

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/transmission" module_output_path = "dsoftbus/transmission"

View File

@ -12,9 +12,8 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
import( import("../../common/mock/mock.gni")
"//foundation/communication/dsoftbus/tests/core/transmission/common/mock/mock.gni")
module_output_path = "dsoftbus/transmission" module_output_path = "dsoftbus/transmission"
@ -90,10 +89,8 @@ ohos_unittest("TransProxyChannelTest") {
} }
} }
import( import("../../../../../core/transmission/trans_channel/common/common.gni")
"//foundation/communication/dsoftbus/core/transmission/trans_channel/common/common.gni") import("../../../../../core/transmission/trans_channel/proxy/proxy.gni")
import(
"//foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/proxy.gni")
ohos_unittest("TransProxyChannelMockTest") { ohos_unittest("TransProxyChannelMockTest") {
module_out_path = module_output_path module_out_path = module_output_path

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/transmission" module_output_path = "dsoftbus/transmission"

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/transmission" module_output_path = "dsoftbus/transmission"

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../dsoftbus.gni")
group("benchmarktest") { group("benchmarktest") {
testonly = true testonly = true

View File

@ -12,7 +12,7 @@
# limitations under the License. # limitations under the License.
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../dsoftbus.gni")
module_output_path = "dsoftbus/bus_center" module_output_path = "dsoftbus/bus_center"

View File

@ -13,13 +13,14 @@
#####################hydra-fuzz################### #####################hydra-fuzz###################
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/bus_center" module_output_path = "dsoftbus/bus_center"
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("ActiveMetaNodeFuzzTest") { ohos_fuzztest("ActiveMetaNodeFuzzTest") {
module_out_path = module_output_path module_out_path = module_output_path
fuzz_config_file = "//foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/activemetanode_fuzzer" fuzz_config_file =
"$dsoftbus_root_path/tests/sdk/bus_center/fuzztest/activemetanode_fuzzer"
include_dirs = [ include_dirs = [
"$dsoftbus_root_path/adapter/common/include", "$dsoftbus_root_path/adapter/common/include",
"$dsoftbus_root_path/core/common/include", "$dsoftbus_root_path/core/common/include",

View File

@ -13,13 +13,13 @@
#####################hydra-fuzz################### #####################hydra-fuzz###################
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/bus_center" module_output_path = "dsoftbus/bus_center"
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("DeactiveMetaNodeFuzzTest") { ohos_fuzztest("DeactiveMetaNodeFuzzTest") {
module_out_path = module_output_path module_out_path = module_output_path
fuzz_config_file = "//foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/deactivemetanode_fuzzer" fuzz_config_file = "$dsoftbus_root_path/tests/sdk/bus_center/fuzztest/deactivemetanode_fuzzer"
include_dirs = [ include_dirs = [
"$dsoftbus_root_path/adapter/common/include", "$dsoftbus_root_path/adapter/common/include",
"$dsoftbus_root_path/core/common/include", "$dsoftbus_root_path/core/common/include",

View File

@ -13,13 +13,13 @@
#####################hydra-fuzz################### #####################hydra-fuzz###################
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/bus_center" module_output_path = "dsoftbus/bus_center"
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("GetAllMetaNodeInfoFuzzTest") { ohos_fuzztest("GetAllMetaNodeInfoFuzzTest") {
module_out_path = module_output_path module_out_path = module_output_path
fuzz_config_file = "//foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/getallmetanodeinfo_fuzzer" fuzz_config_file = "$dsoftbus_root_path/tests/sdk/bus_center/fuzztest/getallmetanodeinfo_fuzzer"
include_dirs = [ include_dirs = [
"$dsoftbus_root_path/adapter/common/include", "$dsoftbus_root_path/adapter/common/include",
"$dsoftbus_root_path/core/common/include", "$dsoftbus_root_path/core/common/include",

View File

@ -13,13 +13,13 @@
#####################hydra-fuzz################### #####################hydra-fuzz###################
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/bus_center" module_output_path = "dsoftbus/bus_center"
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("GetAllNodeDeviceInfoFuzzTest") { ohos_fuzztest("GetAllNodeDeviceInfoFuzzTest") {
module_out_path = module_output_path module_out_path = module_output_path
fuzz_config_file = "//foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/getallnodedeviceinfo_fuzzer" fuzz_config_file = "$dsoftbus_root_path/tests/sdk/bus_center/fuzztest/getallnodedeviceinfo_fuzzer"
include_dirs = [ include_dirs = [
"$dsoftbus_root_path/adapter/common/include", "$dsoftbus_root_path/adapter/common/include",
"$dsoftbus_root_path/core/common/include", "$dsoftbus_root_path/core/common/include",

View File

@ -13,13 +13,13 @@
#####################hydra-fuzz################### #####################hydra-fuzz###################
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/bus_center" module_output_path = "dsoftbus/bus_center"
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("GetLocalNodeDeviceInfoFuzzTest") { ohos_fuzztest("GetLocalNodeDeviceInfoFuzzTest") {
module_out_path = module_output_path module_out_path = module_output_path
fuzz_config_file = "//foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/getlocalnodedeviceinfo_fuzzer" fuzz_config_file = "$dsoftbus_root_path/tests/sdk/bus_center/fuzztest/getlocalnodedeviceinfo_fuzzer"
include_dirs = [ include_dirs = [
"$dsoftbus_root_path/adapter/common/include", "$dsoftbus_root_path/adapter/common/include",
"$dsoftbus_root_path/core/common/include", "$dsoftbus_root_path/core/common/include",

View File

@ -13,13 +13,14 @@
#####################hydra-fuzz################### #####################hydra-fuzz###################
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/bus_center" module_output_path = "dsoftbus/bus_center"
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("GetNodeKeyInfoFuzzTest") { ohos_fuzztest("GetNodeKeyInfoFuzzTest") {
module_out_path = module_output_path module_out_path = module_output_path
fuzz_config_file = "//foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/getnodekeyinfo_fuzzer" fuzz_config_file =
"$dsoftbus_root_path/tests/sdk/bus_center/fuzztest/getnodekeyinfo_fuzzer"
include_dirs = [ include_dirs = [
"$dsoftbus_root_path/adapter/common/include", "$dsoftbus_root_path/adapter/common/include",
"$dsoftbus_root_path/core/common/include", "$dsoftbus_root_path/core/common/include",

View File

@ -13,13 +13,14 @@
#####################hydra-fuzz################### #####################hydra-fuzz###################
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/bus_center" module_output_path = "dsoftbus/bus_center"
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("IsPassSeqCheckFuzzTest") { ohos_fuzztest("IsPassSeqCheckFuzzTest") {
module_out_path = module_output_path module_out_path = module_output_path
fuzz_config_file = "//foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/ispassseqcheck_fuzzer" fuzz_config_file =
"$dsoftbus_root_path/tests/sdk/bus_center/fuzztest/ispassseqcheck_fuzzer"
include_dirs = [ "$dsoftbus_root_path/core/common/include" ] include_dirs = [ "$dsoftbus_root_path/core/common/include" ]
cflags = [ cflags = [

View File

@ -13,13 +13,14 @@
#####################hydra-fuzz################### #####################hydra-fuzz###################
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/bus_center" module_output_path = "dsoftbus/bus_center"
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("JoinLNNFuzzTest") { ohos_fuzztest("JoinLNNFuzzTest") {
module_out_path = module_output_path module_out_path = module_output_path
fuzz_config_file = "//foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/joinlnn_fuzzer" fuzz_config_file =
"$dsoftbus_root_path/tests/sdk/bus_center/fuzztest/joinlnn_fuzzer"
include_dirs = [ include_dirs = [
"$dsoftbus_root_path/adapter/common/include", "$dsoftbus_root_path/adapter/common/include",
"$dsoftbus_root_path/core/common/include", "$dsoftbus_root_path/core/common/include",

View File

@ -13,13 +13,14 @@
#####################hydra-fuzz################### #####################hydra-fuzz###################
import("//build/test.gni") import("//build/test.gni")
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("../../../../../dsoftbus.gni")
module_output_path = "dsoftbus/bus_center" module_output_path = "dsoftbus/bus_center"
##############################fuzztest########################################## ##############################fuzztest##########################################
ohos_fuzztest("JoinMetaNodeFuzzTest") { ohos_fuzztest("JoinMetaNodeFuzzTest") {
module_out_path = module_output_path module_out_path = module_output_path
fuzz_config_file = "//foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/joinmetanode_fuzzer" fuzz_config_file =
"$dsoftbus_root_path/tests/sdk/bus_center/fuzztest/joinmetanode_fuzzer"
include_dirs = [ include_dirs = [
"$dsoftbus_root_path/adapter/common/include", "$dsoftbus_root_path/adapter/common/include",
"$dsoftbus_root_path/core/common/include", "$dsoftbus_root_path/core/common/include",

Some files were not shown because too many files have changed in this diff Show More