Home
last modified time | relevance | path

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

/ohos5.0/base/update/updater/test/unittest/factory_reset_test/
H A Dfactory_reset_unittest.cpp33 std::unordered_map<FactoryResetMode, FactoryResetProcess::ResetFunc> resetTab_; member in __anon2434d3f10110::FactoryResetUnitTest
41 factoryResetProcess->resetTab_ = resetTab_; in SetUp()
60 resetTab_[FactoryResetMode::USER_WIPE_DATA] = [](const std::string &) { return 0; }; in __anon2434d3f10202()
68 resetTab_[FactoryResetMode::USER_WIPE_DATA] = [](const std::string &) { return 0; }; in __anon2434d3f10402()
75 resetTab_[FactoryResetMode::FACTORY_WIPE_DATA] = [](const std::string &) { return 0; }; in __anon2434d3f10502()
83 resetTab_[FactoryResetMode::FACTORY_WIPE_DATA] = [](const std::string &) { return 0; }; in __anon2434d3f10702()
90 resetTab_[FactoryResetMode::MENU_WIPE_DATA] = [](const std::string &) { return 0; }; in __anon2434d3f10802()
98 resetTab_[FactoryResetMode::MENU_WIPE_DATA] = [](const std::string &) { return 0; }; in __anon2434d3f10a02()
/ohos5.0/base/update/updater/services/factory_reset/
H A Dfactory_reset.cpp38 if (!resetTab_.emplace(mode, func).second) { in RegisterFunc()
45 auto iter = resetTab_.find(mode); in FactoryResetFunc()
46 if (iter == resetTab_.end() || iter->second == nullptr) { in FactoryResetFunc()
H A Dfactory_reset.h45 std::unordered_map<FactoryResetMode, ResetFunc> resetTab_; variable