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)
5  2008, 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"
22 //#include "lib/format-cout.hpp"
23 //#include "lib/util.hpp"
24 
25 //using util::contains;
26 
27 
28 namespace steam {
29 namespace mobject {
30 namespace session {
31 namespace test {
32 
33 
34 
35 
36  /***************************************************************/
42  class RebuildFixture_test : public Test
43  {
44  virtual void
45  run (Arg arg)
46  {
47  PSess sess = Session::current;
48  sess.clear();
50  CHECK (sess->isValid());
51  sess->rebuildFixture();
52 #if false
53  TODO ("check the fixture has been touched. e.g. by hash.");
54  TODO ("query all Placements of all Clips (via AssetManager). Verify explicit plac contained in Fixture.");
55 
56  UNIMPLEMENTED ("iterate over fixture");
57 // TODO
58 // for_each (sess->getFixture(),
59 // bind (&check_is_from_EDL, _1, sess.getEDL()));
60 
61  TODO ("can we check the other direction, from EDL to Fixture??");
62  }
63 
64  static void
65  check_is_from_EDL (PMO explicitPlacement, EDL& edl)
66  {
67 
69 
70 // PMO originalPlacement = explicitPlacement->subject->getPlacement();
71 // CHECK (edl.contains(originalPlacement));
72 #endif
73  }
74  };
75 
76 
78  LAUNCHER (RebuildFixture_test, "unit session");
79 
80 
81 
82 }}}} // namespace steam::mobject::session::test
Definition: run.hpp:40
static session::SessManager & current
access point to the current Session
Definition: session.hpp:120
Steam-Layer implementation namespace root.
Namespace of Session and user visible high-level objects.
Definition: sequence.hpp:65
void buildTestsession1()
Create a Test Session configuration usable for various Tests.
Simplistic test class runner.
creation, access and Session lifecycle Interface.
Definition: session.hpp:152
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.