summaryrefslogtreecommitdiff
path: root/svl/qa
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-02-24 15:50:07 -0500
committerKohei Yoshida <kyoshida@novell.com>2011-02-24 15:50:42 -0500
commit8bd3bc3f698278e9fbe57dfe990b9500c2dd3588 (patch)
tree3a8d99927068a41c269293477badc7e0ec28cecb /svl/qa
parent41c30fa82f9aa1b3faa55fe881ec2190eaf57429 (diff)
I need iostream and its friends while debugging the unit test code.
Diffstat (limited to 'svl/qa')
-rw-r--r--svl/qa/unit/svl.cxx18
1 files changed, 18 insertions, 0 deletions
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index 91f406d79832..0b54b2ca5d19 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();