Add ClearEventCount to wxTestableFrame. This means we can clear an event count when an event counter goes out of scope so the are no spurious results in later tests.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
// Name: testableframe.h
|
||||
// Purpose: An improved wxFrame for unit-testing
|
||||
// Author: Steven Lamerton
|
||||
// RCS-ID: $Id:$
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) 2010 Steven Lamerton
|
||||
// Licence: wxWidgets licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
@@ -21,6 +21,9 @@ public:
|
||||
//wxEVT_ANY get the count for all events or a type can be specified
|
||||
int GetEventCount(wxEventType type = wxEVT_ANY);
|
||||
|
||||
//Used to clear an event count, after disconnecting a counter for example
|
||||
void ClearEventCount(wxEventType type);
|
||||
|
||||
private:
|
||||
wxLongToLongHashMap m_count;
|
||||
};
|
||||
|
Reference in New Issue
Block a user