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::_))