mirror of
https://gitee.com/openharmony/account_os_account
synced 2024-11-27 04:00:43 +00:00
Fix query U0 active status issue
Signed-off-by: zhangalong <zhangalong@huawei.com>
This commit is contained in:
parent
e64cc57e58
commit
d4f2de821b
@ -342,7 +342,7 @@ HWTEST_F(OsAccountManagerModuleTest, OsAccountManagerModuleTest011, TestSize.Lev
|
||||
HWTEST_F(OsAccountManagerModuleTest, OsAccountManagerModuleTest012, TestSize.Level0)
|
||||
{
|
||||
bool isOsAccountActived = false;
|
||||
EXPECT_EQ(OsAccountManager::IsOsAccountActived(Constants::START_USER_ID, isOsAccountActived), ERR_OK);
|
||||
EXPECT_EQ(OsAccountManager::IsOsAccountActived(Constants::ADMIN_LOCAL_ID, isOsAccountActived), ERR_OK);
|
||||
EXPECT_EQ(isOsAccountActived, true);
|
||||
}
|
||||
|
||||
@ -358,7 +358,7 @@ HWTEST_F(OsAccountManagerModuleTest, OsAccountManagerModuleTest013, TestSize.Lev
|
||||
OsAccountManager::CreateOsAccount(STRING_TEST_NAME, INT_TEST_TYPE, osAccountInfoOne);
|
||||
bool isOsAccountActived = false;
|
||||
EXPECT_EQ(OsAccountManager::IsOsAccountActived(osAccountInfoOne.GetLocalId(), isOsAccountActived), ERR_OK);
|
||||
EXPECT_EQ(isOsAccountActived, true);
|
||||
EXPECT_EQ(isOsAccountActived, false);
|
||||
osAccountControlFileManager_->DelOsAccount(osAccountInfoOne.GetLocalId());
|
||||
}
|
||||
|
||||
|
@ -370,7 +370,7 @@ HWTEST_F(OsAccountManagerServiceModuleTest, OsAccountManagerServiceModuleTest014
|
||||
g_osAccountManagerService->CreateOsAccount(STRING_TEST_NAME, INT_TEST_TYPE, osAccountInfoOne);
|
||||
bool isOsAccountActived = false;
|
||||
EXPECT_EQ(g_osAccountManagerService->IsOsAccountActived(osAccountInfoOne.GetLocalId(), isOsAccountActived), ERR_OK);
|
||||
EXPECT_EQ(isOsAccountActived, true);
|
||||
EXPECT_EQ(isOsAccountActived, false);
|
||||
osAccountControlFileManager_->DelOsAccount(osAccountInfoOne.GetLocalId());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user