Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
a8ef4588
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a8ef4588
编写于
9月 27, 2021
作者:
O
openharmony_ci
提交者:
Gitee
9月 27, 2021
浏览文件
操作
浏览文件
下载
差异文件
!791 提交敏感词修改
Merge pull request !791 from 刘晓培/master
上级
10425d05
c861e984
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
14 addition
and
15 deletion
+14
-15
distributed_schedule_lite/distributed_schedule_posix/src/MsgParserFuncTest.cpp
...lite/distributed_schedule_posix/src/MsgParserFuncTest.cpp
+11
-12
distributed_schedule_lite/distributed_schedule_posix/src/utils/DMSTestBase.cpp
...lite/distributed_schedule_posix/src/utils/DMSTestBase.cpp
+1
-1
distributedhardware/devicemanagerjstest/Test.json
distributedhardware/devicemanagerjstest/Test.json
+2
-2
未找到文件。
distributed_schedule_lite/distributed_schedule_posix/src/MsgParserFuncTest.cpp
浏览文件 @
a8ef4588
...
...
@@ -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
,
0x6
8
,
0x75
,
0x61
,
0x77
,
0x65
,
0x69
,
0x00
,
0x03
,
0x0d
,
0x
4d
,
0x61
,
0x69
,
0x6e
,
0x41
,
0x63
,
0x74
,
0x69
,
0x76
,
0x69
,
0x74
,
0x
79
,
0x00
,
0x04
,
0x0a
,
0x70
,
0x75
,
0x62
,
0x6C
,
0x69
,
0x63
,
0x6B
,
0x
65
,
0x79
,
0x
00
0x4a
,
0x2e
,
0x6
f
,
0x68
,
0x6f
,
0x73
,
0x00
,
0x03
,
0x0d
,
0x4d
,
0x61
,
0x
69
,
0x6e
,
0x41
,
0x63
,
0x74
,
0x69
,
0x76
,
0x69
,
0x74
,
0x79
,
0x00
,
0x
04
,
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"
);
...
...
distributed_schedule_lite/distributed_schedule_posix/src/utils/DMSTestBase.cpp
浏览文件 @
a8ef4588
...
...
@@ -87,6 +87,6 @@ BOOL InstallHap()
BOOL
UninstallHap
()
{
sem_init
(
&
g_sem
,
0
,
0
);
Uninstall
(
"com.
huawei
.helloworld"
,
nullptr
,
TestBundleStateCallback
);
Uninstall
(
"com.
ohos
.helloworld"
,
nullptr
,
TestBundleStateCallback
);
sem_wait
(
&
g_sem
);
}
distributedhardware/devicemanagerjstest/Test.json
浏览文件 @
a8ef4588
...
...
@@ -2,9 +2,9 @@
"description"
:
"Configuration for devicemanager Tests"
,
"driver"
:
{
"type"
:
"JSUnitTest"
,
"test-timeout"
:
"
2160
0000"
,
"test-timeout"
:
"
6
0000"
,
"package"
:
"com.ohos.deviceManagertest"
,
"shell-timeout"
:
"
2160
0000"
"shell-timeout"
:
"
6
0000"
},
"kits"
:
[
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录