Home
last modified time | relevance | path

Searched refs:osAccountFileOperator_ (Results 1 – 3 of 3) sorted by relevance

/base/account/os_account/services/accountmgr/test/unittest/common/account_file_operator_test/
Daccount_file_operator_test.cpp43 AccountFileOperator osAccountFileOperator_; member in OHOS::AccountSA::AccountFileOperatorTest
66 EXPECT_EQ(osAccountFileOperator_.IsExistDir("/system/etc/account"), true);
67 EXPECT_EQ(osAccountFileOperator_.IsExistDir("/file"), false);
78 …EXPECT_EQ(osAccountFileOperator_.IsExistFile("/system/etc/account/osaccount_constraints.json"), tr…
79 EXPECT_EQ(osAccountFileOperator_.IsExistFile("/osaccount_constraints.json"), false);
90 EXPECT_EQ(osAccountFileOperator_.CreateDir(TEST_DIR_1), ERR_OK);
91 EXPECT_EQ(osAccountFileOperator_.DeleteDirOrFile(TEST_DIR_1), ERR_OK);
102 EXPECT_EQ(osAccountFileOperator_.CreateDir(TEST_DIR_1), ERR_OK);
103 …EXPECT_EQ(osAccountFileOperator_.InputFileByPathAndContent(TEST_DIR_1 + "/" + TEST_FILE_1, "file")…
105 …EXPECT_EQ(osAccountFileOperator_.GetFileContentByPath(TEST_DIR_1 + "/" + TEST_FILE_1, str), ERR_OK…
[all …]
/base/account/os_account/services/accountmgr/src/osaccount/
Dos_account_control_file_manager.cpp58 osAccountFileOperator_ = std::make_shared<OsAccountFileOperator>(); in OsAccountControlFileManager()
66 osAccountFileOperator_->Init(); in Init()
116 …if (osAccountFileOperator_->GetConstraintsByType(OsAccountType::ADMIN, baseOAConstraints) != ERR_O… in BuildAndSaveBaseOAConstraintsJsonFile()
245 return osAccountFileOperator_->GetConstraintsByType(typeInit, constraints); in GetConstraintsByType()
847 ErrCode errCode = osAccountFileOperator_->GetBaseOAConstraintsList(id, constraintsList); in IsFromBaseOAConstraintsList()
865 ErrCode errCode = osAccountFileOperator_->GetGlobalOAConstraintsList(constraintsList); in IsFromGlobalOAConstraintsList()
908 ErrCode errCode = osAccountFileOperator_->GetSpecificOAConstraintsList(id, constraintsList); in IsFromSpecificOAConstraintsList()
1132 return osAccountFileOperator_->GetGlobalOAConstraintsList(constraintsList); in GetGlobalOAConstraintsList()
1138 return osAccountFileOperator_->GetSpecificOAConstraintsList(id, constraintsList); in GetSpecificOAConstraintsList()
1143 return osAccountFileOperator_->GetIsMultiOsAccountEnable(isMultiOsAccountEnable); in GetIsMultiOsAccountEnable()
[all …]
/base/account/os_account/services/accountmgr/include/osaccount/
Dos_account_control_file_manager.h115 std::shared_ptr<OsAccountFileOperator> osAccountFileOperator_; variable