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)
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"
23 //#include "lib/format-cout.hpp"
24 #include "lib/util.hpp"
25 
26 
27 using util::contains;
28 //using std::string;
29 
30 
31 namespace steam {
32 namespace mobject {
33 namespace session {
34 namespace test {
35 
36 
37 
38 
39  /***************************************************************/
44  class AddClip_test : public Test
45  {
46  virtual void
47  run (Arg)
48  {
49  PSess sess = Session::current;
50  PMO clip = TestClip::create();
51  sess->attach (clip);
52 
54 // CHECK (sess->currEDL().contains (clip));
55  // TODO: Clip-Asset and Placement magic??
56  }
57  };
58 
59 
61  LAUNCHER (AddClip_test, "unit session");
62 
63 
64 
65 }}}} // namespace steam::mobject::session::test
Definition: run.hpp:40
Core abstraction: placement of a media object into session context.
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
Simplistic 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:152
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