Home
last modified time | relevance | path

Searched refs:factory_ (Results 1 – 25 of 31) sorted by relevance

12

/ohos5.0/base/update/updater/test/unittest/script/script_instruction/
H A Dscript_instructionhelper_unittest.cpp111 factory_ = std::make_unique<TestInstructionFactory>(); in ScriptInstructionHelperUnitTest()
161 EXPECT_EQ(factory_->CreateInstructionInstance(instr1, "test1"), USCRIPT_SUCCESS); in TestAddInstruction()
164 EXPECT_EQ(factory_->CreateInstructionInstance(instr2, "test2"), USCRIPT_SUCCESS); in TestAddInstruction()
209 … EXPECT_EQ(helper->RegisterUserInstruction("", factory_.get()), USCRIPT_NOTEXIST_INSTRUCTION); in TestRegisterUserInstruction01()
216 … EXPECT_EQ(helper->RegisterUserInstruction("test3", factory_.get()), USCRIPT_ERROR_CREATE_OBJ); in TestRegisterUserInstruction01()
217 … EXPECT_EQ(helper->RegisterUserInstruction("test4", factory_.get()), USCRIPT_NOTEXIST_INSTRUCTION); in TestRegisterUserInstruction01()
218 … EXPECT_EQ(helper->RegisterUserInstruction("abort", factory_.get()), USCRIPT_ERROR_REVERED); in TestRegisterUserInstruction01()
219 EXPECT_EQ(helper->RegisterUserInstruction("test2", factory_.get()), USCRIPT_SUCCESS); in TestRegisterUserInstruction01()
263 std::unique_ptr<TestInstructionFactory> factory_; member in __anon10f020ce0110::ScriptInstructionHelperUnitTest
H A Dscript_instruction_unittest.h46 UScriptInstructionFactory *factory_ = nullptr; variable
/ohos5.0/base/update/updater/test/fuzztest/scriptmanager_fuzzer/
H A Dscriptmanager_fuzzer.cpp178 if (factory_ != nullptr) { in ~FuzzTestScriptEnv()
179 delete factory_; in ~FuzzTestScriptEnv()
180 factory_ = nullptr; in ~FuzzTestScriptEnv()
186 if (factory_ == nullptr) { in GetInstructionFactory()
187 factory_ = new FuzzTestScriptInstructionFactory(); in GetInstructionFactory()
189 return factory_; in GetInstructionFactory()
208 UScriptInstructionFactory *factory_ = nullptr; member in OHOS::FuzzTestScriptEnv
/ohos5.0/base/update/updater/test/unittest/script/
H A Dscript_unittest.cpp182 if (factory_ != nullptr) { in ~UTestScriptEnv()
183 delete factory_; in ~UTestScriptEnv()
184 factory_ = nullptr; in ~UTestScriptEnv()
192 if (factory_ == nullptr) { in GetInstructionFactory()
193 factory_ = new TestScriptInstructionFactory(); in GetInstructionFactory()
195 return factory_; in GetInstructionFactory()
213 UScriptInstructionFactory *factory_ = nullptr; member in __anonf49137a80110::UTestScriptEnv
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/
H A Dikvdb_factory.cpp19 IKvDBFactory *IKvDBFactory::factory_ = nullptr; member in DistributedDB::IKvDBFactory
26 return IKvDBFactory::factory_; in GetCurrent()
33 IKvDBFactory::factory_ = factory; in Register()
/ohos5.0/base/update/updater/test/fuzztest/extractandexecutescript_fuzzer/
H A Dextractandexecutescript_fuzzer.cpp97 UScriptInstructionFactory *factory_ = nullptr; member in UTestScriptEnv
101 if (factory_ != nullptr) { in ~UTestScriptEnv()
102 delete factory_; in ~UTestScriptEnv()
103 factory_ = nullptr; in ~UTestScriptEnv()
111 if (factory_ == nullptr) { in GetInstructionFactory()
112 factory_ = new TestScriptInstructionFactory(); in GetInstructionFactory()
114 return factory_; in GetInstructionFactory()
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/dump/
H A Ddump_manager.cpp26 factory_.Insert(name, config); in AddConfig()
33 auto it = factory_.Find(name); in GetConfig()
46 return factory_; in LoadConfig()
/ohos5.0/base/update/updater/services/updater_binary/
H A Dupdate_processor.cpp59 if (factory_ != nullptr) { in ~UpdaterEnv()
60 delete factory_; in ~UpdaterEnv()
61 factory_ = nullptr; in ~UpdaterEnv()
75 if (factory_ == nullptr) { in GetInstructionFactory()
76 factory_ = new UpdaterInstructionFactory(); in GetInstructionFactory()
78 return factory_; in GetInstructionFactory()
/ohos5.0/foundation/distributeddatamgr/pasteboard/framework/innerkits/include/
H A Dpasteboard_entry_getter.h36 static Factory factory_; variable
/ohos5.0/foundation/distributeddatamgr/pasteboard/framework/test/include/
H A Dclip_factory.h29 static ClipFactory factory_; variable
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/include/
H A Dikvdb_factory.h62 static IKvDBFactory *factory_;
/ohos5.0/base/update/updater/services/include/applypatch/
H A Dupdater_env.h51 UScriptInstructionFactoryPtr factory_ = nullptr;
/ohos5.0/foundation/distributeddatamgr/pasteboard/framework/innerkits/src/
H A Dpasteboard_entry_getter.cpp24 __attribute__((used)) PasteboardEntryGetter::Factory PasteboardEntryGetter::factory_; member in OHOS::MiscServices::PasteboardEntryGetter
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/dump/
H A Ddump_manager.h60 ConcurrentMap<std::string, Config> factory_;
/ohos5.0/base/update/updater/test/unittest/updater_binary/
H A Dupdate_binary_unittest.h56 Uscript::UScriptInstructionFactory *factory_ = nullptr; variable
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/
H A Dgraphics_context.h95 struct Agp3DPluginState& factory_; variable
H A Dgraphics_context.cpp282 : factory_(factory), context_(context) in GraphicsContext()
394 factory_.Destroy(); in Unref()
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/udmf/
H A Dudmf_service_impl.h76 static Factory factory_; variable
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/object/
H A Dobject_service_impl.h71 static Factory factory_; variable
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dmesh_util.h90 CORE_NS::IClassFactory& factory_; in CORE3D_BEGIN_NAMESPACE() local
H A Dmesh_util.cpp732 if (IClassRegister* classRegister = factory_.GetInterface<IClassRegister>(); classRegister) { in InitializeBuilder()
758 MeshUtil::MeshUtil(IClassFactory& factory) : factory_(factory) {} in MeshUtil()
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/
H A Ddata_share_service_impl.h143 static Factory factory_; variable
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/kvdb/
H A Dkvdb_service_impl.h155 static Factory factory_; variable
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/rdb/
H A Drdb_service_impl.h211 static Factory factory_; variable
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/cloud/
H A Dcloud_service_impl.h90 static Factory factory_; variable

12