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)
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"
20 #include "lib/util.hpp"
21 
24 //#include "teststreamtypes.hpp"
25 #include "include/lifecycle.h"
26 
27 
28 
29 
30 namespace steam {
31 namespace test_format {
32 
33  using mobject::Session;
34  using control::STypeManager;
37 
38 
41 
42  void
43  setup_basicDummyTypeInfo ()
44  {
45  UNIMPLEMENTED ("setup basic dummy-type-info");
46  }
47 
48  namespace // enrol this basic setup to be triggered when the type system is reset
49  {
50  LifecycleHook _schedule_at_reset (ON_STREAMTYPES_RESET, &setup_basicDummyTypeInfo);
51  }
52 
53 
54 
55  /***************************************************************/
63  class StreamTypeLifecycle_test : public Test
64  {
65  virtual void
66  run (Arg arg)
67  {
71  }
72 
73 
81  void
83  {
85  TODO ("verify the test-dummy basic type info is present now...");
86  TODO ("verify the additional type info is *not* present");
87  }
88 
92  void
94  {
95  TODO ("verify the additional type info is *not* present");
96 
97  STypeManager& typeManager = STypeManager::instance();
98  TODO ("use the registration facility to add additional type info");
99  TODO ("verify the additional type info to be present now...");
100  }
101  };
102 
103  LAUNCHER (StreamTypeLifecycle_test, "unit common");
104 
105 
106 }} // namespace steam::test_format
107 
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:120
Steam-Layer implementation namespace root.
Interface to the stream type system.
static lib::Depend< STypeManager > instance
access the system-wide stream type manager instance.
Simplistic 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:67
const char * ON_STREAMTYPES_RESET
triggered to load the generic pristine default
Primary Interface to the current Session.