From de9740384cbf1004d4989ac8e8171232cdf0a61f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E9=B9=8F=E8=BE=89?= Date: Thu, 27 Mar 2025 21:30:55 +0800 Subject: [PATCH 01/14] change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 梁鹏辉 --- test/native/BUILD.gn | 5 +- test/native/unittest/BUILD.gn | 21 ++++++ .../unittest/js/systemapi_js_test/BUILD.gn | 21 ++++++ .../systemapi_js_test/UsbSystemApiJsTest.js | 69 ++++++++++++++++++ .../unittest/js/systemapi_js_test/config.json | 64 ++++++++++++++++ .../js/systemapi_js_test/openharmony_sx.p7b | Bin 0 -> 3583 bytes 6 files changed, 179 insertions(+), 1 deletion(-) create mode 100644 test/native/unittest/BUILD.gn create mode 100644 test/native/unittest/js/systemapi_js_test/BUILD.gn create mode 100644 test/native/unittest/js/systemapi_js_test/UsbSystemApiJsTest.js create mode 100644 test/native/unittest/js/systemapi_js_test/config.json create mode 100644 test/native/unittest/js/systemapi_js_test/openharmony_sx.p7b diff --git a/test/native/BUILD.gn b/test/native/BUILD.gn index cbfcaf97..eecf9c2a 100644 --- a/test/native/BUILD.gn +++ b/test/native/BUILD.gn @@ -16,5 +16,8 @@ import("./../../usbmgr.gni") group("usb_unittest_test") { testonly = true - deps = [ "${usb_manager_path}/test/fuzztest:fuzztest" ] + deps = [ + "${usb_manager_path}/test/fuzztest:fuzztest", + "${usb_manager_path}/test/native/unittest:usb_manager_unittest", + ] } diff --git a/test/native/unittest/BUILD.gn b/test/native/unittest/BUILD.gn new file mode 100644 index 00000000..c2c49b2d --- /dev/null +++ b/test/native/unittest/BUILD.gn @@ -0,0 +1,21 @@ +# Copyright (c) 2025 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("//build/test.gni") + +group("usb_manager_unittest") { + testonly = true + deps = [ + "js/systemapi_js_test:UsbSystemApiJsTest", + ] +} diff --git a/test/native/unittest/js/systemapi_js_test/BUILD.gn b/test/native/unittest/js/systemapi_js_test/BUILD.gn new file mode 100644 index 00000000..c6719e7f --- /dev/null +++ b/test/native/unittest/js/systemapi_js_test/BUILD.gn @@ -0,0 +1,21 @@ +# Copyright (c) 2024 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("//build/test.gni") + +module_output_path = "external_device_manager/extension_device_manager" +ohos_js_unittest("UsbSystemApiJsTest") { + module_out_path = module_output_path + hap_profile = "./config.json" + certificate_profile = "./openharmony_sx.p7b" +} diff --git a/test/native/unittest/js/systemapi_js_test/UsbSystemApiJsTest.js b/test/native/unittest/js/systemapi_js_test/UsbSystemApiJsTest.js new file mode 100644 index 00000000..a66e7660 --- /dev/null +++ b/test/native/unittest/js/systemapi_js_test/UsbSystemApiJsTest.js @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2024 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 usbManager from '@ohos.usbManager' +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' + +describe("UsbSystemApiJsTest", function () { + + beforeAll(function () { + console.info('***************USB Unit Test beforeAll called***************'); + console.info('usbManager.getVersion() = ' + usbManager.getVersion()); + }) + + afterAll(function () { + console.info('AfterAll called'); + }) + + /* + * @tc.name:SystemApi_queryDeviceInfo_001 + * @tc.desc:verify SystemApi of queryDeviceInfo + * @tc.type: FUNC + */ + it("SystemApi_queryDeviceInfo_001", 0, done => { + console.info('----------------------SystemApi_queryDeviceInfo_001---------------------------'); + if (!isDeviceConnected(done)) { + return; + } + try { + deviceManager.queryDeviceInfo(TEST_DEVICE_ID); + expect(false).assertTrue(); + done(); + } catch (err) { + expect(err.code).assertEqual(SYSTEMAPI_DENIED_CODE); + done(); + } + }); + + /* + * @tc.name:SystemApi_queryDriverInfo_001 + * @tc.desc:verify SystemApi of queryDriverInfo + * @tc.type: FUNC + */ + it("SystemApi_queryDriverInfo_001", 0, done => { + console.info('----------------------SystemApi_queryDriverInfo_001---------------------------'); + if (!isDeviceConnected(done)) { + return; + } + try { + deviceManager.queryDriverInfo(TEST_DRIVER_UID); + expect(false).assertTrue(); + done(); + } catch (err) { + expect(err.code).assertEqual(SYSTEMAPI_DENIED_CODE); + done(); + } + }); +}); \ No newline at end of file diff --git a/test/native/unittest/js/systemapi_js_test/config.json b/test/native/unittest/js/systemapi_js_test/config.json new file mode 100644 index 00000000..15fe2548 --- /dev/null +++ b/test/native/unittest/js/systemapi_js_test/config.json @@ -0,0 +1,64 @@ +{ + "app": { + "bundleName": "com.extdevmgr.systemapitest", + "vendor": "example", + "version": { + "code": 1, + "name": "1.0" + }, + "apiVersion": { + "compatible": 12, + "target": 12 + } + }, + "deviceConfig": {}, + "module": { + "reqPermissions": [], + "package": "com.extdevmgr.systemapitest", + "name": ".MyApplication", + "deviceType": [ + "default", + "tablet", + "2in1" + ], + "distro": { + "deliveryWithInstall": true, + "moduleName": "entry", + "moduleType": "entry" + }, + "abilities": [ + { + "visible": true, + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ], + "name": "com.extdevmgr.systemapitest.MainAbility", + "icon": "$media:icon", + "description": "$string:mainability_description", + "label": "PermissionJsTest", + "type": "page", + "launchType": "standard" + } + ], + "js": [ + { + "pages": [ + "pages/index/index" + ], + "name": "default", + "window": { + "designWidth": 720, + "autoDesignWidth": false + } + } + ] + } + } + \ No newline at end of file diff --git a/test/native/unittest/js/systemapi_js_test/openharmony_sx.p7b b/test/native/unittest/js/systemapi_js_test/openharmony_sx.p7b new file mode 100644 index 0000000000000000000000000000000000000000..fabd522319c981af0e600714d22a43d4abbb8de9 GIT binary patch literal 3583 zcmcgvZFCc57H&S;S|Ly^P+*0YfE0n0chaOy>VnQBlSu-TWYVN$rf-bT>E6D1);3r3RXVMBSM}O?` z9P%S`?tSlj=b3w-`@H7`Io|VWC zKZ+npvox8a}F!#EO)b;di| zy*`4l!%`5&F+5|-!fqtyX++>q0PgU3TlRKnZgZW%+smGK7fOq1;O*gG{8~ z264nSf-8=%Xyq<@X9f$v%_HBL3ZSS}YH2dNLd|Y5Y&4r)4nG@e0-5D@I584~2UjTIfocr!3WbdH4Tk* z=_u-mk}lDog}wP`!h*n23yQ$F4KcxzQ>myQco8IoI(%X#nU1rq9OXxdlsh6(EuAaU zR^AhAjFC7jVK!SQ)_|L=@@_jqz;+Ubr53`Kf!!hre1uUj*@mU| zbV4jZOg=1*uy`!O7_(6e*I`WwWELe{OF*+n5~8AofL)TaAq^XwXtt4A!nbl+m~{Y) zoeR5@Ua#ooh)%QQ^!iwP2r+rZVAdOQ%V{WHOro4SxvGKN6_N{yk%IX&Og` zh2j&{bVihCG7(Ewr@B)jogf89q*J0COA4$!cpRThkZj%*3{jdC(~1=6ymjl&)oL)(H4NSn>;akw!3EpoO? z8}dn$GNdF!iE`d?D=YQ+XgPISks`g&!Q`bc$z8-OB$+OTrDL>#A_X$cu#Cvia?+K0 zSV0O4LNG=9z6(M#BF!l{<-Gm5qJM#$`lleLdcI$yR;kt6x*dtwSeKy$$yWl2*ubL^4~ zi&eBwMp9{m!R&IK5dubFgpBgj+)}PHSs`N$G-?9jM}h#LdIUt(4}tI{`KVmRO8Am{<>=nRm;I!Z~-nIIz|Wj@kcy*ZkxD znJ=hpJ5SBqx7A#ldHh0Z&G0`a@00msm-+MBD1RoOu&f`C1;l@3>lT3dBdx3Wq1O3% zUc8J%kO{JkAyMAEf=IeR=_T?MF8aB)K(7fGXz|+P-S>6q)@}S$=RSC00sjdFCzh`o zGECUm_3Y_T=m9oH z4{YCZzHRFH`4#Jv$187`MWjNmHFd?;qhXpttpIlgZL2rI3?OgWYrlZaK@7+^1aCP6|i3jS3 zX5X=Pp*h>See-pOM~}S1Yv(edD)A9DnD@lIU-Gx?np^CjvaRo2|J}fSQ@8!=G&(G7 z>)N#O9C)zPdtdj_9py(B4ZMX-?)YD?c?!P1N_%qVV`twL*V*>$Ec#;ir&TlGIC{VC_Xp~> ztr41g53Tu$u(xaAnLqhK)Bg7!Tu|$Kdhp4Y9+|mu``O;!(z9=GnA7{!?YHe;RPoj6 z*G}B?jUl*|0^~Sx`d*Iw9~}E$aT|BSXyOHcR)fT`TP^Dz5!!zUe6JeHsbHC8OXaHy=(r+n96eFT-irDe zF#Y1Ks6+$FYv0|aRN%UcMoA$wSw0j^pccpnBLqR_7O>>fsut2~EAhQOzZrNMeTdk9 znB7-AeMao-$5eBcR&eD$#}fyip-kZFizm5Sivd(!dBf^#>e#}mvp#>d(qVeJ@YMc~ z|1j{>l*- Date: Tue, 8 Apr 2025 09:46:50 +0800 Subject: [PATCH 02/14] change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 梁鹏辉 --- .../BUILD.gn | 2 +- .../UsbSystemApiJsTest.js | 39 +++--------------- .../config.json | 0 .../openharmony_sx.p7b | Bin 4 files changed, 6 insertions(+), 35 deletions(-) rename test/native/unittest/js/{systemapi_js_test => usbsystemapi_js_test}/BUILD.gn (94%) rename test/native/unittest/js/{systemapi_js_test => usbsystemapi_js_test}/UsbSystemApiJsTest.js (50%) rename test/native/unittest/js/{systemapi_js_test => usbsystemapi_js_test}/config.json (100%) rename test/native/unittest/js/{systemapi_js_test => usbsystemapi_js_test}/openharmony_sx.p7b (100%) diff --git a/test/native/unittest/js/systemapi_js_test/BUILD.gn b/test/native/unittest/js/usbsystemapi_js_test/BUILD.gn similarity index 94% rename from test/native/unittest/js/systemapi_js_test/BUILD.gn rename to test/native/unittest/js/usbsystemapi_js_test/BUILD.gn index c6719e7f..29da335c 100644 --- a/test/native/unittest/js/systemapi_js_test/BUILD.gn +++ b/test/native/unittest/js/usbsystemapi_js_test/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. +# Copyright (c) 2025 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 diff --git a/test/native/unittest/js/systemapi_js_test/UsbSystemApiJsTest.js b/test/native/unittest/js/usbsystemapi_js_test/UsbSystemApiJsTest.js similarity index 50% rename from test/native/unittest/js/systemapi_js_test/UsbSystemApiJsTest.js rename to test/native/unittest/js/usbsystemapi_js_test/UsbSystemApiJsTest.js index a66e7660..2af387e3 100644 --- a/test/native/unittest/js/systemapi_js_test/UsbSystemApiJsTest.js +++ b/test/native/unittest/js/usbsystemapi_js_test/UsbSystemApiJsTest.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Huawei Device Co., Ltd. + * Copyright (C) 2025 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 @@ -32,38 +32,9 @@ describe("UsbSystemApiJsTest", function () { * @tc.desc:verify SystemApi of queryDeviceInfo * @tc.type: FUNC */ - it("SystemApi_queryDeviceInfo_001", 0, done => { - console.info('----------------------SystemApi_queryDeviceInfo_001---------------------------'); - if (!isDeviceConnected(done)) { - return; - } - try { - deviceManager.queryDeviceInfo(TEST_DEVICE_ID); - expect(false).assertTrue(); - done(); - } catch (err) { - expect(err.code).assertEqual(SYSTEMAPI_DENIED_CODE); - done(); - } - }); - - /* - * @tc.name:SystemApi_queryDriverInfo_001 - * @tc.desc:verify SystemApi of queryDriverInfo - * @tc.type: FUNC - */ - it("SystemApi_queryDriverInfo_001", 0, done => { - console.info('----------------------SystemApi_queryDriverInfo_001---------------------------'); - if (!isDeviceConnected(done)) { - return; - } - try { - deviceManager.queryDriverInfo(TEST_DRIVER_UID); - expect(false).assertTrue(); - done(); - } catch (err) { - expect(err.code).assertEqual(SYSTEMAPI_DENIED_CODE); - done(); - } + it("SystemApi_test_test", 0, done => { + console.info('----------------------SystemApi_test_test---------------------------'); + console.info('----------------------SystemApi_test_start---------------------------'); + console.info('----------------------SystemApi_test_finish---------------------------'); }); }); \ No newline at end of file diff --git a/test/native/unittest/js/systemapi_js_test/config.json b/test/native/unittest/js/usbsystemapi_js_test/config.json similarity index 100% rename from test/native/unittest/js/systemapi_js_test/config.json rename to test/native/unittest/js/usbsystemapi_js_test/config.json diff --git a/test/native/unittest/js/systemapi_js_test/openharmony_sx.p7b b/test/native/unittest/js/usbsystemapi_js_test/openharmony_sx.p7b similarity index 100% rename from test/native/unittest/js/systemapi_js_test/openharmony_sx.p7b rename to test/native/unittest/js/usbsystemapi_js_test/openharmony_sx.p7b -- Gitee From 4a08b264d23d2ec65fbd999fa5be71b8ffecb48f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E9=B9=8F=E8=BE=89?= Date: Tue, 8 Apr 2025 09:50:58 +0800 Subject: [PATCH 03/14] change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 梁鹏辉 --- .../unittest/js/usbsystemapi_js_test/UsbSystemApiJsTest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/native/unittest/js/usbsystemapi_js_test/UsbSystemApiJsTest.js b/test/native/unittest/js/usbsystemapi_js_test/UsbSystemApiJsTest.js index 2af387e3..199d5e12 100644 --- a/test/native/unittest/js/usbsystemapi_js_test/UsbSystemApiJsTest.js +++ b/test/native/unittest/js/usbsystemapi_js_test/UsbSystemApiJsTest.js @@ -28,7 +28,7 @@ describe("UsbSystemApiJsTest", function () { }) /* - * @tc.name:SystemApi_queryDeviceInfo_001 + * @tc.name:SystemApi_test_test * @tc.desc:verify SystemApi of queryDeviceInfo * @tc.type: FUNC */ -- Gitee From e656a595b325c2f5c6d3f51099db311746bdabde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E9=B9=8F=E8=BE=89?= Date: Tue, 8 Apr 2025 10:04:26 +0800 Subject: [PATCH 04/14] change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 梁鹏辉 --- test/native/unittest/BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/native/unittest/BUILD.gn b/test/native/unittest/BUILD.gn index c2c49b2d..b939cdf9 100644 --- a/test/native/unittest/BUILD.gn +++ b/test/native/unittest/BUILD.gn @@ -16,6 +16,6 @@ import("//build/test.gni") group("usb_manager_unittest") { testonly = true deps = [ - "js/systemapi_js_test:UsbSystemApiJsTest", + "js/usbsystemapi_js_test:UsbSystemApiJsTest", ] } -- Gitee From dfb01fd0232483a1ac4ae1f5b8aeb9592a0d2a0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E9=B9=8F=E8=BE=89?= Date: Tue, 8 Apr 2025 11:32:32 +0800 Subject: [PATCH 05/14] change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 梁鹏辉 --- .../UsbSystemApiJsTest.js | 85 +++++++++++++++++-- 1 file changed, 79 insertions(+), 6 deletions(-) diff --git a/test/native/unittest/js/usbsystemapi_js_test/UsbSystemApiJsTest.js b/test/native/unittest/js/usbsystemapi_js_test/UsbSystemApiJsTest.js index 199d5e12..32ca02c6 100644 --- a/test/native/unittest/js/usbsystemapi_js_test/UsbSystemApiJsTest.js +++ b/test/native/unittest/js/usbsystemapi_js_test/UsbSystemApiJsTest.js @@ -20,7 +20,12 @@ describe("UsbSystemApiJsTest", function () { beforeAll(function () { console.info('***************USB Unit Test beforeAll called***************'); - console.info('usbManager.getVersion() = ' + usbManager.getVersion()); + try { + console.info('usbManager.getVersion() = ' + usbManager.getVersion()); + } catch (error) { + console.info('usbManager.getVersion() error.code = ' + error.code); + expect(error.code).assertEqual(SYSTEMAPI_DENIED_CODE); + } }) afterAll(function () { @@ -28,13 +33,81 @@ describe("UsbSystemApiJsTest", function () { }) /* - * @tc.name:SystemApi_test_test + * @tc.name:UsbSystemApi_test_test * @tc.desc:verify SystemApi of queryDeviceInfo * @tc.type: FUNC */ - it("SystemApi_test_test", 0, done => { - console.info('----------------------SystemApi_test_test---------------------------'); - console.info('----------------------SystemApi_test_start---------------------------'); - console.info('----------------------SystemApi_test_finish---------------------------'); + it("UsbSystemApi_test_test", 0, done => { + console.info('----------------------UsbSystemApi_test_test---------------------------'); + console.info('----------------------UsbSystemApi_test_start---------------------------'); + console.info('----------------------UsbSystemApi_test_finish---------------------------'); + expect(true).assertTrue(); + done(); + }); + + /* + * @tc.name:UsbSystemApi_test_addDeviceAccessRight + * @tc.desc:verify SystemApi of queryDeviceInfo + * @tc.type: FUNC + */ + it("UsbSystemApi_test_addDeviceAccessRight", 0, done => { + console.info('UsbSystemApi_test_addDeviceAccessRight start'); + try { + let bundleName = "ohos.usb.testBundleName"; + let deviceName = "ohos.usb.testDeviceName"; + var ret = usbManager.addDeviceAccessRight(bundleName, deviceName); + console.info('usbManager.addDeviceAccessRight ret = ' + ret); + expect(ret).assertTrue(); + } catch (error) { + console.info('usbManager.getVersion() error.code = ' + error.code); + expect(error.code).assertEqual(SYSTEMAPI_DENIED_CODE); + } finally { + done(); + } + console.info('UsbSystemApi_test_addDeviceAccessRight finish'); + }); + + /* + * @tc.name:UsbSystemApi_test_addDeviceAccessRight + * @tc.desc:verify SystemApi of queryDeviceInfo + * @tc.type: FUNC + */ + it("UsbSystemApi_test_addDeviceAccessRight", 0, done => { + console.info('UsbSystemApi_test_addDeviceAccessRight start'); + try { + let bundleName = "ohos.usb.testBundleName"; + let deviceName = "ohos.usb.testDeviceName"; + var ret = usbManager.addDeviceAccessRight(bundleName, deviceName); + console.info('usbManager.addDeviceAccessRight ret = ' + ret); + expect(ret).assertTrue(); + } catch (error) { + console.info('usbManager.getVersion() error.code = ' + error.code); + expect(error.code).assertEqual(SYSTEMAPI_DENIED_CODE); + } finally { + done(); + } + console.info('UsbSystemApi_test_addDeviceAccessRight finish'); + }); + + /* + * @tc.name:UsbSystemApi_test_usbFunctionsFromString + * @tc.desc:verify SystemApi of queryDeviceInfo + * @tc.type: FUNC + */ + it("UsbSystemApi_test_usbFunctionsFromString", 0, done => { + console.info('UsbSystemApi_test_usbFunctionsFromString start'); + try { + let funcs = "Permission denied. Call requestRight or requestAccessoryRight to get the " + + "permission or USBDevicePipe access right first."; + var ret = usbManager.usbFunctionsFromString(funcs); + console.info('usbManager.usbFunctionsFromString ret = ' + ret); + expect(ret).assertEqual(14400001); + } catch (error) { + console.info('usbManager.getVersion() error.code = ' + error.code); + expect(error.code).assertEqual(SYSTEMAPI_DENIED_CODE); + } finally { + done(); + } + console.info('UsbSystemApi_test_usbFunctionsFromString finish'); }); }); \ No newline at end of file -- Gitee From dfb0f1865fa5fae9614f36671ab2a9f0a51aba73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E9=B9=8F=E8=BE=89?= Date: Tue, 8 Apr 2025 11:33:28 +0800 Subject: [PATCH 06/14] change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 梁鹏辉 --- .../UsbSystemApiJsTest.js | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/test/native/unittest/js/usbsystemapi_js_test/UsbSystemApiJsTest.js b/test/native/unittest/js/usbsystemapi_js_test/UsbSystemApiJsTest.js index 32ca02c6..8ed7d3fc 100644 --- a/test/native/unittest/js/usbsystemapi_js_test/UsbSystemApiJsTest.js +++ b/test/native/unittest/js/usbsystemapi_js_test/UsbSystemApiJsTest.js @@ -110,4 +110,26 @@ describe("UsbSystemApiJsTest", function () { } console.info('UsbSystemApi_test_usbFunctionsFromString finish'); }); + + /* + * @tc.name:UsbSystemApi_test_getFunctionsFromString + * @tc.desc:verify SystemApi of queryDeviceInfo + * @tc.type: FUNC + */ + it("UsbSystemApi_test_getFunctionsFromString", 0, done => { + console.info('UsbSystemApi_test_getFunctionsFromString start'); + try { + let funcs = "Permission denied. Call requestRight or requestAccessoryRight to get the " + + "permission or USBDevicePipe access right first."; + var ret = usbManager.getFunctionsFromString(funcs); + console.info('usbManager.getFunctionsFromString ret = ' + ret); + expect(ret).assertEqual(14400001); + } catch (error) { + console.info('usbManager.getVersion() error.code = ' + error.code); + expect(error.code).assertEqual(SYSTEMAPI_DENIED_CODE); + } finally { + done(); + } + console.info('UsbSystemApi_test_getFunctionsFromString finish'); + }); }); \ No newline at end of file -- Gitee From ebaf878574fac3438b9c30067d6728450cce0fb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E9=B9=8F=E8=BE=89?= Date: Tue, 8 Apr 2025 11:36:50 +0800 Subject: [PATCH 07/14] change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 梁鹏辉 --- test/native/unittest/js/usbsystemapi_js_test/BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/native/unittest/js/usbsystemapi_js_test/BUILD.gn b/test/native/unittest/js/usbsystemapi_js_test/BUILD.gn index 29da335c..6c4ec582 100644 --- a/test/native/unittest/js/usbsystemapi_js_test/BUILD.gn +++ b/test/native/unittest/js/usbsystemapi_js_test/BUILD.gn @@ -13,7 +13,7 @@ import("//build/test.gni") -module_output_path = "external_device_manager/extension_device_manager" +module_output_path = "usb/usb_manager" ohos_js_unittest("UsbSystemApiJsTest") { module_out_path = module_output_path hap_profile = "./config.json" -- Gitee From ef7ed88ddbdd1304c1f9586070ef53bf9bb5cbac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E9=B9=8F=E8=BE=89?= Date: Tue, 8 Apr 2025 11:53:13 +0800 Subject: [PATCH 08/14] change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 梁鹏辉 --- .../UsbSystemApiJsTest.js | 66 +++++++++++++++++-- 1 file changed, 60 insertions(+), 6 deletions(-) diff --git a/test/native/unittest/js/usbsystemapi_js_test/UsbSystemApiJsTest.js b/test/native/unittest/js/usbsystemapi_js_test/UsbSystemApiJsTest.js index 8ed7d3fc..3164b897 100644 --- a/test/native/unittest/js/usbsystemapi_js_test/UsbSystemApiJsTest.js +++ b/test/native/unittest/js/usbsystemapi_js_test/UsbSystemApiJsTest.js @@ -55,7 +55,9 @@ describe("UsbSystemApiJsTest", function () { try { let bundleName = "ohos.usb.testBundleName"; let deviceName = "ohos.usb.testDeviceName"; - var ret = usbManager.addDeviceAccessRight(bundleName, deviceName); + var ret = usbManager.addDeviceAccessRight(bundleName, deviceName).then(data => { + console.info('data = ' + JSON.stringify(data)); + }); console.info('usbManager.addDeviceAccessRight ret = ' + ret); expect(ret).assertTrue(); } catch (error) { @@ -77,7 +79,9 @@ describe("UsbSystemApiJsTest", function () { try { let bundleName = "ohos.usb.testBundleName"; let deviceName = "ohos.usb.testDeviceName"; - var ret = usbManager.addDeviceAccessRight(bundleName, deviceName); + var ret = usbManager.addDeviceAccessRight(bundleName, deviceName).then(data => { + console.info('data = ' + JSON.stringify(data)); + }); console.info('usbManager.addDeviceAccessRight ret = ' + ret); expect(ret).assertTrue(); } catch (error) { @@ -99,9 +103,11 @@ describe("UsbSystemApiJsTest", function () { try { let funcs = "Permission denied. Call requestRight or requestAccessoryRight to get the " + "permission or USBDevicePipe access right first."; - var ret = usbManager.usbFunctionsFromString(funcs); + var ret = usbManager.usbFunctionsFromString(funcs).then(data => { + console.info('data = ' + JSON.stringify(data)); + }); console.info('usbManager.usbFunctionsFromString ret = ' + ret); - expect(ret).assertEqual(14400001); + expect(ret).assertTrue(); } catch (error) { console.info('usbManager.getVersion() error.code = ' + error.code); expect(error.code).assertEqual(SYSTEMAPI_DENIED_CODE); @@ -121,9 +127,11 @@ describe("UsbSystemApiJsTest", function () { try { let funcs = "Permission denied. Call requestRight or requestAccessoryRight to get the " + "permission or USBDevicePipe access right first."; - var ret = usbManager.getFunctionsFromString(funcs); + var ret = usbManager.getFunctionsFromString(funcs).then(data => { + console.info('data = ' + JSON.stringify(data)); + }); console.info('usbManager.getFunctionsFromString ret = ' + ret); - expect(ret).assertEqual(14400001); + expect(ret).assertTrue(); } catch (error) { console.info('usbManager.getVersion() error.code = ' + error.code); expect(error.code).assertEqual(SYSTEMAPI_DENIED_CODE); @@ -132,4 +140,50 @@ describe("UsbSystemApiJsTest", function () { } console.info('UsbSystemApi_test_getFunctionsFromString finish'); }); + + /* + * @tc.name:UsbSystemApi_test_usbFunctionsToString + * @tc.desc:verify SystemApi of queryDeviceInfo + * @tc.type: FUNC + */ + it("UsbSystemApi_test_usbFunctionsToString", 0, done => { + console.info('UsbSystemApi_test_usbFunctionsToString start'); + try { + let type = usbManager.FunctionType.HDC; + var ret = usbManager.usbFunctionsToString(type).then(data => { + console.info('data = ' + JSON.stringify(data)); + }); + console.info('usbManager.usbFunctionsToString ret = ' + ret); + expect(ret).assertTrue(); + } catch (error) { + console.info('usbManager.getVersion() error.code = ' + error.code); + expect(error.code).assertEqual(SYSTEMAPI_DENIED_CODE); + } finally { + done(); + } + console.info('UsbSystemApi_test_usbFunctionsToString finish'); + }); + + /* + * @tc.name:UsbSystemApi_test_getStringFromFunctions + * @tc.desc:verify SystemApi of queryDeviceInfo + * @tc.type: FUNC + */ + it("UsbSystemApi_test_getStringFromFunctions", 0, done => { + console.info('UsbSystemApi_test_getStringFromFunctions start'); + try { + let type = usbManager.FunctionType.HDC; + var ret = usbManager.getStringFromFunctions(type).then(data => { + console.info('data = ' + JSON.stringify(data)); + }); + console.info('usbManager.getStringFromFunctions ret = ' + ret); + expect(ret).assertTrue(); + } catch (error) { + console.info('usbManager.getVersion() error.code = ' + error.code); + expect(error.code).assertEqual(SYSTEMAPI_DENIED_CODE); + } finally { + done(); + } + console.info('UsbSystemApi_test_getStringFromFunctions finish'); + }); }); \ No newline at end of file -- Gitee From ef9dee712f291011da3aa39be194aeff53e68131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E9=B9=8F=E8=BE=89?= Date: Tue, 8 Apr 2025 11:56:06 +0800 Subject: [PATCH 09/14] change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 梁鹏辉 --- .../BUILD.gn | 0 .../UsbSystemApiJsTest.js | 0 .../config.json | 0 .../openharmony_sx.p7b | Bin 4 files changed, 0 insertions(+), 0 deletions(-) rename test/native/unittest/js/{usbsystemapi_js_test => usb_system_api_js_test}/BUILD.gn (100%) rename test/native/unittest/js/{usbsystemapi_js_test => usb_system_api_js_test}/UsbSystemApiJsTest.js (100%) rename test/native/unittest/js/{usbsystemapi_js_test => usb_system_api_js_test}/config.json (100%) rename test/native/unittest/js/{usbsystemapi_js_test => usb_system_api_js_test}/openharmony_sx.p7b (100%) diff --git a/test/native/unittest/js/usbsystemapi_js_test/BUILD.gn b/test/native/unittest/js/usb_system_api_js_test/BUILD.gn similarity index 100% rename from test/native/unittest/js/usbsystemapi_js_test/BUILD.gn rename to test/native/unittest/js/usb_system_api_js_test/BUILD.gn diff --git a/test/native/unittest/js/usbsystemapi_js_test/UsbSystemApiJsTest.js b/test/native/unittest/js/usb_system_api_js_test/UsbSystemApiJsTest.js similarity index 100% rename from test/native/unittest/js/usbsystemapi_js_test/UsbSystemApiJsTest.js rename to test/native/unittest/js/usb_system_api_js_test/UsbSystemApiJsTest.js diff --git a/test/native/unittest/js/usbsystemapi_js_test/config.json b/test/native/unittest/js/usb_system_api_js_test/config.json similarity index 100% rename from test/native/unittest/js/usbsystemapi_js_test/config.json rename to test/native/unittest/js/usb_system_api_js_test/config.json diff --git a/test/native/unittest/js/usbsystemapi_js_test/openharmony_sx.p7b b/test/native/unittest/js/usb_system_api_js_test/openharmony_sx.p7b similarity index 100% rename from test/native/unittest/js/usbsystemapi_js_test/openharmony_sx.p7b rename to test/native/unittest/js/usb_system_api_js_test/openharmony_sx.p7b -- Gitee From b429f96aa70cda828ecf71d232306d2439474811 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E9=B9=8F=E8=BE=89?= Date: Tue, 8 Apr 2025 14:48:01 +0800 Subject: [PATCH 10/14] change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 梁鹏辉 --- .../js/usb_system_api_js_test/config.json | 14 +++++++++++--- .../usb_system_api_js_test/openharmony_sx.p7b | Bin 3583 -> 3537 bytes 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/test/native/unittest/js/usb_system_api_js_test/config.json b/test/native/unittest/js/usb_system_api_js_test/config.json index 15fe2548..d5c55df5 100644 --- a/test/native/unittest/js/usb_system_api_js_test/config.json +++ b/test/native/unittest/js/usb_system_api_js_test/config.json @@ -1,6 +1,6 @@ { "app": { - "bundleName": "com.extdevmgr.systemapitest", + "bundleName": "com.usb_manager.systemapitest", "vendor": "example", "version": { "code": 1, @@ -14,7 +14,7 @@ "deviceConfig": {}, "module": { "reqPermissions": [], - "package": "com.extdevmgr.systemapitest", + "package": "com.usb_manager.systemapitest", "name": ".MyApplication", "deviceType": [ "default", @@ -39,7 +39,7 @@ ] } ], - "name": "com.extdevmgr.systemapitest.MainAbility", + "name": "com.usb_manager.systemapitest.MainAbility", "icon": "$media:icon", "description": "$string:mainability_description", "label": "PermissionJsTest", @@ -58,6 +58,14 @@ "autoDesignWidth": false } } + ], + "requestPermissions": [ + { + "name": "ohos.permission.MANAGE_USB_CONFIG" + }, + { + "name": "ohos.permission.SYSTEM_FLOAT_WINDOW" + } ] } } diff --git a/test/native/unittest/js/usb_system_api_js_test/openharmony_sx.p7b b/test/native/unittest/js/usb_system_api_js_test/openharmony_sx.p7b index fabd522319c981af0e600714d22a43d4abbb8de9..6ef44d0bc982fd904bbf40da57db9fa1c7e04b58 100644 GIT binary patch delta 307 zcmew_eNo!Mpo#Y^8>d#AN85K^Ms}tJO}zVnLc5q484Y<2xY;-p+B_IjnOT?^4VqZ< z5DFO=G_l6BG_gi+bjV}zC@oHk&rQrrOiwM+E3PaqNzF|x$Sg@ME>Y4^N-W4xvQmPG z#wX_&rGmu@bkkB3OG<$}E2WJ5;&_PsbGxnASk$n%K`5e7=YkzAwBH{YB)zLYK&_+BTDxu$fE>L7l}#4gNl% fI|F7I@d;0O|G4U7c}d#AN85K^Ms}tJO}uY_LNAyY84Y<2xY;-p+B_IjnOT?^4VqZz zAQUn#XkzVUX=3f%=#aCYF>Ir2>UB@{8jkQj@>2$Qvu=0|oR7Qj2mki;FY!^Yqa9zK(v5?ym8n z!A|kc{(f$r?n;wIS#_9{lr}rE{$sB%Q+)R$JzTEP9&$1073Z2(_I~WSx?ev%w8Fsu>YP+Iw;-|1{@=iNpJB!zupVwO_ Qvxz>vX?!rQVaK`v01_g3+W-In -- Gitee From 190ac781dede0d3241eed397d56520536dc459b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E9=B9=8F=E8=BE=89?= Date: Tue, 8 Apr 2025 14:58:41 +0800 Subject: [PATCH 11/14] change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 梁鹏辉 --- .../js/usb_system_api_js_test/config.json | 3 --- .../usb_system_api_js_test/openharmony_sx.p7b | Bin 3537 -> 3573 bytes 2 files changed, 3 deletions(-) diff --git a/test/native/unittest/js/usb_system_api_js_test/config.json b/test/native/unittest/js/usb_system_api_js_test/config.json index d5c55df5..a5de79c2 100644 --- a/test/native/unittest/js/usb_system_api_js_test/config.json +++ b/test/native/unittest/js/usb_system_api_js_test/config.json @@ -62,9 +62,6 @@ "requestPermissions": [ { "name": "ohos.permission.MANAGE_USB_CONFIG" - }, - { - "name": "ohos.permission.SYSTEM_FLOAT_WINDOW" } ] } diff --git a/test/native/unittest/js/usb_system_api_js_test/openharmony_sx.p7b b/test/native/unittest/js/usb_system_api_js_test/openharmony_sx.p7b index 6ef44d0bc982fd904bbf40da57db9fa1c7e04b58..a144ad7296a7d221f4be22a58daf91a6597528c0 100644 GIT binary patch delta 275 zcmca8{Z-n*po#Y*8>d#AN85K^Ms}tJO}vkQLid;$84Y<2xY;-p+B_IjnOT?^4VqXd zA`~(%Xku+*X=1J0=)lOTtdyUTU#wS&h zJ6Z+1a%}&c>H4AH-t=;bJA2=s%?4a-96(2(vt?msV(~C=V^U-|GmY2bTKGiCtrs7^ z6<6NGkzlof=ex`vwGg%9>((LfUjdcei3rtHdMxmBW_!d$y>sz9Ywz0fE)#0bKKxM8 K{c!o^BSruV=U-a@ delta 240 zcmew=eNo!Mpo#Y^8>d#AN85K^Ms}tJO}zVnLc5q484Y<2xY;-p+B_IjnOT?^4VqZ< z5DFO=G_l6BG_gi+bYNuNoWknI&f{p%#AplDXOL}>Jb68b{p7zqIrSzcCgxEF`f!b$ zEQU%f3N<>b^f{hP4-Ag(zm(l@bmH>|V&z-x7nD7ncBTA4LSU-_7aIrAN#|@?n3-7I z4P2QN8FoG4j%f{4u8IA8!RL!u;rqfH(O*RVD|Cs>s%{(k((l5@WRZq8K- -- Gitee From d9727e2670f71ac4d97255c3c87179bfbf21687a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E9=B9=8F=E8=BE=89?= Date: Tue, 8 Apr 2025 15:15:01 +0800 Subject: [PATCH 12/14] change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 梁鹏辉 --- .../js/usb_system_api_js_test/openharmony_sx.p7b | Bin 3573 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 test/native/unittest/js/usb_system_api_js_test/openharmony_sx.p7b diff --git a/test/native/unittest/js/usb_system_api_js_test/openharmony_sx.p7b b/test/native/unittest/js/usb_system_api_js_test/openharmony_sx.p7b deleted file mode 100644 index a144ad7296a7d221f4be22a58daf91a6597528c0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3573 zcmcgvdvp_39&R3ODG;a>DX_>RAVnbUoiu5ax+pWrWRlQHnlx#XQnpNzNiywZW|~Yo zX;=`$S_A}^^(@`@7%$?zteN`aCCZW}CI`Yn3cl-jPv#3^J;7a+wTLfnhm$3)`$RQlXT~ zKqh_1jlJYRDzFF zfg~>t;9EIq0Gnu_7@my83CSytOeU$2=+^^ndBA8SHTtmlrz_KkG)6rzXb2+-pi*5p zOhN`}9)hMq6yK_@SfplHUK1e0Y+S4h>5V!=nO>_m%S6(W*7tdDr zBZ!kUNhCgfZu6y zxwu+=IMn2~I&}IL;46i#L<-V2Rv{tO%qA>uTOCCDVkxITU5(Wr9M8#ocfk6NnuR6H4_>zSY%aV6{_Az0U3 znKZHvZ%u^2VF5Flnz3qJXB0=95f^MGU|6Vg*;25bCqR`;%jwLvWC@q3XDabfrO6y| z>AhBn28gZ-iy|~02~pZ~*uXRy6C9C7UA7Y7a|m3RH@IM%V69HV+FFvXp-R|#CJoaT zU@$WQd)(>dos6qlFIb&bwAqj7oV+*f^xMTUL6(oBj6G#fV~J=1+xQ z*e@(WHddTW1R7!lLqy1UaiTTBlQDv$crw9@*#t+6N3YM@5R^2aPjkW~!6zj}P)9|n z>5q$Iq!tB$2+|4Zpc6FB3S>yrXU|_ChQw1JqY{#`^=8DyN#azH7n24>=Brt;Z1HVh zF%COm3~lgMBMl~}!(zkKQaQ0yQqmta*F^Q|U7R84euP|{YN2Q{LTZ8pM+7LE;we&` zb-o&waKRksO^{VTB%vvuWF%Z--HuGorywK$CCJEL>rlvLa=Eg6XY4Q-o-;(0^pkUx z3PpAn2tva^UXH@6%qftY9MEVmN-~BP3>zS5&^S;id50C`5AaU*kVFic3Z_UQMZx%i zArTfW37&{#vIzzg3sqVOXn_{eieG(Qp-N|jw53qL3AmpL0)XN^5Jf))qAJdY#WqfM z_sKc%gMysg-Zsc({rynLaurCHvi3dsC*7Uk@}%yhf?0KR>@(ZkpbAV9;oLV>ITnmr zI{I&IUFtD^9=2s(SI_;6x^`lFk}E8r{B7F1?WS^3A#rA~0x{P&g9 zd)(t+mzj25ns#8DK0melW@5?3e~dgJ^2aRl=XgJVMxHmU8jJ-*f9BTB0Mq-nZqiR} zottI(J4giSAj1F>^_q7PNejroO`hyok1Dg&ia?eUFY9St*Q8pu@v6#x^yUoqvmhLs zx2Rh)Y-7u-m;L@z^EYgroB8&o5By4O6^^xY>yaIMI<9p$-0*Y`AJG$heC=Pcd$v8M zI`{I9tv4F(y)k{#s(8=j2kvtv{I(_Kx!AwAAz&^TDG{YWB2G3?h@ZhslI09wQej2@ zmgmR)`eK%I&#CsJ{q1$ah<69?o+6S3LUJI~2}RJmUkke)dTP@d-@&!}iaLj`esB28 z72OjbTRKypuHUg`f@bsSw^-#=%3s89kb`N@Pg~9|*fTZPJ$n1xuLZN=|%D1;S{PPlgf06RS_-DWPfL~_Xw=3tXy;qCIzjNkE)hjQT zZ(qXsRvcUM3vPc)=SwHtp!VR0Pt7Q+I@I;T8ym)N-0{VV75QJBYM-*=`XdVu&YE=n z^6~R)zSVfQ1pzTgoPLxe{|Co@RNMyLFp6jvAmt!-_E&~wPxDtFdGUHhv|;zLvdtF` z=N~&$aA9#c-+9sM{bgW(w*j*9d;_jNRxpBz1=dJbY z^WUH!>=~1p@crZG9IN9O*AN#tKfgNiw(i*nKP-kaGDIZVL*n}cG~JbL?7vY5K7~3c zF!t6{C{F>2u^%2#GBDwmk(UjP6fZ?R&;bJ|(;Gl(9VodSRYGdz;Aa@Oa4Kz$+qo2Qri))k*@=w942r*qV@rX%O4U`K=x H-qijNOWcVB -- Gitee From 1f7723119bac0ce52acbf64403f18dde870968d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E9=B9=8F=E8=BE=89?= Date: Tue, 8 Apr 2025 15:19:48 +0800 Subject: [PATCH 13/14] change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 梁鹏辉 --- .../js/usb_system_api_js_test/openharmony_sx.p7b | Bin 0 -> 3538 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 test/native/unittest/js/usb_system_api_js_test/openharmony_sx.p7b diff --git a/test/native/unittest/js/usb_system_api_js_test/openharmony_sx.p7b b/test/native/unittest/js/usb_system_api_js_test/openharmony_sx.p7b new file mode 100644 index 0000000000000000000000000000000000000000..6ac01588c22f4e6d81ce59dd6a16ef0e47a25e9d GIT binary patch literal 3538 zcmcgvdvFuS9kw2pV?bbH-UVy~!4wee$&xKOCFD*zz2GEEmTb$2n3Hsp&X(@Z(#a=_ zLWn4CfB>bL0u7ItH#EG4M+~KbG;JU}0z)944gpd^JS~(!DTI(P(B8=o*bMy9$qf2K zH^1M0yZh~Lzx{R=q~)h%xnrBn&ELsIIpUVI{4hw%4~j)1NDg|+a%VJ~MTA5u7J+m& z{TL`}NoUWHrn9{>6^%qJPSTW;!lQ(uOre?pCIH3wM`=GD;M1z{3Y=k-0W!|UNMC{# zIs|D4VIEXjbVXf^>`@7t-j|+7gXQqaB~g<3W~)@#zw+PF-5er)P~gF{0eL#4wp1?AXszo{}&VKO%Ps&om$h1Ot* z-vmQ$RG-8gu3{wOs}G0$QK->J)rTrgm0>UCbD?#Z9?hWOB!)kUa#SOn&lIWiR67}; zN*!_llrx9@HmnZiusXPj=iss=?Jg`?#b<4X`Xp9|B_HML5E^sDIlUvp(S&kVgR2g8 zV~C}LR~Vb>rJk5GX>!5U9qWv{P*lg&RB0@pYAfqgX*3q2GvcWN$tean+JV7bUdjxf zK%qv?Z%Q&Al@Z{4Ei6WB#K*7KuX1x$F4%>H{GHXcAVQ_RR7b5b1mSFY7$VZpdL>~`w_s*PBH ztJ+gT*`gr~iqnk=AK_?#T{L9j+y*!(FgI6VsL23Vg%Fo79P^W2%E-E>((XiYaYbcm zB8VD;xP^75V0#Ab&?0b9iy|x}O~nFJ^@fl` z<2FMPfT+t&VI+cu0;DPx)Kc}jID@B9hh-wDwsB05)jD7cXRb)VswyH66dviEo{5o-WP}J2NBaZjp#ZVzIPzbMz4CC3}H4>{FAZ5=nLz@IyU8u1w;V%JRi}8`KZH zCuaXfPNkWP9f4b;%aG2s{dn1S5ndN&b+oO+2lLU}rp&LOl$I50tAQpaLpL z#eX$51LbNRq$-9wL%{q*5&%r-AW`%z66G;E$d|Fu*j)(t=bBt_ z_>&gL(%b=md0Tx-LM=Qp=$-XWP!0-sI>Sav2Y~@|`hC&dsu=Kj&$UxpFTOPMz^&|A z>y#$YTLAPCiT*2O9W)%7g3cR@aIi)?BIgo?+Zp>bPoAYq~CIN)SmU4yyVu0@!9QP z_u0ei$H437Sf_saT-Gk^&IN>j;?|7;qdT^);8|Peq-pjE5kYE5+eJi~@HsMR1bL6e zlRfSYX_i9b%aURx7n_#W%jd4TDYqVZIEKFAhoe(w9#HmN)%d|RkLS#^mFr$j|M31< zkJPjfGp%5jAse@~+&NHt-?gb%?~DF7m;BAtcl|v1rTrV%-LLI`e{{jZ*u}!14|Bvl zmf58_rhl(Tz^kB-Ae4MTIN3nLf4VD4B0bNG4h)|+XRIdW-MDtBa?QDqY3WGP zQ^c+mgHi8|`ZYa$+sGVezYUA-w7dnZlba0RC(w3gL*wdIcfj%n`_iVi%>&Pk+jPn_ zs5zV05zgzVy;DcSi4P}rXYw3(uZtN$nqpN~9SPy{al~gxXvCTuM_2D0sM)^Y_=ehl zT!mjMl3p3|?(MVeT>XwMvb)=F77aPk_O|?w`%5>>W~%2Oo&7UrcjKn_PdY)>-t)`H zl$7sl-TBeVA*(jtopo_EdB0 zcEd=*S%46O=!Ms`bAQj?e0|rwvT*Izqa|yu9LhV|mVaedFwfp@c7Hj4&fsvXKXFJByx9{S+TOSVO^_Qm)W#=|ZO z9aq2m^7#o+S_JbVo5a69K>c&s#?BkH>qDo71cM$ubaEvS-}dA4NCbvH3UafdKK!Mq z0cxNHrI5N0BLD1vT zO)i$204g4lwRG051+P^MZ~tVd_twr=CSUz#nf0Wm|L4_z`u^*-eT;UOxKQTrv+l%> f-Dw%~MP<_k?);b$%TFFG@aB|KrNMc}rK0} Date: Wed, 9 Apr 2025 17:33:24 +0800 Subject: [PATCH 14/14] change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 梁鹏辉 --- .../usb_system_api_js_test/openharmony_sx.p7b | Bin 3538 -> 3573 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/test/native/unittest/js/usb_system_api_js_test/openharmony_sx.p7b b/test/native/unittest/js/usb_system_api_js_test/openharmony_sx.p7b index 6ac01588c22f4e6d81ce59dd6a16ef0e47a25e9d..e97c990bab081afb63e67e0125aede7f68545b6a 100644 GIT binary patch delta 258 zcmca4{Z-n*po#Y*8>d#AN85K^Ms}tJO}vkQLid;$84Y<2xY;-p+B_IjnOT?^4VqXd zArvw$Xku+Nvmm zWWH}Q{%QtXY#cyGp0j0PW@2$SaAi_tc;mFx=Sf1(()hm2s!g|N_{P8YQ=gZeYh$E$ vsNvVkr_oFb$+H8VYVkhRU#D(;yQrzLcfx4d#AN85K^Ms}tJO}zVoLc5t584Y<2xY;-p+B_IjnOT?^4VqZ< z5egX>G_fYIG_l5PbhyT{*^*U{qu#>6+|b0>G|E69u8fn#P>Dt1Vr0g<+2;f$*a~ikRo*GTrNOT_{mgFp7