EFL: Refactor EFL_CHECK macros
authorJoe Konno <joe.konno@intel.com>
Mon, 23 Jul 2012 19:31:58 +0000 (12:31 -0700)
committerJoe Konno <joe.konno@intel.com>
Mon, 23 Jul 2012 19:32:29 +0000 (12:32 -0700)
Move the definitions to elmtestharness.h.

Signed-off-by: Joe Konno <joe.konno@intel.com>
12 files changed:
src/efl/elmtestharness.h
src/efl/evasobject.h
src/efl/test_background.cpp
src/efl/test_bubble.cpp
src/efl/test_check.cpp
src/efl/test_clock.cpp
src/efl/test_colorselector.cpp
src/efl/test_dayselector.cpp
src/efl/test_entry.cpp
src/efl/test_fileselector.cpp
src/efl/test_fileselector_button.cpp
src/efl/test_fileselector_entry.cpp

index 3d37888..087055a 100644 (file)
@@ -76,5 +76,37 @@ BOOST_AUTO_TEST_CASE(Harness##_shm_engine) \
 //     Harness().run(); \
 //} \
 
+#define EFL_CHECK_SIZE(obj, w, h)\
+               queueCallback( \
+                       ModifyCheckCallback( \
+                               boost::bind(&EvasObject::setSize, boost::ref(obj), w, h), \
+                               boost::bind(&EvasObject::checkSize, boost::ref(obj), w, h) \
+                       ) \
+               )
+
+#define EFL_CHECK_POSITION(obj, x, y) \
+               queueCallback( \
+                       ModifyCheckCallback( \
+                               boost::bind(&EvasObject::setPosition, boost::ref(obj), x, y), \
+                               boost::bind(&EvasObject::checkPosition, boost::ref(obj), x, y) \
+                       ) \
+               )
+
+#define EFL_CHECK_SHOW(obj) \
+               queueCallback( \
+                       ModifyCheckCallback( \
+                               boost::bind(&EvasObject::show, boost::ref(obj)), \
+                               boost::bind(&EvasObject::checkVisible, boost::ref(obj), EINA_TRUE) \
+                       ) \
+               )
+
+#define EFL_CHECK_HIDE(obj) \
+               queueCallback( \
+                       ModifyCheckCallback( \
+                               boost::bind(&EvasObject::hide, boost::ref(obj)), \
+                               boost::bind(&EvasObject::checkHidden, boost::ref(obj), EINA_TRUE) \
+                       ) \
+               )
+
 #endif
 
index b80a8e8..df5e662 100644 (file)
@@ -33,36 +33,4 @@ private:
 
 };
 
-#define EFL_CHECK_SIZE(obj, w, h)\
-               queueCallback( \
-                       ModifyCheckCallback( \
-                               boost::bind(&EvasObject::setSize, boost::ref(obj), w, h), \
-                               boost::bind(&EvasObject::checkSize, boost::ref(obj), w, h) \
-                       ) \
-               )
-
-#define EFL_CHECK_POSITION(obj, x, y) \
-               queueCallback( \
-                       ModifyCheckCallback( \
-                               boost::bind(&EvasObject::setPosition, boost::ref(obj), x, y), \
-                               boost::bind(&EvasObject::checkPosition, boost::ref(obj), x, y) \
-                       ) \
-               )
-
-#define EFL_CHECK_SHOW(obj) \
-               queueCallback( \
-                       ModifyCheckCallback( \
-                               boost::bind(&EvasObject::show, boost::ref(obj)), \
-                               boost::bind(&EvasObject::checkVisible, boost::ref(obj), EINA_TRUE) \
-                       ) \
-               )
-
-#define EFL_CHECK_HIDE(obj) \
-               queueCallback( \
-                       ModifyCheckCallback( \
-                               boost::bind(&EvasObject::hide, boost::ref(obj)), \
-                               boost::bind(&EvasObject::checkHidden, boost::ref(obj), EINA_TRUE) \
-                       ) \
-               )
-
 #endif
index 26165af..9b47a9e 100644 (file)
@@ -6,7 +6,7 @@
 #include "application.h"
 #include "window.h"
 #include "background.h"
-#include "evasobject.h"
+
 #include "elmtestharness.h"
 
 using boost::filesystem::path;
index 712164f..1b25d57 100644 (file)
@@ -5,7 +5,7 @@
 #include <string>
 
 #include "window.h"
-#include "evasobject.h"
+
 #include "elmtestharness.h"
 #include "templates.h"
 
index 05de009..911d2fb 100644 (file)
@@ -2,7 +2,7 @@
 #include <boost/bind.hpp>
 
 #include "window.h"
-#include "evasobject.h"
+
 #include "elmtestharness.h"
 #include "templates.h"
 
index 454c895..0e64149 100644 (file)
@@ -2,7 +2,7 @@
 #include <boost/bind.hpp>
 
 #include "window.h"
-#include "evasobject.h"
+
 #include "elmtestharness.h"
 #include "templates.h"
 
index 4e45828..49bb687 100644 (file)
@@ -2,7 +2,7 @@
 #include <boost/bind.hpp>
 
 #include "window.h"
-#include "evasobject.h"
+
 #include "elmtestharness.h"
 
 class ColorselectorColorTest : public ElmTestHarness
index 0b6560b..d584ed3 100644 (file)
@@ -4,7 +4,7 @@
 #include <vector>
 
 #include "window.h"
-#include "evasobject.h"
+
 #include "elmtestharness.h"
 #include "templates.h"
 
index 4268f4d..e4f2866 100644 (file)
@@ -5,7 +5,7 @@
 #include <string>
 
 #include "window.h"
-#include "evasobject.h"
+
 #include "elmtestharness.h"
 
 using std::string;
index 929351c..9e9e269 100644 (file)
@@ -4,7 +4,7 @@
 #include <vector>
 
 #include "window.h"
-#include "evasobject.h"
+
 #include "elmtestharness.h"
 #include "templates.h"
 
index bc28c7f..738eac7 100644 (file)
@@ -4,7 +4,7 @@
 #include <vector>
 
 #include "window.h"
-#include "evasobject.h"
+
 #include "elmtestharness.h"
 #include "templates.h"
 
index eacc642..03f0115 100644 (file)
@@ -4,7 +4,7 @@
 #include <vector>
 
 #include "window.h"
-#include "evasobject.h"
+
 #include "elmtestharness.h"
 #include "templates.h"