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);
|
||||
virtual ~BThreadedTestCaller();
|
||||
|
||||
virtual CppUnit::TestResult *run();
|
||||
virtual void run(CppUnit::TestResult *result);
|
||||
|
||||
//! 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>
|
||||
void
|
||||
BThreadedTestCaller<TestClass, ExpectedException>::run(CppUnit::TestResult *result) {
|
||||
|
||||
@@ -22,6 +22,7 @@ class CPPUNIT_API TextTestResult : public TestResult,
|
||||
public:
|
||||
TextTestResult();
|
||||
|
||||
virtual void addFailure( Test *test, Exception *e );
|
||||
virtual void addFailure( const TestFailure &failure );
|
||||
virtual void startTest( Test *test );
|
||||
virtual void print( std::ostream &stream );
|
||||
|
||||
Reference in New Issue
Block a user