Home
last modified time | relevance | path

Searched refs:CreateOsAccount (Results 1 - 25 of 55) sorted by relevance

123

/base/account/os_account/frameworks/osaccount/native/test/unittest/
H A Dos_account_info_test.cpp506 EXPECT_EQ(ERR_OK, OsAccountManager::CreateOsAccount("GetOsAccountName02", OsAccountType::NORMAL, osAccountInfo)); in HWTEST_F()
717 OsAccountManager::CreateOsAccount(STRING_NAME, "shortName", OsAccountType::NORMAL, osAccountInfoOne)); in HWTEST_F()
719 OsAccountManager::CreateOsAccount(STRING_NAME, STRING_NAME, OsAccountType::NORMAL, osAccountInfoTwo)); in HWTEST_F()
737 OsAccountManager::CreateOsAccount(STRING_NAME, "shortName", OsAccountType::NORMAL, options, osAccountInfoOne)); in HWTEST_F()
739 OsAccountManager::CreateOsAccount(STRING_NAME, STRING_NAME, OsAccountType::NORMAL, osAccountInfoTwo)); in HWTEST_F()
741 OsAccountManager::CreateOsAccount("CreateOsAccount01", "shortName", OsAccountType::NORMAL, osAccountInfoTwo)); in HWTEST_F()
773 OsAccountManager::CreateOsAccount("..", OsAccountType::NORMAL, osAccountInfoOne)); in HWTEST_F()
787 OsAccountManager::CreateOsAccount("zsm<<zd?s>|:23\"1/bc\\d", OsAccountType::NORMAL, osAccountInfoOne)); in HWTEST_F()
801 OsAccountManager::CreateOsAccount("CreateOsAccount04", OVER_LENGTH_NAME, in HWTEST_F()
816 OsAccountManager::CreateOsAccount(OVER_LENGTH_NAM in HWTEST_F()
[all...]
/base/account/os_account/tools/test/moduletest/acm/
H A Daccount_command_util.h25 static std::string CreateOsAccount();
26 static std::string CreateOsAccount(const std::string &name);
H A Daccount_command_set_module_test.cpp88 AccountCommandUtil::CreateOsAccount("Acm_Command_Set_0100"); in HWTEST_F()
115 AccountCommandUtil::CreateOsAccount("Acm_Command_Set_0200"); in HWTEST_F()
H A Daccount_command_create_module_test.cpp79 std::string commandResult = AccountCommandUtil::CreateOsAccount("Acm_Command_Create_0100"); in HWTEST_F()
H A Daccount_command_util.cpp36 std::string AccountCommandUtil::CreateOsAccount() in CreateOsAccount() function in OHOS::AccountSA::AccountCommandUtil
42 GTEST_LOG_(INFO) << "AccountCommandUtil::CreateOsAccount commandResult = " << commandResult; in CreateOsAccount()
46 std::string AccountCommandUtil::CreateOsAccount(const std::string &name) in CreateOsAccount() function in OHOS::AccountSA::AccountCommandUtil
52 GTEST_LOG_(INFO) << "AccountCommandUtil::CreateOsAccount commandResult = " << commandResult; in CreateOsAccount()
H A Daccount_command_delete_module_test.cpp115 std::string commandResult = AccountCommandUtil::CreateOsAccount("Acm_Command_Delete_0300"); in HWTEST_F()
H A Daccount_command_switch_module_test.cpp100 std::string commandResult = AccountCommandUtil::CreateOsAccount("Acm_Command_Switch_0300"); in HWTEST_F()
/base/customization/enterprise_device_management/common/external/src/
H A Dedm_os_account_manager_impl.cpp42 ErrCode EdmOsAccountManagerImpl::CreateOsAccount(const std::string &name, const OHOS::AccountSA::OsAccountType &type, in CreateOsAccount() function in OHOS::EDM::EdmOsAccountManagerImpl
45 EDMLOGI("EdmOsAccountManagerImpl::CreateOsAccount."); in CreateOsAccount()
46 return OHOS::AccountSA::OsAccountManager::CreateOsAccount(name, type, osAccountInfo); in CreateOsAccount()
/base/account/os_account/services/accountmgr/test/moduletest/os_account/
H A Dos_account_manager_service_module_test.cpp165 * @tc.desc: Test CreateOsAccount with valid data.
173 ErrCode errCode = osAccountManagerService_->CreateOsAccount(STRING_TEST_NAME, INT_TEST_TYPE, osAccountInfoOne); in HWTEST_F()
189 * @tc.desc: Test CreateOsAccount with invalid name.
197 osAccountManagerService_->CreateOsAccount(STRING_NAME_OUT_OF_RANGE, INT_TEST_TYPE, osAccountInfoOne); in HWTEST_F()
203 * @tc.desc: Test CreateOsAccount with invalid name.
210 ErrCode errCode = osAccountManagerService_->CreateOsAccount(STRING_EMPTY, INT_TEST_TYPE, osAccountInfoOne); in HWTEST_F()
232 ErrCode errCode = osAccountManagerService_->CreateOsAccount(STRING_TEST_NAME, OsAccountType::ADMIN, in HWTEST_F()
237 errCode = osAccountManagerService_->CreateOsAccount(STRING_TEST_NAME, OsAccountType::END, in HWTEST_F()
252 ASSERT_EQ(osAccountManagerService_->CreateOsAccount(STRING_TEST_NAME, INT_TEST_TYPE, osAccountInfoOne), ERR_OK); in HWTEST_F()
259 * @tc.desc: Test CreateOsAccount whe
[all...]
H A Dos_account_manager_service_create_os_account_test.cpp89 * @tc.desc: Test CreateOsAccount when create max accounts.
99 ACCOUNT_LOGI("before CreateOsAccount, i = %{public}d.", i); in HWTEST_F()
100 GTEST_LOG_(INFO) << "before CreateOsAccount, i = " << i; in HWTEST_F()
101 errCode = g_osAccountManagerService->CreateOsAccount(STRING_TEST_NAME, OsAccountType::ADMIN, osAccountInfoOne); in HWTEST_F()
107 errCode = g_osAccountManagerService->CreateOsAccount(STRING_TEST_NAME, OsAccountType::ADMIN, osAccountInfoOne); in HWTEST_F()
/base/account/os_account/frameworks/osaccount/native/test/moduletest/
H A Dos_account_manager_module_test.cpp348 ASSERT_EQ(OsAccountManager::CreateOsAccount("ModuleTest001", OsAccountType::GUEST, osAccountInfoOne), ERR_OK); in HWTEST_F()
362 * @tc.desc: Test CreateOsAccount with too long name.
369 EXPECT_NE(OsAccountManager::CreateOsAccount(STRING_NAME_OUT_OF_RANGE, OsAccountType::GUEST, osAccountInfoOne), in HWTEST_F()
375 * @tc.desc: Test CreateOsAccount with empty name.
382 EXPECT_NE(OsAccountManager::CreateOsAccount(STRING_EMPTY, OsAccountType::GUEST, osAccountInfoOne), ERR_OK); in HWTEST_F()
394 ASSERT_EQ(OsAccountManager::CreateOsAccount("ModuleTest004", OsAccountType::ADMIN, osAccountInfoOne), ERR_OK); in HWTEST_F()
415 ASSERT_EQ(OsAccountManager::CreateOsAccount("ModuleTest005", OsAccountType::NORMAL, osAccountInfoOne), ERR_OK); in HWTEST_F()
430 * @tc.desc: Test CreateOsAccount when cannot find account_list.json.
445 EXPECT_NE(OsAccountManager::CreateOsAccount("ModuleTest006", OsAccountType::GUEST, osAccountInfoOne), ERR_OK); in HWTEST_F()
469 EXPECT_NE(OsAccountManager::CreateOsAccount(STRING_EMPT in HWTEST_F()
[all...]
/base/customization/enterprise_device_management/test/unittest/services/edm_plugin/src/
H A Dadd_os_account_plugin_test.cpp144 EXPECT_CALL(*osAccountMgrMock, CreateOsAccount).Times(1).WillOnce(Return(ERR_OK)); in HWTEST_F()
164 EXPECT_CALL(*osAccountMgrMock, CreateOsAccount).Times(1).WillOnce(Return(ERR_OK)); in HWTEST_F()
184 EXPECT_CALL(*osAccountMgrMock, CreateOsAccount).Times(1).WillOnce(Return(ERR_OK)); in HWTEST_F()
204 EXPECT_CALL(*osAccountMgrMock, CreateOsAccount).Times(1).WillOnce(Return(EdmReturnErrCode::ADD_OS_ACCOUNT_FAILED)); in HWTEST_F()
/base/account/os_account/frameworks/ohosaccount/test/moduletests/account_mgr_test/
H A Dsubscribe_distributed_account_event_test.cpp89 ASSERT_EQ(OsAccountManager::CreateOsAccount("SubDistributed001", OsAccountType::NORMAL, SubDistributedAccount), in HWTEST_F()
134 ASSERT_EQ(OsAccountManager::CreateOsAccount("SubDistributed002", OsAccountType::NORMAL, SubDistributedAccount), in HWTEST_F()
186 ASSERT_EQ(OsAccountManager::CreateOsAccount("SubDistributed003", OsAccountType::NORMAL, SubDistributedAccount), in HWTEST_F()
248 ASSERT_EQ(OsAccountManager::CreateOsAccount("SubDistributed005", OsAccountType::NORMAL, SubDistributedAccount), in HWTEST_F()
291 ASSERT_EQ(OsAccountManager::CreateOsAccount("SubDistributed006", OsAccountType::NORMAL, SubDistributedAccount), in HWTEST_F()
H A Daccount_mgr_inner_sdk_func_test.cpp195 EXPECT_EQ(OsAccountManager::CreateOsAccount("OhosAccountInfo002", OsAccountType::NORMAL, osAccountInfoOne), ERR_OK); in HWTEST_F()
245 EXPECT_EQ(OsAccountManager::CreateOsAccount("OhosAccountInfo004", OsAccountType::NORMAL, osAccountInfoOne), ERR_OK); in HWTEST_F()
300 EXPECT_EQ(OsAccountManager::CreateOsAccount("OhosAccountInfo005", OsAccountType::NORMAL, osAccountInfoOne), ERR_OK); in HWTEST_F()
332 EXPECT_EQ(OsAccountManager::CreateOsAccount("OhosAccountInfo006", OsAccountType::NORMAL, osAccountInfoOne), ERR_OK); in HWTEST_F()
390 EXPECT_EQ(OsAccountManager::CreateOsAccount("OhosAccountInfo008", OsAccountType::NORMAL, osAccountInfoOne), ERR_OK); in HWTEST_F()
437 EXPECT_EQ(OsAccountManager::CreateOsAccount("OhosAccountInfo009", OsAccountType::NORMAL, osAccountInfoOne), ERR_OK); in HWTEST_F()
494 EXPECT_EQ(OsAccountManager::CreateOsAccount(STRING_TEST_NAME, OsAccountType::NORMAL, osAccountInfoOne), ERR_OK); in HWTEST_F()
540 EXPECT_EQ(OsAccountManager::CreateOsAccount(STRING_TEST_NAME, OsAccountType::NORMAL, osAccountInfoOne), ERR_OK); in HWTEST_F()
597 EXPECT_EQ(OsAccountManager::CreateOsAccount("OhosAccountInfo012", OsAccountType::NORMAL, osAccountInfoOne), ERR_OK); in HWTEST_F()
655 EXPECT_EQ(OsAccountManager::CreateOsAccount( in HWTEST_F()
[all...]
/base/customization/enterprise_device_management/test/unittest/external_mock/include/
H A Dedm_os_account_manager_impl_mock.h31 MOCK_METHOD(ErrCode, CreateOsAccount, (const std::string &name, const OHOS::AccountSA::OsAccountType &type,
/base/customization/enterprise_device_management/common/external/include/
H A Diedm_os_account_manager.h35 virtual ErrCode CreateOsAccount(const std::string &name, const OHOS::AccountSA::OsAccountType &type,
H A Dedm_os_account_manager_impl.h29 ErrCode CreateOsAccount(const std::string &name, const OHOS::AccountSA::OsAccountType &type,
/base/account/os_account/services/accountmgr/test/unittest/os_account/
H A Dos_account_inner_account_mgr_plugin_mock.cpp70 EXPECT_EQ(innerMgrService_->CreateOsAccount("", INT_TYPE, osAccountInfo), in HWTEST_F()
H A Dos_account_inner_account_mgr_cov.cpp226 int errCode = innerMgrService_->CreateOsAccount(ACCOUNT_NAME, OsAccountType::NORMAL, osAccountInfo); in HWTEST_F()
279 ErrCode errCode = innerMgrService_->CreateOsAccount(ACCOUNT_NAME, OsAccountType::NORMAL, osAccountInfo); in HWTEST_F()
299 innerMgrService_->CreateOsAccount("CreateOsAccountRollback001", OsAccountType::NORMAL, osAccountInfo); in HWTEST_F()
/base/account/os_account/interfaces/innerkits/osaccount/native/include/
H A Dos_account_manager.h58 static ErrCode CreateOsAccount(const std::string &name, const OsAccountType &type, OsAccountInfo &osAccountInfo);
69 static ErrCode CreateOsAccount(const std::string& localName, const std::string& shortName,
83 static ErrCode CreateOsAccount(const std::string& localName, const std::string& shortName,
/base/account/os_account/test/fuzztest/osaccount/createosaccount_fuzzer/
H A Dcreateosaccount_fuzzer.cpp62 result = OsAccountManager::CreateOsAccount(accountName, shortName, testType, osAccountInfoOne); in CreateOsAccountWithShortNameFuzzTest()
74 result = OsAccountManager::CreateOsAccount(accountName, shortName, testType, options, osAccountInfoOne); in CreateOsAccountWithShortNameFuzzTest()
91 result = OsAccountManager::CreateOsAccount(accountName, testType, osAccountInfoOne); in CreateOsAccountFuzzTest()
/base/account/os_account/frameworks/osaccount/native/src/
H A Dos_account_manager.cpp24 ErrCode OsAccountManager::CreateOsAccount( in CreateOsAccount() function in OHOS::AccountSA::OsAccountManager
27 return OsAccount::GetInstance().CreateOsAccount(name, type, osAccountInfo); in CreateOsAccount()
30 ErrCode OsAccountManager::CreateOsAccount( in CreateOsAccount() function in OHOS::AccountSA::OsAccountManager
33 return OsAccount::GetInstance().CreateOsAccount(localName, shortName, type, osAccountInfo); in CreateOsAccount()
36 ErrCode OsAccountManager::CreateOsAccount(const std::string& localName, const std::string& shortName, in CreateOsAccount() function in OHOS::AccountSA::OsAccountManager
39 return OsAccount::GetInstance().CreateOsAccount(localName, shortName, type, osAccountInfo, options); in CreateOsAccount()
/base/account/os_account/frameworks/osaccount/core/test/unittest/
H A Dos_account_test.cpp114 * @tc.desc: Test CreateOsAccount string name out of range
121 ErrCode errCode = g_osAccount->CreateOsAccount(STRING_NAME_OUT_OF_RANGE, OsAccountType::GUEST, osAccountInfo); in HWTEST_F()
128 * @tc.desc: Test CreateOsAccount string name is empty
135 ErrCode errCode = g_osAccount->CreateOsAccount(STRING_EMPTY, OsAccountType::GUEST, osAccountInfo); in HWTEST_F()
265 * @tc.desc: Test CreateOsAccount name is empty.
275 osAccountProxy_->CreateOsAccount(STRING_EMPTY, type, osAccountInfo)); in HWTEST_F()
/base/customization/enterprise_device_management/services/edm_plugin/src/
H A Dadd_os_account_plugin.cpp60 EDMLOGI("AddOsAccountPlugin::CreateOsAccount: name.len -- %{public}zu, type -- %{public}d", in OnSetPolicy()
63 ErrCode ret = externalManagerFactory_->CreateOsAccountManager()->CreateOsAccount(accountName, in OnSetPolicy()
66 EDMLOGE("AddOsAccountPlugin CreateOsAccount failed"); in OnSetPolicy()
/base/account/os_account/frameworks/osaccount/core/include/
H A Dos_account.h29 ErrCode CreateOsAccount(const std::string &name, const OsAccountType &type, OsAccountInfo &osAccountInfo);
30 ErrCode CreateOsAccount(const std::string &localName, const std::string &shortName, const OsAccountType &type,

Completed in 17 milliseconds

123