Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
steam::mobject::session::test Namespace Reference

Namespaces

namespace  anonymous_namespace{defs-manager-impl-test.cpp}
 
namespace  anonymous_namespace{placement-scope-test.cpp}
 
namespace  anonymous_namespace{query-focus-test.cpp}
 
namespace  anonymous_namespace{scope-query-test.cpp}
 
namespace  anonymous_namespace{session-element-query-test.cpp}
 
namespace  anonymous_namespace{session-element-tracker-test.cpp}
 
namespace  anonymous_namespace{session-service-access-test.cpp}
 
namespace  anonymous_namespace{test-scope-invalid.hpp}
 
namespace  anonymous_namespace{test-scopes.cpp}
 

Typedefs

typedef P< DummyEntityPDum
 
using MediaAccessMock = lib::DependInject< vault::MediaAccessFacade > ::Local< vault::test::MediaAccessMock >
 
using PSub = TestPlacement< TestSubMO21 >
 
using P_ID = PlacementMO::ID
 
typedef PlacementIndexIdx
 
typedef MORef< session::ClipRClip
 
typedef PlacementMO::ID PID
 
typedef std::shared_ptr< PlacementIndexPPIdx
 
typedef ScopeQuery< MObject >::iterator _ScopeIterMO
 
using PM = shared_ptr< asset::Media >
 
using MAF = backend_interface::MediaAccessFacade
 

Classes

class  AddClip_test
 
class  DefsManager_test
 
class  DefsManagerImpl_test
 
class  DeleteClip_test
 
struct  DummyEntity
 
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 Steam-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

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

Variables

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

Typedef Documentation

◆ PDum

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

◆ MediaAccessMock

◆ PSub

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

◆ P_ID

using P_ID = PlacementMO::ID

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

◆ Idx

typedef PlacementIndex& Idx

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

◆ RClip

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

◆ PID

typedef PlacementMO::ID PID

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

◆ PPIdx

typedef std::shared_ptr<PlacementIndex> PPIdx

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

◆ _ScopeIterMO

typedef ScopeQuery<MObject>::iterator _ScopeIterMO

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

◆ PM

using PM = shared_ptr<asset::Media>

Definition at line 37 of file testclip.cpp.

◆ MAF

Definition at line 38 of file testclip.cpp.


Class Documentation

◆ steam::mobject::session::test::DummyEntity

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

Function Documentation

◆ LAUNCHER() [1/22]

LAUNCHER ( PlacementBasic_test  ,
"unit session"   
)

Register this test class...

◆ LAUNCHER() [2/22]

LAUNCHER ( PlacementHierarchy_test  ,
"unit session"   
)

Register this test class...

◆ LAUNCHER() [3/22]

LAUNCHER ( PlacementRef_test  ,
"unit session"   
)

Register this test class...

◆ LAUNCHER() [4/22]

LAUNCHER ( AddClip_test  ,
"unit session"   
)

Register this test class...

◆ LAUNCHER() [5/22]

LAUNCHER ( DefsManagerImpl_test  ,
"function session"   
)

Register this test class...

◆ find()

bool find ( Query< Pipe > &  q)

shortcut: run just a query without creating new instances

Definition at line 59 of file defs-manager-test.cpp.

References Session::current.

Referenced by DefsManagerImpl_test::create(), DefsManagerImpl_test::define_and_search(), DefsManager_test::failureCreatesNewDefault(), DefsManagerImpl_test::forget(), and DefsManager_test::verifyRemoval().

+ Here is the caller graph for this function:

◆ LAUNCHER() [6/22]

LAUNCHER ( DefsManager_test  ,
"function session"   
)

Register this test class...

◆ LAUNCHER() [7/22]

LAUNCHER ( DeleteClip_test  ,
"function session"   
)

Register this test class...

◆ LAUNCHER() [8/22]

LAUNCHER ( PlacementIndexQuery_test  ,
"unit session"   
)

Register this test class...

◆ LAUNCHER() [9/22]

LAUNCHER ( PlacementIndex_test  ,
"unit session"   
)

Register this test class...

◆ LAUNCHER() [10/22]

LAUNCHER ( PlacementScope_test  ,
"function session"   
)

Register this test class...

◆ LAUNCHER() [11/22]

LAUNCHER ( QueryFocusStack_test  ,
"unit session"   
)

Register this test class...

◆ LAUNCHER() [12/22]

LAUNCHER ( QueryFocus_test  ,
"unit session"   
)

Register this test class...

◆ LAUNCHER() [13/22]

LAUNCHER ( RebuildFixture_test  ,
"unit session"   
)

Register this test class...

◆ LAUNCHER() [14/22]

LAUNCHER ( ScopePath_test  ,
"unit session"   
)

Register this test class...

◆ LAUNCHER() [15/22]

LAUNCHER ( ScopeQuery_test  ,
"unit session"   
)

Register this test class...

◆ LAUNCHER() [16/22]

LAUNCHER ( SessionElementQuery_test  ,
"function session"   
)

Register this test class...

◆ LAUNCHER() [17/22]

LAUNCHER ( SessionElementTracker_test  ,
"unit session"   
)

Register this test class...

◆ LAUNCHER() [18/22]

LAUNCHER ( SessionManager_test  ,
"function session"   
)

Register this test class...

◆ LAUNCHER() [19/22]

LAUNCHER ( SessionModifyParts_test  ,
"unit session"   
)

Register this test class...

◆ LAUNCHER() [20/22]

LAUNCHER ( SessionServiceAccess_test  ,
"function session"   
)

Register this test class...

◆ LAUNCHER() [21/22]

LAUNCHER ( SessionStructure_test  ,
"unit session"   
)

Register this test class...

◆ build_testScopes()

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 38 of file test-scopes.cpp.

References SessionServiceMockIndex::install().

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

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

◆ retrieve_startElm()

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 87 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:

◆ retrieve_firstTestSubMO21()

PlacementMO & retrieve_firstTestSubMO21 ( )

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

Referenced by ScopePath_test::navigate().

+ Here is the caller graph for this function:

◆ explore_testScope()

_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 100 of file test-scopes.cpp.

References steam::mobject::session::CHILDREN, SessionServiceExploreScope::getResolver(), and Query< RES >::resolveBy().

Referenced by ScopePath_test::navigate().

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

◆ createTestMedia()

asset::Media & createTestMedia ( )

Definition at line 45 of file testclip.cpp.

References Media::create.

◆ createTestClipAsset()

asset::Clip & createTestClipAsset ( asset::Media media)

Definition at line 55 of file testclip.cpp.

References Media::create.

◆ make_dummyRoot()

Placement< Label > make_dummyRoot ( )
inline

Definition at line 38 of file testroot.hpp.

References MObject::create.

Referenced by PlacementIndex_test::run().

+ Here is the caller graph for this function:

◆ LAUNCHER() [22/22]

LAUNCHER ( TimelineSequenceHandling_test  ,
"unit session"   
)

Register this test class...

Variable Documentation

◆ testbed_1

lib::Depend<Testbed> testbed_1

Definition at line 72 of file testclip.cpp.

◆ LENGTH_TestClip

const lib::time::Duration LENGTH_TestClip ( Time(0, 25, 0, 0)  )

Definition at line 77 of file testclip.hpp.

Referenced by PlacementIndex_test::checkTypedAccess().