X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/643e9cf9f61fdbe517b15477f9247ca8ac0b3578..a7689c49fe02c0c065facf736ab28b19f5997b7c:/include/wx/testing.h diff --git a/include/wx/testing.h b/include/wx/testing.h index 905184e493..fce2c508ba 100644 --- a/include/wx/testing.h +++ b/include/wx/testing.h @@ -76,6 +76,9 @@ private: #include #include "wx/afterstd.h" #include "wx/cpp.h" +#include "wx/dialog.h" +#include "wx/msgdlg.h" +#include "wx/filedlg.h" class wxTestingModalHook; @@ -198,6 +201,7 @@ protected: int m_id; }; +#if wxUSE_FILEDLG template<> class wxExpectModal : public wxExpectModalBase @@ -219,6 +223,7 @@ protected: int m_id; }; +#endif // Implementation of wxModalDialogHook for use in testing, with // wxExpectModal and the wxTEST_DIALOG() macro. It is not intended for @@ -382,6 +387,7 @@ private: wxExpectModal<> for your dialog type and implement its OnInvoked() method. */ +#ifdef wxHAS_VARIADIC_MACROS #define wxTEST_DIALOG(codeToRun, ...) \ { \ wxTEST_DIALOG_HOOK_CLASS wx_hook; \ @@ -389,7 +395,7 @@ private: codeToRun; \ wx_hook.CheckUnmetExpectations(); \ } - +#endif /* wxHAS_VARIADIC_MACROS */ #endif // !WXBUILDING