Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 9, 2013, 9:26:46 PM (11 years ago)
Author:
landauf
Message:

BaseObject now requires a Context instead of a creator (BaseObject*) in its constructor.
Namespace, Level, and Scene inherit from Context

Location:
code/branches/core6/test/core
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core6/test/core/class/SubclassIdentifierTest.cc

    r9601 r9629  
    1212        {
    1313            public:
    14                 TestClass(BaseObject* creator = NULL) { RegisterRootObject(TestClass); }
     14                TestClass(Context* context = NULL) { RegisterRootObject(TestClass); }
    1515        };
    1616
     
    1818        {
    1919            public:
    20                 TestSubclass(BaseObject* creator = NULL) { RegisterObject(TestSubclass); }
     20                TestSubclass(Context* context = NULL) { RegisterObject(TestSubclass); }
    2121        };
    2222
  • code/branches/core6/test/core/class/SuperTest.cc

    r9601 r9629  
    1313        {
    1414            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)
    1616                {
    1717                    RegisterRootObject(TestClass);
     
    3737        {
    3838            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)
    4040                {
    4141                    RegisterObject(TestSubclass);
  • code/branches/core6/test/core/object/ContextTest.cc

    • Property svn:eol-style set to native
    r9610 r9629  
    1111        {
    1212            public:
    13                 SubclassContext() { RegisterRootObject(SubclassContext); }
     13                SubclassContext() : Context(NULL) { RegisterRootObject(SubclassContext); }
    1414        };
    1515    }
     
    1717    TEST(ContextTest, CanCreateContext)
    1818    {
    19         Context context;
     19        Context context(NULL);
    2020    }
    2121
     
    2727    TEST(ContextTest, ContextIsItsOwnContext)
    2828    {
    29         Context context;
     29        Context context(NULL);
    3030        EXPECT_EQ(&context, context.getContext());
    3131    }
Note: See TracChangeset for help on using the changeset viewer.