Fixed warnings (method shadowing).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@359 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -26,6 +26,7 @@ public:
|
|||||||
BThreadedTestCaller(std::string name, TestClass *object);
|
BThreadedTestCaller(std::string name, TestClass *object);
|
||||||
virtual ~BThreadedTestCaller();
|
virtual ~BThreadedTestCaller();
|
||||||
|
|
||||||
|
virtual CppUnit::TestResult *run();
|
||||||
virtual void run(CppUnit::TestResult *result);
|
virtual void run(CppUnit::TestResult *result);
|
||||||
|
|
||||||
//! Adds a thread to the test. \c threadName must be unique to this BThreadedTestCaller.
|
//! Adds a thread to the test. \c threadName must be unique to this BThreadedTestCaller.
|
||||||
@@ -97,6 +98,14 @@ BThreadedTestCaller<TestClass, ExpectedException>::addThread(std::string threadN
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <class TestClass, class ExpectedException>
|
||||||
|
CppUnit::TestResult *
|
||||||
|
BThreadedTestCaller<TestClass, ExpectedException>::run() {
|
||||||
|
CppUnit::TestResult *result = new CppUnit::TestResult;
|
||||||
|
run(result);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
template <class TestClass, class ExpectedException>
|
template <class TestClass, class ExpectedException>
|
||||||
void
|
void
|
||||||
BThreadedTestCaller<TestClass, ExpectedException>::run(CppUnit::TestResult *result) {
|
BThreadedTestCaller<TestClass, ExpectedException>::run(CppUnit::TestResult *result) {
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ class CPPUNIT_API TextTestResult : public TestResult,
|
|||||||
public:
|
public:
|
||||||
TextTestResult();
|
TextTestResult();
|
||||||
|
|
||||||
|
virtual void addFailure( Test *test, Exception *e );
|
||||||
virtual void addFailure( const TestFailure &failure );
|
virtual void addFailure( const TestFailure &failure );
|
||||||
virtual void startTest( Test *test );
|
virtual void startTest( Test *test );
|
||||||
virtual void print( std::ostream &stream );
|
virtual void print( std::ostream &stream );
|
||||||
|
|||||||
@@ -15,6 +15,13 @@ TextTestResult::TextTestResult()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
TextTestResult::addFailure( Test *test, Exception *e )
|
||||||
|
{
|
||||||
|
TestResult::addFailure( test, e );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
TextTestResult::addFailure( const TestFailure &failure )
|
TextTestResult::addFailure( const TestFailure &failure )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user