未验证 提交 5c73b51a 编写于 作者: O openharmony_ci 提交者: Gitee

!5403 【dsoftbus】【配置文件修改】

Merge pull request !5403 from 杨启博/master
......@@ -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.desc Function test
* @tc.level 0
*/
it("SUB_Softbus_RPC_IRemoteObject_00900", 0,async function(done){
console.info("---------------------start SUB_Softbus_RPC_IRemoteObject_00900---------------------------");
it("SUB_Softbus_IPC_Compatility_IRemoteObject_00900", 0,async function(done){
console.info("---------------------start SUB_Softbus_IPC_Compatility_IRemoteObject_00900---------------------------");
try{
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 option = new rpc.MessageOption();
expect(data.writeByte(1)).assertTrue()
......@@ -7438,7 +7438,7 @@ describe('ActsRpcClientJsTest', function(){
expect(data.writeSequenceable(new MySequenceable(1, "aaa"))).assertTrue()
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.reply.readByte()).assertEqual(1)
expect(result.reply.readShort()).assertEqual(2)
......@@ -7455,12 +7455,12 @@ describe('ActsRpcClientJsTest', function(){
expect(s.str).assertEqual("aaa")
});
} catch (error) {
console.info("SUB_Softbus_RPC_IRemoteObject_00900:error = " + error);
console.info("SUB_Softbus_IPC_Compatility_IRemoteObject_00900:error = " + error);
}
data.reclaim();
reply.reclaim();
done();
console.info("---------------------end SUB_Softbus_RPC_IRemoteObject_00900---------------------------");
console.info("---------------------end SUB_Softbus_IPC_Compatility_IRemoteObject_00900---------------------------");
});
......
......@@ -12,7 +12,7 @@
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsRpcJsServer") {
ohos_hap_assist_suite("ActsRpcJsServer") {
hap_profile = "./src/main/config.json"
deps = [
":rpc_js_assets",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册