summaryrefslogtreecommitdiff
path: root/libs/ardour/test/playlist_layering_test.h
diff options
context:
space:
mode:
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;
};