Lumiera  0.pre.03
»edit your freedom«
rebuildfixturetest.cpp
Go to the documentation of this file.
1 /*
2  RebuildFixture(Test) - (re)building the explicit placements
3 
4  Copyright (C) Lumiera.org
5  2008, 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"
31 //#include "lib/format-cout.hpp"
32 //#include "lib/util.hpp"
33 
34 //using util::contains;
35 
36 
37 namespace steam {
38 namespace mobject {
39 namespace session {
40 namespace test {
41 
42 
43 
44 
45  /***************************************************************/
51  class RebuildFixture_test : public Test
52  {
53  virtual void
54  run (Arg arg)
55  {
56  PSess sess = Session::current;
57  sess.clear();
59  CHECK (sess->isValid());
60  sess->rebuildFixture();
61 #if false
62  TODO ("check the fixture has been touched. e.g. by hash.");
63  TODO ("query all Placements of all Clips (via AssetManager). Verify explicit plac contained in Fixture.");
64 
65  UNIMPLEMENTED ("iterate over fixture");
66 // TODO
67 // for_each (sess->getFixture(),
68 // bind (&check_is_from_EDL, _1, sess.getEDL()));
69 
70  TODO ("can we check the other direction, from EDL to Fixture??");
71  }
72 
73  static void
74  check_is_from_EDL (PMO explicitPlacement, EDL& edl)
75  {
76 
78 
79 // PMO originalPlacement = explicitPlacement->subject->getPlacement();
80 // CHECK (edl.contains(originalPlacement));
81 #endif
82  }
83  };
84 
85 
87  LAUNCHER (RebuildFixture_test, "unit session");
88 
89 
90 
91 }}}} // namespace steam::mobject::session::test
Definition: run.hpp:49
static session::SessManager & current
access point to the current Session
Definition: session.hpp:129
Steam-Layer implementation namespace root.
Namespace of Session and user visible high-level objects.
Definition: sequence.hpp:74
void buildTestsession1()
Create a Test Session configuration usable for various Tests.
Simple test class runner.
creation, access and Session lifecycle Interface.
Definition: session.hpp:161
virtual void clear()=0
clear current session contents without resetting overall session config.
Dummy session content prepared for unit test.
Primary Interface to the current Session.