diff options
author | Carl Hetherington <carl@carlh.net> | 2012-06-16 17:20:10 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-06-16 17:20:10 +0000 |
commit | 5ac22e9095d5f851b5238029e3f813bc86fe2280 (patch) | |
tree | 51460c63aa9ace692dedceb01494f2a92d4bc364 /libs/ardour/test/automation_list_property_test.h | |
parent | 9429401f11ffa0ee1729dbdc5e14e87cf06e2dc1 (diff) |
Add new SharedStatefulProperty which manages a shared_ptr to
some Stateful object, and a subclass to use this for
AutomationList. SharedStatefulProperty will manage undo / redo
using full copies of the XML state, like MementoCommand,
but does it within the Property undo system.
git-svn-id: svn://localhost/ardour2/branches/3.0@12740 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/test/automation_list_property_test.h')
-rw-r--r-- | libs/ardour/test/automation_list_property_test.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/libs/ardour/test/automation_list_property_test.h b/libs/ardour/test/automation_list_property_test.h new file mode 100644 index 0000000000..8885d23242 --- /dev/null +++ b/libs/ardour/test/automation_list_property_test.h @@ -0,0 +1,32 @@ +/* + Copyright (C) 2012 Paul Davis + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#include <cppunit/TestFixture.h> +#include <cppunit/extensions/HelperMacros.h> + +class AutomationListPropertyTest : public CppUnit::TestFixture +{ + CPPUNIT_TEST_SUITE (AutomationListPropertyTest); + CPPUNIT_TEST (basicTest); + CPPUNIT_TEST (undoTest); + CPPUNIT_TEST_SUITE_END (); + +public: + void basicTest (); + void undoTest (); +}; |