Signed-off-by: MisterE <smart_e@126.com>
This commit is contained in:
MisterE 2024-09-04 17:25:14 +08:00
commit c02025dc50
3 changed files with 23 additions and 3 deletions

View File

@ -534,11 +534,12 @@ HWTEST_F(DistributedBmStorageTest, ConvertToDistributedBundleInfoTest_001, TestS
if (distributedDataStorage != nullptr) {
DmsBundleInfo distributedBundleInfo;
AppExecFwk::BundleInfo bundleInfo;
distributedBundleInfo = dmsBmStorage_->ConvertToDistributedBundleInfo(bundleInfo, true);
AppExecFwk::AppProvisionInfo appProvisionInfo;
distributedBundleInfo = dmsBmStorage_->ConvertToDistributedBundleInfo(bundleInfo, appProvisionInfo, true);
EXPECT_EQ(distributedBundleInfo.bundleName.empty(), true);
bundleInfo.name = "bundleName";
distributedBundleInfo = dmsBmStorage_->ConvertToDistributedBundleInfo(bundleInfo, false);
distributedBundleInfo = dmsBmStorage_->ConvertToDistributedBundleInfo(bundleInfo, appProvisionInfo, false);
EXPECT_EQ(distributedBundleInfo.bundleName.empty(), false);
}
DTEST_LOG << "DistributedBmStorageTest ConvertToDistributedBundleInfoTest_001 end" << std::endl;

View File

@ -22,11 +22,17 @@ ohos_fuzztest("DistributedSchedStubFuzzTest") {
visibility = [ ":*" ]
include_dirs = [
"${dms_path}/common/include/",
"${dms_path}/common/include/continue/",
"${dms_path}/interfaces/innerkits/common/include/",
"${dms_path}/interfaces/kits/napi/include/",
"${dms_path}/services/dtbschedmgr/include/",
"${dms_path}/services/dtbschedmgr/include/collaborate/",
"${dms_path}/services/dtbschedmgr/include/dfx/",
"${dms_path}/services/dtbschedmgr/test/unittest",
"${dms_path}/services/dtbschedmgr/include/softbus_adapter/transport/",
"${dms_path}/services/dtbschedmgr/include/collaborate/",
"${dms_path}/services/dtbschedmgr/include/continue/state/",
"${dms_path}/services/dtbschedmgr/include/continue/state/transport/",
"${dms_path}/test/fuzztest/distributedschedstub_fuzzer",
"${dms_path}/test/fuzztest/util",
]
@ -58,7 +64,9 @@ ohos_fuzztest("DistributedSchedStubFuzzTest") {
if (dmsfwk_standard_form_share) {
defines += [ "SUPPORT_DISTRIBUTED_FORM_SHARE" ]
}
if (os_account_part) {
defines += [ "OS_ACCOUNT_PART" ]
}
external_deps = [
"ability_base:base",
"ability_base:want",
@ -90,12 +98,16 @@ ohos_fuzztest("DistributedSchedStubFuzzTest") {
"init:libbegetutil",
"ipc:ipc_core",
"kv_store:distributeddata_inner",
"os_account:libaccountkits",
"safwk:system_ability_fwk",
"samgr:samgr_proxy",
]
if (dmsfwk_standard_form_share) {
external_deps += [ "form_fwk:form_manager" ]
}
if (os_account_part) {
external_deps += [ "os_account:os_account_innerkits" ]
}
}
group("fuzztest") {

View File

@ -50,6 +50,9 @@ ohos_fuzztest("DSchedSoftbusSessionFuzzTest") {
defines += [ "SUPPORT_DISTRIBUTED_MISSION_MANAGER" ]
}
if (os_account_part) {
defines += [ "OS_ACCOUNT_PART" ]
}
external_deps = [
"ability_base:base",
"ability_base:want",
@ -81,9 +84,13 @@ ohos_fuzztest("DSchedSoftbusSessionFuzzTest") {
"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") {