]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/testing.h
removing outdated code
[wxWidgets.git] / include / wx / testing.h
index a67585a13040fa9862d4e8af4fd97a54475008fa..fce2c508ba73e70b3da5aea203590602e31e5c72 100644 (file)
@@ -201,6 +201,7 @@ protected:
     int m_id;
 };
 
+#if wxUSE_FILEDLG
 
 template<>
 class wxExpectModal<wxFileDialog> : public wxExpectModalBase<wxFileDialog>
@@ -222,6 +223,7 @@ protected:
     int m_id;
 };
 
+#endif
 
 // Implementation of wxModalDialogHook for use in testing, with
 // wxExpectModal<T> and the wxTEST_DIALOG() macro. It is not intended for
@@ -385,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;                                      \
@@ -392,7 +395,7 @@ private:
         codeToRun;                                                             \
         wx_hook.CheckUnmetExpectations();                                      \
     }
-
+#endif /* wxHAS_VARIADIC_MACROS */
 
 #endif // !WXBUILDING