Changeset 10372 for code/branches/core7/test/core
- Timestamp:
- Apr 18, 2015, 1:07:08 PM (10 years ago)
- Location:
- code/branches/core7/test/core/class
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/test/core/class/IdentifierClassHierarchyTest.cc
r10360 r10372 19 19 namespace 20 20 { 21 class BaseInterface1 : public OrxonoxInterface21 class BaseInterface1 : virtual public OrxonoxInterface 22 22 { 23 23 public: … … 30 30 }; 31 31 32 class BaseInterface2 : public OrxonoxInterface32 class BaseInterface2 : virtual public OrxonoxInterface 33 33 { 34 34 public: … … 155 155 }; 156 156 157 bool contains(const std::list<const Identifier*> identifiers, Identifier* identifier) 158 { 159 return std::find(identifiers.begin(), identifiers.end(), identifier) != identifiers.end(); 160 } 161 157 162 bool contains(const std::set<const Identifier*> identifiers, Identifier* identifier) 158 163 { -
code/branches/core7/test/core/class/IdentifierExternalClassHierarchyTest.cc
r10360 r10372 58 58 } 59 59 }; 60 61 bool contains(const std::list<const Identifier*> identifiers, Identifier* identifier) 62 { 63 return std::find(identifiers.begin(), identifiers.end(), identifier) != identifiers.end(); 64 } 60 65 61 66 bool contains(const std::set<const Identifier*> identifiers, Identifier* identifier) -
code/branches/core7/test/core/class/IdentifierNestedClassHierarchyTest.cc
r10363 r10372 121 121 }; 122 122 123 bool contains(const std::list<const Identifier*> identifiers, Identifier* identifier) 124 { 125 return std::find(identifiers.begin(), identifiers.end(), identifier) != identifiers.end(); 126 } 127 123 128 bool contains(const std::set<const Identifier*> identifiers, Identifier* identifier) 124 129 { -
code/branches/core7/test/core/class/IdentifierSimpleClassHierarchyTest.cc
r10360 r10372 63 63 } 64 64 }; 65 66 bool contains(const std::list<const Identifier*> identifiers, Identifier* identifier) 67 { 68 return std::find(identifiers.begin(), identifiers.end(), identifier) != identifiers.end(); 69 } 65 70 66 71 bool contains(const std::set<const Identifier*> identifiers, Identifier* identifier) -
code/branches/core7/test/core/class/SuperTest.cc
r9659 r10372 97 97 98 98 EXPECT_EQ(1u, identifier->getDirectParents().size()); 99 EXPECT_TRUE( identifier->getDirectParents().find(Class(TestClass)) != identifier->getDirectParents().end());99 EXPECT_TRUE(std::find(identifier->getDirectParents().begin(), identifier->getDirectParents().end(), Class(TestClass)) != identifier->getDirectParents().end()); 100 100 } 101 101 { … … 106 106 107 107 EXPECT_EQ(1u, identifier->getDirectParents().size()); 108 EXPECT_TRUE( identifier->getDirectParents().find(Class(BaseObject)) != identifier->getDirectParents().end());108 EXPECT_TRUE(std::find(identifier->getDirectParents().begin(), identifier->getDirectParents().end(), Class(BaseObject)) != identifier->getDirectParents().end()); 109 109 } 110 110 }
Note: See TracChangeset
for help on using the changeset viewer.