]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/exec/exec.cpp
Improve drawing of the tree item buttons in the generic renderer.
[wxWidgets.git] / tests / exec / exec.cpp
index 7a4ee95b6fae80bb0beebed027b8ae1eafa9221e..620fa9a3696390a8d0d5d7e47c533bd8d60ee2a8 100644 (file)
@@ -4,7 +4,6 @@
 // Author:      Francesco Montorsi
 //              (based on console sample TestExecute() function)
 // Created:     2009-01-10
-// RCS-ID:      $Id$
 // Copyright:   (c) 2009 Francesco Montorsi
 //              (c) 2013 Rob Bresalier, Vadim Zeitlin
 // Licence:     wxWindows licence
 
 #define SLEEP_END_STRING "Done sleeping"
 
+namespace
+{
+    enum AsyncExecLoopExitEnum
+    {
+        AsyncExec_DontExitLoop,
+        AsyncExec_ExitLoop
+    };
+} // anonymous namespace
+
 // ----------------------------------------------------------------------------
 // test class
 // ----------------------------------------------------------------------------
@@ -94,12 +102,6 @@ private:
                              CheckStream check,
                              const char* expectedContaining);
 
-    enum AsyncExecLoopExitEnum
-    {
-        AsyncExec_DontExitLoop,
-        AsyncExec_ExitLoop
-    };
-
     // This class is used as a helper in order to run wxExecute(ASYNC)
     // inside of an event loop.
     class AsyncInEventLoop : public wxTimer
@@ -433,7 +435,7 @@ void ExecTestCase::TestOverlappedSyncExecute()
     //
     // Too bad you can't just register one test case of a test suite as a
     // "fixme".
-#ifndef __WXMSW__
+#ifndef __WINDOWS__
     // Simple helper delaying the call to wxExecute(): instead of running it
     // immediately, it runs it when we re-enter the event loop.
     class DelayedExecuteTimer : public wxTimer
@@ -492,5 +494,5 @@ void ExecTestCase::TestOverlappedSyncExecute()
 
     CPPUNIT_ASSERT( !longSleepOutput.empty() );
     CPPUNIT_ASSERT_EQUAL( SLEEP_END_STRING, longSleepOutput.Last() );
-#endif // !__WXMSW__
+#endif // !__WINDOWS__
 }