update to 'new' ControlList API
authorRobin Gareus <robin@gareus.org>
Fri, 5 Dec 2014 19:50:09 +0000 (20:50 +0100)
committerRobin Gareus <robin@gareus.org>
Fri, 5 Dec 2014 19:57:07 +0000 (20:57 +0100)
add (double when, double value, bool with_guards=true, bool with_default=true);

libs/ardour/test/automation_list_property_test.cc

index c0b3e8a42aadf39ac0c3b9f36da09144c6e98612..5bfdff3b89f0fea88104a9d1d568aa4d0fd0ba1f 100644 (file)
@@ -59,8 +59,8 @@ AutomationListPropertyTest::basicTest ()
        /* No change since we just cleared them */
        CPPUNIT_ASSERT_EQUAL (false, property.changed());
        
-       property->add (1, 2);
-       property->add (3, 4);
+       property->add (1, 2, false, false);
+       property->add (3, 4, false, false);
 
        /* Now it has changed */
        CPPUNIT_ASSERT_EQUAL (true, property.changed());
@@ -81,8 +81,8 @@ AutomationListPropertyTest::basicTest ()
        /* Do some more */
        property.clear_changes ();
        CPPUNIT_ASSERT_EQUAL (false, property.changed());
-       property->add (5, 6);
-       property->add (7, 8);
+       property->add (5, 6, false, false);
+       property->add (7, 8, false, false);
        CPPUNIT_ASSERT_EQUAL (true, property.changed());
        foo = new XMLNode ("test");
        property.get_changes_as_xml (foo);
@@ -133,13 +133,13 @@ AutomationListPropertyTest::undoTest ()
        boost::shared_ptr<Fred> sheila (new Fred);
 
        /* Add some data */
-       sheila->_jim->add (1, 2);
-       sheila->_jim->add (3, 4);
+       sheila->_jim->add (1, 2, false, false);
+       sheila->_jim->add (3, 4, false, false);
 
        /* Do a `command' */
        sheila->clear_changes ();
-       sheila->_jim->add (5, 6);
-       sheila->_jim->add (7, 8);
+       sheila->_jim->add (5, 6, false, false);
+       sheila->_jim->add (7, 8, false, false);
        StatefulDiffCommand sdc (sheila);
 
        std::string test_data_filename = "automation_list_property_test3.ref";