Changeset 10544 for code/branches/core7/test/core/singleton
- Timestamp:
- Jun 7, 2015, 3:24:55 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/test/core/singleton/ScopeTest.cc
r10535 r10544 28 28 virtual void SetUp() 29 29 { 30 new IdentifierManager(); 31 new ScopeManager(); 30 32 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 31 33 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::SCOPED_SINGLETON_WRAPPER); 34 Context::setRootContext(new Context(NULL)); 32 35 } 33 36 34 37 virtual void TearDown() 35 38 { 39 Context::destroyRootContext(); 36 40 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::SCOPED_SINGLETON_WRAPPER); 37 41 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 42 delete &ScopeManager::getInstance(); 43 delete &IdentifierManager::getInstance(); 38 44 } 39 45 };
Note: See TracChangeset
for help on using the changeset viewer.