// 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); } \
}