No changes, just slightly simplify wxFileSystemWatcher unit test.
CheckResult() method of the test event handler doesn't need to return anything, it uses CPPUNIT_ASSERTs and related macros inside it to check that everything is expected. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
ad94cb2b4f
commit
17e23c0cb9
@ -248,7 +248,7 @@ public:
|
||||
break;
|
||||
case 2:
|
||||
// actual test
|
||||
CPPUNIT_ASSERT(CheckResult());
|
||||
CheckResult();
|
||||
Exit();
|
||||
break;
|
||||
|
||||
@ -325,7 +325,7 @@ public:
|
||||
tested = true;
|
||||
}
|
||||
|
||||
virtual bool CheckResult()
|
||||
virtual void CheckResult()
|
||||
{
|
||||
CPPUNIT_ASSERT_MESSAGE( "No events received", !m_events.empty() );
|
||||
|
||||
@ -356,8 +356,6 @@ public:
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL(expected.GetPath(), e->GetPath());
|
||||
CPPUNIT_ASSERT_EQUAL(expected.GetNewPath(), e->GetNewPath());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual void GenerateEvent() = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user