Lumiera  0.pre.03
»edityourfreedom«
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"
29 #include "proc/mobject/session.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 proc {
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 proc::mobject::session::test
virtual MObjectRef attach(PMO const &placement)=0
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:127
static Placement< Clip > create()
Definition: testclip.hpp:79
LAUNCHER(PlacementBasic_test, "unit session")
Register this test class...
bool contains(MAP &map, typename MAP::key_type const &key)
shortcut for containment test on a map
Definition: util.hpp:205
std::vector< string > & Arg
Definition: run.hpp:54
Simple test class runner.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
A stub implementation of the Clip interface for unit testing.
Namespace of Session and user visible high-level objects.
Primary Interface to the current Session.
Proc-Layer implementation namespace root.
Definition: id-scheme.hpp:63
creation, access and Session lifecycle Interface.
Definition: session.hpp:159