summaryrefslogtreecommitdiff
path: root/libs/ardour/test/playlist_layering_test.h
blob: 7757e017c4f3b72416741d0664f7529676a52dad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>

namespace ARDOUR {
	class Session;
	class Playlist;
	class Source;
}

class PlaylistLayeringTest : public CppUnit::TestFixture
{
	CPPUNIT_TEST_SUITE (PlaylistLayeringTest);
	CPPUNIT_TEST (addHigherTest);
	CPPUNIT_TEST (moveAddHigherTest);
	CPPUNIT_TEST_SUITE_END ();

public:
	void setUp ();
	void tearDown ();

	void addHigherTest ();
	void moveAddHigherTest ();

private:
	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[16];
};