[Libreoffice-commits] .: svl/qa
Kohei Yoshida
kohei at kemper.freedesktop.org
Thu Feb 24 12:50:54 PST 2011
svl/qa/unit/svl.cxx | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
New commits:
commit 7a7ba843aafcbd0fa3e5b2f2f9540b76b945d408
Author: Kohei Yoshida <kyoshida at novell.com>
Date: Thu Feb 24 15:50:07 2011 -0500
I need iostream and its friends while debugging the unit test code.
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index 91f406d..0b54b2c 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -56,12 +56,30 @@
#include "svl/zforlist.hxx"
#include "svl/zformat.hxx"
+#define DEBUG_UNIT_TEST 0
+
+#if DEBUG_UNIT_TEST
+#include <iostream>
+#endif
+
using namespace ::com::sun::star;
using ::rtl::OUString;
using ::rtl::OUStringBuffer;
+#if DEBUG_UNIT_TEST
+using ::std::cout;
+using ::std::endl;
+#endif
+
namespace {
+#if DEBUG_UNIT_TEST
+::std::ostream& operator<< (::std::ostream& os, const OUString& str)
+{
+ return os << ::rtl::OUStringToOString(str, RTL_TEXTENCODING_UTF8).getStr();
+}
+#endif
+
class Test : public CppUnit::TestFixture {
public:
Test();
More information about the Libreoffice-commits
mailing list