From 910e2310651370aed71a4da3c54d00362ea22e47 Mon Sep 17 00:00:00 2001 From: "@shi-xiaoxiao-iris" Date: Tue, 5 Jul 2022 16:01:16 +0800 Subject: [PATCH] =?UTF-8?q?[=E9=9C=80=E6=B1=82]=E5=87=AD=E6=8D=AE=E7=AE=A1?= =?UTF-8?q?=E7=90=86TDD=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: @shi-xiaoxiao-iris --- test/unittest/UTTest_device_manager_impl.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/unittest/UTTest_device_manager_impl.cpp b/test/unittest/UTTest_device_manager_impl.cpp index a7454928..efcb33e2 100644 --- a/test/unittest/UTTest_device_manager_impl.cpp +++ b/test/unittest/UTTest_device_manager_impl.cpp @@ -2639,9 +2639,9 @@ HWTEST_F(DeviceManagerImplTest, ImportCredential_002, testing::ext::TestSize.Lev { std::string packName = "com.ohos.test"; std::string credentialInfo = R"({"processType":1,"authType":1,"userId":"123", - "credentialData":[ {"credentialType":1,"credentialId":"104", + "credentialData": [{ "credentialType": 1, "credentialId": "104", "authCode":"10F9F0576E61730193D2052B7F771887124A68F1607EFCF7796C1491F834CD92", - "serverPk":"","pkInfoSignature":"","pkInfo":"","peerDeviceId":""} ]})"; + "serverPk":"","pkInfoSignature":"","pkInfo":"","peerDeviceId":"" }]})"; std::shared_ptr mockInstance = std::make_shared(); DeviceManagerImpl::GetInstance().ipcClientProxy_ = mockInstance; EXPECT_CALL(*mockInstance, SendRequest(testing::_, testing::_, testing::_)) @@ -2666,9 +2666,9 @@ HWTEST_F(DeviceManagerImplTest, ImportCredential_003, testing::ext::TestSize.Lev { std::string packName = "com.ohos.test"; std::string credentialInfo = R"({"processType":1,"authType":1,"userId":"123", - "credentialData":[ {"credentialType":1,"credentialId":"104", + "credentialData": [{ "credentialType": 1, "credentialId": "104", "authCode":"10F9F0576E61730193D2052B7F771887124A68F1607EFCF7796C1491F834CD92", - "serverPk":"","pkInfoSignature":"","pkInfo":"","peerDeviceId":""}] })"; + "serverPk":"","pkInfoSignature":"","pkInfo":"","peerDeviceId":"" }]})"; std::shared_ptr mockInstance = std::make_shared(); DeviceManagerImpl::GetInstance().ipcClientProxy_ = mockInstance; EXPECT_CALL(*mockInstance, SendRequest(testing::_, testing::_, testing::_)) @@ -2693,9 +2693,9 @@ HWTEST_F(DeviceManagerImplTest, ImportCredential_004, testing::ext::TestSize.Lev { std::string packName = "com.ohos.test"; std::string credentialInfo = R"({"processType":1,"authType":1,"userId":"123", - "credentialData":[ {"credentialType":1,"credentialId":"104", + "credentialData": [{ "credentialType": 1, "credentialId": "104", "authCode":"10F9F0576E61730193D2052B7F771887124A68F1607EFCF7796C1491F834CD92", - "serverPk":"","pkInfoSignature":"","pkInfo":"","peerDeviceId":""} ]})"; + "serverPk":"","pkInfoSignature":"","pkInfo":"","peerDeviceId":"" }]})"; std::shared_ptr mockInstance = std::make_shared(); DeviceManagerImpl::GetInstance().ipcClientProxy_ = mockInstance; EXPECT_CALL(*mockInstance, SendRequest(testing::_, testing::_, testing::_))