Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
50ad62a5
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看板
提交
50ad62a5
编写于
9月 07, 2022
作者:
Y
yang-qibo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改配置文件
Signed-off-by:
N
yang-qibo
<
yangqibo1@huawei.com
>
上级
fe94a540
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
8 deletion
+8
-8
communication/dsoftbus/rpc/src/main/js/test/RpcClientJsunit.test.js
...ion/dsoftbus/rpc/src/main/js/test/RpcClientJsunit.test.js
+7
-7
communication/dsoftbus/rpc_server/BUILD.gn
communication/dsoftbus/rpc_server/BUILD.gn
+1
-1
未找到文件。
communication/dsoftbus/rpc/src/main/js/test/RpcClientJsunit.test.js
浏览文件 @
50ad62a5
...
@@ -7414,16 +7414,16 @@ describe('ActsRpcClientJsTest', function(){
...
@@ -7414,16 +7414,16 @@ describe('ActsRpcClientJsTest', function(){
});
});
/*
/*
* @tc.number SUB_Softbus_
RPC
_IRemoteObject_00900
* @tc.number SUB_Softbus_
IPC_Compatility
_IRemoteObject_00900
* @tc.name IRemoteObject sendRequestAsync API Test
* @tc.name IRemoteObject sendRequestAsync API Test
* @tc.desc Function test
* @tc.desc Function test
* @tc.level 0
* @tc.level 0
*/
*/
it
(
"
SUB_Softbus_
RPC
_IRemoteObject_00900
"
,
0
,
async
function
(
done
){
it
(
"
SUB_Softbus_
IPC_Compatility
_IRemoteObject_00900
"
,
0
,
async
function
(
done
){
console
.
info
(
"
---------------------start SUB_Softbus_
RPC
_IRemoteObject_00900---------------------------
"
);
console
.
info
(
"
---------------------start SUB_Softbus_
IPC_Compatility
_IRemoteObject_00900---------------------------
"
);
try
{
try
{
var
data
=
rpc
.
MessageParcel
.
create
();
var
data
=
rpc
.
MessageParcel
.
create
();
console
.
info
(
"
SUB_Softbus_
RPC
_IRemoteObject_00900: create object successfully.
"
);
console
.
info
(
"
SUB_Softbus_
IPC_Compatility
_IRemoteObject_00900: create object successfully.
"
);
var
reply
=
rpc
.
MessageParcel
.
create
();
var
reply
=
rpc
.
MessageParcel
.
create
();
var
option
=
new
rpc
.
MessageOption
();
var
option
=
new
rpc
.
MessageOption
();
expect
(
data
.
writeByte
(
1
)).
assertTrue
()
expect
(
data
.
writeByte
(
1
)).
assertTrue
()
...
@@ -7438,7 +7438,7 @@ describe('ActsRpcClientJsTest', function(){
...
@@ -7438,7 +7438,7 @@ describe('ActsRpcClientJsTest', function(){
expect
(
data
.
writeSequenceable
(
new
MySequenceable
(
1
,
"
aaa
"
))).
assertTrue
()
expect
(
data
.
writeSequenceable
(
new
MySequenceable
(
1
,
"
aaa
"
))).
assertTrue
()
await
gIRemoteObject
.
sendRequestAsync
(
CODE_ALL_TYPE
,
data
,
reply
,
option
,
(
err
,
result
)
=>
{
await
gIRemoteObject
.
sendRequestAsync
(
CODE_ALL_TYPE
,
data
,
reply
,
option
,
(
err
,
result
)
=>
{
console
.
info
(
"
SUB_Softbus_
RPC
_IRemoteObject_00900:sendRequest done, error code:
"
+
result
.
errCode
)
console
.
info
(
"
SUB_Softbus_
IPC_Compatility
_IRemoteObject_00900:sendRequest done, error code:
"
+
result
.
errCode
)
expect
(
result
.
errCode
).
assertEqual
(
0
)
expect
(
result
.
errCode
).
assertEqual
(
0
)
expect
(
result
.
reply
.
readByte
()).
assertEqual
(
1
)
expect
(
result
.
reply
.
readByte
()).
assertEqual
(
1
)
expect
(
result
.
reply
.
readShort
()).
assertEqual
(
2
)
expect
(
result
.
reply
.
readShort
()).
assertEqual
(
2
)
...
@@ -7455,12 +7455,12 @@ describe('ActsRpcClientJsTest', function(){
...
@@ -7455,12 +7455,12 @@ describe('ActsRpcClientJsTest', function(){
expect
(
s
.
str
).
assertEqual
(
"
aaa
"
)
expect
(
s
.
str
).
assertEqual
(
"
aaa
"
)
});
});
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
info
(
"
SUB_Softbus_
RPC
_IRemoteObject_00900:error =
"
+
error
);
console
.
info
(
"
SUB_Softbus_
IPC_Compatility
_IRemoteObject_00900:error =
"
+
error
);
}
}
data
.
reclaim
();
data
.
reclaim
();
reply
.
reclaim
();
reply
.
reclaim
();
done
();
done
();
console
.
info
(
"
---------------------end SUB_Softbus_
RPC
_IRemoteObject_00900---------------------------
"
);
console
.
info
(
"
---------------------end SUB_Softbus_
IPC_Compatility
_IRemoteObject_00900---------------------------
"
);
});
});
...
...
communication/dsoftbus/rpc_server/BUILD.gn
浏览文件 @
50ad62a5
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
# limitations under the License.
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
import("//test/xts/tools/build/suite.gni")
ohos_
js_hap
_suite("ActsRpcJsServer") {
ohos_
hap_assist
_suite("ActsRpcJsServer") {
hap_profile = "./src/main/config.json"
hap_profile = "./src/main/config.json"
deps = [
deps = [
":rpc_js_assets",
":rpc_js_assets",
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录