summaryrefslogtreecommitdiff
path: root/libs/canvas/test/wave_view.h
blob: 69f7ce772f7f48600ad1a74cdb4d0361855e3f21 (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
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>

class WaveViewTest : public CppUnit::TestFixture
{
	CPPUNIT_TEST_SUITE (WaveViewTest);
	CPPUNIT_TEST (all);
	CPPUNIT_TEST_SUITE_END ();

public:
	void setUp ();
	void all ();

private:
	void make_canvas ();
	void render_all_at_once ();
	void render_in_pieces ();
	void cache ();

	ArdourCanvas::ImageCanvas* _canvas;
	ArdourCanvas::WaveView* _wave_view;
	boost::shared_ptr<ARDOUR::Region> _region;
	boost::shared_ptr<ARDOUR::AudioRegion> _audio_region;
};