From 69f135517a06ce5f3cccf87c08a5c6b9792b630d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 2 Apr 2010 15:45:01 +0000 Subject: [PATCH] Unbreak build. Sorry. git-svn-id: svn://localhost/ardour2/branches/3.0@6837 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/pbd/test/scalar_properties.cc | 27 +++++++++++++++++++-------- libs/pbd/test/scalar_properties.h | 6 ++++-- 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/libs/pbd/test/scalar_properties.cc b/libs/pbd/test/scalar_properties.cc index f85b1081a4..05d97a7ad1 100644 --- a/libs/pbd/test/scalar_properties.cc +++ b/libs/pbd/test/scalar_properties.cc @@ -2,19 +2,30 @@ using namespace PBD; +namespace Properties { + PBD::PropertyDescriptor fred; +}; + +ScalarPropertiesTest::ScalarPropertiesTest () + : _fred (Properties::fred, 0) +{ + +} + +void ScalarPropertiesTest::testBasic () { - CPPUNIT_ASSERT (_property.changed() == false); + CPPUNIT_ASSERT (_fred.changed() == false); - _property = 4; - CPPUNIT_ASSERT (_property == 4); - CPPUNIT_ASSERT (_property.changed() == true); + _fred = 4; + CPPUNIT_ASSERT (_fred == 4); + CPPUNIT_ASSERT (_fred.changed() == true); - _property = 5; - CPPUNIT_ASSERT (_property == 5); - CPPUNIT_ASSERT (_property.changed() == true); + _fred = 5; + CPPUNIT_ASSERT (_fred == 5); + CPPUNIT_ASSERT (_fred.changed() == true); PropertyList undo; PropertyList redo; - _property.diff (undo, redo); + _fred.diff (undo, redo); } diff --git a/libs/pbd/test/scalar_properties.h b/libs/pbd/test/scalar_properties.h index a3719fbe13..04291e66e9 100644 --- a/libs/pbd/test/scalar_properties.h +++ b/libs/pbd/test/scalar_properties.h @@ -1,15 +1,17 @@ #include +#include #include "pbd/properties.h" class ScalarPropertiesTest : public CppUnit::TestFixture { -public: CPPUNIT_TEST_SUITE (ScalarPropertiesTest); CPPUNIT_TEST (testBasic); CPPUNIT_TEST_SUITE_END (); +public: + ScalarPropertiesTest (); void testBasic (); private: - PBD::Property _property; + PBD::Property _fred; };