Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
f9232b08
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看板
提交
f9232b08
编写于
10月 27, 2022
作者:
Y
yang-qibo
1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
IPC新增接口用例覆盖
Signed-off-by:
N
yang-qibo
<
yangqibo1@huawei.com
>
上级
84d4f463
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
62 addition
and
1 deletion
+62
-1
communication/dsoftbus/rpc/src/main/js/test/RpcClientJsunit.test.js
...ion/dsoftbus/rpc/src/main/js/test/RpcClientJsunit.test.js
+62
-1
未找到文件。
communication/dsoftbus/rpc/src/main/js/test/RpcClientJsunit.test.js
浏览文件 @
f9232b08
...
...
@@ -9679,7 +9679,68 @@ export default function actsRpcClientJsTest() {
expect(error.code != errCode).assertTrue();
}
console.info("---------------------end SUB_Softbus_IPC_Compatibility_IPCSkeleton_01700---------------------------");
})
})
/*
* @tc.number SUB_Softbus_IPC_Compatibility_IPCSkeleton_01800
* @tc.name restoreCallingIdentity Interface flags input parameter boundary value verification
* @tc.desc Function test
* @tc.level 0
*/
it("SUB_Softbus_IPC_Compatibility_IPCSkeleton_01800", 0,async function(){
console.info("---------------------start SUB_Softbus_IPC_Compatibility_IPCSkeleton_01800---------------------------");
try{
let id = "";
rpc.IPCSkeleton.restoreCallingIdentity(id);
console.info("SUB_Softbus_IPC_Compatibility_IPCSkeleton_01800 restoreCallingIdentity is success");
} catch (error) {
console.info("SUB_Softbus_IPC_Compatibility_IPCSkeleton_01800:error = " + error);
expect(error == null).assertTrue();
}
console.info("---------------------end SUB_Softbus_IPC_Compatibility_IPCSkeleton_01800---------------------------");
});
/*
* @tc.number SUB_Softbus_IPC_Compatibility_IPCSkeleton_01900
* @tc.name restoreCallingIdentity Interface flags input parameter 0 value verification
* @tc.desc Function test
* @tc.level 0
*/
it("SUB_Softbus_IPC_Compatibility_IPCSkeleton_01900", 0,async function(){
console.info("---------------------start SUB_Softbus_IPC_Compatibility_IPCSkeleton_01900---------------------------");
try{
let id = 0;
rpc.IPCSkeleton.restoreCallingIdentity(id);
console.info("SUB_Softbus_IPC_Compatibility_IPCSkeleton_01900 restoreCallingIdentity is success");
} catch (error) {
console.info("SUB_Softbus_IPC_Compatibility_IPCSkeleton_01900:error = " + error);
expect(error == null).assertTrue();
}
console.info("---------------------end SUB_Softbus_IPC_Compatibility_IPCSkeleton_01900---------------------------");
});
/*
* @tc.number SUB_Softbus_IPC_Compatibility_IPCSkeleton_02000
* @tc.name restoreCallingIdentity Interface flags input parameter null value verification
* @tc.desc Function test
* @tc.level 0
*/
it("SUB_Softbus_IPC_Compatibility_IPCSkeleton_02000", 0,async function(){
console.info("---------------------start SUB_Softbus_IPC_Compatibility_IPCSkeleton_02000---------------------------");
try{
let id = "";
for (let i = 0; i < (40*K - 1); i++){
id += "a";
}
console.info("SUB_Softbus_IPC_Compatibility_IPCSkeleton_02000 id length is: " + id.length);
rpc.IPCSkeleton.restoreCallingIdentity(id);
console.info("SUB_Softbus_IPC_Compatibility_IPCSkeleton_02000 restoreCallingIdentity is success");
} catch (error) {
console.info("SUB_Softbus_IPC_Compatibility_IPCSkeleton_02000:error = " + error);
expect(error == null).assertTrue();
}
console.info("---------------------end SUB_Softbus_IPC_Compatibility_IPCSkeleton_02000---------------------------");
});
console.info("-----------------------SUB_Softbus_IPC_Compatibility_MessageParce_Test is end-----------------------");
});
}
鸿蒙社区
@harmonycommunity
mentioned in commit
5b3ac804
·
11月 01, 2022
mentioned in commit
5b3ac804
mentioned in commit 5b3ac80442728a26c1be8aae59177b8e28e525dc
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录