Lumiera  0.pre.03
»edit your freedom«
handling-pattern-standard-impl-test.cpp
Go to the documentation of this file.
1 /*
2  HandlingPatternStandardImpl(Test) - cover the provided standard command handling patterns
3 
4  Copyright (C) Lumiera.org
5  2009, 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/test/test-helper.hpp"
30 //#include "steam/asset/media.hpp"
31 //#include "steam/mobject/session.hpp"
32 //#include "steam/mobject/session/edl.hpp"
33 //#include "steam/mobject/session/testclip.hpp"
34 //#include "steam/mobject/test-dummy-mobject.hpp"
35 //#include "lib/p.hpp"
36 //#include "steam/mobject/placement.hpp"
37 //#include "steam/mobject/session/placement-index.hpp"
38 //#include "steam/mobject/explicitplacement.hpp"
42 //#include "steam/control/command-def.hpp"
43 //#include "lib/format-cout.hpp"
44 //#include "lib/symbol.hpp"
45 //#include "lib/util.hpp"
46 
48 
49 //#include <functional>
50 //#include <boost/ref.hpp>
51 //#include <cstdlib>
52 //#include <string>
53 
54 
55 namespace steam {
56 namespace control {
57 namespace test {
58 
59 
60  //using util::contains;
61  using std::function;
62 // using std::bind;
63 // using std::string;
64  //using std::rand;
65 // using lib::test::showSizeof;
66 // using util::isSameObject;
67 // using util::contains;
68 
69 // using session::test::TestClip;
70 // using lib::Symbol;
71 // using lumiera::P;
72 
73 
74 // using lumiera::error::LUMIERA_ERROR_EXTERNAL;
75 
76  namespace { // test data and helpers...
77 
78 // Symbol TEST_CMD = "test.command1.1";
79 // Symbol TEST_CMD2 = "test.command1.2";
80  }
81 
82 
83 
84  /*******************************************************************/
99  {
100 
101  uint cnt_inst;
102 
103 
104  virtual void
105  run (Arg)
106  {
108  CHECK (&registry);
109 
110  cnt_inst = registry.instance_count();
111 
112  UNIMPLEMENTED ("unit test to cover the standard command handling patterns");
113 
114  CHECK (cnt_inst == registry.instance_count());
115  }
116  };
117 
118 
120  LAUNCHER (HandlingPatternStandardImpl_test, "function controller");
121 
122 
123 }}} // namespace steam::control::test
Definition: run.hpp:49
Top level of the command implementation.
Managing command definitions and the storage of individual command objects.
Registry managing command implementation objects (Singleton).
Steam-Layer implementation namespace root.
Simple test class runner.
Steam-Layer command frontend.
Some dummy command functions used for building unit test cases.
static lib::Depend< CommandRegistry > instance
storage for the singleton factory used to access CommandRegistry