提交 dd330f30 编写于 作者: G gaoxi

补充电话服务接口覆盖率用例

Signed-off-by: Ngaoxi <gaoxi785@huawei.com>
上级 0d027703
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
*/ */
import {describe, it, expect} from 'hypium/index'; import {describe, it, expect} from 'hypium/index';
import connection from '@ohos.net.connection' import connection from '@ohos.net.connection'
import http from "@ohos.net.http";
import socket from "@ohos.net.socket";
import utils from './Utils.ets' import utils from './Utils.ets'
export default function connectionJsunit() { export default function connectionJsunit() {
...@@ -25,6 +27,19 @@ export default function connectionJsunit() { ...@@ -25,6 +27,19 @@ export default function connectionJsunit() {
const NETID_IVVALID2 = 0; const NETID_IVVALID2 = 0;
console.log("************* connection Test start*************"); console.log("************* connection Test start*************");
it('Telephony_Connection_Request_Socket_0100', 0, function (done) {
type HttpRequest = http.HttpRequest
;
type TCPSocket = socket.TCPSocket
;
type UDPSocket = socket.UDPSocket
;
expect(typeof HttpRequest == typeof connection.HttpRequest).assertTrue();
expect(typeof TCPSocket == typeof connection.TCPSocket).assertTrue();
expect(typeof UDPSocket == typeof connection.UDPSocket).assertTrue();
done();
});
/* /*
* @tc.number : Telephony_Connection_Connection_createNetConnection_0100 * @tc.number : Telephony_Connection_Connection_createNetConnection_0100
* @tc.name : createNetConnection * @tc.name : createNetConnection
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册