diff --git a/test/fuzztest/dschedsoftbussession_fuzzer/BUILD.gn b/test/fuzztest/dschedsoftbussession_fuzzer/BUILD.gn index a7f63920..1f8fdfa2 100644 --- a/test/fuzztest/dschedsoftbussession_fuzzer/BUILD.gn +++ b/test/fuzztest/dschedsoftbussession_fuzzer/BUILD.gn @@ -50,9 +50,6 @@ ohos_fuzztest("DSchedSoftbusSessionFuzzTest") { defines += [ "SUPPORT_DISTRIBUTED_MISSION_MANAGER" ] } - if (os_account_part) { - defines += [ "OS_ACCOUNT_PART" ] - } external_deps = [ "ability_base:base", "ability_base:want", @@ -84,7 +81,6 @@ ohos_fuzztest("DSchedSoftbusSessionFuzzTest") { "init:libbegetutil", "ipc:ipc_core", "kv_store:distributeddata_inner", - "os_account:libaccountkits", "safwk:system_ability_fwk", "samgr:samgr_proxy", ] diff --git a/test/fuzztest/dschedtransportsoftbusadapter_fuzzer/BUILD.gn b/test/fuzztest/dschedtransportsoftbusadapter_fuzzer/BUILD.gn index bb3e34b8..dc673768 100644 --- a/test/fuzztest/dschedtransportsoftbusadapter_fuzzer/BUILD.gn +++ b/test/fuzztest/dschedtransportsoftbusadapter_fuzzer/BUILD.gn @@ -53,6 +53,9 @@ ohos_fuzztest("DSchedTransportSoftbusAdapterFuzzTest") { defines += [ "SUPPORT_DISTRIBUTED_MISSION_MANAGER" ] } + if (os_account_part) { + defines += [ "OS_ACCOUNT_PART" ] + } external_deps = [ "ability_base:base", "ability_base:want", @@ -84,9 +87,13 @@ ohos_fuzztest("DSchedTransportSoftbusAdapterFuzzTest") { "init:libbegetutil", "ipc:ipc_core", "kv_store:distributeddata_inner", + "os_account:libaccountkits", "safwk:system_ability_fwk", "samgr:samgr_proxy", ] + if (os_account_part) { + external_deps += [ "os_account:os_account_innerkits" ] + } } group("fuzztest") {