summaryrefslogtreecommitdiff
path: root/libs/ardour/test/playlist_layering_test.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-12-27 01:42:49 +0000
committerCarl Hetherington <carl@carlh.net>2011-12-27 01:42:49 +0000
commit6304261b980419eaafde84bc32ff5e8f1c7aa236 (patch)
tree1261360e5eb22f7539a1a0afcc2d760ea017b7ad /libs/ardour/test/playlist_layering_test.h
parent0082e3364f7682ff41df52305cfff2cf7a861ef3 (diff)
Re-work layering in possibly debatable ways. Sketchy docs in doc/layering.
git-svn-id: svn://localhost/ardour2/branches/3.0@11088 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/test/playlist_layering_test.h')
-rw-r--r--libs/ardour/test/playlist_layering_test.h34
1 files changed, 26 insertions, 8 deletions
diff --git a/libs/ardour/test/playlist_layering_test.h b/libs/ardour/test/playlist_layering_test.h
index 7757e017c4..ab5fe701b1 100644
--- a/libs/ardour/test/playlist_layering_test.h
+++ b/libs/ardour/test/playlist_layering_test.h
@@ -1,5 +1,6 @@
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
+#include "test_needing_session.h"
namespace ARDOUR {
class Session;
@@ -7,25 +8,42 @@ namespace ARDOUR {
class Source;
}
-class PlaylistLayeringTest : public CppUnit::TestFixture
+class PlaylistLayeringTest : public TestNeedingSession
{
CPPUNIT_TEST_SUITE (PlaylistLayeringTest);
- CPPUNIT_TEST (addHigherTest);
- CPPUNIT_TEST (moveAddHigherTest);
+ CPPUNIT_TEST (lastLayerOpTest);
+ CPPUNIT_TEST (addHigher_relayerOnAll_Test);
+ CPPUNIT_TEST (addOrBoundsHigher_relayerOnAll_Test);
+ CPPUNIT_TEST (laterHigher_relayerOnAll_Test);
+ CPPUNIT_TEST (addOrBoundsHigher_relayerWhenNecessary_Test);
+ CPPUNIT_TEST (recursiveRelayerTest);
CPPUNIT_TEST_SUITE_END ();
public:
void setUp ();
void tearDown ();
- void addHigherTest ();
- void moveAddHigherTest ();
+ void lastLayerOpTest ();
+ void addHigher_relayerOnAll_Test ();
+ void addOrBoundsHigher_relayerOnAll_Test ();
+ void laterHigher_relayerOnAll_Test ();
+ void addOrBoundsHigher_relayerWhenNecessary_Test ();
+ void recursiveRelayerTest ();
private:
- void create_three_short_regions ();
+ void create_short_regions ();
+
+ static int const num_regions;
+ enum {
+ A = 0,
+ B,
+ C,
+ D,
+ E,
+ F
+ };
- ARDOUR::Session* _session;
boost::shared_ptr<ARDOUR::Playlist> _playlist;
boost::shared_ptr<ARDOUR::Source> _source;
- boost::shared_ptr<ARDOUR::Region> _region[16];
+ boost::shared_ptr<ARDOUR::Region>* _region;
};