Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
MObjectRef_test Class Reference

Description

Test:
properties and behaviour of the external reference-mechanism for MObjects placed into the session. We create a simple, simulated "session" (no real session datastructure) and a mock PlacementIndex. Then we add two Placements, which can be used then to build MObjectRef instances to validate their behaviour.
See also
mobject::Placement
mobject::MObject
mobject::PlacementRef_test

Definition at line 96 of file mobject-ref-test.cpp.

Private Types

typedef Placement< MObjectPMObj
 
typedef Placement< ClipPClip
 
typedef TestPlacement< TestSubMO1PSub1
 

Private Member Functions

virtual void run (Arg)
 
template<typename REF >
void checkBuildMObjectRef (REF &refObj, void *placementAdr)
 
void checkComparison (PMO const &p1, PMO const &p2)
 
void checkLifecycle (PMObj const &p1, PMObj const &p2)
 
void checkTypeHandling (LumieraUid luid)
 

Member Typedef Documentation

◆ PMObj

typedef Placement<MObject> PMObj
private

Definition at line 99 of file mobject-ref-test.cpp.

◆ PClip

typedef Placement<Clip> PClip
private

Definition at line 100 of file mobject-ref-test.cpp.

◆ PSub1

typedef TestPlacement<TestSubMO1> PSub1
private

Definition at line 101 of file mobject-ref-test.cpp.

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 105 of file mobject-ref-test.cpp.

References MObjectRef_test::checkBuildMObjectRef(), MObjectRef_test::checkComparison(), MObjectRef_test::checkLifecycle(), MObjectRef_test::checkTypeHandling(), Media::create, Placement< MO, B >::getID(), SessionServiceMockIndex::install(), MObject::isValid(), and steam::asset::VIDEO.

+ Here is the call graph for this function:

◆ checkBuildMObjectRef()

template<typename REF >
void checkBuildMObjectRef ( REF &  refObj,
void *  placementAdr 
)
inlineprivate

Definition at line 185 of file mobject-ref-test.cpp.

References MORef< MO >::activate(), MORef< MO >::getPlacement(), MORef< MO >::getStartTime(), MORef< MO >::isCompatible(), MORef< MO >::isValid(), ExplicitPlacement::time, MORef< MO >::use_count(), and Time::ZERO.

Referenced by MObjectRef_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ checkComparison()

void checkComparison ( PMO const &  p1,
PMO const &  p2 
)
inlineprivate

Definition at line 230 of file mobject-ref-test.cpp.

References MORef< MO >::activate(), Handle< IMP >::close(), and Placement< MO, B >::getID().

Referenced by MObjectRef_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ checkLifecycle()

void checkLifecycle ( PMObj const &  p1,
PMObj const &  p2 
)
inlineprivate

Definition at line 297 of file mobject-ref-test.cpp.

References MORef< MO >::activate(), Handle< IMP >::close(), MORef< MO >::getPlacement(), MORef< MO >::use_count(), and VERIFY_ERROR.

Referenced by MObjectRef_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ checkTypeHandling()

void checkTypeHandling ( LumieraUid  luid)
inlineprivate

Definition at line 333 of file mobject-ref-test.cpp.

References MORef< MO >::activate(), Handle< IMP >::close(), MORef< MO >::getPlacement(), MORef< MO >::isValid(), MORef< MO >::use_count(), and VERIFY_ERROR.

Referenced by MObjectRef_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:
+ Inheritance diagram for MObjectRef_test:
+ Collaboration diagram for MObjectRef_test:

The documentation for this class was generated from the following file: