Lumiera  0.pre.03
»edit your freedom«
segmentation-integration-test.cpp
Go to the documentation of this file.
1 /*
2  SegmentationIntegration(Test) - verify basic properties of the Segmentation
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 "steam/asset/timeline.hpp"
32 #include "steam/asset/pipe.hpp"
33 #include "common/query.hpp"
34 #include "lib/util.hpp"
35 
36 
37 namespace steam {
38 namespace fixture {
39 namespace test {
40 
41 // using util::isSameObject;
42 // using util::isnil;
43 //
44  using asset::Pipe;
45  using asset::PPipe;
46  using asset::Struct;
47  using asset::Timeline;
48  using asset::PTimeline;
49  using lumiera::Query;
50 //
51  typedef asset::ID<Pipe> PID;
52  typedef asset::ID<Struct> TID;
53 //
54 // typedef ModelPortRegistry::ModelPortDescriptor const& MPDescriptor;
55 
56 
57  namespace { // test environment
58 
59  inline PID
60  getPipe (string id)
61  {
62  return Pipe::query ("id("+id+")");
63  }
64 
65  inline TID
66  getTimeline (string id)
67  {
68  return asset::Struct::retrieve (Query<Timeline> ("id("+id+")"))->getID();
69  }
70 
71  struct TestContext
72  {
73 
76  { }
77 
80  {
81  }
82  };
83  }
84 
85 
86 
87 
88  /*****************************************************************************/
100  class SegmentationIntegration_test : public Test
101  {
102 
103  virtual void
104  run (Arg)
105  {
106  TestContext ctx;
107  }
108 
109 
110  void
111  fabricating_ModelPorts ()
112  {
113  }
114 
115 
116  };
117 
118 
120  LAUNCHER (SegmentationIntegration_test, "unit fixture");
121 
122 
123 
124 }}} // namespace steam::fixture::test
A "processing pipe" represented as Asset.
Basic and generic representation of an internal query.
Definition: run.hpp:49
Steam-Layer implementation namespace root.
structural asset corresponding to the part of the model forming a processing pipe for generating medi...
Definition: pipe.hpp:79
static StructFactory retrieve
storage for the static StructFactory instance
Definition: struct.hpp:116
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
Work out the part of the Fixture changed by a build process.
Customised refcounting smart pointer template, built upon std::shared_ptr, but forwarding type relati...
Definition: trait.hpp:80
key abstraction: structural asset Created automatically as a sideeffect of building the structure of ...
Definition: struct.hpp:113
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.