diff --git a/CppUnit/include/CppUnit/TestDecorator.h b/CppUnit/include/CppUnit/TestDecorator.h index 31d6a134f..85b5f3de9 100644 --- a/CppUnit/include/CppUnit/TestDecorator.h +++ b/CppUnit/include/CppUnit/TestDecorator.h @@ -33,11 +33,11 @@ public: virtual ~TestDecorator(); - int countTestCases(); + int countTestCases() const; void run(TestResult* result); - std::string toString(); + std::string toString() const; protected: Test* _test; diff --git a/CppUnit/src/TestDecorator.cpp b/CppUnit/src/TestDecorator.cpp index 89eb08218..634af35b6 100644 --- a/CppUnit/src/TestDecorator.cpp +++ b/CppUnit/src/TestDecorator.cpp @@ -20,7 +20,7 @@ TestDecorator::~TestDecorator() } -int TestDecorator::countTestCases() +int TestDecorator::countTestCases() const { return _test->countTestCases(); } @@ -29,10 +29,10 @@ int TestDecorator::countTestCases() void TestDecorator::run(TestResult* result) { _test->run(result); -} +} -std::string TestDecorator::toString() +std::string TestDecorator::toString() const { return _test->toString(); }