Lumiera  0.pre.03
»edit your freedom«
stream-type-lifecycle-test.cpp
Go to the documentation of this file.
1 /*
2  StreamTypeLifecycle(Test) - check lifecycle of the stream type registration
3 
4  Copyright (C) Lumiera.org
5  2008, Hermann Vosseler <Ichthyostega@web.de>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of
10  the License, or (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21 * *****************************************************/
22 
28 #include "lib/test/run.hpp"
29 #include "lib/util.hpp"
30 
33 //#include "teststreamtypes.hpp"
34 #include "include/lifecycle.h"
35 
36 
37 
38 
39 namespace steam {
40 namespace test_format {
41 
42  using mobject::Session;
43  using control::STypeManager;
46 
47 
50 
51  void
52  setup_basicDummyTypeInfo ()
53  {
54  UNIMPLEMENTED ("setup basic dummy-type-info");
55  }
56 
57  namespace // enrol this basic setup to be triggered when the type system is reset
58  {
59  LifecycleHook _schedule_at_reset (ON_STREAMTYPES_RESET, &setup_basicDummyTypeInfo);
60  }
61 
62 
63 
64  /***************************************************************/
72  class StreamTypeLifecycle_test : public Test
73  {
74  virtual void
75  run (Arg arg)
76  {
80  }
81 
82 
90  void
92  {
94  TODO ("verify the test-dummy basic type info is present now...");
95  TODO ("verify the additional type info is *not* present");
96  }
97 
101  void
103  {
104  TODO ("verify the additional type info is *not* present");
105 
106  STypeManager& typeManager = STypeManager::instance();
107  TODO ("use the registration facility to add additional type info");
108  TODO ("verify the additional type info to be present now...");
109  }
110  };
111 
112  LAUNCHER (StreamTypeLifecycle_test, "unit common");
113 
114 
115 }} // namespace steam::test_format
116 
Installing and invoking of application lifecycle event callbacks.
virtual void reset()=0
reset all session config and start with a pristine default session.
static session::SessManager & current
access point to the current Session
Definition: session.hpp:129
Steam-Layer implementation namespace root.
Interface to the stream type system.
static lib::Depend< STypeManager > instance
access the system-wide stream type manager instance.
Simple test class runner.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
define and register a callback for a specific lifecycle event.
Definition: lifecycle.h:76
const char * ON_STREAMTYPES_RESET
triggered to load the generic pristine default
Primary Interface to the current Session.