Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
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)
5 2009, 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/test/test-helper.hpp"
21//#include "steam/asset/media.hpp"
22//#include "steam/mobject/session.hpp"
23//#include "steam/mobject/session/edl.hpp"
24//#include "steam/mobject/session/testclip.hpp"
25//#include "steam/mobject/test-dummy-mobject.hpp"
26//#include "lib/p.hpp"
27//#include "steam/mobject/placement.hpp"
28//#include "steam/mobject/session/placement-index.hpp"
29//#include "steam/mobject/explicitplacement.hpp"
33//#include "steam/control/command-def.hpp"
34//#include "lib/format-cout.hpp"
35//#include "lib/symbol.hpp"
36//#include "lib/util.hpp"
37
39
40//#include <functional>
41//#include <boost/ref.hpp>
42//#include <cstdlib>
43//#include <string>
44
45
46namespace steam {
47namespace control {
48namespace test {
49
50
51 //using util::contains;
52 using std::function;
53// using std::bind;
54// using std::string;
55 //using std::rand;
56// using lib::test::showSizeof;
57// using util::isSameObject;
58// using util::contains;
59
60// using session::test::TestClip;
61// using lib::Symbol;
62// using lumiera::P;
63
64
65// using lumiera::error::LUMIERA_ERROR_EXTERNAL;
66
67 namespace { // test data and helpers...
68
69// Symbol TEST_CMD = "test.command1.1";
70// Symbol TEST_CMD2 = "test.command1.2";
71 }
72
73
74
75 /*******************************************************************/
90 {
91
93
94
95 virtual void
96 run (Arg)
97 {
99 CHECK (&registry);
100
101 cnt_inst = registry.instance_count();
102
103 UNIMPLEMENTED ("unit test to cover the standard command handling patterns");
104
105 CHECK (cnt_inst == registry.instance_count());
106 }
107 };
108
109
112
113
114}}} // namespace steam::control::test
Registry managing command implementation objects (Singleton).
static lib::Depend< CommandRegistry > instance
storage for the singleton factory used to access CommandRegistry
Top level of the command implementation.
Managing command definitions and the storage of individual command objects.
Steam-Layer command frontend.
unsigned int uint
Definition integral.hpp:29
enable_if_c< Cond::value, T >::type enable_if
SFINAE helper to control the visibility of specialisations and overloads.
Definition meta/util.hpp:87
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
Some dummy command functions used for building unit test cases.