The return of threaded waveform rendering and related crashes.
[ardour.git] / libs / canvas / test / wave_view.h
1 #include <cppunit/TestFixture.h>
2 #include <cppunit/extensions/HelperMacros.h>
3
4 class WaveViewTest : public CppUnit::TestFixture
5 {
6         CPPUNIT_TEST_SUITE (WaveViewTest);
7         CPPUNIT_TEST (all);
8         CPPUNIT_TEST_SUITE_END ();
9
10 public:
11         void setUp ();
12         void all ();
13
14 private:
15         void make_canvas ();
16         void render_all_at_once ();
17         void render_in_pieces ();
18         void cache ();
19
20         ArdourCanvas::ImageCanvas* _canvas;
21         ArdourCanvas::WaveView* _wave_view;
22         boost::shared_ptr<ARDOUR::Region> _region;
23         boost::shared_ptr<ARDOUR::AudioRegion> _audio_region;
24 };
25
26