提交 a7978fde 编写于 作者: J jiangyanbo 提交者: Gitee

update distributed_schedule_lite/dmsfwk_lite_posix/src/MsgParserFuncTest.cpp.

Signed-off-by:jiangyanbo<jiangyanbo@huawei.com>
上级 0b21d973
......@@ -67,12 +67,11 @@ protected:
*/
HWTEST_F(MsgParserFuncTest, testMsgParserFunc0010, Function | MediumTest | Level1) {
uint8_t buffer[] = {
0x01, 0x01, 0x01, 0x02, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x68,
0x75, 0x61, 0x77, 0x65, 0x69, 0x2e, 0x6c, 0x61, 0x75, 0x6e,
0x63, 0x68, 0x65, 0x72, 0x00, 0x03, 0x0d, 0x4d, 0x61, 0x69,
0x6e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x00,
0x04, 0x0a, 0x70, 0x75, 0x62, 0x6C, 0x69, 0x63, 0x6B, 0x65,
0x79, 0x00
0x01, 0x01, 0x01, 0x02, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x6f,
0x68, 0x6f, 0x73, 0x2e, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68,
0x65, 0x72, 0x00, 0x03, 0x0d, 0x4d, 0x61, 0x69, 0x6e, 0x41,
0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x00, 0x04, 0x0a,
0x70, 0x75, 0x62, 0x6C, 0x69, 0x63, 0x6B, 0x65, 0x79, 0x00
};
handleFlag = FALSE;
......@@ -81,7 +80,7 @@ HWTEST_F(MsgParserFuncTest, testMsgParserFunc0010, Function | MediumTest | Level
const TlvDmsMsgInfo *msg = reinterpret_cast<const TlvDmsMsgInfo *>(dmsMsg);
EXPECT_EQ(errCode, DMS_TLV_SUCCESS);
EXPECT_EQ(msg->commandId, 1);
EXPECT_EQ(string(msg->calleeBundleName), "com.huawei.launcher");
EXPECT_EQ(string(msg->calleeBundleName), "com.ohos.launcher");
EXPECT_EQ(string(msg->calleeAbilityName), "MainActivity");
EXPECT_EQ(string(msg->callerSignature), "publickey");
};
......@@ -730,10 +729,10 @@ HWTEST_F(MsgParserFuncTest, testMsgParserFunc0300, Function | MediumTest | Level
0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d,
0x6e, 0x6f, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78,
0x79, 0x7a, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49,
0x4a, 0x2e, 0x68, 0x75, 0x61, 0x77, 0x65, 0x69, 0x00, 0x03, 0x0d,
0x4d, 0x61, 0x69, 0x6e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74,
0x79, 0x00, 0x04, 0x0a, 0x70, 0x75, 0x62, 0x6C, 0x69, 0x63, 0x6B,
0x65, 0x79, 0x00
0x4a, 0x2e, 0x6f, 0x68, 0x6f, 0x73, 0x00, 0x03, 0x0d, 0x4d, 0x61,
0x69, 0x6e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x00,
0x04, 0x0a, 0x70, 0x75, 0x62, 0x6C, 0x69, 0x63, 0x6B, 0x65, 0x79,
0x00
};
handleFlag = FALSE;
......@@ -747,7 +746,7 @@ HWTEST_F(MsgParserFuncTest, testMsgParserFunc0300, Function | MediumTest | Level
ss << "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
}
ss << "abcdefghijklmnopqrstuvwxyzABCDEFGHIJ";
ss << ".huawei";
ss << ".ohos";
EXPECT_EQ(msg->commandId, 1);
EXPECT_EQ(string(msg->calleeBundleName), ss.str());
EXPECT_EQ(string(msg->calleeAbilityName), "MainActivity");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册