tizen 2.4 release
[framework/web/wrt-commons.git] / tests / dao / TestCases_PropertyDAO.cpp
index 8ff2ad6..378c815 100644 (file)
@@ -35,13 +35,13 @@ using namespace WrtDB::PropertyDAOReadOnly;
 // Widgets used "tizenid201", "tizenid202", "tizenid203", 2003(saved by
 // wrt_dao_tests_prepare_db.sh)
 
-#define RUNNER_ASSERT_WHAT_EQUALS(in, test)                   \
-    { std::string tmp(in);                                     \
+#define RUNNER_ASSERT_WHAT_EQUALS(in, test)                               \
+    { std::string tmp(in);                                                \
       RUNNER_ASSERT_MSG(tmp == test, "Equals: [" + tmp + "]"); }
 
-#define RUNNER_ASSERT_WHAT_EQUALS_OPTIONAL(in, test)          \
-    {                                                     \
-        if (in.IsNull()) { RUNNER_ASSERT_MSG(false, "NULL"); } \
+#define RUNNER_ASSERT_WHAT_EQUALS_OPTIONAL(in, test)                      \
+    {                                                                     \
+        if (!in) { RUNNER_ASSERT_MSG(false, "NULL"); }                    \
         else { RUNNER_ASSERT_WHAT_EQUALS(DPL::ToUTF8String(*in), test); } \
     }