Lumiera  0.pre.03
»edit your freedom«
SessionManager_test Class Reference

Description

Check the session management operations provided by mobject::session::Session This includes accessing the current Session (somewhat a singleton).

Todo:

load a Mock session

create a session and save (serialise) it

load a real test session

Definition at line 40 of file session-manager-test.cpp.

Private Member Functions

void clearSession ()
 
void getCurrentSession ()
 
void loadMockSession ()
 
void loadSession (const string &src)
 
void resetSession ()
 
virtual void run (Arg arg)
 
void saveSession (string &dest)
 

Member Function Documentation

◆ getCurrentSession()

void getCurrentSession ( )
inlineprivate
Test:
accessing the current (global) session

Definition at line 60 of file session-manager-test.cpp.

References Session::current.

◆ clearSession()

void clearSession ( )
inlineprivate
Test:
clear current session contents without resetting global session config.
Todo:
implement all session content, implement mobject and asset deletion operations.

Definition at line 73 of file session-manager-test.cpp.

References SessManager::clear(), and Session::current.

+ Here is the call graph for this function:

◆ resetSession()

void resetSession ( )
inlineprivate
Test:
reset global session config and start with a pristine default session.
Todo:
define the "global session config", implement session default ctor

Definition at line 85 of file session-manager-test.cpp.

References Session::current, and SessManager::reset().

+ Here is the call graph for this function:

◆ loadMockSession()

void loadMockSession ( )
inlineprivate
Test:
use a mock session serialiser to load a preconfigured test session.

Verify objects are wired correctly.

Todo:
implement rebuilding session, implement mock session serialiser

Definition at line 98 of file session-manager-test.cpp.

◆ loadSession()

void loadSession ( const string &  src)
inlineprivate
Test:
load serialised session using the real session serialiser implementation.
Parameters
srcstring with serialised session data
Todo:
implement real session serialiser

Definition at line 110 of file session-manager-test.cpp.

◆ saveSession()

void saveSession ( string &  dest)
inlineprivate
Test:
serialise (save) the current session
Parameters
deststring receiving the generated serialised stream
Todo:
implement real session serialiser

Definition at line 121 of file session-manager-test.cpp.

+ Inheritance diagram for SessionManager_test:
+ Collaboration diagram for SessionManager_test:

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