Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
session-manager-test.cpp
Go to the documentation of this file.
1/*
2 SessionManager(Test) - accessing, loading and saving the Session/Model
3
4 Copyright (C)
5 2008, Hermann Vosseler <Ichthyostega@web.de>
6
7  **Lumiera** is free software; you can redistribute it and/or modify it
8  under the terms of the GNU General Public License as published by the
9  Free Software Foundation; either version 2 of the License, or (at your
10  option) any later version. See the file COPYING for further details.
11
12* *****************************************************************/
13
19#include "lib/test/run.hpp"
22//#include "lib/util.hpp"
23
24//using std::string;
25
26
27namespace steam {
28namespace mobject {
29namespace session {
30namespace test {
31
32
33 /***************************************************************************/
40 class SessionManager_test : public Test
41 {
42 virtual void
43 run (Arg arg)
44 {
48
51 string serialized;
52 saveSession (serialized);
53 loadSession (serialized);
54 CHECK (checkTestsession1());
55 }
56
57
59 void
61 {
63 CHECK (sess->isValid());
64 }
65
66
72 void
74 {
75 UNIMPLEMENTED ("clear objects in current session");
77 }
78
79
84 void
86 {
87 UNIMPLEMENTED ("construct a pristine session");
89 }
90
91
97 void
99 {
100 UNIMPLEMENTED ("rebuild session using a mock serialiser");
101 }
102
103
109 void
110 loadSession (const string& src)
111 {
112 UNIMPLEMENTED ("loading real session");
113 }
114
115
120 void
121 saveSession (string& dest)
122 {
123 UNIMPLEMENTED ("Serialise current session");
124 }
125 };
126
127
129 LAUNCHER (SessionManager_test, "function session");
130
131
132
133}}}} // namespace steam::mobject::session::test
virtual bool isValid()=0
static session::SessManager & current
access point to the current Session
Definition session.hpp:120
creation, access and Session lifecycle Interface.
Definition session.hpp:154
virtual void reset()=0
reset all session config and start with a pristine default session.
virtual void clear()=0
clear current session contents without resetting overall session config.
Check the session management operations provided by mobject::session::Session This includes accessing...
Namespace of Session and user visible high-level objects.
Definition sequence.hpp:65
bool checkTestsession1()
Analyse the current (global) Session to verify the configuration of "Test-Session 1".
void buildTestsession1()
Create a Test Session configuration usable for various Tests.
Steam-Layer implementation namespace root.
Test runner and basic definitions for tests.
Simplistic test class runner.
#define LAUNCHER(_TEST_CLASS_, _GROUPS_)
Definition run.hpp:116
Primary Interface to the current Session.
Dummy session content prepared for unit test.