异包名接续广播缓存优化及添加打点

Signed-off-by: MisterE <smart_e@126.com>
This commit is contained in:
MisterE 2024-09-12 18:15:23 +08:00
commit 51fce29f21
2 changed files with 6 additions and 4 deletions

View File

@ -51,8 +51,8 @@ struct currentIconInfo {
const std::string &sink_bundle_name, const std::string &continueType = "")
: senderNetworkId(source_device_id),
bundleName(sink_bundle_name),
sourceBundleName(source_bundle_name),
continueType(continueType) {
continueType(continueType),
sourceBundleName(source_bundle_name) {
}
currentIconInfo() = default;

View File

@ -456,13 +456,15 @@ HWTEST_F(DMSContinueManagerTest, testDealOnBroadcastBusiness001, TestSize.Level3
std::string sourceBundleName = "invalid sourceBundleName";
std::string sinkBundleName = "invalid sinkBundleName";
std::string continueType = "invalid continueType";
DMSContinueRecvMgr::GetInstance().NotifyRecvBroadcast(obj, networkId, sourceBundleName, sinkBundleName, state, continueType);
DMSContinueRecvMgr::GetInstance().NotifyRecvBroadcast(obj,
currentIconInfo(networkId, sourceBundleName, sinkBundleName, continueType), state);
/**
* @tc.steps: step3. test NotifyRecvBroadcast when missionId is invalid;
*/
obj = new RemoteOnListenerStubTest();
DMSContinueRecvMgr::GetInstance().NotifyRecvBroadcast(obj, networkId, sourceBundleName, sinkBundleName, state, continueType);
DMSContinueRecvMgr::GetInstance().NotifyRecvBroadcast(obj,
currentIconInfo(networkId, sourceBundleName, sinkBundleName, continueType), state);
DTEST_LOG << "DMSContinueManagerTest testDealOnBroadcastBusiness001 end" << std::endl;
}