Lumiera  0.pre.03
»edityourfreedom«
fixture-change-detector-test.cpp
Go to the documentation of this file.
1 /*
2  FixtureChangeDetector(Test) - detecting segmentation differences
3 
4  Copyright (C) Lumiera.org
5  2010, 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"
31 #include "proc/asset/timeline.hpp"
32 #include "proc/asset/pipe.hpp"
33 #include "common/query.hpp"
34 #include "lib/util.hpp"
35 
36 
37 namespace proc {
38 namespace mobject {
39 namespace builder {
40 namespace test {
41 
42 // using util::isSameObject;
43 // using util::isnil;
44 //
45  using asset::Pipe;
46  using asset::PPipe;
47  using asset::Struct;
48  using asset::Timeline;
49  using asset::PTimeline;
50  using lumiera::Query;
51 //
54 //
55 // typedef ModelPortRegistry::ModelPortDescriptor const& MPDescriptor;
56 
57 
58  namespace { // test environment
59 
60  inline PID
61  getPipe (string id)
62  {
63  return Pipe::query ("id("+id+")");
64  }
65 
66  inline TID
67  getTimeline (string id)
68  {
69  return asset::Struct::retrieve (Query<Timeline> ("id("+id+")"))->getID();
70  }
71 
72  struct TestContext
73  {
74 
76  TestContext()
77  { }
78 
80  ~TestContext()
81  {
82  }
83  };
84  }
85 
86 
87 
88 
89  /*****************************************************************************/
95  class FixtureChangeDetector_test : public Test
96  {
97 
98  virtual void
99  run (Arg)
100  {
101  TestContext ctx;
102  }
103 
104 
105  void
107  {
108  }
109 
110 
111  };
112 
113 
115  LAUNCHER (FixtureChangeDetector_test, "unit builder");
116 
117 
118 
119 }}}} // namespace proc::mobject::builder::test
A "processing pipe" represented as Asset.
Basic and generic representation of an internal query.
Definition: run.hpp:49
LAUNCHER(BuildSegment_test, "function builder")
Register this test class...
lib::P< Timeline > PTimeline
Definition: timeline.hpp:90
lib::P< Pipe > PPipe
Definition: pipe.hpp:51
key abstraction: structural asset Created automatically as a sideeffect of building the structure of ...
Definition: struct.hpp:113
static StructFactory retrieve
storage for the static StructFactory instance
Definition: struct.hpp:116
std::vector< string > & Arg
Definition: run.hpp:54
Simple test class runner.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
A collection of frequently used helper functions to support unit testing.
static PPipe query(string const &properties)
convenience shortcut for retrieving default configured pipes
Definition: pipe.cpp:66
structural asset corresponding to the part of the model forming a processing pipe for generating medi...
Definition: pipe.hpp:79
Work out the part of the Fixture changed by a build process.
Proc-Layer implementation namespace root.
Definition: id-scheme.hpp:63
Generic interface to express a query for specifically typed result elements exposing some capabilitie...
Definition: query.hpp:279
Top level structural element within the session.