Lumiera  0.pre.03
»edityourfreedom«
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
proc::mobject::session::test Namespace Reference

Typedefs

typedef ScopeQuery< MObject >
::iterator 
_ScopeIterMO
 
typedef PlacementIndexIdx
 
typedef
backend_interface::MediaAccessFacade 
MAF
 
typedef PlacementMO::ID P_ID
 
typedef P< DummyEntityPDum
 
typedef PlacementMO::ID PID
 
typedef shared_ptr< asset::MediaPM
 
typedef std::shared_ptr
< PlacementIndex
PPIdx
 
typedef TestPlacement
< TestSubMO21
PSub
 
typedef MORef< session::ClipRClip
 

Classes

class  AddClip_test
 
class  DefsManager_test
 
class  DefsManagerImpl_test
 
class  DeleteClip_test
 
struct  DummyEntity
 
class  DummySessionConnection_test
 
class  PlacementBasic_test
 
class  PlacementHierarchy_test
 
class  PlacementIndex_test
 
class  PlacementIndexQuery_test
 
class  PlacementRef_test
 
class  PlacementScope_test
 
class  QueryFocus_test
 
class  QueryFocusStack_test
 
class  RebuildFixture_test
 
class  ScopePath_test
 
class  ScopeQuery_test
 
class  SessionElementQuery_test
 
class  SessionElementTracker_test
 
class  SessionManager_test
 Check the session management operations provided by mobject::session::Session This includes accessing the current Session (somewhat a singleton). More...
 
class  SessionModifyParts_test
 
class  SessionServiceAccess_test
 Verify the access mechanism both to the pubic session API and to implementation level APIs used by Proc-Layer internals. More...
 
class  SessionStructure_test
 
struct  Testbed
 
class  TestClip
 Sample or Test Clip for checking various model, session and builder operations. More...
 
class  TestPlacement
 
class  TimelineSequenceHandling_test
 

Functions

PPIdx build_testScopes ()
 helper for tests: create a pseudo-session (actually just a PlacementIndex), which contains some nested placement scopes. More...
 
asset::ClipcreateTestClipAsset (asset::Media &media)
 
asset::MediacreateTestMedia ()
 
ScopeQuery< MObject >::iterator explore_testScope (PlacementMO const &scopeTop)
 shortcut to explore the contents of a scope within the current index. More...
 
bool find (Query< Pipe > &q)
 shortcut: run just a query without creating new instances More...
 
 LAUNCHER (AddClip_test,"unit session")
 Register this test class... More...
 
 LAUNCHER (DummySessionConnection_test,"unit session")
 Register this test class... More...
 
 LAUNCHER (RebuildFixture_test,"unit session")
 Register this test class... More...
 
 LAUNCHER (DeleteClip_test,"function session")
 Register this test class... More...
 
 LAUNCHER (PlacementBasic_test,"unit session")
 Register this test class... More...
 
 LAUNCHER (PlacementIndexQuery_test,"unit session")
 Register this test class... More...
 
 LAUNCHER (SessionManager_test,"function session")
 Register this test class... More...
 
 LAUNCHER (SessionStructure_test,"unit session")
 Register this test class... More...
 
 LAUNCHER (ScopeQuery_test,"unit session")
 Register this test class... More...
 
 LAUNCHER (SessionElementQuery_test,"function session")
 Register this test class... More...
 
 LAUNCHER (PlacementHierarchy_test,"unit session")
 Register this test class... More...
 
 LAUNCHER (QueryFocus_test,"unit session")
 Register this test class... More...
 
 LAUNCHER (DefsManagerImpl_test,"function session")
 Register this test class... More...
 
 LAUNCHER (PlacementRef_test,"unit session")
 Register this test class... More...
 
 LAUNCHER (PlacementScope_test,"function session")
 Register this test class... More...
 
 LAUNCHER (DefsManager_test,"function session")
 Register this test class... More...
 
 LAUNCHER (SessionElementTracker_test,"unit session")
 Register this test class... More...
 
 LAUNCHER (QueryFocusStack_test,"unit session")
 Register this test class... More...
 
 LAUNCHER (TimelineSequenceHandling_test,"unit session")
 Register this test class... More...
 
 LAUNCHER (SessionModifyParts_test,"unit session")
 Register this test class... More...
 
 LAUNCHER (PlacementIndex_test,"unit session")
 Register this test class... More...
 
 LAUNCHER (SessionServiceAccess_test,"function session")
 Register this test class... More...
 
 LAUNCHER (ScopePath_test,"unit session")
 Register this test class... More...
 
