H A D | os_account_manager_module_test.cpp | 166 return (ERR_OK == AccessTokenKit::DeleteToken(tokenID)) && (ERR_OK == SetSelfTokenID(g_selfTokenID)); in RecoveryPermission() 189 while (ret != ERR_OK || !isOsAccountActived) { in SetUpTestCase() 232 EXPECT_EQ(OsAccountManager::QueryAllCreatedOsAccounts(osAccountInfos), ERR_OK); in SetUp() 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() local 357 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); in HWTEST_F() local 370 ERR_OK); in HWTEST_F() local 382 EXPECT_NE(OsAccountManager::CreateOsAccount(STRING_EMPTY, OsAccountType::GUEST, osAccountInfoOne), ERR_OK); in HWTEST_F() local 394 ASSERT_EQ(OsAccountManager::CreateOsAccount("ModuleTest004", OsAccountType::ADMIN, osAccountInfoOne), ERR_OK); in HWTEST_F() 396 EXPECT_EQ(OsAccountManager::QueryOsAccountById(osAccountInfoOne.GetLocalId(), osAccountInfoTwo), ERR_OK); HWTEST_F() local 403 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 417 EXPECT_EQ(OsAccountManager::QueryOsAccountById(osAccountInfoOne.GetLocalId(), osAccountInfoTwo), ERR_OK); HWTEST_F() local 424 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 469 EXPECT_NE(OsAccountManager::CreateOsAccount(STRING_EMPTY, OsAccountType::GUEST, osAccountInfoOne), ERR_OK); HWTEST_F() local 470 EXPECT_NE(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 484 EXPECT_NE(OsAccountManager::RemoveOsAccount(Constants::START_USER_ID), ERR_OK); HWTEST_F() local 507 EXPECT_EQ(OsAccountManager::IsOsAccountExists(Constants::START_USER_ID, isOsAccountExists), ERR_OK); HWTEST_F() local 533 EXPECT_EQ(OsAccountManager::IsOsAccountActived(Constants::ADMIN_LOCAL_ID, isOsAccountActived), ERR_OK); HWTEST_F() local 549 EXPECT_EQ(OsAccountManager::IsOsAccountActived(osAccountInfoOne.GetLocalId(), isOsAccountActived), ERR_OK); HWTEST_F() local 551 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 566 ERR_OK); HWTEST_F() local 568 EXPECT_EQ(OsAccountManager::QueryOsAccountById(osAccountInfoOne.GetLocalId(), osAccountInfoTwo), ERR_OK); HWTEST_F() local 572 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 587 ERR_OK); HWTEST_F() local 589 EXPECT_EQ(OsAccountManager::QueryOsAccountById(osAccountInfoOne.GetLocalId(), osAccountInfoTwo), ERR_OK); HWTEST_F() local 593 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 608 ERR_OK); HWTEST_F() local 612 ERR_OK); HWTEST_F() local 614 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 630 ERR_OK); HWTEST_F() local 632 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 644 EXPECT_EQ(OsAccountManager::IsMultiOsAccountEnable(isMultiOsAccountEnable), ERR_OK); HWTEST_F() local 658 EXPECT_EQ(OsAccountManager::IsOsAccountVerified(Constants::START_USER_ID, isVerified), ERR_OK); HWTEST_F() local 660 EXPECT_EQ(OsAccountManager::SetOsAccountIsVerified(Constants::START_USER_ID, false), ERR_OK); HWTEST_F() local 661 EXPECT_EQ(OsAccountManager::IsOsAccountVerified(Constants::START_USER_ID, isVerified), ERR_OK); HWTEST_F() local 663 EXPECT_EQ(OsAccountManager::SetOsAccountIsVerified(Constants::START_USER_ID, true), ERR_OK); HWTEST_F() local 664 EXPECT_EQ(OsAccountManager::IsOsAccountVerified(Constants::START_USER_ID, isVerified), ERR_OK); HWTEST_F() local 701 EXPECT_EQ(OsAccountManager::GetCreatedOsAccountsCount(osAccountsCount), ERR_OK); HWTEST_F() local 713 EXPECT_EQ(OsAccountManager::GetOsAccountLocalIdFromProcess(id), ERR_OK); HWTEST_F() local 727 EXPECT_EQ(OsAccountManager::GetOsAccountLocalIdFromUid(testUid, id), ERR_OK); HWTEST_F() local 740 EXPECT_EQ(OsAccountManager::QueryMaxOsAccountNumber(maxOsAccountNumber), ERR_OK); HWTEST_F() local 752 EXPECT_EQ(OsAccountManager::QueryMaxLoggedInOsAccountNumber(maxNum), ERR_OK); HWTEST_F() local 764 EXPECT_EQ(OsAccountManager::GetOsAccountAllConstraints(Constants::START_USER_ID, constraints), ERR_OK); HWTEST_F() local 792 EXPECT_EQ(OsAccountManager::QueryAllCreatedOsAccounts(osAccountInfos), ERR_OK); HWTEST_F() local 797 EXPECT_EQ(OsAccountManager::QueryAllCreatedOsAccounts(osAccountInfos), ERR_OK); HWTEST_F() local 799 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 804 EXPECT_EQ(OsAccountManager::QueryAllCreatedOsAccounts(osAccountInfos), ERR_OK); HWTEST_F() local 807 EXPECT_EQ(OsAccountManager::SetOsAccountToBeRemoved(osAccountInfoTwo.GetLocalId(), true), ERR_OK); HWTEST_F() local 809 EXPECT_EQ(OsAccountManager::QueryAllCreatedOsAccounts(osAccountInfos), ERR_OK); HWTEST_F() local 812 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoTwo.GetLocalId()), ERR_OK); HWTEST_F() local 824 EXPECT_EQ(OsAccountManager::QueryCurrentOsAccount(osAccountInfo), ERR_OK); HWTEST_F() local 836 EXPECT_EQ(OsAccountManager::QueryOsAccountById(Constants::START_USER_ID, osAccountInfo), ERR_OK); HWTEST_F() local 861 EXPECT_EQ(OsAccountManager::GetOsAccountTypeFromProcess(type), ERR_OK); HWTEST_F() local 875 EXPECT_EQ(OsAccountManager::SetOsAccountName(osAccountInfoOne.GetLocalId(), STRING_NAME), ERR_OK); HWTEST_F() local 877 EXPECT_EQ(OsAccountManager::QueryOsAccountById(osAccountInfoOne.GetLocalId(), osAccountInfoTwo), ERR_OK); HWTEST_F() local 879 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 892 EXPECT_NE(OsAccountManager::SetOsAccountName(osAccountInfoOne.GetLocalId(), STRING_EMPTY), ERR_OK); HWTEST_F() local 893 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 906 EXPECT_NE(OsAccountManager::SetOsAccountName(osAccountInfoOne.GetLocalId(), STRING_NAME_OUT_OF_RANGE), ERR_OK); HWTEST_F() local 907 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 968 EXPECT_NE(OsAccountManager::GetOsAccountLocalIdBySerialNumber(INVALID_SERIAL_NUM, id), ERR_OK); HWTEST_F() local 980 EXPECT_EQ(OsAccountManager::GetSerialNumberByOsAccountLocalId(Constants::START_USER_ID, serialNumber), ERR_OK); HWTEST_F() local 1007 EXPECT_EQ(OsAccountManager::SetOsAccountProfilePhoto(osAccountInfoOne.GetLocalId(), PHOTO_IMG), ERR_OK); HWTEST_F() local 1008 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 1022 OsAccountManager::SetOsAccountProfilePhoto(osAccountInfoOne.GetLocalId(), STRING_PHOTO_OUT_OF_RANGE), ERR_OK); HWTEST_F() local 1024 OsAccountManager::SetOsAccountProfilePhoto(osAccountInfoOne.GetLocalId(), STRING_PHOTO_MAX), ERR_OK); HWTEST_F() local 1027 OsAccountManager::GetOsAccountProfilePhoto(osAccountInfoOne.GetLocalId(), photo), ERR_OK); HWTEST_F() local 1029 EXPECT_EQ(OsAccountManager::QueryOsAccountById(osAccountInfoOne.GetLocalId(), osAccountInfoTwo), ERR_OK); HWTEST_F() local 1034 ASSERT_EQ(OsAccountManager::QueryAllCreatedOsAccounts(osAccountInfos), ERR_OK); HWTEST_F() local 1036 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 1037 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoThree.GetLocalId()), ERR_OK); HWTEST_F() local 1050 EXPECT_EQ(OsAccountManager::SetOsAccountProfilePhoto(osAccountInfoOne.GetLocalId(), PHOTO_IMG_ERROR), ERR_OK); HWTEST_F() local 1051 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 1064 EXPECT_EQ(OsAccountManager::SetOsAccountProfilePhoto(osAccountInfoOne.GetLocalId(), PHOTO_IMG), ERR_OK); HWTEST_F() local 1066 EXPECT_EQ(OsAccountManager::GetOsAccountProfilePhoto(osAccountInfoOne.GetLocalId(), photo), ERR_OK); HWTEST_F() local 1068 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 1082 EXPECT_EQ(OsAccountManager::GetOsAccountProfilePhoto(osAccountInfoOne.GetLocalId(), photo), ERR_OK); HWTEST_F() local 1083 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 1110 EXPECT_EQ(OsAccountManager::StartOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 1111 EXPECT_EQ(OsAccountManager::DeactivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 1112 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 1135 EXPECT_EQ(OsAccountManager::StartOsAccount(Constants::START_USER_ID), ERR_OK); HWTEST_F() local 1147 EXPECT_NE(OsAccountManager::IsOsAccountVerified(ERROR_LOCAL_ID, isVerified), ERR_OK); HWTEST_F() local 1163 EXPECT_EQ(OsAccountManager::CreateOsAccountForDomain(type, domainInfo, osAccountInfo), ERR_OK); HWTEST_F() local 1179 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfo.GetLocalId()), ERR_OK); HWTEST_F() local 1194 EXPECT_EQ(OsAccountManager::CreateOsAccountForDomain(type, domainInfo, osAccountInfo), ERR_OK); HWTEST_F() local 1212 EXPECT_EQ(OsAccountManager::QueryOsAccountById(osAccountInfo.GetLocalId(), queryAccountInfo), ERR_OK); HWTEST_F() local 1267 EXPECT_NE(OsAccountManager::CreateOsAccountForDomain(type, domainInfo, osAccountInfo), ERR_OK); HWTEST_F() local 1286 EXPECT_NE(OsAccountManager::CreateOsAccountForDomain(type, domainInfo, osAccountInfo), ERR_OK); HWTEST_F() local 1293 EXPECT_NE(OsAccountManager::RemoveOsAccount(osAccountInfo.GetLocalId()), ERR_OK); HWTEST_F() local 1296 EXPECT_NE(OsAccountManager::CreateOsAccountForDomain(type, domainInfo, osAccountInfo), ERR_OK); HWTEST_F() local 1299 EXPECT_NE(OsAccountManager::RemoveOsAccount(osAccountInfo.GetLocalId()), ERR_OK); HWTEST_F() local 1314 EXPECT_NE(OsAccountManager::CreateOsAccountForDomain(type, domainInfo, osAccountInfo), ERR_OK); HWTEST_F() local 1317 EXPECT_NE(OsAccountManager::RemoveOsAccount(osAccountInfo.GetLocalId()), ERR_OK); HWTEST_F() local 1432 EXPECT_NE(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 1477 EXPECT_EQ(OsAccountManager::QueryActiveOsAccountIds(ids), ERR_OK); HWTEST_F() local 1491 EXPECT_EQ(OsAccountManager::GetBundleIdFromUid(testUid, id), ERR_OK); HWTEST_F() local 1504 EXPECT_EQ(OsAccountManager::IsMainOsAccount(isMainOsAccount), ERR_OK); HWTEST_F() local 1506 EXPECT_EQ(OsAccountManager::GetOsAccountLocalIdFromProcess(id), ERR_OK); HWTEST_F() local 1527 CONSTANTS_VECTOR, true, osAccountInfoOne.GetLocalId(), true), ERR_OK); HWTEST_F() local 1531 ERR_OK); HWTEST_F() local 1536 ERR_OK); HWTEST_F() local 1540 CONSTANTS_VECTOR, false, osAccountInfoOne.GetLocalId(), true), ERR_OK); HWTEST_F() local 1543 ERR_OK); HWTEST_F() local 1547 ERR_OK); HWTEST_F() local 1550 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 1564 ASSERT_EQ(OsAccountManager::CreateOsAccount(STRING_TEST_NAME_TWO, OsAccountType::NORMAL, osAccountInfoTwo), ERR_OK); HWTEST_F() local 1567 CONSTANTS_VECTOR, true, osAccountInfoOne.GetLocalId(), true), ERR_OK); HWTEST_F() local 1569 CONSTANTS_VECTOR, true, osAccountInfoTwo.GetLocalId(), true), ERR_OK); HWTEST_F() local 1573 ERR_OK); HWTEST_F() local 1578 ERR_OK); HWTEST_F() local 1582 CONSTANTS_VECTOR, false, osAccountInfoOne.GetLocalId(), true), ERR_OK); HWTEST_F() local 1585 ERR_OK); HWTEST_F() local 1589 ERR_OK); HWTEST_F() local 1592 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 1593 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoTwo.GetLocalId()), ERR_OK); HWTEST_F() local 1596 ERR_OK); HWTEST_F() local 1612 CONSTANTS_VECTOR, true, MAIN_ACCOUNT_ID, osAccountInfoOne.GetLocalId(), true), ERR_OK); HWTEST_F() local 1616 ERR_OK); HWTEST_F() local 1620 ERR_OK); HWTEST_F() local 1624 CONSTANTS_VECTOR, false, MAIN_ACCOUNT_ID, osAccountInfoOne.GetLocalId(), true), ERR_OK); HWTEST_F() local 1627 ERR_OK); HWTEST_F() local 1629 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 1643 CONSTANTS_VECTOR, true, MAIN_ACCOUNT_ID, osAccountInfoOne.GetLocalId(), true), ERR_OK); HWTEST_F() local 1647 ERR_OK); HWTEST_F() local 1652 MAIN_ACCOUNT_ID, CONSTANT_PRINT, constraintSourceTypeInfos), ERR_OK); HWTEST_F() local 1655 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 1661 ERR_OK); HWTEST_F() local 1676 ASSERT_EQ(OsAccountManager::CreateOsAccount(STRING_TEST_NAME_TWO, OsAccountType::NORMAL, osAccountInfoTwo), ERR_OK); HWTEST_F() local 1680 MAIN_ACCOUNT_ID, CONSTANT_PRINT, constraintSourceTypeInfos), ERR_OK); HWTEST_F() local 1684 CONSTANTS_VECTOR_TEST, true, osAccountInfoOne.GetLocalId(), false), ERR_OK); HWTEST_F() local 1686 CONSTANTS_VECTOR_TEST, true, osAccountInfoTwo.GetLocalId(), false), ERR_OK); HWTEST_F() local 1691 ERR_OK); HWTEST_F() local 1695 MAIN_ACCOUNT_ID, CONSTRAINT_PRIVATE_DNS_SET, constraintSourceTypeInfos), ERR_OK); HWTEST_F() local 1701 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoTwo.GetLocalId()), ERR_OK); HWTEST_F() local 1703 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 1706 MAIN_ACCOUNT_ID, CONSTRAINT_PRIVATE_DNS_SET, constraintSourceTypeInfos), ERR_OK); HWTEST_F() local 1722 MAIN_ACCOUNT_ID, CONSTANT_WIFI, constraintSourceTypeInfos), ERR_OK); HWTEST_F() local 1726 MAIN_ACCOUNT_ID, CONSTRAINT_PRIVATE_DNS_SET, constraintSourceTypeInfos), ERR_OK); HWTEST_F() local 1744 EXPECT_EQ(OsAccountManager::GetOsAccountAllConstraints(osAccountInfoOne.GetLocalId(), constraints), ERR_OK); HWTEST_F() local 1748 CONSTANTS_VECTOR_TEST, true, osAccountInfoOne.GetLocalId(), true), ERR_OK); HWTEST_F() local 1751 CONSTANTS_VECTOR_TEST, true, MAIN_ACCOUNT_ID, osAccountInfoOne.GetLocalId(), true), ERR_OK); HWTEST_F() local 1754 EXPECT_EQ(OsAccountManager::GetOsAccountAllConstraints(osAccountInfoOne.GetLocalId(), constraints), ERR_OK); HWTEST_F() local 1756 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 1769 EXPECT_EQ(OsAccountManager::IsCurrentOsAccountVerified(isVerified), ERR_OK); HWTEST_F() local 1782 EXPECT_EQ(OsAccountManager::IsOsAccountCompleted(MAIN_ACCOUNT_ID, isOsAccountCompleted), ERR_OK); HWTEST_F() local 1795 EXPECT_NE(OsAccountManager::IsOsAccountCompleted(ERROR_LOCAL_ID, isOsAccountCompleted), ERR_OK); HWTEST_F() local 1808 EXPECT_NE(OsAccountManager::SetCurrentOsAccountIsVerified(true), ERR_OK); HWTEST_F() local 1809 EXPECT_EQ(OsAccountManager::IsCurrentOsAccountVerified(isVerified), ERR_OK); HWTEST_F() local 1944 EXPECT_NE(OsAccountManager::ActivateOsAccount(INVALID_ID), ERR_OK); HWTEST_F() local 1955 EXPECT_NE(OsAccountManager::ActivateOsAccount(ERROR_LOCAL_ID), ERR_OK); HWTEST_F() local 1969 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 1970 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 1983 EXPECT_NE(OsAccountManager::SubscribeOsAccount(subscriber), ERR_OK); HWTEST_F() local 1995 EXPECT_NE(OsAccountManager::UnsubscribeOsAccount(subscriber), ERR_OK); HWTEST_F() local 2346 ASSERT_EQ(OsAccountManager::GetBundleIdFromUid(ACCOUNT_UID, bundleId), ERR_OK); HWTEST_F() local 2369 ASSERT_EQ(OsAccountManager::CreateOsAccountForDomain(type, domainInfo, osAccountInfo), ERR_OK); HWTEST_F() local 2370 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfo.GetLocalId()), ERR_OK); HWTEST_F() local 2376 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 2410 ASSERT_EQ(OsAccountManager::UnsubscribeOsAccount(subscriberTwo), ERR_OK); HWTEST_F() local 2436 EXPECT_EQ(OsAccountManager::GetDefaultActivatedOsAccount(id), ERR_OK); HWTEST_F() local 2442 EXPECT_EQ(OsAccountManager::SetDefaultActivatedOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 2443 EXPECT_EQ(OsAccountManager::GetDefaultActivatedOsAccount(id), ERR_OK); HWTEST_F() local 2445 EXPECT_EQ(OsAccountManager::SetDefaultActivatedOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 2446 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); HWTEST_F() local 2447 EXPECT_EQ(OsAccountManager::GetDefaultActivatedOsAccount(id), ERR_OK); HWTEST_F() local 2450 EXPECT_EQ(OsAccountManager::SetDefaultActivatedOsAccount(MAIN_ACCOUNT_ID), ERR_OK); HWTEST_F() local 2451 EXPECT_EQ(OsAccountManager::GetDefaultActivatedOsAccount(id), ERR_OK); HWTEST_F() local 2468 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfo.GetLocalId()), ERR_OK); HWTEST_F() local 2496 EXPECT_EQ(OsAccountManager::DeactivateOsAccount(osAccountInfo.GetLocalId()), ERR_OK); HWTEST_F() local 2509 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfo.GetLocalId()), ERR_OK); HWTEST_F() local 2589 EXPECT_EQ(OsAccountManager::ActivateOsAccount(account.GetLocalId()), ERR_OK); HWTEST_F() local 2600 EXPECT_EQ(OsAccountManager::DeactivateOsAccount(account.GetLocalId()), ERR_OK); HWTEST_F() local 2626 EXPECT_EQ(OsAccountManager::ActivateOsAccount(account.GetLocalId()), ERR_OK); HWTEST_F() local 2642 EXPECT_EQ(OsAccountManager::DeactivateOsAccount(account.GetLocalId()), ERR_OK); HWTEST_F() local 2672 EXPECT_EQ(OsAccountManager::ActivateOsAccount(account.GetLocalId()), ERR_OK); HWTEST_F() local 2712 EXPECT_EQ(OsAccountManager::DeactivateOsAccount(account.GetLocalId()), ERR_OK); HWTEST_F() local 2714 EXPECT_EQ(OsAccountManager::ActivateOsAccount(account.GetLocalId()), ERR_OK); HWTEST_F() local 2740 EXPECT_EQ(OsAccountManager::GetOsAccountType(osAccountInfoA.GetLocalId(), type), ERR_OK); HWTEST_F() local 2742 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoA.GetLocalId()), ERR_OK); HWTEST_F() local 2757 ASSERT_EQ(OsAccountManager::CreateOsAccount(privateTestName, OsAccountType::NORMAL, osAccountInfoA), ERR_OK); HWTEST_F() local 2759 ASSERT_EQ(OsAccountManager::CreateOsAccount(privateTestName, OsAccountType::PRIVATE, osAccountInfoB), ERR_OK); HWTEST_F() local 2766 EXPECT_EQ(OsAccountManager::GetOsAccountType(osAccountInfoB.GetLocalId(), type), ERR_OK); HWTEST_F() local 2768 EXPECT_EQ(OsAccountManager::GetOsAccountType(osAccountInfoA.GetLocalId(), type), ERR_OK); HWTEST_F() local 2771 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoB.GetLocalId()), ERR_OK); HWTEST_F() local 2775 ASSERT_EQ(OsAccountManager::CreateOsAccount(privateTestName, OsAccountType::PRIVATE, osAccountInfoD), ERR_OK); HWTEST_F() local 2776 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoD.GetLocalId()), ERR_OK); HWTEST_F() local 2778 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoA.GetLocalId()), ERR_OK); HWTEST_F() local 2792 ASSERT_EQ(OsAccountManager::CreateOsAccount(privateTestName, OsAccountType::PRIVATE, osAccountInfoA), ERR_OK); HWTEST_F() local 2794 ASSERT_EQ(OsAccountManager::CreateOsAccount(privateTestName, OsAccountType::NORMAL, osAccountInfoB), ERR_OK); HWTEST_F() local 2796 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoA.GetLocalId()), ERR_OK); HWTEST_F() local 2797 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoB.GetLocalId()), ERR_OK); HWTEST_F() local 2813 ASSERT_EQ(OsAccountManager::CreateOsAccount(privateTestName, OsAccountType::PRIVATE, osAccountInfoA), ERR_OK); HWTEST_F() local 2815 ASSERT_EQ(OsAccountManager::CreateOsAccount(privateTestNameTwo, OsAccountType::NORMAL, osAccountInfoB), ERR_OK); HWTEST_F() local 2816 EXPECT_EQ(OsAccountManager::SetOsAccountName(osAccountInfoB.GetLocalId(), privateTestName), ERR_OK); HWTEST_F() local 2818 ASSERT_EQ(OsAccountManager::CreateOsAccount(privateTestNameTwo, OsAccountType::NORMAL, osAccountInfoC), ERR_OK); HWTEST_F() local 2819 EXPECT_EQ(OsAccountManager::SetOsAccountName(osAccountInfoA.GetLocalId(), privateTestNameTwo), ERR_OK); HWTEST_F() local 2821 EXPECT_EQ(OsAccountManager::SetOsAccountName(osAccountInfoA.GetLocalId(), privateTestNameThree), ERR_OK); HWTEST_F() local 2822 EXPECT_EQ(OsAccountManager::SetOsAccountName(osAccountInfoC.GetLocalId(), privateTestNameThree), ERR_OK); HWTEST_F() local 2824 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoA.GetLocalId()), ERR_OK); HWTEST_F() local 2825 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoB.GetLocalId()), ERR_OK); HWTEST_F() local 2826 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoC.GetLocalId()), ERR_OK); HWTEST_F() local 2838 EXPECT_EQ(OsAccountManager::IsOsAccountForeground(isForeground), ERR_OK); HWTEST_F() local 2859 EXPECT_EQ(OsAccountManager::IsOsAccountForeground(isForeground), ERR_OK); HWTEST_F() local 2864 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfo.GetLocalId()), ERR_OK); HWTEST_F() local 2868 EXPECT_EQ(OsAccountManager::IsOsAccountForeground(isForeground), ERR_OK); HWTEST_F() local 2872 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfo.GetLocalId()), ERR_OK); HWTEST_F() local 2895 EXPECT_EQ(OsAccountManager::IsOsAccountForeground(osAccountInfo.GetLocalId(), isForeground), ERR_OK); HWTEST_F() local 2899 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfo.GetLocalId()), ERR_OK); HWTEST_F() local 2902 EXPECT_EQ(OsAccountManager::IsOsAccountForeground(osAccountInfo.GetLocalId(), isForeground), ERR_OK); HWTEST_F() local 2905 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfo.GetLocalId()), ERR_OK); HWTEST_F() local 2950 ERR_OK); HWTEST_F() local 2954 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfo.GetLocalId()), ERR_OK); HWTEST_F() local 2959 ERR_OK); HWTEST_F() local 2962 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfo.GetLocalId()), ERR_OK); HWTEST_F() local 3014 EXPECT_EQ(OsAccountManager::GetForegroundOsAccountLocalId(localId), ERR_OK); HWTEST_F() local 3018 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfo.GetLocalId()), ERR_OK); HWTEST_F() local 3019 EXPECT_EQ(OsAccountManager::GetForegroundOsAccountLocalId(localId), ERR_OK); HWTEST_F() local 3023 EXPECT_EQ(OsAccountManager::ActivateOsAccount(MAIN_ACCOUNT_ID), ERR_OK); HWTEST_F() local 3024 EXPECT_EQ(OsAccountManager::GetForegroundOsAccountLocalId(localId), ERR_OK); HWTEST_F() local 3027 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfo.GetLocalId()), ERR_OK); HWTEST_F() local 3047 EXPECT_EQ(OsAccountManager::GetForegroundOsAccountLocalId(Constants::DEFAULT_DISPALY_ID, localId), ERR_OK); HWTEST_F() local 3051 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfo.GetLocalId()), ERR_OK); HWTEST_F() local 3052 EXPECT_EQ(OsAccountManager::GetForegroundOsAccountLocalId(Constants::DEFAULT_DISPALY_ID, localId), ERR_OK); HWTEST_F() local 3055 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfo.GetLocalId()), ERR_OK); HWTEST_F() local 3058 EXPECT_EQ(OsAccountManager::GetForegroundOsAccountLocalId(Constants::DEFAULT_DISPALY_ID, localId), ERR_OK); HWTEST_F() local 3091 EXPECT_EQ(OsAccountManager::GetForegroundOsAccounts(accounts), ERR_OK); HWTEST_F() local 3098 EXPECT_EQ(OsAccountManager::ActivateOsAccount(account.GetLocalId()), ERR_OK); HWTEST_F() local 3099 EXPECT_EQ(OsAccountManager::GetForegroundOsAccounts(accounts), ERR_OK); HWTEST_F() local 3107 EXPECT_EQ(OsAccountManager::ActivateOsAccount(MAIN_ACCOUNT_ID), ERR_OK); HWTEST_F() local 3108 EXPECT_EQ(OsAccountManager::GetForegroundOsAccounts(accounts), ERR_OK); HWTEST_F() local 3116 EXPECT_EQ(OsAccountManager::DeactivateOsAccount(account.GetLocalId()), ERR_OK); HWTEST_F() local 3117 EXPECT_EQ(OsAccountManager::GetForegroundOsAccounts(accounts), ERR_OK); HWTEST_F() local 3123 ASSERT_EQ(OsAccountManager::RemoveOsAccount(account.GetLocalId()), ERR_OK); HWTEST_F() local 3140 EXPECT_EQ(OsAccountManager::SetOsAccountToBeRemoved(account.GetLocalId(), true), ERR_OK); HWTEST_F() local 3141 EXPECT_EQ(OsAccountManager::QueryOsAccountById(account.GetLocalId(), account), ERR_OK); HWTEST_F() local 3143 ASSERT_EQ(OsAccountManager::RemoveOsAccount(account.GetLocalId()), ERR_OK); HWTEST_F() local 3161 EXPECT_EQ(OsAccountManager::GetBackgroundOsAccountLocalIds(localIds), ERR_OK); HWTEST_F() local 3168 EXPECT_EQ(OsAccountManager::ActivateOsAccount(account.GetLocalId()), ERR_OK); HWTEST_F() local 3169 EXPECT_EQ(OsAccountManager::GetBackgroundOsAccountLocalIds(localIds), ERR_OK); HWTEST_F() local 3174 EXPECT_EQ(OsAccountManager::ActivateOsAccount(MAIN_ACCOUNT_ID), ERR_OK); HWTEST_F() local 3175 EXPECT_EQ(OsAccountManager::GetBackgroundOsAccountLocalIds(localIds), ERR_OK); HWTEST_F() local 3180 ASSERT_EQ(OsAccountManager::RemoveOsAccount(account.GetLocalId()), ERR_OK); HWTEST_F() local 3183 EXPECT_EQ(OsAccountManager::GetBackgroundOsAccountLocalIds(localIds), ERR_OK); HWTEST_F() local 3201 ASSERT_EQ(OsAccountManager::CreateOsAccount(privateName, OsAccountType::GUEST, osAccountInfo), ERR_OK); HWTEST_F() local 3203 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfo.GetLocalId()), ERR_OK); HWTEST_F() local 3204 EXPECT_EQ(OsAccountManager::DeactivateAllOsAccounts(), ERR_OK); HWTEST_F() local 3207 EXPECT_EQ(OsAccountManager::QueryActiveOsAccountIds(ids), ERR_OK); HWTEST_F() local 3210 EXPECT_EQ(OsAccountManager::ActivateOsAccount(MAIN_ACCOUNT_ID), ERR_OK); HWTEST_F() local 3211 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfo.GetLocalId()), ERR_OK); HWTEST_F() local [all...] |
H A D | domain_account_client_module_test.cpp | 164 ASSERT_EQ(DomainAccountClient::GetInstance().UnregisterPlugin(), ERR_OK);
in HWTEST_F() 165 ASSERT_EQ(DomainAccountClient::GetInstance().RegisterPlugin(g_plugin), ERR_OK);
in HWTEST_F() local 176 ASSERT_EQ(DomainAccountClient::GetInstance().UnregisterPlugin(), ERR_OK);
in HWTEST_F() 217 ASSERT_EQ(DomainAccountClient::GetInstance().UnregisterPlugin(), ERR_OK);
in HWTEST_F() 218 ASSERT_EQ(DomainAccountClient::GetInstance().RegisterPlugin(g_plugin), ERR_OK);
in HWTEST_F() local 239 DomainAccountClient::GetInstance().Auth(info, VALID_PASSWORD, testCallback), ERR_OK);
in HWTEST_F() 262 DomainAccountClient::GetInstance().Auth(info, VALID_PASSWORD, testCallback), ERR_OK);
in HWTEST_F() 277 DomainAccountClient::GetInstance().Auth(info, VALID_PASSWORD, testCallbackSec), ERR_OK);
in HWTEST_F() 302 DomainAccountClient::GetInstance().Auth(info, INVALID_PASSWORD, testCallback), ERR_OK);
in HWTEST_F() 346 ASSERT_EQ(DomainAccountClient::GetInstance().UnregisterPlugin(), ERR_OK);
in HWTEST_F() 441 EXPECT_EQ(OsAccountManager::RemoveOsAccount(userId), ERR_OK); HWTEST_F() local 522 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfo.GetLocalId()), ERR_OK); HWTEST_F() local 545 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfo.GetLocalId()), ERR_OK); HWTEST_F() local 672 EXPECT_EQ(OsAccountManager::QueryOsAccountById(OHOS::AccountSA::Constants::START_USER_ID, osAccountInfo), ERR_OK); HWTEST_F() local 757 EXPECT_EQ(OsAccountManager::QueryOsAccountById(userId, osAccountInfo), ERR_OK); HWTEST_F() local 759 EXPECT_EQ(OsAccountManager::RemoveOsAccount(userId), ERR_OK); HWTEST_F() local 895 EXPECT_EQ(OsAccountManager::RemoveOsAccount(userId), ERR_OK); HWTEST_F() local 946 EXPECT_EQ(OsAccountManager::RemoveOsAccount(userId), ERR_OK); HWTEST_F() local 1005 EXPECT_EQ(OsAccountManager::RemoveOsAccount(userId), ERR_OK); HWTEST_F() local 1045 EXPECT_EQ(OsAccountManager::RemoveOsAccount(userId), ERR_OK); HWTEST_F() local 1086 EXPECT_EQ(OsAccountManager::RemoveOsAccount(userId), ERR_OK); HWTEST_F() local 1209 EXPECT_EQ(OsAccountManager::RemoveOsAccount(localId), ERR_OK); HWTEST_F() local 1247 EXPECT_EQ(OsAccountManager::ActivateOsAccount(userId), ERR_OK); HWTEST_F() local 1251 EXPECT_EQ(OsAccountManager::RemoveOsAccount(userId), ERR_OK); HWTEST_F() local 1299 EXPECT_EQ(OsAccountManager::RemoveOsAccount(userId), ERR_OK); HWTEST_F() local 1338 EXPECT_EQ(OsAccountManager::ActivateOsAccount(userId), ERR_OK); HWTEST_F() local 1342 EXPECT_EQ(OsAccountManager::RemoveOsAccount(userId), ERR_OK); HWTEST_F() local 1504 EXPECT_EQ(DomainAccountClient::GetInstance().UnregisterAccountStatusListener(listener), ERR_OK); HWTEST_F() local 1520 EXPECT_EQ(DomainAccountClient::GetInstance().RegisterAccountStatusListener(listener), ERR_OK); HWTEST_F() local 1521 EXPECT_EQ(DomainAccountClient::GetInstance().UnregisterAccountStatusListener(listener), ERR_OK); HWTEST_F() local 1553 EXPECT_EQ(DomainAccountClient::GetInstance().RegisterAccountStatusListener(listener3), ERR_OK); HWTEST_F() local 1554 EXPECT_EQ(DomainAccountClient::GetInstance().RegisterAccountStatusListener(listener3), ERR_OK); HWTEST_F() local 1562 EXPECT_EQ(OsAccountManager::GetOsAccountLocalIdFromDomain(domainInfo, userId), ERR_OK); HWTEST_F() local 1571 EXPECT_EQ(OsAccountManager::GetOsAccountLocalIdFromDomain(domainInfo1, userId1), ERR_OK); HWTEST_F() local 1580 EXPECT_EQ(DomainAccountClient::GetInstance().UnregisterAccountStatusListener(listener3), ERR_OK); HWTEST_F() local 1582 EXPECT_EQ(OsAccountManager::RemoveOsAccount(userId), ERR_OK); HWTEST_F() local 1583 EXPECT_EQ(OsAccountManager::RemoveOsAccount(userId1), ERR_OK); HWTEST_F() local 1601 EXPECT_EQ(DomainAccountClient::GetInstance().RegisterAccountStatusListener(listener3), ERR_OK); HWTEST_F() local 1603 EXPECT_EQ(OsAccountManager::GetOsAccountLocalIdFromDomain(domainInfo, userId), ERR_OK); HWTEST_F() local 1604 EXPECT_EQ(OsAccountManager::ActivateOsAccount(userId), ERR_OK); HWTEST_F() local 1619 EXPECT_EQ(OsAccountManager::GetOsAccountLocalIdFromDomain(domainInfo1, userId1), ERR_OK); HWTEST_F() local 1620 EXPECT_EQ(OsAccountManager::ActivateOsAccount(userId1), ERR_OK); HWTEST_F() local 1630 EXPECT_EQ(DomainAccountClient::GetInstance().UnregisterAccountStatusListener(listener3), ERR_OK); HWTEST_F() local 1631 EXPECT_EQ(OsAccountManager::RemoveOsAccount(userId), ERR_OK); HWTEST_F() local 1632 EXPECT_EQ(OsAccountManager::RemoveOsAccount(userId1), ERR_OK); HWTEST_F() local 1649 EXPECT_EQ(DomainAccountClient::GetInstance().RegisterAccountStatusListener(listener3), ERR_OK); HWTEST_F() local 1651 EXPECT_EQ(OsAccountManager::GetOsAccountLocalIdFromDomain(domainInfo, userId), ERR_OK); HWTEST_F() local 1652 EXPECT_EQ(OsAccountManager::ActivateOsAccount(userId), ERR_OK); HWTEST_F() local 1658 EXPECT_EQ(OsAccountManager::GetOsAccountLocalIdFromDomain(domainInfo1, userId), ERR_OK); HWTEST_F() local 1659 EXPECT_EQ(OsAccountManager::ActivateOsAccount(userId), ERR_OK); HWTEST_F() local 1666 EXPECT_EQ(DomainAccountClient::GetInstance().UnregisterAccountStatusListener(listener3), ERR_OK); HWTEST_F() local 1667 EXPECT_EQ(OsAccountManager::RemoveOsAccount(userId), ERR_OK); HWTEST_F() local 1670 EXPECT_EQ(OsAccountManager::GetOsAccountLocalIdFromDomain(domainInfo, userId), ERR_OK); HWTEST_F() local 1671 EXPECT_EQ(OsAccountManager::RemoveOsAccount(userId), ERR_OK); HWTEST_F() local 1689 EXPECT_EQ(DomainAccountClient::GetInstance().RegisterAccountStatusListener(listener3), ERR_OK); HWTEST_F() local 1695 EXPECT_EQ(OsAccountManager::GetOsAccountLocalIdFromDomain(domainInfo, userId), ERR_OK); HWTEST_F() local 1698 EXPECT_EQ(OsAccountManager::GetOsAccountLocalIdFromDomain(domainInfo1, userId), ERR_OK); HWTEST_F() local 1701 EXPECT_EQ(DomainAccountClient::GetInstance().UnregisterAccountStatusListener(listener3), ERR_OK); HWTEST_F() local 1702 EXPECT_EQ(OsAccountManager::RemoveOsAccount(userId), ERR_OK); HWTEST_F() local 1705 EXPECT_EQ(OsAccountManager::GetOsAccountLocalIdFromDomain(domainInfo, userId), ERR_OK); HWTEST_F() local 1706 EXPECT_EQ(OsAccountManager::RemoveOsAccount(userId), ERR_OK); HWTEST_F() local 1724 EXPECT_EQ(DomainAccountClient::GetInstance().RegisterAccountStatusListener(listener3), ERR_OK); HWTEST_F() local 1729 EXPECT_EQ(OsAccountManager::GetOsAccountLocalIdFromDomain(domainInfo, userId), ERR_OK); HWTEST_F() local 1732 EXPECT_EQ(OsAccountManager::GetOsAccountLocalIdFromDomain(domainInfo1, userId), ERR_OK); HWTEST_F() local 1736 EXPECT_EQ(DomainAccountClient::GetInstance().UnregisterAccountStatusListener(listener3), ERR_OK); HWTEST_F() local 1737 EXPECT_EQ(OsAccountManager::RemoveOsAccount(userId), ERR_OK); HWTEST_F() local 1738 EXPECT_EQ(OsAccountManager::GetOsAccountLocalIdFromDomain(domainInfo, userId), ERR_OK); HWTEST_F() local 1739 EXPECT_EQ(OsAccountManager::RemoveOsAccount(userId), ERR_OK); HWTEST_F() local 1757 EXPECT_EQ(DomainAccountClient::GetInstance().RegisterAccountStatusListener(listener3), ERR_OK); HWTEST_F() local 1760 EXPECT_EQ(OsAccountManager::GetOsAccountLocalIdFromDomain(domainInfo, userId), ERR_OK); HWTEST_F() local 1763 EXPECT_EQ(OsAccountManager::RemoveOsAccount(userId), ERR_OK); HWTEST_F() local 1764 EXPECT_EQ(OsAccountManager::GetOsAccountLocalIdFromDomain(domainInfo1, userId), ERR_OK); HWTEST_F() local 1765 EXPECT_EQ(OsAccountManager::RemoveOsAccount(userId), ERR_OK); HWTEST_F() local 1768 EXPECT_EQ(DomainAccountClient::GetInstance().UnregisterAccountStatusListener(listener3), ERR_OK); HWTEST_F() local 2015 EXPECT_EQ(OsAccountManager::RemoveOsAccount(userId), ERR_OK); HWTEST_F() local 2043 EXPECT_EQ(OsAccountManager::RemoveOsAccount(userId), ERR_OK); HWTEST_F() local 2074 EXPECT_EQ(OsAccountManager::RemoveOsAccount(oldUserId), ERR_OK); HWTEST_F() local [all...] |