1 #include <cppunit/TestFixture.h>
2 #include <cppunit/extensions/HelperMacros.h>
3 #include <boost/shared_ptr.hpp>
4 #include "evoral/ControlList.hpp"
6 class CurveTest : public CppUnit::TestFixture
8 CPPUNIT_TEST_SUITE (CurveTest);
9 CPPUNIT_TEST (trivial);
11 CPPUNIT_TEST (twoPointLinear);
12 CPPUNIT_TEST (threePointLinear);
13 CPPUNIT_TEST (threePointDiscete);
14 CPPUNIT_TEST (constrainedCubic);
15 CPPUNIT_TEST (ctrlListEval);
16 CPPUNIT_TEST_SUITE_END ();
21 void twoPointLinear ();
22 void threePointLinear ();
23 void threePointDiscete ();
24 void constrainedCubic ();
28 boost::shared_ptr<Evoral::ControlList> TestCtrlList() {
29 Evoral::Parameter param (Evoral::Parameter(0));
30 const Evoral::ParameterDescriptor desc;
31 return boost::shared_ptr<Evoral::ControlList> (new Evoral::ControlList(param, desc));