Placement< Labelmake_dummyRoot ()
 
PlacementMOretrieve_firstTestSubMO21 ()
 
PlacementMOretrieve_startElm ()
 complement to the helper: retrieve one of the dummy placements which is a Placement<> and way down into the hierarchy More...
 

Variables

const Duration LENGTH_TestClip (Time(0, 25, 0, 0))
 
lib::Depend< Testbedtestbed_1
 

Typedef Documentation

Definition at line 66 of file typed-id-test.cpp.

Definition at line 50 of file placement-ref-test.cpp.

typedef PlacementMO::ID P_ID

Definition at line 52 of file placement-ref-test.cpp.

typedef PlacementIndex& Idx

Definition at line 54 of file placement-index-test.cpp.

Definition at line 65 of file session-modify-parts-test.cpp.

typedef PlacementMO::ID PID

Definition at line 66 of file session-modify-parts-test.cpp.

Definition at line 51 of file test-scopes.hpp.

typedef ScopeQuery<MObject>::iterator _ScopeIterMO

Definition at line 52 of file test-scopes.hpp.

Definition at line 44 of file testclip.cpp.

Definition at line 45 of file testclip.cpp.


Class Documentation

struct proc::mobject::session::test::DummyEntity
+ Collaboration diagram for DummyEntity:

Function Documentation

proc::mobject::session::test::LAUNCHER ( PlacementBasic_test  ,
"unit session"   
)

Register this test class...

proc::mobject::session::test::LAUNCHER ( PlacementHierarchy_test  ,
"unit session"   
)

Register this test class...

proc::mobject::session::test::LAUNCHER ( PlacementRef_test  ,
"unit session"   
)

Register this test class...

proc::mobject::session::test::LAUNCHER ( AddClip_test  ,
"unit session"   
)

Register this test class...

proc::mobject::session::test::LAUNCHER ( DefsManagerImpl_test  ,
"function session"   
)

Register this test class...

proc::mobject::session::test::LAUNCHER ( DefsManager_test  ,
"function session"   
)

Register this test class...

proc::mobject::session::test::LAUNCHER ( DeleteClip_test  ,
"function session"   
)

Register this test class...

proc::mobject::session::test::LAUNCHER ( DummySessionConnection_test  ,
"unit session"   
)

Register this test class...

proc::mobject::session::test::LAUNCHER ( PlacementIndexQuery_test  ,
"unit session"   
)

Register this test class...

proc::mobject::session::test::LAUNCHER ( PlacementIndex_test  ,
"unit session"   
)

Register this test class...

proc::mobject::session::test::LAUNCHER ( PlacementScope_test  ,
"function session"   
)

Register this test class...

proc::mobject::session::test::LAUNCHER ( QueryFocusStack_test  ,
"unit session"   
)

Register this test class...

proc::mobject::session::test::LAUNCHER ( QueryFocus_test  ,
"unit session"   
)

Register this test class...

proc::mobject::session::test::LAUNCHER ( RebuildFixture_test  ,
"unit session"   
)

Register this test class...

proc::mobject::session::test::LAUNCHER ( ScopePath_test  ,
"unit session"   
)

Register this test class...

proc::mobject::session::test::LAUNCHER ( ScopeQuery_test  ,
"unit session"   
)

Register this test class...

proc::mobject::session::test::LAUNCHER ( SessionElementQuery_test  ,
"function session"   
)

Register this test class...

