Add test for a transparent region on top of (and enclosing) another.
[ardour.git] / libs / ardour / test / playlist_read_test.h
1 #include "ardour/types.h"
2 #include "test_needing_playlist_and_regions.h"
3
4 class PlaylistReadTest : public TestNeedingPlaylistAndRegions
5 {
6         CPPUNIT_TEST_SUITE (PlaylistReadTest);
7         CPPUNIT_TEST (singleReadTest);
8         CPPUNIT_TEST (overlappingReadTest);
9         CPPUNIT_TEST (transparentReadTest);
10         CPPUNIT_TEST (enclosedTransparentReadTest);
11         CPPUNIT_TEST (miscReadTest);
12         CPPUNIT_TEST_SUITE_END ();
13
14 public:
15         void setUp ();
16         void tearDown ();
17         
18         void singleReadTest ();
19         void overlappingReadTest ();
20         void transparentReadTest ();
21         void enclosedTransparentReadTest ();
22         void miscReadTest ();
23
24 private:
25         int _N;
26         ARDOUR::Sample* _buf;
27         ARDOUR::Sample* _mbuf;
28         float* _gbuf;
29         boost::shared_ptr<ARDOUR::AudioPlaylist> _apl;
30         
31         void check_staircase (ARDOUR::Sample *, int, int);
32 };