67 ::Local<vault::test::MediaAccessMock>;
70 using namespace mobject::test;
71 typedef TestPlacement<DummyMO> PDummy;
90 MediaAccessMock useMockMedia;
97 testClip1.chain(
Time(FSecs(10)));
98 testClip2.chain(
Time(FSecs(20)));
100 Symbol labelType (
"dummyLabel");
103 testLabel1.chain(
Time(FSecs(30)));
105 PDummy testDummy1(*
new DummyMO);
111 CHECK (testDummy1->isValid());
112 CHECK (testDummy2->isValid());
114 Duration lenC1 = testClip1->getLength();
115 Duration lenC2 = testClip2->getLength();
116 Duration lenL1 = testLabel1->getLength();
117 CHECK (lenC1 > Time::ZERO);
118 CHECK (lenC2 > Time::ZERO);
119 CHECK (lenL1 ==Time::ZERO);
121 cout << testClip1->
shortID() << endl;
122 cout << testClip2->
shortID() << endl;
123 cout << testLabel1->
shortID() << endl;
124 cout << testDummy1->shortID() << endl;
125 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.
Simple 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.