summaryrefslogtreecommitdiff
path: root/cppu/qa/cppumaker/test_cppumaker.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cppu/qa/cppumaker/test_cppumaker.cxx')
-rw-r--r--cppu/qa/cppumaker/test_cppumaker.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/cppu/qa/cppumaker/test_cppumaker.cxx b/cppu/qa/cppumaker/test_cppumaker.cxx
index 850eb10a904c..141c3e2fd1d7 100644
--- a/cppu/qa/cppumaker/test_cppumaker.cxx
+++ b/cppu/qa/cppumaker/test_cppumaker.cxx
@@ -378,6 +378,18 @@
#include <cstddef>
#include <iostream>
+//TODO, copied here from test/oustringostreaminserter.hxx, make DRY again:
+#include "osl/thread.h"
+template< typename charT, typename traits > std::basic_ostream<charT, traits> &
+operator <<(
+ std::basic_ostream<charT, traits> & stream, rtl::OUString const & string)
+{
+ return stream <<
+ rtl::OUStringToOString(string, osl_getThreadTextEncoding()).getStr();
+ // best effort; potentially loses data due to conversion failures and
+ // embedded null characters
+}
+
namespace {
class Test: public CppUnit::TestFixture {