summaryrefslogtreecommitdiff
path: root/libs/ardour/test/playlist_layering_test.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-12-29 22:14:15 +0000
committerCarl Hetherington <carl@carlh.net>2011-12-29 22:14:15 +0000
commitb1775149307a157444c516693ad6b98a404ef1b2 (patch)
treeffdf04d8396cf53d5378c073a8d249150d5282eb /libs/ardour/test/playlist_layering_test.h
parentcabb76cce6203d34299136371078bd20b6abe1e3 (diff)
Revert internals of the last layering-related commit, and go back a slightly-cleaned-up version of how it was before. Remove all layering modes; only option now is add-is-higher. Move-add-higher could easily be re-added if anyone uses it.
git-svn-id: svn://localhost/ardour2/branches/3.0@11111 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/test/playlist_layering_test.h')
-rw-r--r--libs/ardour/test/playlist_layering_test.h32
1 files changed, 6 insertions, 26 deletions
diff --git a/libs/ardour/test/playlist_layering_test.h b/libs/ardour/test/playlist_layering_test.h
index ab5fe701b1..46285459ca 100644
--- a/libs/ardour/test/playlist_layering_test.h
+++ b/libs/ardour/test/playlist_layering_test.h
@@ -1,6 +1,5 @@
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
-#include "test_needing_session.h"
namespace ARDOUR {
class Session;
@@ -8,42 +7,23 @@ namespace ARDOUR {
class Source;
}
-class PlaylistLayeringTest : public TestNeedingSession
+class PlaylistLayeringTest : public CppUnit::TestFixture
{
CPPUNIT_TEST_SUITE (PlaylistLayeringTest);
- 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 (basicsTest);
CPPUNIT_TEST_SUITE_END ();
public:
void setUp ();
void tearDown ();
- void lastLayerOpTest ();
- void addHigher_relayerOnAll_Test ();
- void addOrBoundsHigher_relayerOnAll_Test ();
- void laterHigher_relayerOnAll_Test ();
- void addOrBoundsHigher_relayerWhenNecessary_Test ();
- void recursiveRelayerTest ();
+ void basicsTest ();
private:
- void create_short_regions ();
-
- static int const num_regions;
- enum {
- A = 0,
- B,
- C,
- D,
- E,
- F
- };
+ void create_three_short_regions ();
+ ARDOUR::Session* _session;
boost::shared_ptr<ARDOUR::Playlist> _playlist;
boost::shared_ptr<ARDOUR::Source> _source;
- boost::shared_ptr<ARDOUR::Region>* _region;
+ boost::shared_ptr<ARDOUR::Region> _region[16];
};