Changeset 10765 for code/branches/cpp11_v2/test/core/class
- Timestamp:
- Nov 4, 2015, 10:25:42 PM (9 years ago)
- Location:
- code/branches/cpp11_v2/test/core/class
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/test/core/class/IdentifiableTest.cc
r10624 r10765 37 37 { 38 38 IdentifiableClass* test = new IdentifiableClass(); 39 ASSERT_TRUE(test != NULL);39 ASSERT_TRUE(test != nullptr); 40 40 delete test; 41 41 } -
code/branches/cpp11_v2/test/core/class/IdentifierClassHierarchyTest.cc
r10624 r10765 144 144 new IdentifierManager(); 145 145 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 146 Context::setRootContext(new Context( NULL));146 Context::setRootContext(new Context(nullptr)); 147 147 Identifier::initConfigValues_s = false; // TODO: hack! 148 148 IdentifierManager::getInstance().createClassHierarchy(); -
code/branches/cpp11_v2/test/core/class/IdentifierExternalClassHierarchyTest.cc
r10624 r10765 51 51 new IdentifierManager(); 52 52 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 53 Context::setRootContext(new Context( NULL));53 Context::setRootContext(new Context(nullptr)); 54 54 Identifier::initConfigValues_s = false; // TODO: hack! 55 55 IdentifierManager::getInstance().createClassHierarchy(); -
code/branches/cpp11_v2/test/core/class/IdentifierNestedClassHierarchyTest.cc
r10624 r10765 111 111 new IdentifierManager(); 112 112 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 113 Context::setRootContext(new Context( NULL));113 Context::setRootContext(new Context(nullptr)); 114 114 Identifier::initConfigValues_s = false; // TODO: hack! 115 115 IdentifierManager::getInstance().createClassHierarchy(); -
code/branches/cpp11_v2/test/core/class/IdentifierSimpleClassHierarchyTest.cc
r10624 r10765 53 53 new IdentifierManager(); 54 54 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 55 Context::setRootContext(new Context( NULL));55 Context::setRootContext(new Context(nullptr)); 56 56 Identifier::initConfigValues_s = false; // TODO: hack! 57 57 IdentifierManager::getInstance().createClassHierarchy(); -
code/branches/cpp11_v2/test/core/class/IdentifierTest.cc
r10624 r10765 46 46 47 47 Identifier* identifier = Class(TestClass); 48 EXPECT_TRUE(identifier != NULL);48 EXPECT_TRUE(identifier != nullptr); 49 49 } 50 50 … … 54 54 55 55 Identifier* identifier = Class(TestSubclass); 56 EXPECT_TRUE(identifier != NULL);56 EXPECT_TRUE(identifier != nullptr); 57 57 } 58 58 -
code/branches/cpp11_v2/test/core/class/OrxonoxClassTest.cc
r10624 r10765 19 19 { 20 20 new IdentifierManager(); 21 Context::setRootContext(new Context( NULL));21 Context::setRootContext(new Context(nullptr)); 22 22 } 23 23 … … 33 33 { 34 34 TestClass* test = new TestClass(); 35 ASSERT_TRUE(test != NULL);35 ASSERT_TRUE(test != nullptr); 36 36 delete test; 37 37 } -
code/branches/cpp11_v2/test/core/class/OrxonoxInterfaceTest.cc
r10624 r10765 34 34 { 35 35 new IdentifierManager(); 36 Context::setRootContext(new Context( NULL));36 Context::setRootContext(new Context(nullptr)); 37 37 } 38 38 … … 48 48 { 49 49 TestClass1* test = new TestClass1(); 50 ASSERT_TRUE(test != NULL);50 ASSERT_TRUE(test != nullptr); 51 51 delete test; 52 52 } … … 55 55 { 56 56 TestClass2* test = new TestClass2(); 57 ASSERT_TRUE(test != NULL);57 ASSERT_TRUE(test != nullptr); 58 58 delete test; 59 59 } -
code/branches/cpp11_v2/test/core/class/SubclassIdentifierTest.cc
r10624 r10765 13 13 { 14 14 public: 15 TestClass(Context* context = NULL) { RegisterObject(TestClass); }15 TestClass(Context* context = nullptr) { RegisterObject(TestClass); } 16 16 }; 17 17 … … 19 19 { 20 20 public: 21 TestSubclass(Context* context = NULL) { RegisterObject(TestSubclass); }21 TestSubclass(Context* context = nullptr) { RegisterObject(TestSubclass); } 22 22 }; 23 23 … … 33 33 new IdentifierManager(); 34 34 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 35 Context::setRootContext(new Context( NULL));35 Context::setRootContext(new Context(nullptr)); 36 36 Identifier::initConfigValues_s = false; // TODO: hack! 37 37 IdentifierManager::getInstance().createClassHierarchy(); … … 77 77 subclassIdentifier = Class(TestSubclass); 78 78 79 TestClass* instance = subclassIdentifier.fabricate( NULL);80 ASSERT_TRUE(instance != NULL);79 TestClass* instance = subclassIdentifier.fabricate(nullptr); 80 ASSERT_TRUE(instance != nullptr); 81 81 EXPECT_EQ(Class(TestSubclass), instance->getIdentifier()); 82 82 delete instance; -
code/branches/cpp11_v2/test/core/class/SuperTest.cc
r10624 r10765 14 14 { 15 15 public: 16 TestClass(Context* context = NULL) : BaseObject(context), changedNameBase_(false), xmlPortBase_(false), modeBase_(XMLPort::NOP)16 TestClass(Context* context = nullptr) : BaseObject(context), changedNameBase_(false), xmlPortBase_(false), modeBase_(XMLPort::NOP) 17 17 { 18 18 RegisterObject(TestClass); … … 38 38 { 39 39 public: 40 TestSubclass(Context* context = NULL) : TestClass(context), changedNameSubclass_(false), xmlPortSubclass_(false), modeSubclass_(XMLPort::NOP)40 TestSubclass(Context* context = nullptr) : TestClass(context), changedNameSubclass_(false), xmlPortSubclass_(false), modeSubclass_(XMLPort::NOP) 41 41 { 42 42 RegisterObject(TestSubclass); … … 74 74 new IdentifierManager(); 75 75 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 76 Context::setRootContext(new Context( NULL));76 Context::setRootContext(new Context(nullptr)); 77 77 Identifier::initConfigValues_s = false; // TODO: hack! 78 78 IdentifierManager::getInstance().createClassHierarchy(); … … 132 132 EXPECT_EQ(XMLPort::NOP, test.modeSubclass_); 133 133 134 Element* element = NULL;134 Element* element = nullptr; 135 135 test.XMLPort(*element, XMLPort::SaveObject); 136 136
Note: See TracChangeset
for help on using the changeset viewer.