proc::mobject::session::test::LAUNCHER ( SessionElementTracker_test  ,
"unit session"   
)

Register this test class...

proc::mobject::session::test::LAUNCHER ( SessionManager_test  ,
"function session"   
)

Register this test class...

proc::mobject::session::test::LAUNCHER ( SessionModifyParts_test  ,
"unit session"   
)

Register this test class...

proc::mobject::session::test::LAUNCHER ( SessionServiceAccess_test  ,
"function session"   
)

Register this test class...

proc::mobject::session::test::LAUNCHER ( SessionStructure_test  ,
"unit session"   
)

Register this test class...

PPIdx build_testScopes ( )

helper for tests: create a pseudo-session (actually just a PlacementIndex), which contains some nested placement scopes.

Note
this dummy index isn't actively connected to the session; the unit tests rely on this dummy index containing a specific tree structure of test-dummy MObjects.
Returns
new PlacementIndex, which has already been activated to be used by all Placements from now on. This activation will be cleared automatically, when this object goes out of scope.
See also
mobject::PlacementIndex
session::SessManagerImpl::getCurrentIndex()
mobject::session::SessionServiceMockIndex::reset_PlacementIndex

Definition at line 47 of file test-scopes.cpp.

References SessionServiceMockIndex::install().

Referenced by PlacementIndexQuery_test::checkQueryOperations(), PlacementIndexQuery_test::checkQueryResolver(), QueryFocusStack_test::run(), ScopePath_test::run(), QueryFocus_test::run(), PlacementScope_test::run(), SessionElementQuery_test::run(), and ScopeQuery_test::run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PlacementMO & retrieve_startElm ( )

complement to the helper: retrieve one of the dummy placements which is a Placement<> and way down into the hierarchy

Note
this test helper only works if build_testScopes is invoked beforehand, and the returned smart-ptr to the created test/dummy index is retained. Moreover, this function makes assumptions about the actual objects created by the former test function.
Exceptions
lumiera::error::Invalidif the intended start element doesn't exist (anymore)

Definition at line 96 of file test-scopes.cpp.

Referenced by QueryFocusStack_test::automaticFrameHandling(), QueryFocusStack_test::clear(), ScopePath_test::run(), QueryFocusStack_test::usePushedFrame(), QueryFocusStack_test::verify_errorHandling(), and PlacementScope_test::verifyEquality().

+ Here is the caller graph for this function:

PlacementMO & retrieve_firstTestSubMO21 ( )

Definition at line 102 of file test-scopes.cpp.

Referenced by ScopePath_test::navigate().

+ Here is the caller graph for this function:

_ScopeIterMO explore_testScope ( PlacementMO const &  scopeTop)

shortcut to explore the contents of a scope within the current index.

Usually, clients would use QueryFocus or ScopeLocator to perform this task, but for the purpose of testing we're better off to invoke the query directly

Definition at line 109 of file test-scopes.cpp.

References proc::mobject::session::CHILDREN, and SessionServiceExploreScope::getResolver().

Referenced by ScopePath_test::navigate().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

asset::Media& proc::mobject::session::test::createTestMedia ( )

Definition at line 52 of file testclip.cpp.

References Media::create, and proc::asset::VIDEO.

asset::Clip& proc::mobject::session::test::createTestClipAsset ( asset::Media media)

Definition at line 62 of file testclip.cpp.

References Media::create.

Placement<Label> proc::mobject::session::test::make_dummyRoot ( )
inline

Definition at line 47 of file testroot.hpp.

References MObject::create.

Referenced by PlacementIndex_test::run().

+ Here is the caller graph for this function:

proc::mobject::session::test::LAUNCHER ( TimelineSequenceHandling_test  ,
"unit session"   
)

Register this test class...

Variable Documentation

lib::Depend<Testbed> testbed_1

Definition at line 79 of file testclip.cpp.

const lib::time::Duration LENGTH_TestClip

Definition at line 86 of file testclip.hpp.

Referenced by PlacementIndex_test::checkTypedAccess().