Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
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

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

Member Function Documentation

◆ run()

virtual void run ( Arg  arg)
inlineprivatevirtual

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

References steam::mobject::session::buildTestsession1(), steam::mobject::session::checkTestsession1(), SessionManager_test::clearSession(), SessionManager_test::getCurrentSession(), SessionManager_test::loadMockSession(), SessionManager_test::loadSession(), and SessionManager_test::saveSession().

+ Here is the call graph for this function:

◆ getCurrentSession()

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

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

References Session::current, and Session::isValid().

Referenced by SessionManager_test::run().

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

◆ 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.

Referenced by SessionManager_test::run().

+ Here is the call graph for this function:
+ Here is the caller 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.

Referenced by SessionManager_test::run().

+ Here is the caller graph for this function:

◆ 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.

Referenced by SessionManager_test::run().

+ Here is the caller graph for this function:

◆ 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.

Referenced by SessionManager_test::run().

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

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