Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
f7fffbae
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看板
未验证
提交
f7fffbae
编写于
1月 12, 2022
作者:
O
openharmony_ci
提交者:
Gitee
1月 12, 2022
浏览文件
操作
浏览文件
下载
差异文件
!1550 适配communication测试套
Merge pull request !1550 from logic42/master
上级
f3ac2537
72d271b3
变更
27
展开全部
隐藏空白更改
内联
并排
Showing
27 changed file
with
1 addition
and
1465 deletion
+1
-1465
communication/BUILD.gn
communication/BUILD.gn
+1
-5
communication/ipcrpc_standard/ipcrpcservice/BUILD.gn
communication/ipcrpc_standard/ipcrpcservice/BUILD.gn
+0
-31
communication/ipcrpc_standard/ipcrpcservice/Test.json
communication/ipcrpc_standard/ipcrpcservice/Test.json
+0
-18
communication/ipcrpc_standard/ipcrpcservice/entry/src/main/config.json
.../ipcrpc_standard/ipcrpcservice/entry/src/main/config.json
+0
-60
communication/ipcrpc_standard/ipcrpcservice/entry/src/main/js/default/app.js
...c_standard/ipcrpcservice/entry/src/main/js/default/app.js
+0
-24
communication/ipcrpc_standard/ipcrpcservice/entry/src/main/js/default/i18n/en-US.json
...d/ipcrpcservice/entry/src/main/js/default/i18n/en-US.json
+0
-6
communication/ipcrpc_standard/ipcrpcservice/entry/src/main/js/default/i18n/zh-CN.json
...d/ipcrpcservice/entry/src/main/js/default/i18n/zh-CN.json
+0
-6
communication/ipcrpc_standard/ipcrpcservice/entry/src/main/js/default/pages/index/index.css
...pcservice/entry/src/main/js/default/pages/index/index.css
+0
-38
communication/ipcrpc_standard/ipcrpcservice/entry/src/main/js/default/pages/index/index.hml
...pcservice/entry/src/main/js/default/pages/index/index.hml
+0
-20
communication/ipcrpc_standard/ipcrpcservice/entry/src/main/js/default/pages/index/index.js
...rpcservice/entry/src/main/js/default/pages/index/index.js
+0
-261
communication/ipcrpc_standard/ipcrpcservice/entry/src/main/resources/base/element/string.json
...service/entry/src/main/resources/base/element/string.json
+0
-12
communication/ipcrpc_standard/ipcrpcservice/entry/src/main/resources/base/media/icon.png
...pcrpcservice/entry/src/main/resources/base/media/icon.png
+0
-0
communication/ipcrpc_standard/ipcrpcservice/signature/openharmony_sx.p7b
...pcrpc_standard/ipcrpcservice/signature/openharmony_sx.p7b
+0
-0
communication/ipcrpc_standard/ipcrpctest/BUILD.gn
communication/ipcrpc_standard/ipcrpctest/BUILD.gn
+0
-31
communication/ipcrpc_standard/ipcrpctest/Test.json
communication/ipcrpc_standard/ipcrpctest/Test.json
+0
-19
communication/ipcrpc_standard/ipcrpctest/entry/src/main/config.json
...ion/ipcrpc_standard/ipcrpctest/entry/src/main/config.json
+0
-60
communication/ipcrpc_standard/ipcrpctest/entry/src/main/js/default/app.js
...crpc_standard/ipcrpctest/entry/src/main/js/default/app.js
+0
-24
communication/ipcrpc_standard/ipcrpctest/entry/src/main/js/default/i18n/en-US.json
...dard/ipcrpctest/entry/src/main/js/default/i18n/en-US.json
+0
-6
communication/ipcrpc_standard/ipcrpctest/entry/src/main/js/default/i18n/zh-CN.json
...dard/ipcrpctest/entry/src/main/js/default/i18n/zh-CN.json
+0
-6
communication/ipcrpc_standard/ipcrpctest/entry/src/main/js/default/pages/index/index.css
...pcrpctest/entry/src/main/js/default/pages/index/index.css
+0
-38
communication/ipcrpc_standard/ipcrpctest/entry/src/main/js/default/pages/index/index.hml
...pcrpctest/entry/src/main/js/default/pages/index/index.hml
+0
-20
communication/ipcrpc_standard/ipcrpctest/entry/src/main/js/default/pages/index/index.js
...ipcrpctest/entry/src/main/js/default/pages/index/index.js
+0
-44
communication/ipcrpc_standard/ipcrpctest/entry/src/main/js/default/test/IpcRpcClient.test.js
...ctest/entry/src/main/js/default/test/IpcRpcClient.test.js
+0
-708
communication/ipcrpc_standard/ipcrpctest/entry/src/main/js/default/test/List.test.js
...rd/ipcrpctest/entry/src/main/js/default/test/List.test.js
+0
-16
communication/ipcrpc_standard/ipcrpctest/entry/src/main/resources/base/element/string.json
...rpctest/entry/src/main/resources/base/element/string.json
+0
-12
communication/ipcrpc_standard/ipcrpctest/entry/src/main/resources/base/media/icon.png
...d/ipcrpctest/entry/src/main/resources/base/media/icon.png
+0
-0
communication/ipcrpc_standard/ipcrpctest/signature/openharmony_sx.p7b
...n/ipcrpc_standard/ipcrpctest/signature/openharmony_sx.p7b
+0
-0
未找到文件。
communication/BUILD.gn
浏览文件 @
f7fffbae
...
...
@@ -15,11 +15,7 @@ import("//build/ohos_var.gni")
group("communication") {
testonly = true
if (is_standard_system) {
deps = [
#"ipcrpc_standard/ipcrpcservice:ipcrpcService",
#"ipcrpc_standard/ipcrpctest:ipcrpcTest",
"wifi_standard:wifi_standard_test",
]
deps = [ "wifi_standard:wifi_standard_test" ]
} else {
deps = [ "wifi_standard:wifi_standard_test" ]
}
...
...
communication/ipcrpc_standard/ipcrpcservice/BUILD.gn
已删除
100644 → 0
浏览文件 @
f3ac2537
# Copyright (C) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ipcrpcService") {
hap_profile = "./entry/src/main/config.json"
deps = [
":ipcrpcService_assets",
":ipcrpcService_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsIpcRpcServiceTest"
}
ohos_js_assets("ipcrpcService_assets") {
source_dir = "./entry/src/main/js/default"
}
ohos_resources("ipcrpcService_resources") {
sources = [ "./entry/src/main/resources" ]
hap_profile = "./entry/src/main/config.json"
}
communication/ipcrpc_standard/ipcrpcservice/Test.json
已删除
100644 → 0
浏览文件 @
f3ac2537
{
"description"
:
"Configuration for ipcrpc Tests"
,
"driver"
:
{
"type"
:
"JSUnitTest"
,
"test-timeout"
:
"120000"
,
"package"
:
"ohos.acts.ipcrpctest"
,
"shell-timeout"
:
"60000"
},
"kits"
:
[
{
"test-file-name"
:
[
"ActsIpcRpcServiceTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
}
]
}
communication/ipcrpc_standard/ipcrpcservice/entry/src/main/config.json
已删除
100644 → 0
浏览文件 @
f3ac2537
{
"app"
:
{
"bundleName"
:
"ohos.acts.ipcrpcservice"
,
"vendor"
:
"ipcrpc"
,
"version"
:
{
"code"
:
1
,
"name"
:
"1.0"
},
"apiVersion"
:
{
"compatible"
:
4
,
"target"
:
5
}
},
"deviceConfig"
:
{},
"module"
:
{
"package"
:
"ohos.acts.ipcrpcservice"
,
"name"
:
".MyApplication"
,
"deviceType"
:
[
"phone"
],
"distro"
:
{
"deliveryWithInstall"
:
true
,
"moduleName"
:
"entry"
,
"moduleType"
:
"entry"
},
"abilities"
:
[
{
"skills"
:
[
{
"entities"
:
[
"entity.system.home"
],
"actions"
:
[
"action.system.home"
]
}
],
"name"
:
"ohos.acts.ipcrpcservice.MainAbility"
,
"icon"
:
"$media:icon"
,
"description"
:
"$string:mainability_description"
,
"label"
:
"MyApplication"
,
"type"
:
"service"
,
"launchType"
:
"standard"
,
"visible"
:
true
}
],
"js"
:
[
{
"pages"
:
[
"pages/index/index"
],
"name"
:
"default"
,
"window"
:
{
"designWidth"
:
720
,
"autoDesignWidth"
:
false
}
}
]
}
}
communication/ipcrpc_standard/ipcrpcservice/entry/src/main/js/default/app.js
已删除
100644 → 0
浏览文件 @
f3ac2537
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
device
from
'
@system.device
'
;
export
default
{
onCreate
()
{
console
.
info
(
'
AceApplication onCreate
'
);
},
onDestroy
()
{
console
.
info
(
'
AceApplication onDestroy
'
);
}
};
communication/ipcrpc_standard/ipcrpcservice/entry/src/main/js/default/i18n/en-US.json
已删除
100644 → 0
浏览文件 @
f3ac2537
{
"strings"
:
{
"hello"
:
"Hello"
,
"world"
:
"RpcService"
}
}
\ No newline at end of file
communication/ipcrpc_standard/ipcrpcservice/entry/src/main/js/default/i18n/zh-CN.json
已删除
100644 → 0
浏览文件 @
f3ac2537
{
"strings"
:
{
"hello"
:
"Hello"
,
"world"
:
"RpcService"
}
}
\ No newline at end of file
communication/ipcrpc_standard/ipcrpcservice/entry/src/main/js/default/pages/index/index.css
已删除
100644 → 0
浏览文件 @
f3ac2537
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
left
:
0px
;
top
:
0px
;
width
:
100%
;
height
:
100%
;
}
.title
{
font-size
:
30px
;
text-align
:
center
;
width
:
100%
;
height
:
40%
;
margin
:
10px
;
}
.btn
{
width
:
50%
;
height
:
100px
;
font-size
:
20px
;
}
\ No newline at end of file
communication/ipcrpc_standard/ipcrpcservice/entry/src/main/js/default/pages/index/index.hml
已删除
100644 → 0
浏览文件 @
f3ac2537
<!--
Copyright (c) 2021 Huawei Device Co., Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<div class="container" onswipe="touchMove">
<text class="title">
{{ $t('strings.hello') }} {{title}}
</text>
</div>
communication/ipcrpc_standard/ipcrpcservice/entry/src/main/js/default/pages/index/index.js
已删除
100644 → 0
浏览文件 @
f3ac2537
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
rpc
from
'
@ohos.rpc
'
;
const
CODE_BASIC
=
1
;
const
CODE_TRANS_BASIC
=
2
;
const
CODE_TRANS_ARRAY
=
3
;
const
CODE_TRANS_STRING
=
4
;
const
CODE_GET_OBJECT
=
10
;
const
CODE_GET_OBJECTS
=
11
;
const
CODE_GET_OBJECTS_MIX
=
12
;
const
CODE_GET_OBJECT_CALL
=
13
;
const
CODE_GET_OBJECT_DESC
=
14
;
const
CODE_GET_CALL_PID
=
20
;
const
CODE_GET_CALL_UID
=
21
;
const
CODE_CHECK_LOCAL_CALL
=
22
;
let
gBasicStub
;
let
gExtendStub
;
let
gBasicStubDesc
=
"
Basic_Stub_Desc
"
;
let
gExtendStubDesc
=
"
Extend_Stub_Desc
"
;
const
TAG
=
"
[IpcRpcService]
"
;
function
logInfo
(
logContent
)
{
console
.
info
(
TAG
+
logContent
);
}
class
BasicStub
extends
rpc
.
RemoteObject
{
constructor
(
des
)
{
if
(
typeof
des
===
'
string
'
)
{
super
(
des
,
des
.
length
);
}
return
null
;
}
onRemoteRequest
(
code
,
data
,
reply
,
option
)
{
logInfo
(
"
start call code is:
"
+
code
)
if
(
code
===
CODE_BASIC
)
{
logInfo
(
"
entry basic(add)
"
);
let
add1
=
data
.
readInt
();
let
add2
=
data
.
readInt
();
let
addResult
=
add1
+
add2
;
logInfo
(
"
read data int1:
"
+
add1
+
"
,int2:
"
+
add2
+
"
,add rst:
"
+
addResult
);
let
isOk
=
reply
.
writeInt
(
addResult
);
logInfo
(
"
writeInt ret:
"
+
isOk
);
return
true
;
}
else
if
(
code
===
CODE_TRANS_BASIC
)
{
logInfo
(
"
entry trans basic data type
"
);
this
.
transBasic
(
data
,
reply
);
return
true
;
}
else
if
(
code
===
CODE_GET_OBJECT
)
{
logInfo
(
"
entry get remote object(basic)
"
)
let
strArray
=
data
.
readStringArray
();
logInfo
(
"
read string array:
"
+
strArray
);
let
isOk
=
reply
.
writeRemoteObject
(
gBasicStub
);
if
(
isOk
)
{
logInfo
(
"
writeRemoteObject success
"
);
}
else
{
logInfo
(
"
writeRemoteObject fail
"
);
}
return
true
;
}
else
if
(
code
===
CODE_GET_OBJECTS
)
{
logInfo
(
"
entry get three remote object(basic)
"
);
let
strArray
=
data
.
readStringArray
();
logInfo
(
"
read string array:
"
+
strArray
);
let
isOk
=
reply
.
writeRemoteObject
(
gBasicStub
);
if
(
isOk
)
{
logInfo
(
"
writeRemoteObject1 success
"
);
}
else
{
logInfo
(
"
writeRemoteObject1 fail
"
);
}
isOk
=
reply
.
writeRemoteObject
(
gBasicStub
);
if
(
isOk
)
{
logInfo
(
"
writeRemoteObject2 success
"
);
}
else
{
logInfo
(
"
writeRemoteObject2 fail
"
);
}
isOk
=
reply
.
writeRemoteObject
(
gBasicStub
);
if
(
isOk
)
{
logInfo
(
"
writeRemoteObject3 success
"
);
}
else
{
logInfo
(
"
writeRemoteObject3 fail
"
);
}
return
true
;
}
else
if
(
code
===
CODE_GET_OBJECTS_MIX
)
{
logInfo
(
"
entry get two remote object(extend and basic)
"
);
let
isOk
=
reply
.
writeRemoteObject
(
gExtendStub
);
if
(
isOk
)
{
logInfo
(
"
writeRemoteObject[extend] success
"
);
}
else
{
logInfo
(
"
writeRemoteObject[extend] fail
"
);
}
isOk
=
reply
.
writeRemoteObject
(
gBasicStub
);
if
(
isOk
)
{
logInfo
(
"
writeRemoteObject[basic] success
"
);
}
else
{
logInfo
(
"
writeRemoteObject[basic] fail
"
);
}
return
true
;
}
else
if
(
code
===
CODE_GET_OBJECT_CALL
)
{
logInfo
(
"
entry get remote object(extend) to call
"
);
let
isOk
=
reply
.
writeRemoteObject
(
gExtendStub
);
if
(
isOk
)
{
logInfo
(
"
writeRemoteObject[extend] success
"
);
}
else
{
logInfo
(
"
writeRemoteObject[extend] fail
"
);
}
return
true
;
}
else
if
(
code
===
CODE_GET_OBJECT_DESC
)
{
logInfo
(
"
entry get object desc(basic and extend)
"
);
let
basicDesc
=
gBasicStub
.
getInterfaceDescriptor
();
let
extendDesc
=
gExtendStub
.
getInterfaceDescriptor
();
let
isOk
=
reply
.
writeString
(
basicDesc
);
if
(
isOk
)
{
logInfo
(
"
writeString[basic] success
"
);
}
else
{
logInfo
(
"
writeString[basic] fail
"
);
}
isOk
=
reply
.
writeString
(
extendDesc
);
if
(
isOk
)
{
logInfo
(
"
writeString[extend] success
"
);
}
else
{
logInfo
(
"
writeString[extend] fail
"
);
}
return
true
;
}
else
if
(
code
===
CODE_GET_CALL_UID
)
{
logInfo
(
"
entry get call uid
"
);
let
callUid
=
rpc
.
IPCSkeleton
.
getCallingUid
();
logInfo
(
"
get call uid:
"
+
callUid
);
let
isOk
=
reply
.
writeInt
(
callUid
);
if
(
isOk
)
{
logInfo
(
"
writeInt[call uid] success
"
);
}
else
{
logInfo
(
"
writeInt[call uid] fail
"
);
}
return
true
;
}
else
if
(
code
===
CODE_GET_CALL_PID
)
{
logInfo
(
"
entry get call pid
"
);
let
callPid
=
rpc
.
IPCSkeleton
.
getCallingPid
();
logInfo
(
"
get call pid:
"
+
callPid
);
let
isOk
=
reply
.
writeInt
(
callPid
);
if
(
isOk
)
{
logInfo
(
"
writeInt[call pid] success
"
);
}
else
{
logInfo
(
"
writeInt[call pid] fail
"
);
}
return
true
;
}
else
if
(
code
===
CODE_CHECK_LOCAL_CALL
)
{
logInfo
(
"
entry check local call
"
);
let
isLocal
=
rpc
.
IPCSkeleton
.
isLocalCalling
();
logInfo
(
"
call isLocalCalling
"
+
isLocal
);
let
isOk
=
reply
.
writeBoolean
(
isLocal
);
if
(
isOk
)
{
logInfo
(
"
writeBoolean[isLocal] success
"
);
}
else
{
logInfo
(
"
writeBoolean[isLocal] fail
"
);
}
return
true
;
}
else
{
logInfo
(
"
not support this code
"
);
return
false
;
}
logInfo
(
"
end call code is:
"
+
code
)
}
transBasic
(
data
,
reply
)
{
logInfo
(
"
transBasic begin
"
);
let
rByte
=
data
.
readByte
();
let
rChar
=
data
.
readChar
();
let
rShort
=
data
.
readShort
();
let
rInt
=
data
.
readInt
();
let
rLong
=
data
.
readLong
();
let
rBoolean
=
data
.
readBoolean
();
let
rFloat
=
data
.
readFloat
();
let
rDouble
=
data
.
readDouble
();
logInfo
(
rByte
);
logInfo
(
rChar
);
logInfo
(
rShort
);
logInfo
(
rInt
);
logInfo
(
rLong
);
logInfo
(
rBoolean
);
logInfo
(
rFloat
);
logInfo
(
rDouble
);
reply
.
writeDouble
(
rDouble
);
reply
.
writeFloat
(
rFloat
);
reply
.
writeBoolean
(
rBoolean
);
reply
.
writeLong
(
rLong
);
reply
.
writeInt
(
rInt
);
reply
.
writeShort
(
rShort
);
reply
.
writeChar
(
rChar
);
reply
.
writeByte
(
rByte
);
logInfo
(
"
transBasic end
"
);
}
}
class
ExtendStub
extends
rpc
.
RemoteObject
{
constructor
(
des
)
{
if
(
typeof
des
===
'
string
'
)
{
super
(
des
,
des
.
length
);
}
return
null
;
}
onRemoteRequest
(
code
,
data
,
reply
,
option
)
{
logInfo
(
"
start call code is:
"
+
code
)
if
(
code
===
CODE_BASIC
)
{
let
sub1
=
data
.
readInt
();
let
sub2
=
data
.
readFloat
();
let
subResult
=
sub1
-
sub2
;
logInfo
(
"
read data int1:
"
+
sub1
+
"
,int2:
"
+
sub2
+
"
,sub rst:
"
+
subResult
);
let
isOk
=
reply
.
writeFloat
(
subResult
);
logInfo
(
"
writeInt ret:
"
+
isOk
);
return
true
;
}
else
{
logInfo
(
"
not support this code
"
);
return
false
;
}
}
}
export
default
{
data
:
{
title
:
""
},
onStart
(
want
)
{
logInfo
(
"
onStart start
"
);
gBasicStub
=
new
BasicStub
(
gBasicStubDesc
);
gExtendStub
=
new
ExtendStub
(
gExtendStubDesc
);
logInfo
(
"
onStart end
"
)
},
onStop
()
{
logInfo
(
'
onStop
'
);
},
onConnect
(
want
)
{
logInfo
(
'
onConnect
'
);
return
gBasicStub
;
},
onReconnect
(
want
)
{
logInfo
(
'
onReconnect
'
);
},
onDisconnect
()
{
logInfo
(
'
onDisConnect
'
);
},
onCommand
(
want
,
restart
,
startId
)
{
logInfo
(
'
onCommand
'
);
},
}
\ No newline at end of file
communication/ipcrpc_standard/ipcrpcservice/entry/src/main/resources/base/element/string.json
已删除
100644 → 0
浏览文件 @
f3ac2537
{
"string"
:
[
{
"name"
:
"entry_MainAbility"
,
"value"
:
"RpcService"
},
{
"name"
:
"mainability_description"
,
"value"
:
"JS_Empty Ability"
}
]
}
\ No newline at end of file
communication/ipcrpc_standard/ipcrpcservice/entry/src/main/resources/base/media/icon.png
已删除
100644 → 0
浏览文件 @
f3ac2537
6.6 KB
communication/ipcrpc_standard/ipcrpcservice/signature/openharmony_sx.p7b
已删除
100644 → 0
浏览文件 @
f3ac2537
文件已删除
communication/ipcrpc_standard/ipcrpctest/BUILD.gn
已删除
100644 → 0
浏览文件 @
f3ac2537
# Copyright (C) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ipcrpcTest") {
hap_profile = "./entry/src/main/config.json"
deps = [
":ipcrpcTest_assets",
":ipcrpcTest_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsIpcRpcTest"
}
ohos_js_assets("ipcrpcTest_assets") {
source_dir = "./entry/src/main/js/default"
}
ohos_resources("ipcrpcTest_resources") {
sources = [ "./entry/src/main/resources" ]
hap_profile = "./entry/src/main/config.json"
}
communication/ipcrpc_standard/ipcrpctest/Test.json
已删除
100644 → 0
浏览文件 @
f3ac2537
{
"description"
:
"Configuration for ipcrpc Tests"
,
"driver"
:
{
"type"
:
"JSUnitTest"
,
"test-timeout"
:
"120000"
,
"package"
:
"ohos.acts.ipcrpctest"
,
"shell-timeout"
:
"60000"
},
"kits"
:
[
{
"test-file-name"
:
[
"ActsIpcRpcTest.hap"
,
"IpcRpcService.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
}
]
}
communication/ipcrpc_standard/ipcrpctest/entry/src/main/config.json
已删除
100644 → 0
浏览文件 @
f3ac2537
{
"app"
:
{
"bundleName"
:
"ohos.acts.ipcrpctest"
,
"vendor"
:
"ipcrpc"
,
"version"
:
{
"code"
:
1
,
"name"
:
"1.0"
},
"apiVersion"
:
{
"compatible"
:
4
,
"target"
:
5
}
},
"deviceConfig"
:
{},
"module"
:
{
"package"
:
"ohos.acts.ipcrpctest"
,
"name"
:
".MyApplication"
,
"deviceType"
:
[
"phone"
],
"distro"
:
{
"deliveryWithInstall"
:
true
,
"moduleName"
:
"entry"
,
"moduleType"
:
"entry"
},
"abilities"
:
[
{
"visible"
:
true
,
"skills"
:
[
{
"entities"
:
[
"entity.system.home"
],
"actions"
:
[
"action.system.home"
]
}
],
"name"
:
"ohos.acts.ipcrpctest.MainAbility"
,
"icon"
:
"$media:icon"
,
"description"
:
"$string:mainability_description"
,
"label"
:
"MyApplication"
,
"type"
:
"page"
,
"launchType"
:
"standard"
}
],
"js"
:
[
{
"pages"
:
[
"pages/index/index"
],
"name"
:
"default"
,
"window"
:
{
"designWidth"
:
720
,
"autoDesignWidth"
:
false
}
}
]
}
}
communication/ipcrpc_standard/ipcrpctest/entry/src/main/js/default/app.js
已删除
100644 → 0
浏览文件 @
f3ac2537
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
device
from
'
@system.device
'
;
export
default
{
onCreate
()
{
console
.
info
(
'
AceApplication onCreate
'
);
},
onDestroy
()
{
console
.
info
(
'
AceApplication onDestroy
'
);
}
};
communication/ipcrpc_standard/ipcrpctest/entry/src/main/js/default/i18n/en-US.json
已删除
100644 → 0
浏览文件 @
f3ac2537
{
"strings"
:
{
"hello"
:
"Hello"
,
"world"
:
"RpcTestcase"
}
}
\ No newline at end of file
communication/ipcrpc_standard/ipcrpctest/entry/src/main/js/default/i18n/zh-CN.json
已删除
100644 → 0
浏览文件 @
f3ac2537
{
"strings"
:
{
"hello"
:
"Hello"
,
"world"
:
"RpcTestcase"
}
}
\ No newline at end of file
communication/ipcrpc_standard/ipcrpctest/entry/src/main/js/default/pages/index/index.css
已删除
100644 → 0
浏览文件 @
f3ac2537
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
left
:
0px
;
top
:
0px
;
width
:
100%
;
height
:
100%
;
}
.title
{
font-size
:
30px
;
text-align
:
center
;
width
:
100%
;
height
:
40%
;
margin
:
10px
;
}
.btn
{
width
:
50%
;
height
:
100px
;
font-size
:
20px
;
}
\ No newline at end of file
communication/ipcrpc_standard/ipcrpctest/entry/src/main/js/default/pages/index/index.hml
已删除
100644 → 0
浏览文件 @
f3ac2537
<!--
Copyright (c) 2021 Huawei Device Co., Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<div class="container" onswipe="touchMove">
<text class="title">
{{ $t('strings.hello') }} {{title}}
</text>
</div>
\ No newline at end of file
communication/ipcrpc_standard/ipcrpctest/entry/src/main/js/default/pages/index/index.js
已删除
100644 → 0
浏览文件 @
f3ac2537
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
app
from
'
@system.app
'
import
{
Core
,
ExpectExtend
}
from
'
deccjsunit/index
'
export
default
{
data
:
{
title
:
""
},
onInit
()
{
this
.
title
=
this
.
$t
(
'
strings.world
'
);
},
onShow
()
{
console
.
info
(
'
onShow finish
'
)
const
core
=
Core
.
getInstance
()
const
expectExtend
=
new
ExpectExtend
({
'
id
'
:
'
extend
'
})
core
.
addService
(
'
expect
'
,
expectExtend
)
core
.
init
()
const
configService
=
core
.
getDefaultService
(
'
config
'
)
configService
.
setConfig
(
this
)
require
(
'
../../test/List.test
'
)
core
.
execute
()
},
onReady
()
{
},
}
\ No newline at end of file
communication/ipcrpc_standard/ipcrpctest/entry/src/main/js/default/test/IpcRpcClient.test.js
已删除
100644 → 0
浏览文件 @
f3ac2537
此差异已折叠。
点击以展开。
communication/ipcrpc_standard/ipcrpctest/entry/src/main/js/default/test/List.test.js
已删除
100644 → 0
浏览文件 @
f3ac2537
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require
(
'
./IpcRpcClient.test.js
'
)
communication/ipcrpc_standard/ipcrpctest/entry/src/main/resources/base/element/string.json
已删除
100644 → 0
浏览文件 @
f3ac2537
{
"string"
:
[
{
"name"
:
"entry_MainAbility"
,
"value"
:
"RpcTest"
},
{
"name"
:
"mainability_description"
,
"value"
:
"JS_Empty Ability"
}
]
}
\ No newline at end of file
communication/ipcrpc_standard/ipcrpctest/entry/src/main/resources/base/media/icon.png
已删除
100644 → 0
浏览文件 @
f3ac2537
6.6 KB
communication/ipcrpc_standard/ipcrpctest/signature/openharmony_sx.p7b
已删除
100644 → 0
浏览文件 @
f3ac2537
文件已删除
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录