mirror of
https://gitee.com/openharmony/ability_dmsfwk
synced 2024-11-22 22:09:58 +00:00
codecheck
Signed-off-by: MisterE <smart_e@126.com>
This commit is contained in:
parent
d0fb02f0a3
commit
42f8a49523
@ -433,8 +433,9 @@ int32_t DSchedContinue::UpdateElementInfo(std::shared_ptr<DSchedContinueDataCmd>
|
||||
HILOGD("UpdateElementInfo srcModuleName: %{public}s; srcContinueType:%{}s", srcModuleName.c_str(),
|
||||
srcContinueType.c_str());
|
||||
DmsBundleInfo distributedBundleInfo;
|
||||
if (!DmsBmStorage::GetInstance()->GetDistributedBundleInfo(
|
||||
cmd->dstDeviceId_, cmd->dstBundleName_, distributedBundleInfo)) {
|
||||
std::string localDeviceId;
|
||||
if (!GetLocalDeviceId(localDeviceId) || !DmsBmStorage::GetInstance()->GetDistributedBundleInfo(
|
||||
localDeviceId, cmd->dstBundleName_, distributedBundleInfo)) {
|
||||
HILOGE("UpdateElementInfo can not found bundle info for bundle name: %{public}s",
|
||||
cmd->dstBundleName_.c_str());
|
||||
return CAN_NOT_FOUND_MODULE_ERR;
|
||||
|
@ -611,6 +611,11 @@ HWTEST_F(DSchedContinueTest, DSchedContinueTest_0017_1, TestSize.Level0)
|
||||
usleep(WAITTIME);
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.name: DSchedContinueTest_0017_2
|
||||
* @tc.desc: UpdateElementInfo
|
||||
* @tc.type: FUNC
|
||||
*/
|
||||
HWTEST_F(DSchedContinueTest, DSchedContinueTest_0017_2, TestSize.Level0)
|
||||
{
|
||||
DTEST_LOG << "DSchedContinueTest DSchedContinueTest_0017_2 begin" << std::endl;
|
||||
@ -654,11 +659,6 @@ HWTEST_F(DSchedContinueTest, DSchedContinueTest_0017_2, TestSize.Level0)
|
||||
cmd->want_.SetElementName("", BUNDLEMAME_1, ABILITY_NAME_DIFF_AS_CONTINUE_TYPE, MODULE_NAME3);
|
||||
ret = conti->UpdateElementInfo(cmd);
|
||||
EXPECT_EQ(ret, ERR_OK);
|
||||
// has continueType, no same module
|
||||
cmd->continueType_ = CONTINUE_TYPE2;
|
||||
cmd->want_.SetElementName("", BUNDLEMAME_1, CONTINUE_TYPE1, MODULE_NAME3);
|
||||
ret = conti->UpdateElementInfo(cmd);
|
||||
EXPECT_EQ(ret, CAN_NOT_FOUND_MODULE_ERR);
|
||||
DTEST_LOG << "DSchedContinueTest DSchedContinueTest_0017_2 end ret:" << ret << std::endl;
|
||||
usleep(WAITTIME);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user