Lumiera  0.pre.03
»edit your freedom«
fixture-change-detector-test.cpp
Go to the documentation of this file.
1 /*
2  FixtureChangeDetector(Test) - detecting segmentation differences
3 
4  Copyright (C)
5  2010, 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"
22 #include "steam/asset/timeline.hpp"
23 #include "steam/asset/pipe.hpp"
24 #include "common/query.hpp"
25 #include "lib/util.hpp"
26 
27 
28 namespace steam {
29 namespace fixture {
30 namespace test {
31 
32 // using util::isSameObject;
33 // using util::isnil;
34 //
35  using asset::Pipe;
36  using asset::PPipe;
37  using asset::Struct;
38  using asset::Timeline;
39  using asset::PTimeline;
40  using lumiera::Query;
41 //
42  typedef asset::ID<Pipe> PID;
43  typedef asset::ID<Struct> TID;
44 //
45 // typedef ModelPortRegistry::ModelPortDescriptor const& MPDescriptor;
46 
47 
48  namespace { // test environment
49 
50  inline PID
51  getPipe (string id)
52  {
53  return Pipe::query ("id("+id+")");
54  }
55 
56  inline TID
57  getTimeline (string id)
58  {
59  return asset::Struct::retrieve (Query<Timeline> ("id("+id+")"))->getID();
60  }
61 
62  struct TestContext
63  {
64 
67  { }
68 
71  {
72  }
73  };
74  }
75 
76 
77 
78 
79  /*****************************************************************************/
85  class FixtureChangeDetector_test : public Test
86  {
87 
88  virtual void
89  run (Arg)
90  {
91  TestContext ctx;
92  }
93 
94 
95  void
96  fabricating_ModelPorts ()
97  {
98  }
99 
100 
101  };
102 
103 
105  LAUNCHER (FixtureChangeDetector_test, "unit fixture");
106 
107 
108 
109 }}} // namespace steam::fixture::test
A "processing pipe" represented as Asset.
Basic and generic representation of an internal query.
Definition: run.hpp:40
Steam-Layer implementation namespace root.
structural asset corresponding to the part of the model forming a processing pipe for generating medi...
Definition: pipe.hpp:70
static StructFactory retrieve
storage for the static StructFactory instance
Definition: struct.hpp:107
Simplistic 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:57
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:71
key abstraction: structural asset Created automatically as a sideeffect of building the structure of ...
Definition: struct.hpp:104
Generic interface to express a query for specifically typed result elements exposing some capabilitie...
Definition: query.hpp:270
Top level structural element within the session.