Home
last modified time | relevance | path

Searched refs:TEST_USER_ID (Results 1 – 25 of 26) sorted by relevance

12

/base/account/os_account/frameworks/account_iam/test/unittest/src/
Daccount_iam_mgr_proxy_test.cpp31 const int32_t TEST_USER_ID = 200; variable
64 int32_t ret = accountIAMMgrProxy->OpenSession(TEST_USER_ID, challenge);
84 accountIAMMgrProxy->AddOrUpdateCredential(TEST_USER_ID, credInfo, nullptr, true);
85 accountIAMMgrProxy->DelCred(TEST_USER_ID, 0, authToken, nullptr);
86 accountIAMMgrProxy->DelUser(TEST_USER_ID, authToken, nullptr);
87 accountIAMMgrProxy->GetProperty(TEST_USER_ID, g_request, nullptr);
88 accountIAMMgrProxy->SetProperty(TEST_USER_ID, s_request, nullptr);
96 int32_t ret = accountIAMMgrProxy->GetCredentialInfo(TEST_USER_ID, AuthType::ALL, nullptr);
98 ret = accountIAMMgrProxy->AuthUser(TEST_USER_ID, authParam, nullptr, contextId);
Daccount_iam_client_test.cpp41 const int32_t TEST_USER_ID = 200; variable
215 AccountIAMClient::GetInstance().AddCredential(TEST_USER_ID, testPara, testCallback);
232 AccountIAMClient::GetInstance().AddCredential(TEST_USER_ID, testPara, nullptr);
233 AccountIAMClient::GetInstance().AddCredential(TEST_USER_ID, testPara, testCallback);
248 AccountIAMClient::GetInstance().UpdateCredential(TEST_USER_ID, testPara, testCallback);
264 AccountIAMClient::GetInstance().UpdateCredential(TEST_USER_ID, testPara, nullptr);
266 AccountIAMClient::GetInstance().UpdateCredential(TEST_USER_ID, testPara, testCallback);
277 int32_t ret = AccountIAMClient::GetInstance().Cancel(TEST_USER_ID);
294 AccountIAMClient::GetInstance().DelCred(TEST_USER_ID, testCredentialId, testAuthToken, nullptr);
296 …AccountIAMClient::GetInstance().DelCred(TEST_USER_ID, testCredentialId, testAuthToken, testCallbac…
[all …]
Daccount_iam_callback_service_test.cpp29 const int32_t TEST_USER_ID = 200; variable
77 sptr<IDMCallbackService> wrapper = new (std::nothrow) IDMCallbackService(TEST_USER_ID, nullptr);
94 …sptr<IDMCallbackService> wrapper = new (std::nothrow) IDMCallbackService(TEST_USER_ID, testCallbac…
108 sptr<IDMCallbackService> wrapper = new (std::nothrow) IDMCallbackService(TEST_USER_ID, nullptr);
151 auto iamInputer = std::make_shared<IAMInputer>(TEST_USER_ID, inputer);
154 auto iamInputerData = std::make_shared<IAMInputerData>(TEST_USER_ID, nullptr);
169 auto iamInputer = std::make_shared<IAMInputer>(TEST_USER_ID, inputer);
172 auto iamInputerData = std::make_shared<IAMInputerData>(TEST_USER_ID, nullptr);
186 auto iamInputer = std::make_shared<IAMInputer>(TEST_USER_ID, inputer);
Daccount_iam_client_no_permission_test.cpp28 const int32_t TEST_USER_ID = 200; variable
141 AccountIAMClient::GetInstance().AddCredential(TEST_USER_ID, testPara, callback);
156 AccountIAMClient::GetInstance().UpdateCredential(TEST_USER_ID, testPara, callback);
168 int32_t res = AccountIAMClient::GetInstance().Cancel(TEST_USER_ID);
184 … AccountIAMClient::GetInstance().DelCred(TEST_USER_ID, testCredentialId, testAuthToken, callback);
199 AccountIAMClient::GetInstance().DelUser(TEST_USER_ID, testAuthToken, callback);
213 …int32_t res = AccountIAMClient::GetInstance().GetCredentialInfo(TEST_USER_ID, AuthType::PIN, callb…
241 AccountIAMClient::GetInstance().GetProperty(TEST_USER_ID, testRequest, callback);
255 AccountIAMClient::GetInstance().SetProperty(TEST_USER_ID, testRequest, callback);
284 TEST_USER_ID, TEST_CHALLENGE, AuthType::PIN, AuthTrustLevel::ATL1, callback);
/base/account/os_account/frameworks/test/unittest/
Daccount_iam_proxy_mock_test.cpp22 const int32_t TEST_USER_ID = 200; variable
80 …RR_ACCOUNT_COMMON_GET_PROXY, AccountIAMClient::GetInstance().OpenSession(TEST_USER_ID, challenge));
91 …SSERT_EQ(ERR_ACCOUNT_COMMON_GET_PROXY, AccountIAMClient::GetInstance().CloseSession(TEST_USER_ID));
105 AccountIAMClient::GetInstance().AddCredential(TEST_USER_ID, testPara, testCallback);
120 AccountIAMClient::GetInstance().UpdateCredential(TEST_USER_ID, testPara, testCallback);
132 ASSERT_EQ(ERR_ACCOUNT_COMMON_GET_PROXY, AccountIAMClient::GetInstance().Cancel(TEST_USER_ID));
147 …AccountIAMClient::GetInstance().DelCred(TEST_USER_ID, testCredentialId, testAuthToken, testCallbac…
162 AccountIAMClient::GetInstance().DelUser(TEST_USER_ID, testAuthToken, testCallback);
175 AccountIAMClient::GetInstance().GetCredentialInfo(TEST_USER_ID, AuthType::PIN, nullptr));
190 TEST_USER_ID, TEST_CHALLENGE, AuthType::PIN, AuthTrustLevel::ATL1, testCallback));
[all …]
Daccount_osaccount_proxy_mock_test.cpp23 const std::int32_t TEST_USER_ID = 101; variable
116 ErrCode errCode = OsAccountManager::OsAccountManager::RemoveOsAccount(TEST_USER_ID);
129 ErrCode errCode = OsAccountManager::IsOsAccountExists(TEST_USER_ID, isOsAccountExists);
143 ErrCode errCode = OsAccountManager::IsOsAccountActived(TEST_USER_ID, isOsAccountActived);
158 OsAccountManager::IsOsAccountConstraintEnable(TEST_USER_ID, CONSTANT_PRINT, isEnable);
172 ErrCode errCode = OsAccountManager::IsOsAccountVerified(TEST_USER_ID, isVerified);
254 ErrCode errCode = OsAccountManager::GetOsAccountAllConstraints(TEST_USER_ID, constraints);
267 ErrCode errCode = OsAccountManager::GetOsAccountAllConstraints(TEST_USER_ID, constraints);
293 ErrCode errCode = OsAccountManager::QueryOsAccountById(TEST_USER_ID, osAccountInfo);
319 ErrCode errCode = OsAccountManager::GetOsAccountProfilePhoto(TEST_USER_ID, photo);
[all …]
/base/account/os_account/services/accountmgr/test/unittest/account_iam/
Daccount_iam_callback_test.cpp42 const int32_t TEST_USER_ID = 200; variable
120 auto userAuthCallback = std::make_shared<AuthCallback>(TEST_USER_ID, AuthType::PIN, nullptr);
137 auto userAuthCallback = std::make_shared<AuthCallback>(TEST_USER_ID, AuthType::PIN, callback);
158 auto userAuthCallback = std::make_shared<AuthCallback>(TEST_USER_ID, AuthType::FACE, callback);
177 auto userAuthCallback = std::make_shared<AuthCallback>(TEST_USER_ID, AuthType::PIN, nullptr);
192 auto userAuthCallback = std::make_shared<AuthCallback>(TEST_USER_ID, AuthType::PIN, callback);
210 …auto idmAuthCallback = std::make_shared<IDMAuthCallback>(TEST_USER_ID, credInfo, 0, extraInfo, nul…
226 …auto idmAuthCallback = std::make_shared<IDMAuthCallback>(TEST_USER_ID, credInfo, 0, extraInfo, cal…
247 …auto idmAuthCallback = std::make_shared<IDMAuthCallback>(TEST_USER_ID, credInfo, 0, extraInfo, cal…
264 auto addCredCallback = std::make_shared<AddCredCallback>(TEST_USER_ID, credInfo, nullptr);
[all …]
Daccount_iam_manager_test.cpp40 const int32_t TEST_USER_ID = 101; variable
213 if (userId == TEST_USER_ID) { in ActiveUserKey()
330 …InnerAccountIAMManager::GetInstance().OpenSession(TEST_USER_ID, challenge); // 1111: invalid userid
334 InnerAccountIAMManager::GetInstance().CloseSession(TEST_USER_ID);
349 InnerAccountIAMManager::GetInstance().AddCredential(TEST_USER_ID, testPara, nullptr);
350 InnerAccountIAMManager::GetInstance().AddCredential(TEST_USER_ID, testPara, testCallback);
365 InnerAccountIAMManager::GetInstance().UpdateCredential(TEST_USER_ID, testPara, nullptr);
366 InnerAccountIAMManager::GetInstance().UpdateCredential(TEST_USER_ID, testPara, testCallback);
369 InnerAccountIAMManager::GetInstance().UpdateCredential(TEST_USER_ID, testPara, testCallback);
380 int32_t ret = InnerAccountIAMManager::GetInstance().Cancel(TEST_USER_ID);
[all …]
/base/security/huks/test/unittest/huks_standard_test/storage_multithread_test/src/
Dhks_storage_test.cpp27 const std::string TEST_USER_ID = "123465"; variable
42 .size = TEST_USER_ID.size() + 1, in TearDown()
43 .data = (uint8_t *)&TEST_USER_ID[0] in TearDown()
64 .size = TEST_USER_ID.size() + 1, in PrepareBlob()
65 .data = (uint8_t *)&TEST_USER_ID[0] in PrepareBlob()
91 .size = TEST_USER_ID.size() + 1,
92 .data = (uint8_t *)&TEST_USER_ID[0]
120 .size = TEST_USER_ID.size() + 1,
121 .data = (uint8_t *)&TEST_USER_ID[0]
150 .size = TEST_USER_ID.size() + 1,
[all …]
/base/notification/common_event_service/services/test/unittest/
Dcommon_event_hisysevent_test.cpp28 constexpr int32_t TEST_USER_ID = 1000; variable
70 eventInfo.userId = TEST_USER_ID; in HWTEST_F()
93 eventInfo.userId = TEST_USER_ID; in HWTEST_F()
115 eventInfo.userId = TEST_USER_ID; in HWTEST_F()
134 eventInfo.userId = TEST_USER_ID; in HWTEST_F()
159 eventInfo.userId = TEST_USER_ID; in HWTEST_F()
193 eventInfo.userId = TEST_USER_ID; in HWTEST_F()
228 eventInfo.userId = TEST_USER_ID; in HWTEST_F()
/base/account/os_account/services/accountmgr/test/unittest/os_account/
Dos_account_service_test.cpp34 const int TEST_USER_ID = 100; variable
67 osAccountStopUserCallback->OnStopUserDone(TEST_USER_ID, errCode);
/base/customization/enterprise_device_management/test/unittest/src/
Denterprise_device_mgr_ability_test.cpp39 constexpr int32_t TEST_USER_ID = 101; variable
526 guestPolicyMgr.reset(new (std::nothrow) PolicyManager(TEST_USER_ID));
528 std::pair<std::uint32_t, std::shared_ptr<PolicyManager>>(TEST_USER_ID, guestPolicyMgr));
529 edmMgr_->policyMgr_ = edmMgr_->GetAndSwitchPolicyManagerByUserId(TEST_USER_ID);
531 … ASSERT_TRUE(IPolicyManager::policyManagerInstance_ == edmMgr_->policyMgrMap_[TEST_USER_ID].get());
560 edmMgr_->policyMgr_ = edmMgr_->GetAndSwitchPolicyManagerByUserId(TEST_USER_ID);
566 data.SetCode(TEST_USER_ID);
569 edmMgr_->policyMgr_ = edmMgr_->GetAndSwitchPolicyManagerByUserId(TEST_USER_ID);
606 EXPECT_TRUE(SUCCEEDED(edmMgr_->EnableAdmin(admin, entInfo, AdminType::NORMAL, TEST_USER_ID)));
611 want.SetParam(AppExecFwk::Constants::USER_ID, TEST_USER_ID);
[all …]
Dadmin_manager_test.cpp30 constexpr int32_t TEST_USER_ID = 101; variable
50 adminMgr_->GetAdminByUserId(TEST_USER_ID, userAdmin); in TearDown()
52 adminMgr_->DeleteAdmin(admin->adminInfo_.packageName_, TEST_USER_ID); in TearDown()
401 adminMgr_->SetAdminValue(abilityInfo, entInfo, AdminType::NORMAL, permissions, TEST_USER_ID);
406 adminMgr_->SaveSubscribeEvents(events1, "com.edm.test.demo2", TEST_USER_ID);
411 ASSERT_TRUE(subscribeAdmins.find(TEST_USER_ID) == subscribeAdmins.end());
/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/
Daccesstoken_kit_test.cpp197 tokenID = AccessTokenKit::GetHapTokenID(TEST_USER_ID, TEST_BUNDLE_NAME, 0); in SetUpTestCase()
327 .userID = TEST_USER_ID, in SetUp()
352 AccessTokenID tokenID = GetAccessTokenID(TEST_USER_ID, TEST_BUNDLE_NAME, 0); in TearDown()
452 AccessTokenID tokenID = GetAccessTokenID(TEST_USER_ID, TEST_BUNDLE_NAME, 0);
493 AccessTokenID tokenID = GetAccessTokenID(TEST_USER_ID, TEST_BUNDLE_NAME, 0);
515 AccessTokenID tokenID = GetAccessTokenID(TEST_USER_ID, TEST_BUNDLE_NAME, 0);
533 AccessTokenID tokenID = GetAccessTokenID(TEST_USER_ID, TEST_BUNDLE_NAME, 0);
553 AccessTokenID tokenID = GetAccessTokenID(TEST_USER_ID, TEST_BUNDLE_NAME, 0);
573 AccessTokenIDEx tokenIdEx = AccessTokenKit::GetHapTokenIDEx(TEST_USER_ID, TEST_BUNDLE_NAME, 0);
608 AccessTokenID tokenID = GetAccessTokenID(TEST_USER_ID, TEST_BUNDLE_NAME, 0);
[all …]
Daccesstoken_kit_test.h34 static const int TEST_USER_ID = 0; variable
Daccesstoken_kit_extension_test.cpp45 static const int TEST_USER_ID = 0; variable
141 .userID = TEST_USER_ID,
302 tokenID = AccessTokenKit::GetHapTokenID(TEST_USER_ID, TEST_BUNDLE_NAME, 0); in SetUpTestCase()
432 .userID = TEST_USER_ID, in SetUp()
457 AccessTokenID tokenID = GetAccessTokenID(TEST_USER_ID, TEST_BUNDLE_NAME, 0); in TearDown()
474 …AccessTokenID tokenID = AccessTokenKit::GetHapTokenID(TEST_USER_ID, "accesstoken_location_test", 0… in AllocHapToken()
546 AccessTokenID tokenID = GetAccessTokenID(TEST_USER_ID, TEST_BUNDLE_NAME, 0);
610 AccessTokenID tokenID = GetAccessTokenID(TEST_USER_ID, "accesstoken_location_test", 0);
647 AccessTokenID tokenID = GetAccessTokenID(TEST_USER_ID, "accesstoken_location_test", 0);
684 AccessTokenID tokenID = GetAccessTokenID(TEST_USER_ID, "accesstoken_location_test", 0);
[all …]
Dsecurity_component_grant_test.cpp37 static const int TEST_USER_ID = 0; variable
96 tokenID = AccessTokenKit::GetHapTokenID(TEST_USER_ID, TEST_BUNDLE_NAME, 0); in SetUpTestCase()
Dremote_token_kit_test.cpp37 static const int TEST_USER_ID = 0; variable
136 tokenID = AccessTokenKit::GetHapTokenID(TEST_USER_ID, TEST_BUNDLE_NAME, 0); in SetUpTestCase()
171 AccessTokenID tokenID = GetAccessTokenID(TEST_USER_ID, TEST_BUNDLE_NAME, 0); in TearDown()
/base/useriam/user_auth_framework/test/unittest/services/mocks/
Dmock_ipc_common.cpp26 const uint32_t TEST_USER_ID = 548781; variable
42 userId = TEST_USER_ID; in GetCallingUserId()
/base/notification/distributed_notification_service/services/ans/test/unittest/
Dnotification_hisysevent_test.cpp37 constexpr int32_t TEST_USER_ID = 1000; variable
82 eventInfo.userId = TEST_USER_ID; in HWTEST_F()
167 eventInfo.userId = TEST_USER_ID; in HWTEST_F()
218 eventInfo.userId = TEST_USER_ID; in HWTEST_F()
255 eventInfo.userId = TEST_USER_ID; in HWTEST_F()
337 eventInfo.userId = TEST_USER_ID; in HWTEST_F()
/base/security/device_auth/test/unittest/deviceauth/source/
Diso_auth_task_test.cpp33 static const std::string TEST_USER_ID = "1234ABCD"; variable
95 (void)AddStringToJson(inJson, FIELD_SELF_USER_ID, TEST_USER_ID.c_str());
132 const char *userId = TEST_USER_ID.c_str();
177 params.userIdPeer = const_cast<char *>(TEST_USER_ID.c_str());
220 (void)AddStringToJson(inJson, FIELD_SELF_USER_ID, TEST_USER_ID.c_str()); in CreateServerTask()
293 (void)AddStringToJson(in, FIELD_USER_ID, TEST_USER_ID.c_str());
320 (void)AddStringToJson(in, FIELD_USER_ID, TEST_USER_ID.c_str());
344 (void)AddStringToJson(in, FIELD_USER_ID, TEST_USER_ID.c_str());
369 (void)AddStringToJson(in, FIELD_USER_ID, TEST_USER_ID.c_str());
586 (void)AddStringToJson(inJson, FIELD_SELF_USER_ID, TEST_USER_ID.c_str()); in CreateClientTask()
[all …]
Ddeviceauth_standard_test.cpp49 #define TEST_USER_ID "1234ABCD" macro
345 AddStringToJson(json, FIELD_USER_ID, TEST_USER_ID); in CreateDemoIdenticalAccountGroup()
/base/theme/wallpaper_mgr/utils/include/
Dwallpaper_common.h36 static const int TEST_USER_ID = 0; variable
/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/creds_manager/
Dcreds_manager_test.cpp54 static const std::string TEST_USER_ID = "4269DC28B639681698809A67EDAD08E39F207900038F91FEF95DD042FE… variable
407 AddStringToJson(json, FIELD_USER_ID, TEST_USER_ID.c_str()); in CreateClientSymIdenticalAccountGroup()
435 AddStringToJson(json, FIELD_USER_ID, TEST_USER_ID.c_str()); in CreateServerSymIdenticalAccountGroup()
755 …CreateDemoIdenticalAccountGroup(DEFAULT_OS_ACCOUNT, TEST_USER_ID.c_str(), TEST_REGISTER_INFO_PARAM…
772 …CreateDemoIdenticalAccountGroup(DEFAULT_OS_ACCOUNT, TEST_USER_ID.c_str(), TEST_REGISTER_INFO_PARAM…
787 …CreateDemoIdenticalAccountGroup(DEFAULT_OS_ACCOUNT, TEST_USER_ID.c_str(), TEST_REGISTER_INFO_PARAM…
806 …CreateDemoIdenticalAccountGroup(DEFAULT_OS_ACCOUNT, TEST_USER_ID.c_str(), TEST_REGISTER_INFO_PARAM…
808 TEST_USER_ID.c_str(), TEST_REGISTER_INFO_PARAM2.c_str());
809 AddStringToJson(addMultiParam, FIELD_GROUP_ID, TEST_USER_ID.c_str());
834 …CreateDemoIdenticalAccountGroup(DEFAULT_OS_ACCOUNT, TEST_USER_ID.c_str(), TEST_REGISTER_INFO_PARAM…
[all …]
/base/account/os_account/services/accountmgr/test/moduletest/app_account/
Dapp_account_manager_service_module_test.cpp85 constexpr std::int32_t TEST_USER_ID = 101; variable
2568 ErrCode result = g_accountManagerService->OnUserRemoved(TEST_USER_ID);

12