/base/account/os_account/frameworks/osaccount/native/test/unittest/ |
H A D | os_account_info_test.cpp | 714 OsAccountInfo osAccountInfoOne; in HWTEST_F() local 717 OsAccountManager::CreateOsAccount(STRING_NAME, "shortName", OsAccountType::NORMAL, osAccountInfoOne)); in HWTEST_F() 721 EXPECT_EQ(ERR_OK, OsAccountManager::SetOsAccountName(osAccountInfoOne.GetLocalId(), "updateName")); in HWTEST_F() 722 OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()); in HWTEST_F() 733 OsAccountInfo osAccountInfoOne; in HWTEST_F() local 737 OsAccountManager::CreateOsAccount(STRING_NAME, "shortName", OsAccountType::NORMAL, options, osAccountInfoOne)); in HWTEST_F() 742 EXPECT_EQ(ERR_OK, OsAccountManager::SetOsAccountName(osAccountInfoOne.GetLocalId(), "updateName")); in HWTEST_F() 743 osAccountInfoOne.SetShortName(STRING_NAME); in HWTEST_F() 744 osAccountInfoOne.SetCredentialId(123); in HWTEST_F() 745 OsAccountManager::RemoveOsAccount(osAccountInfoOne in HWTEST_F() 771 OsAccountInfo osAccountInfoOne; HWTEST_F() local 785 OsAccountInfo osAccountInfoOne; HWTEST_F() local 799 OsAccountInfo osAccountInfoOne; HWTEST_F() local 814 OsAccountInfo osAccountInfoOne; HWTEST_F() local 829 OsAccountInfo osAccountInfoOne; HWTEST_F() local 843 OsAccountInfo osAccountInfoOne; HWTEST_F() local 866 OsAccountInfo osAccountInfoOne; HWTEST_F() local 886 OsAccountInfo osAccountInfoOne; HWTEST_F() local 903 OsAccountInfo osAccountInfoOne; HWTEST_F() local [all...] |
/base/account/os_account/frameworks/ohosaccount/test/moduletests/account_mgr_test/ |
H A D | account_mgr_inner_sdk_func_test.cpp | 194 OsAccountInfo osAccountInfoOne;
in HWTEST_F() local 195 EXPECT_EQ(OsAccountManager::CreateOsAccount("OhosAccountInfo002", OsAccountType::NORMAL, osAccountInfoOne), ERR_OK);
in HWTEST_F() 196 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
in HWTEST_F() 233 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
in HWTEST_F() 244 OsAccountInfo osAccountInfoOne;
in HWTEST_F() local 245 EXPECT_EQ(OsAccountManager::CreateOsAccount("OhosAccountInfo004", OsAccountType::NORMAL, osAccountInfoOne), ERR_OK);
in HWTEST_F() 246 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
in HWTEST_F() 288 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
in HWTEST_F() 299 OsAccountInfo osAccountInfoOne;
in HWTEST_F() local 300 EXPECT_EQ(OsAccountManager::CreateOsAccount("OhosAccountInfo005", OsAccountType::NORMAL, osAccountInfoOne), ERR_O in HWTEST_F() 331 OsAccountInfo osAccountInfoOne; HWTEST_F() local 389 OsAccountInfo osAccountInfoOne; HWTEST_F() local 436 OsAccountInfo osAccountInfoOne; HWTEST_F() local 493 OsAccountInfo osAccountInfoOne; HWTEST_F() local 539 OsAccountInfo osAccountInfoOne; HWTEST_F() local 596 OsAccountInfo osAccountInfoOne; HWTEST_F() local 654 OsAccountInfo osAccountInfoOne; HWTEST_F() local 710 OsAccountInfo osAccountInfoOne; HWTEST_F() local [all...] |
/base/account/os_account/frameworks/osaccount/native/test/moduletest/ |
H A D | os_account_manager_module_test.cpp | 347 OsAccountInfo osAccountInfoOne; in HWTEST_F() local 348 ASSERT_EQ(OsAccountManager::CreateOsAccount("ModuleTest001", OsAccountType::GUEST, osAccountInfoOne), ERR_OK); in HWTEST_F() 350 EXPECT_EQ(OsAccountManager::QueryOsAccountById(osAccountInfoOne.GetLocalId(), osAccountInfoTwo), ERR_OK); in HWTEST_F() 355 EXPECT_EQ(osAccountInfoOne.ToString(), osAccountInfoTwo.ToString()); in HWTEST_F() 356 EXPECT_EQ(osAccountInfoOne.GetType(), OsAccountType::GUEST); in HWTEST_F() 357 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); in HWTEST_F() 368 OsAccountInfo osAccountInfoOne; in HWTEST_F() local 369 EXPECT_NE(OsAccountManager::CreateOsAccount(STRING_NAME_OUT_OF_RANGE, OsAccountType::GUEST, osAccountInfoOne), in HWTEST_F() 381 OsAccountInfo osAccountInfoOne; in HWTEST_F() local 382 EXPECT_NE(OsAccountManager::CreateOsAccount(STRING_EMPTY, OsAccountType::GUEST, osAccountInfoOne), ERR_O in HWTEST_F() 393 OsAccountInfo osAccountInfoOne; HWTEST_F() local 414 OsAccountInfo osAccountInfoOne; HWTEST_F() local 444 OsAccountInfo osAccountInfoOne; HWTEST_F() local 468 OsAccountInfo osAccountInfoOne; HWTEST_F() local 546 OsAccountInfo osAccountInfoOne; HWTEST_F() local 562 OsAccountInfo osAccountInfoOne; HWTEST_F() local 583 OsAccountInfo osAccountInfoOne; HWTEST_F() local 604 OsAccountInfo osAccountInfoOne; HWTEST_F() local 625 OsAccountInfo osAccountInfoOne; HWTEST_F() local 794 OsAccountInfo osAccountInfoOne; HWTEST_F() local 873 OsAccountInfo osAccountInfoOne; HWTEST_F() local 890 OsAccountInfo osAccountInfoOne; HWTEST_F() local 904 OsAccountInfo osAccountInfoOne; HWTEST_F() local 1005 OsAccountInfo osAccountInfoOne; HWTEST_F() local 1019 OsAccountInfo osAccountInfoOne; HWTEST_F() local 1048 OsAccountInfo osAccountInfoOne; HWTEST_F() local 1062 OsAccountInfo osAccountInfoOne; HWTEST_F() local 1079 OsAccountInfo osAccountInfoOne; HWTEST_F() local 1108 OsAccountInfo osAccountInfoOne; HWTEST_F() local 1425 OsAccountInfo osAccountInfoOne; HWTEST_F() local 1449 OsAccountInfo osAccountInfoOne; HWTEST_F() local 1523 OsAccountInfo osAccountInfoOne; HWTEST_F() local 1561 OsAccountInfo osAccountInfoOne; HWTEST_F() local 1608 OsAccountInfo osAccountInfoOne; HWTEST_F() local 1640 OsAccountInfo osAccountInfoOne; HWTEST_F() local 1673 OsAccountInfo osAccountInfoOne; HWTEST_F() local 1740 OsAccountInfo osAccountInfoOne; HWTEST_F() local 1967 OsAccountInfo osAccountInfoOne; HWTEST_F() local 2261 OsAccountInfo osAccountInfoOne; HWTEST_F() local 2349 OsAccountInfo osAccountInfoOne; HWTEST_F() local 2434 OsAccountInfo osAccountInfoOne; HWTEST_F() local [all...] |
H A D | os_account_manager_no_bms_mock_test.cpp | 93 OsAccountInfo osAccountInfoOne; in HWTEST_F() local 107 OsAccountManager::CreateOsAccount("test", "test", OsAccountType::NORMAL, options, osAccountInfoOne)); in HWTEST_F() 116 OHOS::AppExecFwk::BundleFlag::GET_BUNDLE_DEFAULT, bundleInfos, osAccountInfoOne.GetLocalId())); in HWTEST_F() 131 OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()); in HWTEST_F()
|
/base/account/os_account/services/accountmgr/test/moduletest/os_account/ |
H A D | os_account_manager_service_module_test.cpp | 172 OsAccountInfo osAccountInfoOne; in HWTEST_F() local 173 ErrCode errCode = osAccountManagerService_->CreateOsAccount(STRING_TEST_NAME, INT_TEST_TYPE, osAccountInfoOne); in HWTEST_F() 176 errCode = osAccountManagerService_->QueryOsAccountById(osAccountInfoOne.GetLocalId(), osAccountInfoTwo); in HWTEST_F() 182 EXPECT_EQ(osAccountInfoOne.ToString(), osAccountInfoTwo.ToString()); in HWTEST_F() 183 errCode = osAccountManagerService_->RemoveOsAccount(osAccountInfoOne.GetLocalId()); in HWTEST_F() 195 OsAccountInfo osAccountInfoOne; in HWTEST_F() local 197 osAccountManagerService_->CreateOsAccount(STRING_NAME_OUT_OF_RANGE, INT_TEST_TYPE, osAccountInfoOne); in HWTEST_F() 209 OsAccountInfo osAccountInfoOne; in HWTEST_F() local 210 ErrCode errCode = osAccountManagerService_->CreateOsAccount(STRING_EMPTY, INT_TEST_TYPE, osAccountInfoOne); in HWTEST_F() 231 OsAccountInfo osAccountInfoOne; in HWTEST_F() local 251 OsAccountInfo osAccountInfoOne; HWTEST_F() local 271 OsAccountInfo osAccountInfoOne; HWTEST_F() local 296 OsAccountInfo osAccountInfoOne; HWTEST_F() local 375 OsAccountInfo osAccountInfoOne; HWTEST_F() local 397 OsAccountInfo osAccountInfoOne; HWTEST_F() local 421 OsAccountInfo osAccountInfoOne; HWTEST_F() local 447 OsAccountInfo osAccountInfoOne; HWTEST_F() local 466 OsAccountInfo osAccountInfoOne; HWTEST_F() local 641 OsAccountInfo osAccountInfoOne; HWTEST_F() local 684 OsAccountInfo osAccountInfoOne; HWTEST_F() local 703 OsAccountInfo osAccountInfoOne; HWTEST_F() local 722 OsAccountInfo osAccountInfoOne; HWTEST_F() local 793 OsAccountInfo osAccountInfoOne; HWTEST_F() local 807 OsAccountInfo osAccountInfoOne; HWTEST_F() local 827 OsAccountInfo osAccountInfoOne; HWTEST_F() local 842 OsAccountInfo osAccountInfoOne; HWTEST_F() local 859 OsAccountInfo osAccountInfoOne; HWTEST_F() local 889 OsAccountInfo osAccountInfoOne; HWTEST_F() local 930 OsAccountInfo osAccountInfoOne; HWTEST_F() local 979 OsAccountInfo osAccountInfoOne; HWTEST_F() local [all...] |
H A D | os_account_manager_service_create_os_account_test.cpp | 98 OsAccountInfo osAccountInfoOne; in HWTEST_F() local 101 errCode = g_osAccountManagerService->CreateOsAccount(STRING_TEST_NAME, OsAccountType::ADMIN, osAccountInfoOne); in HWTEST_F() 106 OsAccountInfo osAccountInfoOne; in HWTEST_F() local 107 errCode = g_osAccountManagerService->CreateOsAccount(STRING_TEST_NAME, OsAccountType::ADMIN, osAccountInfoOne); in HWTEST_F()
|
/base/account/os_account/test/fuzztest/osaccount/createosaccount_fuzzer/ |
H A D | createosaccount_fuzzer.cpp | 58 OsAccountInfo osAccountInfoOne; in CreateOsAccountWithShortNameFuzzTest() local 62 result = OsAccountManager::CreateOsAccount(accountName, shortName, testType, osAccountInfoOne); in CreateOsAccountWithShortNameFuzzTest() 65 OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()); in CreateOsAccountWithShortNameFuzzTest() 74 result = OsAccountManager::CreateOsAccount(accountName, shortName, testType, options, osAccountInfoOne); in CreateOsAccountWithShortNameFuzzTest() 77 OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()); in CreateOsAccountWithShortNameFuzzTest() 88 OsAccountInfo osAccountInfoOne; in CreateOsAccountFuzzTest() local 91 result = OsAccountManager::CreateOsAccount(accountName, testType, osAccountInfoOne); in CreateOsAccountFuzzTest() 94 OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()); in CreateOsAccountFuzzTest()
|
/base/account/os_account/test/fuzztest/osaccount/getosaccountfromdatabase_fuzzer/ |
H A D | getosaccountfromdatabase_fuzzer.cpp | 36 OsAccountInfo osAccountInfoOne; in GetOsAccountFromDatabaseFuzzTest() local 38 result = OsAccountManager::GetOsAccountFromDatabase(stroeID, LOCAL_ID, osAccountInfoOne); in GetOsAccountFromDatabaseFuzzTest()
|
/base/account/os_account/services/accountmgr/test/unittest/ohos_account/ |
H A D | ohos_account_manager_test.cpp | 209 OsAccountInfo osAccountInfoOne; in HWTEST_F() local 210 EXPECT_EQ(OsAccountManager::CreateOsAccount(STRING_TEST_NAME, OsAccountType::NORMAL, osAccountInfoOne), ERR_OK); in HWTEST_F() 211 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); in HWTEST_F() 228 osAccountInfoOne.GetLocalId(), curAccountInfo.ohosAccountInfo_, g_eventLogin); in HWTEST_F() 231 osAccountInfoOne.GetLocalId(), curAccountInfo.ohosAccountInfo_, g_eventLogin); in HWTEST_F() 237 osAccountInfoOne.GetLocalId(), curAccountInfo.ohosAccountInfo_, g_eventLogout); in HWTEST_F() 239 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); in HWTEST_F() 251 OsAccountInfo osAccountInfoOne; in HWTEST_F() local 252 EXPECT_EQ(OsAccountManager::CreateOsAccount(STRING_TEST_NAME, OsAccountType::NORMAL, osAccountInfoOne), ERR_OK); in HWTEST_F() 253 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne in HWTEST_F() [all...] |
/base/account/os_account/services/accountmgr/test/unittest/os_account/ |
H A D | os_account_inner_account_mgr_mock.cpp | 982 OsAccountInfo osAccountInfoOne; in HWTEST_F() local 984 EXPECT_NE(OsAccountManager::CreateOsAccount(STRING_TEST_NAME, OsAccountType::GUEST, osAccountInfoOne), ERR_OK); in HWTEST_F() 986 EXPECT_EQ(OsAccountManager::CreateOsAccount(STRING_TEST_NAME, OsAccountType::GUEST, osAccountInfoOne), ERR_OK); in HWTEST_F() 991 ret = innerMgrService_->SendMsgForAccountCreate(osAccountInfoOne); in HWTEST_F() 999 ret = innerMgrService_->SendMsgForAccountCreate(osAccountInfoOne); in HWTEST_F() 1002 ret = innerMgrService_->SendMsgForAccountActivate(osAccountInfoOne); in HWTEST_F() 1008 ret = innerMgrService_->SendMsgForAccountCreate(osAccountInfoOne); in HWTEST_F() 1014 ret = innerMgrService_->SendMsgForAccountRemove(osAccountInfoOne); in HWTEST_F() 1019 EXPECT_NE(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); in HWTEST_F() 1021 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne in HWTEST_F() 1038 OsAccountInfo osAccountInfoOne; HWTEST_F() local 1146 OsAccountInfo osAccountInfoOne; HWTEST_F() local 1815 OsAccountInfo osAccountInfoOne; HWTEST_F() local [all...] |