diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-02-24 15:50:07 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-02-24 15:50:42 -0500 |
commit | 8bd3bc3f698278e9fbe57dfe990b9500c2dd3588 (patch) | |
tree | 3a8d99927068a41c269293477badc7e0ec28cecb /svl/qa/unit | |
parent | 41c30fa82f9aa1b3faa55fe881ec2190eaf57429 (diff) |
I need iostream and its friends while debugging the unit test code.
Diffstat (limited to 'svl/qa/unit')
-rw-r--r-- | svl/qa/unit/svl.cxx | 18 |
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(); |