Changeset 11071 for code/trunk/test/core/class
- Timestamp:
- Jan 17, 2016, 10:29:21 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/test/core/class/IdentifiableTest.cc
r10624 r11071 20 20 { 21 21 public: 22 virtual void SetUp() 22 virtual void SetUp() override 23 23 { 24 24 new IdentifierManager(); … … 26 26 } 27 27 28 virtual void TearDown() 28 virtual void TearDown() override 29 29 { 30 30 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); … … 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/trunk/test/core/class/IdentifierClassHierarchyTest.cc
r10624 r11071 86 86 } 87 87 88 virtual void test1() {}88 virtual void test1() override {} 89 89 }; 90 90 … … 97 97 } 98 98 99 virtual void test1() {}100 virtual void test2() {}99 virtual void test1() override {} 100 virtual void test2() override {} 101 101 }; 102 102 … … 109 109 } 110 110 111 virtual void test1() {}112 virtual void test2() {}111 virtual void test1() override {} 112 virtual void test2() override {} 113 113 }; 114 114 … … 121 121 } 122 122 123 virtual void test1() {}124 virtual void test2() {}123 virtual void test1() override {} 124 virtual void test2() override {} 125 125 }; 126 126 … … 140 140 { 141 141 public: 142 virtual void SetUp() 142 virtual void SetUp() override 143 143 { 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(); 149 149 } 150 150 151 virtual void TearDown() 151 virtual void TearDown() override 152 152 { 153 153 IdentifierManager::getInstance().destroyClassHierarchy(); -
code/trunk/test/core/class/IdentifierExternalClassHierarchyTest.cc
r10624 r11071 36 36 } 37 37 38 virtual void test() {}38 virtual void test() override {} 39 39 }; 40 40 … … 47 47 { 48 48 public: 49 virtual void SetUp() 49 virtual void SetUp() override 50 50 { 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(); 56 56 } 57 57 58 virtual void TearDown() 58 virtual void TearDown() override 59 59 { 60 60 IdentifierManager::getInstance().destroyClassHierarchy(); -
code/trunk/test/core/class/IdentifierNestedClassHierarchyTest.cc
r11052 r11071 107 107 { 108 108 public: 109 virtual void SetUp() 109 virtual void SetUp() override 110 110 { 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(); 116 116 } 117 117 118 virtual void TearDown() 118 virtual void TearDown() override 119 119 { 120 120 IdentifierManager::getInstance().destroyClassHierarchy(); -
code/trunk/test/core/class/IdentifierSimpleClassHierarchyTest.cc
r10624 r11071 38 38 } 39 39 40 virtual void test() {}40 virtual void test() override {} 41 41 }; 42 42 … … 49 49 { 50 50 public: 51 virtual void SetUp() 51 virtual void SetUp() override 52 52 { 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(); 58 58 } 59 59 60 virtual void TearDown() 60 virtual void TearDown() override 61 61 { 62 62 IdentifierManager::getInstance().destroyClassHierarchy(); -
code/trunk/test/core/class/IdentifierTest.cc
r10624 r11071 27 27 { 28 28 public: 29 virtual void SetUp() 29 virtual void SetUp() override 30 30 { 31 31 new IdentifierManager(); … … 33 33 } 34 34 35 virtual void TearDown() 35 virtual void TearDown() override 36 36 { 37 37 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); … … 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/trunk/test/core/class/OrxonoxClassTest.cc
r10624 r11071 16 16 { 17 17 public: 18 virtual void SetUp() 18 virtual void SetUp() override 19 19 { 20 20 new IdentifierManager(); 21 Context::setRootContext(new Context( NULL));21 Context::setRootContext(new Context(nullptr)); 22 22 } 23 23 24 virtual void TearDown() 24 virtual void TearDown() override 25 25 { 26 26 Context::destroyRootContext(); … … 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/trunk/test/core/class/OrxonoxInterfaceTest.cc
r10624 r11071 31 31 { 32 32 public: 33 virtual void SetUp() 33 virtual void SetUp() override 34 34 { 35 35 new IdentifierManager(); 36 Context::setRootContext(new Context( NULL));36 Context::setRootContext(new Context(nullptr)); 37 37 } 38 38 39 virtual void TearDown() 39 virtual void TearDown() override 40 40 { 41 41 Context::destroyRootContext(); … … 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/trunk/test/core/class/SubclassIdentifierTest.cc
r10624 r11071 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 … … 29 29 { 30 30 public: 31 virtual void SetUp() 31 virtual void SetUp() override 32 32 { 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(); 38 38 } 39 39 40 virtual void TearDown() 40 virtual void TearDown() override 41 41 { 42 42 IdentifierManager::getInstance().destroyClassHierarchy(); … … 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/trunk/test/core/class/SuperTest.cc
r10624 r11071 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); 19 19 } 20 20 21 virtual void changedName() 21 virtual void changedName() override 22 22 { 23 23 this->changedNameBase_ = true; 24 24 } 25 25 26 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) 26 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override 27 27 { 28 28 this->xmlPortBase_ = true; … … 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); 43 43 } 44 44 45 virtual void changedName() 45 virtual void changedName() override 46 46 { 47 47 this->changedNameSubclass_ = true; … … 50 50 } 51 51 52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) 52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override 53 53 { 54 54 this->xmlPortSubclass_ = true; … … 70 70 { 71 71 public: 72 virtual void SetUp() 72 virtual void SetUp() override 73 73 { 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(); 79 79 } 80 80 81 virtual void TearDown() 81 virtual void TearDown() override 82 82 { 83 83 IdentifierManager::getInstance().destroyClassHierarchy(); … … 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.