58 ::Local<vault::test::MediaAccessMock>;
61 using namespace mobject::test;
62 typedef TestPlacement<DummyMO> PDummy;
81 MediaAccessMock useMockMedia;
88 testClip1.chain(
Time(FSecs(10)));
89 testClip2.chain(
Time(FSecs(20)));
91 Symbol labelType (
"dummyLabel");
94 testLabel1.chain(
Time(FSecs(30)));
96 PDummy testDummy1(*
new DummyMO);
102 CHECK (testDummy1->isValid());
103 CHECK (testDummy2->isValid());
105 Duration lenC1 = testClip1->getLength();
106 Duration lenC2 = testClip2->getLength();
107 Duration lenL1 = testLabel1->getLength();
108 CHECK (lenC1 > Time::ZERO);
109 CHECK (lenC2 > Time::ZERO);
110 CHECK (lenL1 ==Time::ZERO);
112 cout << testClip1->
shortID() << endl;
113 cout << testClip2->
shortID() << endl;
114 cout << testLabel1->
shortID() << endl;
115 cout << testDummy1->shortID() << endl;
116 cout << testDummy2->shortID() << endl;
Subclass-1 is not defined "processible", thus will always be handled as DummyMO...
Test MObject subclass, which, contrary to any real MObject, can be created directly without involving...
Core abstraction: placement of a media object into session context.
Per type specific configuration of instances created as service dependencies.
Core abstraction of the Session model: a media object.
Steam-Layer implementation namespace root.
Lumiera's internal time value datatype.
Token or Atom with distinct identity.
string const & shortID() const
a short readable ID as a single name-token, denoting both the kind of MObject and some sort of instan...
This framework allows to (re)configure the lib::Depend front-end for dependency-injection.
Marker types to indicate a literal string and a Symbol.
Simplistic test class runner.
boost::rational< int64_t > FSecs
rational representation of fractional seconds
A hierarchy of simple dummy-Media-Objects for easy unit testing.
Core factory to generate media objects for use in the Session model.
Duration is the internal Lumiera time metric.
virtual bool isValid() const =0
MObject self-test (usable for asserting)
static session::MObjectFactory create
Storage for the (single, static) MObject factory object.
a family of time value like entities and their relationships.