Changeset 9629 for code/branches/core6/test
- Timestamp:
- Aug 9, 2013, 9:26:46 PM (11 years ago)
- Location:
- code/branches/core6/test/core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core6/test/core/class/SubclassIdentifierTest.cc
r9601 r9629 12 12 { 13 13 public: 14 TestClass( BaseObject* creator= NULL) { RegisterRootObject(TestClass); }14 TestClass(Context* context = NULL) { RegisterRootObject(TestClass); } 15 15 }; 16 16 … … 18 18 { 19 19 public: 20 TestSubclass( BaseObject* creator= NULL) { RegisterObject(TestSubclass); }20 TestSubclass(Context* context = NULL) { RegisterObject(TestSubclass); } 21 21 }; 22 22 -
code/branches/core6/test/core/class/SuperTest.cc
r9601 r9629 13 13 { 14 14 public: 15 TestClass( BaseObject* creator = NULL) : BaseObject(NULL), changedNameBase_(false), xmlPortBase_(false), modeBase_(XMLPort::NOP)15 TestClass(Context* context = NULL) : BaseObject(context), changedNameBase_(false), xmlPortBase_(false), modeBase_(XMLPort::NOP) 16 16 { 17 17 RegisterRootObject(TestClass); … … 37 37 { 38 38 public: 39 TestSubclass( BaseObject* creator = NULL) :changedNameSubclass_(false), xmlPortSubclass_(false), modeSubclass_(XMLPort::NOP)39 TestSubclass(Context* context = NULL) : TestClass(context), changedNameSubclass_(false), xmlPortSubclass_(false), modeSubclass_(XMLPort::NOP) 40 40 { 41 41 RegisterObject(TestSubclass); -
code/branches/core6/test/core/object/ContextTest.cc
- Property svn:eol-style set to native
r9610 r9629 11 11 { 12 12 public: 13 SubclassContext() { RegisterRootObject(SubclassContext); }13 SubclassContext() : Context(NULL) { RegisterRootObject(SubclassContext); } 14 14 }; 15 15 } … … 17 17 TEST(ContextTest, CanCreateContext) 18 18 { 19 Context context ;19 Context context(NULL); 20 20 } 21 21 … … 27 27 TEST(ContextTest, ContextIsItsOwnContext) 28 28 { 29 Context context ;29 Context context(NULL); 30 30 EXPECT_EQ(&context, context.getContext()); 31 31 }
Note: See TracChangeset
for help on using the changeset viewer.