mirror of
https://gitee.com/openharmony/ability_dmsfwk
synced 2024-11-23 06:20:07 +00:00
异包名接续广播缓存优化及添加打点
Signed-off-by: MisterE <smart_e@126.com>
This commit is contained in:
commit
51fce29f21
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user