Lumiera  0.pre.03
»edit your freedom«
add-clip-test.cpp
Go to the documentation of this file.
1 /*
2  AddClip(Test) - adding an Clip-MObject to the Model/Session
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"
32 //#include "lib/format-cout.hpp"
33 #include "lib/util.hpp"
34 
35 
36 using util::contains;
37 //using std::string;
38 
39 
40 namespace steam {
41 namespace mobject {
42 namespace session {
43 namespace test {
44 
45 
46 
47 
48  /***************************************************************/
53  class AddClip_test : public Test
54  {
55  virtual void
56  run (Arg)
57  {
58  PSess sess = Session::current;
59  PMO clip = TestClip::create();
60  sess->attach (clip);
61 
63 // CHECK (sess->currEDL().contains (clip));
64  // TODO: Clip-Asset and Placement magic??
65  }
66  };
67 
68 
70  LAUNCHER (AddClip_test, "unit session");
71 
72 
73 
74 }}}} // namespace steam::mobject::session::test
Definition: run.hpp:49
Core abstraction: placement of a media object into session context.
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
Simple test class runner.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
creation, access and Session lifecycle Interface.
Definition: session.hpp:161
A stub implementation of the Clip interface for unit testing.
Primary Interface to the current Session.
bool contains(SEQ const &cont, typename SEQ::const_reference val)
shortcut for brute-force containment test in any sequential container
Definition: util.hpp:255